怡萱动漫.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773
  1. // 发布页 https://acgfans.org/pub.html
  2. var rule = {
  3. title: '怡萱动漫',
  4. // host:'https://www.yxdmlove.com',
  5. host: 'https://acgfans.org/pub.html',
  6. hostJs: 'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src = jsp.pdfh(html,"p:eq(0)&&a&&Text");print(src);HOST=src', //网页域名根动态抓取js代码。通过HOST=赋值
  7. // url:'/category.html?channel=17&zhonglei=fyclass&orderby=pubdate&totalresult=2999&pageno=fypage',
  8. url: '/category.html?channel=17&zhonglei=fyclassfyfilter&pageno=fypage',
  9. filterable: 1, //是否启用分类筛选,
  10. filter_url: '&{{fl.by or "orderby=pubdate"}}&{{fl.year}}&{{fl.area}}&{{fl.sta}}&{{fl.class}}',
  11. filter: {
  12. "TV": [{
  13. "key": "sta",
  14. "name": "进度",
  15. "value": [{
  16. "n": "全部",
  17. "v": ""
  18. }, {
  19. "n": "连载中",
  20. "v": "status=连载中"
  21. }, {
  22. "n": "已完结",
  23. "v": "status=已完结"
  24. }, {
  25. "n": "未播放",
  26. "v": "status=未播放"
  27. }]
  28. }, {
  29. "key": "area",
  30. "name": "地区",
  31. "value": [{
  32. "n": "全部",
  33. "v": ""
  34. }, {
  35. "n": "日本",
  36. "v": "area=日本"
  37. }, {
  38. "n": "中国",
  39. "v": "area=中国"
  40. }, {
  41. "n": "欧美",
  42. "v": "area=欧美"
  43. }]
  44. }, {
  45. "key": "year",
  46. "name": "年份",
  47. "value": [{
  48. "n": "全部",
  49. "v": ""
  50. }, {
  51. "n": "2025",
  52. "v": "year=2025"
  53. }, {
  54. "n": "2024",
  55. "v": "year=2024"
  56. }, {
  57. "n": "2023",
  58. "v": "year=2023"
  59. }, {
  60. "n": "2022",
  61. "v": "year=2022"
  62. }, {
  63. "n": "2021",
  64. "v": "year=2021"
  65. }, {
  66. "n": "2020",
  67. "v": "year=2020"
  68. }, {
  69. "n": "2019",
  70. "v": "year=2019"
  71. }, {
  72. "n": "2018",
  73. "v": "year=2018"
  74. }, {
  75. "n": "2017",
  76. "v": "year=2017"
  77. }, {
  78. "n": "2016",
  79. "v": "year=2016"
  80. }, {
  81. "n": "2015",
  82. "v": "year=2015"
  83. }, {
  84. "n": "2014",
  85. "v": "year=2014"
  86. }, {
  87. "n": "2013",
  88. "v": "year=2013"
  89. }, {
  90. "n": "2012",
  91. "v": "year=2012"
  92. }, {
  93. "n": "2011",
  94. "v": "year=2011"
  95. }, {
  96. "n": "2010",
  97. "v": "year=2010"
  98. }, {
  99. "n": "更早",
  100. "v": "year=2010前"
  101. }]
  102. }, {
  103. "key": "class",
  104. "name": "剧情",
  105. "value": [{
  106. "n": "全部",
  107. "v": ""
  108. }, {
  109. "n": "冒险",
  110. "v": "jqlx=冒险"
  111. }, {
  112. "n": "热血",
  113. "v": "jqlx=热血"
  114. }, {
  115. "n": "爱情",
  116. "v": "jqlx=爱情"
  117. }, {
  118. "n": "搞笑",
  119. "v": "jqlx=搞笑"
  120. }, {
  121. "n": "后宫",
  122. "v": "jqlx=后宫"
  123. }, {
  124. "n": "校园",
  125. "v": "jqlx=校园"
  126. }, {
  127. "n": "机战",
  128. "v": "jqlx=机战"
  129. }, {
  130. "n": "幻想",
  131. "v": "jqlx=幻想"
  132. }, {
  133. "n": "科幻",
  134. "v": "jqlx=科幻"
  135. }, {
  136. "n": "竞技",
  137. "v": "jqlx=竞技"
  138. }, {
  139. "n": "百合",
  140. "v": "jqlx=百合"
  141. }, {
  142. "n": "耽美",
  143. "v": "jqlx=耽美"
  144. }, {
  145. "n": "悬疑",
  146. "v": "jqlx=悬疑"
  147. }, {
  148. "n": "剧情",
  149. "v": "jqlx=剧情"
  150. }, {
  151. "n": "战争",
  152. "v": "jqlx=战争"
  153. }, {
  154. "n": "恐怖",
  155. "v": "jqlx=恐怖"
  156. }, {
  157. "n": "运动",
  158. "v": "jqlx=运动"
  159. }, {
  160. "n": "动作",
  161. "v": "jqlx=动作"
  162. }, {
  163. "n": "童话",
  164. "v": "jqlx=童话"
  165. }, {
  166. "n": "历史",
  167. "v": "jqlx=历史"
  168. }, {
  169. "n": "真人",
  170. "v": "jqlx=真人"
  171. }, {
  172. "n": "女性向",
  173. "v": "jqlx=女性向"
  174. }, {
  175. "n": "泡面番",
  176. "v": "jqlx=泡面番"
  177. }]
  178. }, {
  179. "key": "by",
  180. "name": "排序",
  181. "value": [{
  182. "n": "时间",
  183. "v": "orderby=pubdate"
  184. }, {
  185. "n": "热度",
  186. "v": "orderby=click"
  187. }]
  188. }],
  189. "剧场版": [{
  190. "key": "sta",
  191. "name": "进度",
  192. "value": [{
  193. "n": "全部",
  194. "v": ""
  195. }, {
  196. "n": "连载中",
  197. "v": "status=连载中"
  198. }, {
  199. "n": "已完结",
  200. "v": "status=已完结"
  201. }, {
  202. "n": "未播放",
  203. "v": "status=未播放"
  204. }]
  205. }, {
  206. "key": "area",
  207. "name": "地区",
  208. "value": [{
  209. "n": "全部",
  210. "v": ""
  211. }, {
  212. "n": "日本",
  213. "v": "area=日本"
  214. }, {
  215. "n": "中国",
  216. "v": "area=中国"
  217. }, {
  218. "n": "欧美",
  219. "v": "area=欧美"
  220. }]
  221. }, {
  222. "key": "year",
  223. "name": "年份",
  224. "value": [{
  225. "n": "全部",
  226. "v": ""
  227. }, {
  228. "n": "2025",
  229. "v": "year=2025"
  230. }, {
  231. "n": "2024",
  232. "v": "year=2024"
  233. }, {
  234. "n": "2023",
  235. "v": "year=2023"
  236. }, {
  237. "n": "2022",
  238. "v": "year=2022"
  239. }, {
  240. "n": "2021",
  241. "v": "year=2021"
  242. }, {
  243. "n": "2020",
  244. "v": "year=2020"
  245. }, {
  246. "n": "2019",
  247. "v": "year=2019"
  248. }, {
  249. "n": "2018",
  250. "v": "year=2018"
  251. }, {
  252. "n": "2017",
  253. "v": "year=2017"
  254. }, {
  255. "n": "2016",
  256. "v": "year=2016"
  257. }, {
  258. "n": "2015",
  259. "v": "year=2015"
  260. }, {
  261. "n": "2014",
  262. "v": "year=2014"
  263. }, {
  264. "n": "2013",
  265. "v": "year=2013"
  266. }, {
  267. "n": "2012",
  268. "v": "year=2012"
  269. }, {
  270. "n": "2011",
  271. "v": "year=2011"
  272. }, {
  273. "n": "2010",
  274. "v": "year=2010"
  275. }, {
  276. "n": "更早",
  277. "v": "year=2010前"
  278. }]
  279. }, {
  280. "key": "class",
  281. "name": "剧情",
  282. "value": [{
  283. "n": "全部",
  284. "v": ""
  285. }, {
  286. "n": "冒险",
  287. "v": "jqlx=冒险"
  288. }, {
  289. "n": "热血",
  290. "v": "jqlx=热血"
  291. }, {
  292. "n": "爱情",
  293. "v": "jqlx=爱情"
  294. }, {
  295. "n": "搞笑",
  296. "v": "jqlx=搞笑"
  297. }, {
  298. "n": "后宫",
  299. "v": "jqlx=后宫"
  300. }, {
  301. "n": "校园",
  302. "v": "jqlx=校园"
  303. }, {
  304. "n": "机战",
  305. "v": "jqlx=机战"
  306. }, {
  307. "n": "幻想",
  308. "v": "jqlx=幻想"
  309. }, {
  310. "n": "科幻",
  311. "v": "jqlx=科幻"
  312. }, {
  313. "n": "竞技",
  314. "v": "jqlx=竞技"
  315. }, {
  316. "n": "百合",
  317. "v": "jqlx=百合"
  318. }, {
  319. "n": "耽美",
  320. "v": "jqlx=耽美"
  321. }, {
  322. "n": "悬疑",
  323. "v": "jqlx=悬疑"
  324. }, {
  325. "n": "剧情",
  326. "v": "jqlx=剧情"
  327. }, {
  328. "n": "战争",
  329. "v": "jqlx=战争"
  330. }, {
  331. "n": "恐怖",
  332. "v": "jqlx=恐怖"
  333. }, {
  334. "n": "运动",
  335. "v": "jqlx=运动"
  336. }, {
  337. "n": "动作",
  338. "v": "jqlx=动作"
  339. }, {
  340. "n": "童话",
  341. "v": "jqlx=童话"
  342. }, {
  343. "n": "历史",
  344. "v": "jqlx=历史"
  345. }, {
  346. "n": "真人",
  347. "v": "jqlx=真人"
  348. }, {
  349. "n": "女性向",
  350. "v": "jqlx=女性向"
  351. }, {
  352. "n": "泡面番",
  353. "v": "jqlx=泡面番"
  354. }]
  355. }, {
  356. "key": "by",
  357. "name": "排序",
  358. "value": [{
  359. "n": "时间",
  360. "v": "orderby=pubdate"
  361. }, {
  362. "n": "热度",
  363. "v": "orderby=click"
  364. }]
  365. }],
  366. "OVA": [{
  367. "key": "sta",
  368. "name": "进度",
  369. "value": [{
  370. "n": "全部",
  371. "v": ""
  372. }, {
  373. "n": "连载中",
  374. "v": "status=连载中"
  375. }, {
  376. "n": "已完结",
  377. "v": "status=已完结"
  378. }, {
  379. "n": "未播放",
  380. "v": "status=未播放"
  381. }]
  382. }, {
  383. "key": "area",
  384. "name": "地区",
  385. "value": [{
  386. "n": "全部",
  387. "v": ""
  388. }, {
  389. "n": "日本",
  390. "v": "area=日本"
  391. }, {
  392. "n": "中国",
  393. "v": "area=中国"
  394. }, {
  395. "n": "欧美",
  396. "v": "area=欧美"
  397. }]
  398. }, {
  399. "key": "year",
  400. "name": "年份",
  401. "value": [{
  402. "n": "全部",
  403. "v": ""
  404. }, {
  405. "n": "2025",
  406. "v": "year=2025"
  407. }, {
  408. "n": "2024",
  409. "v": "year=2024"
  410. }, {
  411. "n": "2023",
  412. "v": "year=2023"
  413. }, {
  414. "n": "2022",
  415. "v": "year=2022"
  416. }, {
  417. "n": "2021",
  418. "v": "year=2021"
  419. }, {
  420. "n": "2020",
  421. "v": "year=2020"
  422. }, {
  423. "n": "2019",
  424. "v": "year=2019"
  425. }, {
  426. "n": "2018",
  427. "v": "year=2018"
  428. }, {
  429. "n": "2017",
  430. "v": "year=2017"
  431. }, {
  432. "n": "2016",
  433. "v": "year=2016"
  434. }, {
  435. "n": "2015",
  436. "v": "year=2015"
  437. }, {
  438. "n": "2014",
  439. "v": "year=2014"
  440. }, {
  441. "n": "2013",
  442. "v": "year=2013"
  443. }, {
  444. "n": "2012",
  445. "v": "year=2012"
  446. }, {
  447. "n": "2011",
  448. "v": "year=2011"
  449. }, {
  450. "n": "2010",
  451. "v": "year=2010"
  452. }, {
  453. "n": "更早",
  454. "v": "year=2010前"
  455. }]
  456. }, {
  457. "key": "class",
  458. "name": "剧情",
  459. "value": [{
  460. "n": "全部",
  461. "v": ""
  462. }, {
  463. "n": "冒险",
  464. "v": "jqlx=冒险"
  465. }, {
  466. "n": "热血",
  467. "v": "jqlx=热血"
  468. }, {
  469. "n": "爱情",
  470. "v": "jqlx=爱情"
  471. }, {
  472. "n": "搞笑",
  473. "v": "jqlx=搞笑"
  474. }, {
  475. "n": "后宫",
  476. "v": "jqlx=后宫"
  477. }, {
  478. "n": "校园",
  479. "v": "jqlx=校园"
  480. }, {
  481. "n": "机战",
  482. "v": "jqlx=机战"
  483. }, {
  484. "n": "幻想",
  485. "v": "jqlx=幻想"
  486. }, {
  487. "n": "科幻",
  488. "v": "jqlx=科幻"
  489. }, {
  490. "n": "竞技",
  491. "v": "jqlx=竞技"
  492. }, {
  493. "n": "百合",
  494. "v": "jqlx=百合"
  495. }, {
  496. "n": "耽美",
  497. "v": "jqlx=耽美"
  498. }, {
  499. "n": "悬疑",
  500. "v": "jqlx=悬疑"
  501. }, {
  502. "n": "剧情",
  503. "v": "jqlx=剧情"
  504. }, {
  505. "n": "战争",
  506. "v": "jqlx=战争"
  507. }, {
  508. "n": "恐怖",
  509. "v": "jqlx=恐怖"
  510. }, {
  511. "n": "运动",
  512. "v": "jqlx=运动"
  513. }, {
  514. "n": "动作",
  515. "v": "jqlx=动作"
  516. }, {
  517. "n": "童话",
  518. "v": "jqlx=童话"
  519. }, {
  520. "n": "历史",
  521. "v": "jqlx=历史"
  522. }, {
  523. "n": "真人",
  524. "v": "jqlx=真人"
  525. }, {
  526. "n": "女性向",
  527. "v": "jqlx=女性向"
  528. }, {
  529. "n": "泡面番",
  530. "v": "jqlx=泡面番"
  531. }]
  532. }, {
  533. "key": "by",
  534. "name": "排序",
  535. "value": [{
  536. "n": "时间",
  537. "v": "orderby=pubdate"
  538. }, {
  539. "n": "热度",
  540. "v": "orderby=click"
  541. }]
  542. }],
  543. "其他": [{
  544. "key": "sta",
  545. "name": "进度",
  546. "value": [{
  547. "n": "全部",
  548. "v": ""
  549. }, {
  550. "n": "连载中",
  551. "v": "status=连载中"
  552. }, {
  553. "n": "已完结",
  554. "v": "status=已完结"
  555. }, {
  556. "n": "未播放",
  557. "v": "status=未播放"
  558. }]
  559. }, {
  560. "key": "area",
  561. "name": "地区",
  562. "value": [{
  563. "n": "全部",
  564. "v": ""
  565. }, {
  566. "n": "日本",
  567. "v": "area=日本"
  568. }, {
  569. "n": "中国",
  570. "v": "area=中国"
  571. }, {
  572. "n": "欧美",
  573. "v": "area=欧美"
  574. }]
  575. }, {
  576. "key": "year",
  577. "name": "年份",
  578. "value": [{
  579. "n": "全部",
  580. "v": ""
  581. }, {
  582. "n": "2025",
  583. "v": "year=2025"
  584. }, {
  585. "n": "2024",
  586. "v": "year=2024"
  587. }, {
  588. "n": "2023",
  589. "v": "year=2023"
  590. }, {
  591. "n": "2022",
  592. "v": "year=2022"
  593. }, {
  594. "n": "2021",
  595. "v": "year=2021"
  596. }, {
  597. "n": "2020",
  598. "v": "year=2020"
  599. }, {
  600. "n": "2019",
  601. "v": "year=2019"
  602. }, {
  603. "n": "2018",
  604. "v": "year=2018"
  605. }, {
  606. "n": "2017",
  607. "v": "year=2017"
  608. }, {
  609. "n": "2016",
  610. "v": "year=2016"
  611. }, {
  612. "n": "2015",
  613. "v": "year=2015"
  614. }, {
  615. "n": "2014",
  616. "v": "year=2014"
  617. }, {
  618. "n": "2013",
  619. "v": "year=2013"
  620. }, {
  621. "n": "2012",
  622. "v": "year=2012"
  623. }, {
  624. "n": "2011",
  625. "v": "year=2011"
  626. }, {
  627. "n": "2010",
  628. "v": "year=2010"
  629. }, {
  630. "n": "更早",
  631. "v": "year=2010前"
  632. }]
  633. }, {
  634. "key": "class",
  635. "name": "剧情",
  636. "value": [{
  637. "n": "全部",
  638. "v": ""
  639. }, {
  640. "n": "冒险",
  641. "v": "jqlx=冒险"
  642. }, {
  643. "n": "热血",
  644. "v": "jqlx=热血"
  645. }, {
  646. "n": "爱情",
  647. "v": "jqlx=爱情"
  648. }, {
  649. "n": "搞笑",
  650. "v": "jqlx=搞笑"
  651. }, {
  652. "n": "后宫",
  653. "v": "jqlx=后宫"
  654. }, {
  655. "n": "校园",
  656. "v": "jqlx=校园"
  657. }, {
  658. "n": "机战",
  659. "v": "jqlx=机战"
  660. }, {
  661. "n": "幻想",
  662. "v": "jqlx=幻想"
  663. }, {
  664. "n": "科幻",
  665. "v": "jqlx=科幻"
  666. }, {
  667. "n": "竞技",
  668. "v": "jqlx=竞技"
  669. }, {
  670. "n": "百合",
  671. "v": "jqlx=百合"
  672. }, {
  673. "n": "耽美",
  674. "v": "jqlx=耽美"
  675. }, {
  676. "n": "悬疑",
  677. "v": "jqlx=悬疑"
  678. }, {
  679. "n": "剧情",
  680. "v": "jqlx=剧情"
  681. }, {
  682. "n": "战争",
  683. "v": "jqlx=战争"
  684. }, {
  685. "n": "恐怖",
  686. "v": "jqlx=恐怖"
  687. }, {
  688. "n": "运动",
  689. "v": "jqlx=运动"
  690. }, {
  691. "n": "动作",
  692. "v": "jqlx=动作"
  693. }, {
  694. "n": "童话",
  695. "v": "jqlx=童话"
  696. }, {
  697. "n": "历史",
  698. "v": "jqlx=历史"
  699. }, {
  700. "n": "真人",
  701. "v": "jqlx=真人"
  702. }, {
  703. "n": "女性向",
  704. "v": "jqlx=女性向"
  705. }, {
  706. "n": "泡面番",
  707. "v": "jqlx=泡面番"
  708. }]
  709. }, {
  710. "key": "by",
  711. "name": "排序",
  712. "value": [{
  713. "n": "时间",
  714. "v": "orderby=pubdate"
  715. }, {
  716. "n": "热度",
  717. "v": "orderby=click"
  718. }]
  719. }]
  720. },
  721. // filter_def:{
  722. // TV:{by:'orderby=pubdate'},
  723. // 剧场版:{by:'orderby=pubdate'},
  724. // OVA:{by:'orderby=pubdate'},
  725. // 其他:{by:'orderby=pubdate'}
  726. // },
  727. searchUrl: '/search.html?keyword=**&PageNo=fypage',
  728. searchable: 2, //是否启用全局搜索,
  729. headers: { //网站的请求头,完整支持所有的,常带ua和cookies
  730. 'User-Agent': 'PC_UA',
  731. },
  732. class_name: 'TV&剧场版&OVA&其他',
  733. class_url: 'TV&剧场版&OVA&其他',
  734. play_parse: true,
  735. lazy: '',
  736. limit: 6,
  737. // 推荐:'.dhnew.adj li;*;*;*;*',
  738. 推荐: '.dhnew.adj li;a&&title;img&&src;p:eq(-1)&&Text;a&&href',
  739. // 一级:'.dhnew li;a&&title;img&&src;p:eq(-1)&&Text;a&&href',
  740. 一级: `js:
  741. let d = [];
  742. pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
  743. let html = '';
  744. let totalresult = getItem("totalresult_" + MY_CATE, '')
  745. if (totalresult == '') {
  746. html = request(input);
  747. totalresult = pdfh(html, ".pageinfo&&strong&&Text");
  748. setItem("totalresult_" + MY_CATE, totalresult)
  749. }
  750. input += '&totalresult=' + getItem("totalresult_" + MY_CATE, '');
  751. html = request(input);
  752. let list = pdfa(html, ".dhnew&&li");
  753. list.forEach(it => {
  754. d.push({
  755. title: pdfh(it, "a&&title"),
  756. desc: pdfh(it, "p:eq(-1)&&Text"),
  757. pic_url: pd(it, "img&&src"),
  758. url: pd(it, "a&&href")
  759. })
  760. });
  761. setResult(d)
  762. `,
  763. 二级: {
  764. "title": "h1&&Text;.dhxx p:eq(4)&&Text",
  765. "img": ".anime-img&&img&&src",
  766. "desc": ".info1-left li:eq(1)&&Text;.dhxx p:eq(3)&&Text;.dhxx p:eq(2)&&Text;.info1-left li:eq(0)&&Text;.info1-left li:eq(2)&&Text",
  767. "content": ".info2--strong&&Text",
  768. "tabs": ".ol-select li",
  769. "lists": ".ol-content:eq(#id) li"
  770. },
  771. // 搜索:'*;*;*;p:eq(3)&&Text;*',
  772. 搜索: '.dhnew li;a&&title;img&&src;p:eq(3)&&Text;a&&href',
  773. }