达达龟.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. muban.首图2.二级.desc = 'p.data:eq(-1)&&Text;;;p.data:eq(-2)&&Text;p.data:eq(-3)&&Text';
  2. var rule = {
  3. title:'达达龟',
  4. 模板:'首图2',
  5. host:'https://www.dadagui.me',
  6. url:'/vodtype/fyclass-fypage.html',
  7. searchUrl: '/rss.xml?wd=**',
  8. class_parse: '.stui-header__menu li:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
  9. lazy: $js.toString(() => {
  10. let js = 'try{function requestApix(callback){$.post(\"api.php\",{vid:getQueryString(\"vid\")},function(result){callback(result.data.url);},\"json\");}requestApix(function(data){location.href=sign(data);})}catch(e){}location.href=document.querySelector(\"#playleft iframe\").src;';
  11. input = {
  12. parse: 1,
  13. url: input,
  14. click: js,
  15. js: js
  16. };
  17. }),
  18. 搜索: $js.toString(() => {
  19. let html = post(input.split('?')[0], {body: input.split('?')[1]});
  20. let items = pdfa(html, 'rss&&item');
  21. // log(items);
  22. let d = [];
  23. items.forEach(it => {
  24. it = it.replace(/title|link|author|pubdate|description/g, 'p');
  25. let url = pdfh(it, 'p:eq(1)&&Text');
  26. d.push({
  27. title: pdfh(it, 'p&&Text'),
  28. url: url,
  29. desc: pdfh(it, 'p:eq(3)&&Text'),
  30. content: pdfh(it, 'p:eq(2)&&Text'),
  31. pic_url: "",
  32. });
  33. });
  34. setResult(d);
  35. }),
  36. }