ohentai.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. const baseParse = _ => {
  2. let d = [];
  3. try{
  4. const list = parseDomForArray(getResCode(), '.serywrapper&&.tagtext');
  5. for (let j in list) {
  6. d.push({
  7. title: parseDomForHtml(list[j], '.tagtext&&Text'),
  8. url: "https://ohentai.org/"+parseDomForHtml(list[j],'a&&href').replace(/\s/g, '%20')+"&p=fypage"
  9. });
  10. }}catch(e){}
  11. setResult(d);
  12. }
  13. const secParse = _ => {
  14. let d = [];
  15. try{
  16. const list = parseDomForArray(getResCode(), '.videobrickwrap&&.videobrick');
  17. for (let j in list) {
  18. let title = pdfh(list[j], '.videotitle&&Text')
  19. if (title !== 'StripChat - Live Cams') {
  20. d.push({
  21. title: title,
  22. pic_url: "https://ohentai.org/"+pdfh(list[j], 'img&&src').replace(/\s/g, '%20'),
  23. url: $("https://ohentai.org/"+pdfh(list[j],'a&&href').replace(/\s/g, '%20')).lazyRule(_ => {
  24. const data = fetch(input).match(/sources: \[\{\"file\"\:\".*\"\}\],/)
  25. if (data) {
  26. return data[0].replace(/sources: \[\{\"file\"\:\"/, '').replace(/\"\}\],/, '')
  27. } else {
  28. return "取值失败"
  29. }
  30. }),
  31. col_type: "movie_2"
  32. })
  33. }
  34. }
  35. }catch(e){}
  36. setResult(d);
  37. }