自动无缝翻页

无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...

当前为 2021-12-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name 自动无缝翻页
  3. // @version 4.1.0
  4. // @author X.I.U
  5. // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
  6. // @match *://*/*
  7. // @connect www.xuexiniu.com
  8. // @connect bbs.xuexiniu.com
  9. // @connect www.tujigu.net
  10. // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAALfElEQVRYhX2Xe3Bd1XXGf3vvc859X+nq6nUlW5Yly7JlI2xsYzAwtnk4ATpAxkNTHm0mnaTT/gHTTvrIBDLTpp1JUoZppqHQls5AKTR2INOWJJQSXF4x2BhsJCRZ8kuWZckPSVf3/Trn7N3RVTFpQrNn1l97n7O/vda31reWMKMPcmUJA9U8vrwHGdqCHn4HPzePaIxhVSoYbYRXrn7BeMVbCUduF6kVUXHwvQP+6amDaqDnoIompmQytaBnTmB8H5lowrjgFss48SBeI/hUEEZeudLi1ywhJEIJdL6Q8rzal/1a5SGC4XZrYBvWwEZobMdLdH6RH+z/Io1taEeh52fe8tOZbysl/ouWFvANYP7fSz4DgAEBBIL4xiS8ubmnVcTZK68aRK29Dtm8dgnZJydRW+/E2nrnp19nz+7U77+60zt0qMz07J/KxuQTwrIw4rMBCDP6wC+FIIcO34eudDdXf/7jD52Opi772lugY3AZr++hp06gz48j+waRqTWYmVHcS+chEMFeuw1hBzBzY7g/fQE9fmqBYPzBQKrpVa/R4OkCAnXlSvXnX9sIllk220BE4Z8OdHoj54YCK6Od1i2/iUmuRyDRk6NUn3+M0pv/hnf0AE40jEjEqP3oe6Rf/CGOWUTNjFKby2MP7EBtugURFWFxfOhB4+o4yfhrGAdZsxHaqZt6dNce9KXYFSPfGWS68JFqTXSqO7+MCaTqETGTwxSeeoRCOoPT2YUIhFC2jbQF/uwUatU6rPbVUM5T+OfHUO3dWKv6kSsGUIOD6PEPr+fswnanpecFZYVQhFAyjPS9Tj4xw2rcU+pJApEutWsvRjaBW8NUShilkE1JIqlUPfi6VMLNFTBVr+7KYKqJ8uEjlM+dJrR5K0L7eB+9hTd2CFrWYt33h0jH3O5Nj37TBGtgZUBkUN/6q4dQ7UmsnlW450//gU5PPRq460uQXAu+j//i99A/+UdUMoXqbMNkz2OnUkixlF4u9spe/HMTULyEaA7jXkoT2fEbQIXi838DJ4cRDXHkEjc2b0MPHdptZubGpBUbM0UfKQpBRDmKWRSD3tTMk87gddA2WGe4+dkzMD0CyQ5qP/4XVDCAvfkaLMvHamzEClpQzGDF46iuJOH1CaKr2tDZRfzhQ0Ru24NYsYrCM4/jDb+FiHdi3XU/0s3vr7WsGKxcfyPSy+bxi0UqJ8f/IriiE2vrnuWsLefQk8NoO4AMBBB9/XjDI6hQCjdTxq9WCaQ6ULaDFrIeKr3oIlv70Olz2K1xlAVaSUQojD786nKi9e5A3LBHMHn0W+LUUaS1FI9q+iZZWLhHdq/FxFbWSSfsIDIQwVw4g/GK2OuuhloNMzaCaF+DNBJtQfX8LFYigElX0OkQtZKHVy3jqwDlqWncCzPI3nU4t+2FWrH+OLHzHpRl3109memTOhqDi9NfkefHEKvWLTO+VKD68Qf4G27CueFWhJ/Df+0lVFcXJOJYnobm1ZjsJUxuFjyDjK/GNK2gND4ESuDPXcCOSaI7thPqX0ft8OtUn/oTKOQgkET39KJU4RbpZXOtNRW717p+FyRSdYT+v36H4u/fQXbfc3iRDkT3FsTGjWAWEU0OZKfAU9CyEdXVD2lQPduplmo4jkBEbMzK1VgDu5EVTe3gm1RHx6Bcxpz6YLkEO0lMYeFGi6z7eVMqhkT/ZrCb0LNT+NMTRH/nt/BLRdy3X8Nv68Lu6cZEHURjE6K3hirYeLRhDWyA4jxzH40RXJwkeuM29MpN+JcziEsz+Avz6GgcW1pYbUlEQCyHwYpSyxS7rGo+v8man4ZMATrAHf+QSt7FTkWR4QbsjlbIX8IMH0VuuAqj4piGAbhmEPPzI/injnNxMUPuwOtseOIxKKTJ7/8BTBxDdXcjO9sJdTeg01VqH4wg3CDB9bshHMKORbGolVOmeRW09dVdUxkbp3ruNM7GXnS1hK5OYSoSbBDZBcxCBtF3DcUzk6hkhGA0RmtHKx1rOkE04lbzWC1tqMRt1CZHUafPIs8H6/JsNTcgN+9YFq1qgbBUFUvnK9qrVghXCvWN8MBmivueJDtylqaeBKWJaXR4JZEtNyBWrkGt6AJboCZO4J49Rc64xGIhcgtZgm6egKhgtUQQto17WeHOLqCNj5Vowbr7q4j+Lcs1JhhEphcXLTebd0jPwpkx6Lwa++bbCR95ALecp5a6BrvrJoLdHajmMOTnKb3+BrVMntjARpzeFbz8jcfpa22gGm+kMJlm95Zu9M9+iI5G0G3d6EgIUSnjzs/gv/Icgd6rqcvz0IeYWnXc8pEtYnEe8gtXNL7xz74LehHSE3DqNP7EIdx3p5DSh7JNJePiBE/gN3Uz8NWHae5sRJYXqKQvU+raQPg7L6L3/QNMHcfp6EREGjC5LDp9GaOs5VQ/NQI93YctOxFPlwniDh/C3n47JHvrQPTBl3DHjiIDQUQ4jGhOYcqaQFuE0Nl53OnLRHfsZV33KsTxd6GlHeaP477zMl5uAWv7dkyLg6kZREsb+vgCcvPOuoaYuWNQWERs3jAuQ6nooXK6TH566cXnrjQK7uwFaoseWA3oJf2WEhEJUjm/gMgXCfdvQlFFv/R3uCND6FIRv7MfMnOIiaPoI/8NEb2kWAhfoLbdjLr2jmUv/8f+pVbkHRGNnZHum2/udxxtCn4j/vgEIjNTD4O9upfIprUYoxBKo9Z14jumTq7YYD9WayvuR++hs1lkshmha4iuNeDYiIAFMoCevIi+cJHaa29gmvsRTUn0R29g9u1D7bxxv+jrRnpD56cCkdjfV9NzpA+8A5VlLojWAczlGVTAYKXimIU8MlsjtKEXgiF0aRGdm8cEYnXm+O+/gdAGuWsP3shhTHoOEYqCCEF2DsrF5f+e/xiikUldrT6l3z+GevSaTahaZdRY6uFqxRXR1sRyzU/21Gu6OTOMfzmPd6kI8TgiX8B4imouj1QCKmVUNITJ59AnR1F77kH4ZaRnQFroMyeRW3egdt6DwIX391Gshv+4LK2jtcuLqK9t7ALjZXzH1uVM/mb/7BTRnjZEex+idQ2EAnjjR/BdF1PIoV2Bae/F/fh9dL5IYE0XUmpMNo+ev4AINSJWb0UPHa63Z7SvRN3/CHJpFHj2G4iZzAuBbTu+GWpIEGxrQ/3RnlvxG5M4kYa3Lc2u4uyFblnIE+xfAbF2RMtqZGsn/uTYUgHH+dz9eFMnqYx8gO+CEwkjhcDPF/DLHurSaeTm3RiWMsDHeuDrSFvBv3+bi08+N1Vwuj/vZWtu+dwclZlFrESoeZmZysJXoTsCjnVk8dDQBuN+n8RDD9fbcdG7leBX1iOkQjhBOHmQfKGAHW3CS6fR+QClmYuYMyPY265DtPVgtfctiw4V/GcfYfGNQzj3/u4DqlormUoZEQwuc0I//eSnY4G0wPJjmdGhw+mh0fWxNZ0037cXccPd1MXgk+GjNE/tR3+Le+YEyg5TnT6LXlwgcu1u7C99HZlsv3K2+vjvkTs2RvDe3747tm7Dy1SKvzSYPP/MLwxFAkIKEzEye2zswOXX395lJyK0fOFzRHfuglQfqPin59Nn0RNDuJk09vprkd0brmx5H7xCbfgQbrZ83OkfvN1pj0+ZmkBYNhjzCwCeffr/AsBDJyU6kqBwbPzRuTcP/GXV82lYlaJpfQ+BjVdhXX0tNKTAjvzKqKXPTeC++1NKY0c9kVz1SGzb9X8tjIdfzSFCDfUw/noA0scPuxBrwcvmmH3rQIvMm3/y0XdJS4JfIpiIUG9g+wcg6KDnZpGZNDQ0Ii5cSAtlPRHYct13axWvJNwadiiAli4iEP8VAJ89HQtR129TLiG1nos0Nt8dSOi12qi9lRq3utVqT/lirql24hW3vLBQi3d3XUqu73+PZOonBNR/WnbYSMeGTO5/Xf6ZtwDwPwtFRezQVs+sAAAAAElFTkSuQmCC
  11. // @grant GM_xmlhttpRequest
  12. // @grant GM_registerMenuCommand
  13. // @grant GM_unregisterMenuCommand
  14. // @grant GM_openInTab
  15. // @grant GM_getValue
  16. // @grant GM_setValue
  17. // @grant GM_notification
  18. // @grant unsafeWindow
  19. // @license GPL-3.0 License
  20. // @run-at document-end
  21. // @namespace https://github.com/XIU2/UserScript
  22. // @supportURL https://github.com/XIU2/UserScript
  23. // @homepageURL https://github.com/XIU2/UserScript
  24. // ==/UserScript==
  25.  
  26. (function() {
  27. 'use strict';
  28. var menuAll = [
  29. ['menu_disable', '✅ 已启用 (点击对当前网站禁用)', '❌ 已禁用 (点击对当前网站启用)', []],
  30. ['menu_discuz_thread_page', '帖子内自动翻页', '帖子内自动翻页', true],
  31. ['menu_page_number', '显示当前页码及点击暂停翻页', '显示当前页码及点击暂停翻页', true],
  32. ['menu_pause_page', '左键双击网页空白处暂停翻页', '左键双击网页空白处暂停翻页', false]
  33. ], menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, SiteType, pausePage = true, pageNum = {now: 1, _now: 1}, locationC = false, nowLocation = '', lp = location.pathname, forumWebsite = ['cs.rin.ru', 'www.flyert.com', 'bbs.pediy.com', 'www.libaclub.com', 'tieba.baidu.com', 'www.cadtutor.net', 'www.theswamp.org', 'www.xuexiniu.com', 'bbs.xuexiniu.com', 'www.taoguba.com.cn', 'www.cnprint.org', 'www.ablesci.com'];
  34. for (let i=0;i<menuAll.length;i++){ // 如果读取到的值为 null 就写入默认值
  35. if (GM_getValue(menuAll[i][0]) == null){GM_setValue(menuAll[i][0], menuAll[i][3])};
  36. }
  37. registerMenuCommand();
  38. if (menuId.length < 2) {return}
  39. // 注册脚本菜单
  40. function registerMenuCommand() {
  41. if (menuId.length != []){
  42. for (let i=0;i<menuId.length;i++){
  43. GM_unregisterMenuCommand(menuId[i]);
  44. }
  45. }
  46. for (let i=0;i<menuAll.length;i++) { // 循环注册脚本菜单
  47. menuAll[i][3] = GM_getValue(menuAll[i][0]);
  48. if (menuAll[i][0] === 'menu_disable') { // 启用/禁用
  49.  
  50. if (menu_disable('check')) { // 当前网站在禁用列表中
  51. menuId[i] = GM_registerMenuCommand(`${menuAll[i][2]}`, function(){menu_disable('del')});
  52. return
  53. } else { // // 不在禁用列表中
  54. webType = doesItSupport(); // 判断网站类型(即是否支持),顺便直接赋值
  55. if (webType === 0) {
  56. GM_registerMenuCommand('❌ 当前网站暂不支持 [点击申请支持]', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
  57. console.info('[自动无缝翻页] - 不支持当前网站 [ ' + location.href + ' ],欢迎申请支持: https://github.com/XIU2/UserScript / https://greasyfork.org/zh-CN/scripts/96880/feedback');
  58. return
  59. } else if (webType === -1) {
  60. return
  61. }
  62. menuId[i] = GM_registerMenuCommand(`${menuAll[i][1]}`, function(){menu_disable('add')});
  63. }
  64.  
  65. } else if (menuAll[i][0] === 'menu_discuz_thread_page') { // 帖子内自动翻页 (仅论坛)
  66.  
  67. if ([2,4,5,6].indexOf(webType) > -1 || forumWebsite.indexOf(location.hostname) > -1) {
  68. menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
  69. }
  70.  
  71. } else {
  72. menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
  73. }
  74. }
  75. menuId[menuId.length] = GM_registerMenuCommand('💬 反馈 & 欢迎申请支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
  76. }
  77.  
  78. // 网站规则
  79. function setDBSite() {
  80. /*
  81. functionS: 匹配该网站域名时要执行的函数(一般用于根据 URL 分配相应翻页规则)
  82. locationC: 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则(需要放在 functionS 中)
  83.  
  84. insStyle: 要插入网页的 CSS Style 样式
  85. hiddenPN: 不显示脚本左下角的页码
  86. history: 添加历史记录 并 修改当前 URL
  87. retry: 允许获取失败后重试
  88.  
  89. pager: {
  90. type: 翻页模式
  91. 1 = 由脚本实现自动无缝翻页(适用于:静态加载内容网站,常规模式)
  92.  
  93. 2 = 只需要点击下一页按钮(适用于:网站自带了 自动无缝翻页 功能)
  94. nextText: 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页(避免一瞬间加载太多次下一页,下同)
  95. nextTextOf: 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页
  96. nextHTML: 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页
  97. interval: 点击间隔时间,对于没有按钮文字变化的按钮,可以手动指定间隔时间(单位 ms,默认 300,当指定上面三个时,会忽略 interval)
  98. isHidden: 只有下一页按钮可见时(没有被隐藏),才会点击
  99.  
  100. 3 = 依靠 [基准元素] 与 [浏览器可视区域底部] 之间的距离缩小来触发翻页(适用于:主体元素下方内容太多 且 高度不固定时)
  101. scrollE: 作为基准线的元素(一般为底部页码元素)
  102. scrollD: 基准元素 - 可视区域底部
  103.  
  104. 4 = 动态加载类网站(适用于:简单的动态加载内容网站)
  105. insertE: 用来插入元素的函数
  106.  
  107. 5 = 插入 iframe 方式来加载下一页,无限套娃(适用于:部分动态加载内容的网站,需要允许 iframe 且支持通过 GET/POST 直接打开下一页)
  108. insStyle: 加载 iframe 前要插入的 CSS Style 样式(比如为了悬浮的样式与下一页的重叠,隐藏网页底部间距提高阅读连续性)
  109. iframe: 这个必须加到 pager{} 外面(这样才会在该域名的 iframe 框架下运行脚本)
  110. forceTarget: 强制新标签页打开链接(适用于一些使用 pjax 技术的链接)
  111.  
  112. 6 = 通过 iframe 获取下一页动态加载内容插入本页,只有一个娃(适用于:部分动态加载内容的网站,与上面不同的是,该模式适合简单的网页,没有复杂事件什么的)
  113. loadTime: 预留的网页加载时间,确保网页内容加载完成
  114. forceTarget: 强制新标签页打开链接
  115.  
  116. nextL: 下一页链接所在元素
  117. pageE: 要从下一页获取的元素
  118. insertP: 下一页元素插入本页的位置(数组第一个是基准元素,第二个是基准元素的前后具体位置)
  119. 1 = 插入基准元素自身的前面
  120. 2 = 插入基准元素内,第一个子元素前面
  121. 3 = 插入基准元素内,最后一个子元素后面
  122. 4 = 插入基准元素自身的后面
  123. 5 = 插入 pageE 列表最后一个元素的后面(该 insertP 可以直接省略不写,等同于 ['pageE', 5] )
  124. 6 = 插入该元素自身内部末尾(针对小说网站等文本类的)
  125. // 小技巧:当基准元素是下一页主体元素的父元素时(或者说要将下一页元素插入到本页同元素最后一个后面时)是可以省略不写 insertP
  126. 例如:当 pageE: 'css;ul>li' 且 insertP: ['css;ul', 3] 时,实际等同于 ['css;ul>li', 5]
  127. 当 pageE: 'css;.item' 且 insertP: ['css;.item', 4] 时,实际等同于 ['css;.item', 5]
  128. 当 pageE: 'css;.item' 且 insertP: ['css;.page', 1] 时,实际等同于 ['css;.item', 5]
  129. 注意:如 pageE 中选择了多类元素,则不能省略 insertP(比如包含 `,` 与 `|` 符号)
  130.  
  131. replaceE: 要替换为下一页内容的元素(比如页码)
  132. scrollD: 翻页动作触发点([滚动条] 与 [网页底部] 之间的距离),数值越大,越早开始翻页,一般是访问网页速度越慢,该值就需要越大
  133.  
  134. scriptT: 单独插入 <script> 标签
  135. 0 = 下一页的所有 <script> 标签
  136. 1 = 下一页的所有 <script> 标签(不包括 src 链接)
  137. 2 = 下一页主体元素 (pageE) 的同级 <script> 标签
  138. 3 = 下一页主体元素 (pageE) 的子元素 <script> 标签
  139.  
  140. interval: 翻页后间隔时间(单位 ms)
  141. forceHTTPS: 下一页链接强制 HTTPS
  142. },
  143. function: {
  144. bF = 插入前执行函数
  145. aF = 插入后执行函数
  146. pF = 参数
  147. }
  148. */ //<<< 规则简单说明 >>>
  149. DBSite = {
  150. discuz_forum: {
  151. pager: {
  152. type: 2,
  153. nextL: 'css;#autopbn',
  154. nextTextOf: '下一页',
  155. scrollD: 1500
  156. }
  157. }, // Discuz! 论坛 - 帖子列表(自带无缝加载下一页按钮的)
  158. discuz_guide: {
  159. pager: {
  160. type: 1,
  161. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  162. pageE: 'id("threadlist")//table[./tbody[contains(@id, "normalthread_")]]/tbody[not(@id="separatorline")]',
  163. replaceE: 'css;.pg, .pages',
  164. scrollD: 1000
  165. }
  166. }, // Discuz! 论坛 - 导读页 及 帖子列表(不带无缝加载下一页按钮的)
  167. discuz_waterfall: {
  168. pager: {
  169. type: 1,
  170. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  171. pageE: 'css;#waterfall > li',
  172. replaceE: 'css;.pg, .pages',
  173. scrollD: 1000
  174. }
  175. }, // Discuz! 论坛 - 图片模式的帖子列表(不带无缝加载下一页按钮的)
  176. discuz_thread: {
  177. insStyle: '.pgbtn {display: none;}',
  178. pager: {
  179. type: 1,
  180. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  181. pageE: 'css;#postlist > div[id^="post_"]',
  182. replaceE: 'css;.pg, .pages',
  183. scrollD: 1000
  184. },
  185. function: {
  186. bF: src_bF,
  187. pF: [0, 'img[file]', 'file']
  188. }
  189. }, // Discuz! 论坛 - 帖子内
  190. discuz_search: {
  191. pager: {
  192. type: 1,
  193. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  194. pageE: 'css;#threadlist > ul',
  195. replaceE: 'css;.pg, .pages',
  196. scrollD: 1000
  197. }
  198. }, // Discuz! 论坛 - 搜索页
  199. discuz_youspace: {
  200. pager: {
  201. type: 1,
  202. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  203. pageE: 'css;form:not([action^="search.php?"]) tbody > tr:not(.th)',
  204. replaceE: 'css;.pg, .pages',
  205. scrollD: 1000
  206. }
  207. }, // Discuz! 论坛 - 回复页、主题页(别人的)
  208. discuz_collection: {
  209. pager: {
  210. type: 1,
  211. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  212. pageE: 'css;#ct .bm_c table > tbody',
  213. replaceE: 'css;.pg, .pages',
  214. scrollD: 1000
  215. }
  216. }, // Discuz! 论坛 - 淘帖页
  217. flarum: {
  218. functionS: function() {locationC = true;if (!indexOF('/d/')) {curSite = DBSite.flarum;}},
  219. pager: {
  220. type: 2,
  221. nextL: 'css;.DiscussionList-loadMore > button',
  222. isHidden: true,
  223. scrollD: 1000
  224. }
  225. }, // Flarum 论坛
  226. phpbb: {
  227. functionS: function() {if (indexOF('/viewforum.php')) {
  228. curSite = DBSite.phpbb;
  229. } else if (indexOF('/viewtopic.php') && GM_getValue('menu_discuz_thread_page')) {
  230. curSite = DBSite.phpbb_post;
  231. } else if (indexOF('/search.php')) {
  232. curSite = DBSite.phpbb_search;
  233. }},
  234. pager: {
  235. type: 1,
  236. nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
  237. pageE: 'css;.forumbg:not(.announcement) ul.topiclist.topics > li',
  238. replaceE: 'css;.action-bar .pagination, .topic-actions .pagination',
  239. scrollD: 2000
  240. }
  241. }, // phpBB 论坛 - 帖子列表
  242. phpbb_post: {
  243. pager: {
  244. type: 1,
  245. nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
  246. pageE: 'css;div.post[id], div.post[id]+hr',
  247. replaceE: 'css;.action-bar .pagination, .topic-actions .pagination',
  248. scrollD: 2000
  249. }
  250. }, // phpBB 论坛 - 帖子内
  251. phpbb_search: {
  252. pager: {
  253. type: 1,
  254. nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
  255. pageE: 'css;div.search.post',
  256. replaceE: 'css;.action-bar .pagination, .pagination',
  257. scrollD: 2000
  258. }
  259. }, // phpBB 论坛 - 搜索页
  260. xenforo: {
  261. functionS: function() {if (indexOF(/\/(forums|f)\//)) {
  262. curSite = DBSite.xenforo;
  263. } else if (indexOF(/\/(threads|t)\//) && GM_getValue('menu_discuz_thread_page')) {
  264. curSite = DBSite.xenforo_post;
  265. } else if (indexOF('/search/')) {
  266. curSite = DBSite.xenforo_search;
  267. }},
  268. pager: {
  269. type: 1,
  270. nextL: 'css;a.pageNav-jump--next',
  271. pageE: 'css;.structItemContainer-group.js-threadList > div',
  272. replaceE: 'css;nav.pageNavWrapper',
  273. scrollD: 2500
  274. }
  275. }, // XenForo 论坛 - 帖子列表
  276. xenforo_post: {
  277. pager: {
  278. type: 1,
  279. nextL: 'css;a.pageNav-jump--next',
  280. pageE: 'css;.block-body.js-replyNewMessageContainer > article',
  281. replaceE: 'css;nav.pageNavWrapper',
  282. scrollD: 2500
  283. }
  284. }, // XenForo 论坛 - 帖子内
  285. xenforo_search: {
  286. pager: {
  287. type: 1,
  288. nextL: 'css;a.pageNav-jump--next',
  289. pageE: 'css;ol.block-body > li',
  290. replaceE: 'css;nav.pageNavWrapper',
  291. scrollD: 2500
  292. }
  293. }, // XenForo 论坛 - 搜索页
  294. xiuno: {
  295. functionS: function() {if (lp == '/' || indexOF(/\/(index|forum)/)) {curSite = DBSite.xiuno;} else if (indexOF('/thread') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.xiuno_post;}},
  296. pager: {
  297. type: 1,
  298. nextL: '//li[@class="page-item"]/a[text()="▶"]',
  299. pageE: 'css;ul.threadlist > li',
  300. replaceE: 'css;ul.pagination',
  301. scrollD: 1500
  302. }
  303. }, // Xiuno 论坛 - 帖子列表
  304. xiuno_post: {
  305. pager: {
  306. type: 1,
  307. nextL: '//li[@class="page-item"]/a[text()="▶"]',
  308. pageE: 'css;li.post[data-pid]:not(.newpost)',
  309. replaceE: 'css;ul.pagination',
  310. scrollD: 1500
  311. }
  312. }, // Xiuno 论坛 - 帖子内
  313. dux: {
  314. functionS: function() {if (!indexOF('.html')) curSite = DBSite.dux;},
  315. host: 'www.puresys.net',
  316. pager: {
  317. type: 1,
  318. nextL: 'css;li.next-page > a',
  319. pageE: 'css;.content > article',
  320. replaceE: 'css;.content > .pagination',
  321. scrollD: 1500
  322. },
  323. function: {
  324. bF: src_bF,
  325. pF: [0, 'img.thumb[data-src]', 'data-src']
  326. }
  327. }, // WordPress 的 DUX、XIU、D8 主题
  328. begin: {
  329. functionS: function() {if (location.search.slice(0,3) === '?s=') {curSite = DBSite.begin_search;} else if (!indexOF('.html')) {curSite = DBSite.begin;}},
  330. pager: {
  331. type: 2,
  332. nextL: 'css;div[id^="ias_trigger_"]',
  333. interval: 500,
  334. scrollD: 1500
  335. }
  336. }, // WordPress 的 Begin 主题
  337. begin_search: {
  338. pager: {
  339. type: 1,
  340. nextL: 'css;a.next',
  341. pageE: 'css;#main > ul > li',
  342. replaceE: 'css;nav.pagination',
  343. scrollD: 1500
  344. }
  345. }, // WordPress 的 Begin 主题 - 搜索页
  346. biquge: {
  347. functionS: function() {if (indexOF(/\d+\/\d+\.html/)) {curSite = DBSite.biquge;}},
  348. insStyle: 'img {display: none !important;}',
  349. history: true,
  350. pager: {
  351. type: 1,
  352. nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]',
  353. pageE: 'css;#content, #chaptercontent, .chaptercontent, #BookText',
  354. insertP: ['css;#content, #chaptercontent, .chaptercontent, #BookText', 6],
  355. replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]]',
  356. scrollD: 1500
  357. }
  358. }, // 笔趣阁 模板的小说网站
  359. baidu: {
  360. host: 'www.baidu.com',
  361. functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (indexOF('/s')) {location.hostname = 'm.baidu.com';}},
  362. insStyle: '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}',
  363. history: true,
  364. pager: {
  365. type: 1,
  366. nextL: 'id("page")//a[contains(text(),"下一页")]',
  367. pageE: 'css;#content_left > *',
  368. replaceE: 'css;#page',
  369. scrollD: 2000
  370. }
  371. }, // 百度 搜索
  372. baidu_m: {
  373. host: 'm.baidu.com',
  374. functionS: function() {if (indexOF('/s')) curSite = DBSite.baidu_m;},
  375. history: true,
  376. insStyle: 'div.result[tpl="recommend_list"], #page-copyright {display: none !important;}',
  377. pager: {
  378. type: 1,
  379. nextL: 'css;a[class^="new-nextpage"]',
  380. pageE: 'css;#results > *',
  381. replaceE: 'css;#page-controller',
  382. scrollD: 2000
  383. }
  384. }, // 百度 搜索 - 手机版
  385. google: {
  386. host: /\.google\./,
  387. functionS: function() {if (lp == '/search' && !indexOF('tbm=isch', 's')) {
  388. curSite = DBSite.google;
  389. } else if (lp == '/scholar') {
  390. curSite = DBSite.google_scholar;
  391. }},
  392. history: true,
  393. pager: {
  394. type: 1,
  395. nextL: 'css;#pnnext',
  396. pageE: 'id("search")/* | //style[not(contains(text(), "table,div,span,p{display:none}"))]',
  397. insertP: ['css;#search', 3],
  398. replaceE: 'id("navcnt") | id("rcnt")//div[@role="navigation"]',
  399. scriptT: 0,
  400. scrollD: 3000
  401. },
  402. function: {
  403. bF: google_bF
  404. }
  405. }, // 谷歌 搜索
  406. bing: {
  407. host: ['www.bing.com','cn.bing.com'],
  408. functionS: function() {if (lp == '/search') {
  409. curSite = DBSite.bing;
  410. } else if (lp == '/academic/search') {
  411. curSite = DBSite.bing_academic;
  412. }},
  413. insStyle: '.b_imagePair.square_mp > .inner {display: none !important;}',
  414. history: true,
  415. pager: {
  416. type: 1,
  417. nextL: 'css;a.sb_pagN',
  418. pageE: 'css;#b_results > li:not(.b_msg):not([class="b_ans"]):not(.b_pag):not(#mfa_root)',
  419. replaceE: 'css;#b_results > .b_pag',
  420. scrollD: 1500
  421. },
  422. function: {
  423. bF: bing_bF
  424. }
  425. }, // 必应 搜索
  426. sogou: {
  427. host: 'www.sogou.com',
  428. functionS: function() {if (location.pathname != '/') {curSite = DBSite.sogou;}},
  429. history: true,
  430. pager: {
  431. type: 1,
  432. nextL: 'css;#sogou_next',
  433. pageE: 'css;.results > *',
  434. replaceE: 'css;#pagebar_container',
  435. scriptT: 3,
  436. scrollD: 1500
  437. }
  438. }, // 搜狗 搜索
  439. sogou_weixin: {
  440. host: 'weixin.sogou.com',
  441. functionS: function() {if (lp == '/') {
  442. curSite = DBSite.sogou_weixin;
  443. } else if (lp == '/weixin') {
  444. curSite = DBSite.sogou_weixin_search;
  445. }},
  446. pager: {
  447. type: 2,
  448. nextL: 'css;#look-more',
  449. interval: 1000,
  450. scrollD: 1000
  451. }
  452. }, // 搜狗微信 - 首页
  453. sogou_weixin_search: {
  454. history: true,
  455. pager: {
  456. type: 1,
  457. nextL: 'css;#sogou_next',
  458. pageE: 'css;ul[class*="news-list"] > li',
  459. replaceE: 'css;#pagebar_container',
  460. scrollD: 1200
  461. }
  462. }, // 搜狗微信 - 搜索
  463. toutiao: {
  464. host: ['www.toutiao.com', 'so.toutiao.com'],
  465. functionS: function() {if (location.hostname != 'www.toutiao.com' && lp == '/search') curSite = DBSite.toutiao;},
  466. history: true,
  467. pager: {
  468. type: 1,
  469. nextL: '//div[contains(@class, "-pagination")]/a[string()="下一页"]',
  470. pageE: 'css;div[class*="-result-list"] > .result-content[data-i]',
  471. replaceE: 'css;div[class*="-pagination"]',
  472. scrollD: 1500
  473. },
  474. function: {
  475. bF: toutiao_bF
  476. }
  477. }, // 头条 搜索
  478. so: {
  479. host: 'www.so.com',
  480. functionS: function() {if (location.pathname != '/') {curSite = DBSite.so; insStyle('img {opacity: 1 !important;}')}},
  481. history: true,
  482. pager: {
  483. type: 1,
  484. nextL: 'css;a#snext',
  485. pageE: 'css;ul.result > li, style:not(src)',
  486. insertP: ['css;ul.result', 3],
  487. replaceE: 'css;#page',
  488. scrollD: 1500
  489. },
  490. function: {
  491. bF: src_bF,
  492. pF: [0, 'img[data-isrc]', 'data-isrc']
  493. }
  494. }, // 360 搜索
  495. duckduckgo: {
  496. host: 'duckduckgo.com',
  497. functionS: function() {
  498. if (getCookie('av') != '1') {
  499. document.cookie='av=1; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 强制开启自带的无缝翻页功能
  500. location.reload(); // 刷新网页
  501. }
  502. },
  503. }, // DuckDuckGo 搜索
  504. startpage: {
  505. host: ['startpage.com', 'www.startpage.com'],
  506. functionS: function() {if (indexOF('/search')) {curSite = DBSite.startpage;}},
  507. history: true,
  508. pager: {
  509. type: 1,
  510. nextL: startpage_nextL,
  511. pageE: 'css;section.w-gl--desktop > div',
  512. replaceE: 'css;.pagination',
  513. scrollD: 2000
  514. }
  515. }, // Startpage 搜索
  516. yandex: {
  517. host: 'yandex.com',
  518. functionS: function() {if (lp == '/search/') {curSite = DBSite.yandex;}},
  519. history: true,
  520. pager: {
  521. type: 1,
  522. nextL: 'css;a.pager__item_kind_next',
  523. pageE: 'css;#search-result > *, style',
  524. insertP: ['css;#search-result', 3],
  525. replaceE: 'css;.pager',
  526. scrollD: 2000
  527. }
  528. }, // Yandex 搜索
  529. yahoo: {
  530. host: 'search.yahoo.com',
  531. functionS: function() {if (indexOF('/search')) {curSite = DBSite.yahoo;}},
  532. history: true,
  533. pager: {
  534. type: 1,
  535. nextL: 'css;.pagination a.next',
  536. pageE: 'css;#web ol > li',
  537. replaceE: 'css;.pagination',
  538. scrollD: 2000
  539. }
  540. }, // Yahoo 搜索
  541. yahoo_jp: {
  542. host: 'search.yahoo.co.jp',
  543. functionS: function() {if (indexOF('/search')) {curSite = DBSite.yahoo_jp;}},
  544. history: true,
  545. pager: {
  546. type: 1,
  547. nextL: 'css;.Pagenation__next > a',
  548. pageE: 'css;.Contents__innerGroupBody > div',
  549. replaceE: 'css;.Pagenation',
  550. scrollD: 2000
  551. }
  552. }, // Yahoo 搜索 (JP)
  553. qwant: {
  554. host: 'www.qwant.com',
  555. functionS: function() {locationC = true; if (indexOF('q=', 's') && indexOF('t=web', 's')) {curSite = DBSite.qwant;}},
  556. pager: {
  557. type: 2,
  558. nextL: 'css;button[data-testid="buttonShowMore"]',
  559. interval: 500,
  560. scrollD: 2000
  561. }
  562. }, // Qwant 搜索
  563. ecosia: {
  564. host: 'www.ecosia.org',
  565. functionS: function() {if (lp == '/search') {curSite = DBSite.ecosia;}},
  566. history: true,
  567. pager: {
  568. type: 1,
  569. nextL: 'css;nav.pagination a[aria-label="Next page"]',
  570. pageE: 'css;section.mainline > div:not(.related-queries)',
  571. replaceE: 'css;nav.pagination',
  572. scrollD: 1500
  573. }
  574. }, // Ecosia 搜索
  575. magi: {
  576. host: 'magi.com',
  577. functionS: function() {if (lp == '/search') {curSite = DBSite.magi;}},
  578. pager: {
  579. type: 2,
  580. nextL: 'css;.card[data-type="next"]',
  581. nextText: '加载更多',
  582. scrollD: 1500
  583. }
  584. }, // Magi 搜索
  585. ask: {
  586. host: ['ask.com', 'www.ask.com'],
  587. functionS: function() {if (lp == '/web') {curSite = DBSite.ask;}},
  588. insStyle: '.PartialSearchResults-heading {display: none !important;}',
  589. history: true,
  590. pager: {
  591. type: 1,
  592. nextL: 'css;li.PartialWebPagination-next > a',
  593. pageE: 'css;.PartialSearchResults.mid',
  594. replaceE: 'css;.PartialWebPagination',
  595. scrollD: 2000
  596. }
  597. }, // ASK 搜索
  598. fsou: {
  599. host: 'fsou.cc',
  600. functionS: function() {if (lp == '/search') {curSite = DBSite.fsou;}},
  601. history: true,
  602. retry: 1000,
  603. pager: {
  604. type: 6,
  605. nextL: () => getNextP('css;.selected.turn-page-text.turn-page-num', 'pageIndex=', /pageIndex=\d+/),
  606. pageE: 'css;#search-result > div',
  607. replaceE: 'css;.bottom-pagination',
  608. loadTime: 1000,
  609. scrollD: 3000
  610. },
  611. function: {
  612. bF: fsou_bF
  613. }
  614. }, // F 搜
  615. baidu_tieba: {
  616. host: ['tieba.baidu.com', 'jump2.bdimg.com'],
  617. functionS: function() {if (location.hostname == 'jump2.bdimg.com') location.hostname = 'tieba.baidu.com';
  618. if (lp == '/f') {
  619. baidu_tieba_1(); // 右侧悬浮发帖按钮点击事件(解决自动翻页导致无法发帖的问题)
  620. curSite = DBSite.baidu_tieba;
  621. } else if (indexOF('/p/') && GM_getValue('menu_discuz_thread_page')) {
  622. curSite = DBSite.baidu_tieba_post;
  623. } else if (lp == '/f/search/res') {
  624. curSite = DBSite.baidu_tieba_search;
  625. }},
  626. insStyle: 'img.j_retract {margin-top: 0 !important;margin-bottom: 0 !important;}', // 修复帖子列表中预览图片,在切换下一个/上一个图片时,多出来的图片上下边距
  627. iframe: true,
  628. pager: {
  629. type: 4,
  630. nextL: function() {if (getNextE('css;a.next.pagination-item')) getPageElems_(curSite.pageUrl + '&pagelets=frs-list%2Fpagelet%2Fthread&pagelets_stamp=' + new Date().getTime());},
  631. pageE: 'css;#thread_list > li',
  632. insertP: ['css;#thread_list', 3],
  633. insertE: baidu_tieba_insertE,
  634. replaceE: 'css;#frs_list_pager',
  635. interval: 2000,
  636. scrollD: 2500
  637. },
  638. function: {
  639. bF: src_bF,
  640. pF: [0, 'img[data-original]', 'data-original']
  641. }
  642. }, // 百度贴吧 - 帖子列表
  643. baidu_tieba_post: {
  644. forceTarget: true,
  645. insStyle: '.d_sign_split, img.j_user_sign, .d_author .d_pb_icons, .save_face_bg, .save_face_bg_2, li.d_name a.icon_tbworld, .lzl_cnt a.icon_tbworld, .topic_list_box.topic-fixed {display: none !important;} a.p_author_face.j_frame_guide {background: none repeat scroll 0 0 #FFF !important;border: 1px solid #CCC !important;padding: inherit !important;} .red_text, .red-text, .vip_red, .vip-red, .vip_red:hover, .vip-red:hover, .vip_red:visited, .vip-red:visited {color: #2d64b3 !important;}', // 签名、印记、头像边框、VIP 元素
  646. pager: {
  647. type: 5,
  648. nextL: '//li[contains(@class,"pb_list_pager")]/a[text()="下一页"]',
  649. insStyle: 'ul.tbui_aside_float_bar, .core_title_wrap_bright.tbui_follow_fixed.core_title_absolute_bright {display: none !important;}',
  650. scrollD: 1500
  651. }
  652. }, // 百度贴吧 - 帖子内
  653. baidu_tieba_search: {
  654. pager: {
  655. type: 1,
  656. nextL: 'css;a.next',
  657. pageE: 'css;.s_post_list > div',
  658. replaceE: 'css;.pager',
  659. scriptT: 1,
  660. scrollD: 1000
  661. }
  662. }, // 百度贴吧 - 搜索页
  663. douban_subject_comments: {
  664. host: 'movie.douban.com',
  665. functionS: function() {if (indexOF('/subject') && indexOF('/comments')) {
  666. curSite = DBSite.douban_subject_comments;
  667. } else if (indexOF('/subject') && indexOF('/reviews')) {
  668. curSite = DBSite.douban_subject_reviews;
  669. } else if(indexOF('/subject') && indexOF('/episode') || indexOF('/subject') && indexOF('/tv_discuss')) {
  670. curSite = DBSite.douban_subject_episode;
  671. } else if(indexOF('/people') && indexOF('/collect')) { // 看过的电影
  672. curSite = DBSite.douban_people_collect;
  673. }},
  674. pager: {
  675. type: 1,
  676. nextL: 'css;a.next',
  677. pageE: 'css;#comments > .comment-item',
  678. replaceE: 'css;#paginator',
  679. scrollD: 1000
  680. }
  681. }, // 豆瓣 - 短评
  682. douban_subject_reviews: {
  683. pager: {
  684. type: 1,
  685. nextL: 'css;link[rel="next"]',
  686. pageE: 'css;.review-list > div',
  687. replaceE: 'css;.paginator',
  688. scrollD: 1000
  689. }
  690. }, // 豆瓣 - 影评
  691. douban_subject_episode: {
  692. pager: {
  693. type: 1,
  694. nextL: 'css;link[rel="next"]',
  695. pageE: 'css;#comments > div',
  696. replaceE: 'css;.paginator',
  697. scrollD: 1000
  698. }
  699. }, // 豆瓣 - 剧评
  700. douban_people_collect: {
  701. pager: {
  702. type: 1,
  703. nextL: 'css;link[rel="next"]',
  704. pageE: 'css;.grid-view > div',
  705. replaceE: 'css;.paginator',
  706. scrollD: 1000
  707. }
  708. }, // 豆瓣 - 看过的电影
  709. douban_group: {
  710. host: 'www.douban.com',
  711. functionS: function() {if (indexOF('/group/topic/')) {
  712. curSite = DBSite.douban_group_topic;
  713. } else if (indexOF('/group/explore')) {
  714. curSite = DBSite.douban_group_explore;
  715. } else if (indexOF('/group/') && indexOF('/discussion')) {
  716. curSite = DBSite.douban_group;
  717. }},
  718. pager: {
  719. type: 1,
  720. nextL: 'css;span.next > a',
  721. pageE: 'css;table.olt > tbody > tr:not(.th)',
  722. replaceE: 'css;.paginator',
  723. scrollD: 1000
  724. }
  725. }, // 豆瓣 - 小组
  726. douban_group_explore: {
  727. pager: {
  728. type: 1,
  729. nextL: 'css;span.next > a',
  730. pageE: 'css;#content .article > div > .channel-item',
  731. replaceE: 'css;.paginator',
  732. scrollD: 1000
  733. }
  734. }, // 豆瓣 - 小组讨论精选
  735. douban_group_topic: {
  736. pager: {
  737. type: 1,
  738. nextL: 'css;span.next > a',
  739. pageE: 'css;#comments > li',
  740. replaceE: 'css;.paginator',
  741. scrollD: 1000
  742. }
  743. }, // 豆瓣 - 小组帖子内
  744. zhihu: {
  745. host: 'www.zhihu.com',
  746. functionS: function() {locationC = true; if (indexOF(/\/people\/.+\/.+/) || indexOF('/collection/')) {curSite = DBSite.zhihu; if (self != top) insStyle('#ProfileHeader {display: none !important;}')}},
  747. forceTarget: true,
  748. history: true,
  749. iframe: true,
  750. pager: {
  751. type: 5,
  752. nextL: function() {
  753. let next = getCSS('.Pagination .PaginationButton--current+button:not(.PaginationButton-next)');
  754. if (next) return (location.origin + location.pathname + '?page=' + next.textContent)
  755. },
  756. scrollD: 2000
  757. }
  758. }, // 知乎 - 用户主页、收藏夹
  759. weibo_comment: {
  760. host: 'weibo.com',
  761. pager: {
  762. type: 2,
  763. nextL: 'css;a[action-type="click_more_comment"]',
  764. nextText: '查看更多c',
  765. scrollD: 1000
  766. }
  767. }, // 微博评论
  768. tianya: {
  769. host: 'bbs.tianya.cn',
  770. functionS: function() {if (indexOF('/list')) {
  771. curSite = DBSite.tianya;
  772. } else if (indexOF('/post')) {
  773. curSite = DBSite.tianya_post;
  774. }},
  775. pager: {
  776. type: 1,
  777. nextL: '//div[contains(@class, "pages")]/div[@class="links"]/a[text()="下一页"]',
  778. pageE: 'css;.tab-bbs-list > tbody:not(:first-of-type)',
  779. replaceE: '//div[contains(@class, "pages")]',
  780. scrollD: 1500
  781. }
  782. }, // 天涯社区
  783. tianya_post: {
  784. pager: {
  785. type: 1,
  786. nextL: 'css;a.js-keyboard-next',
  787. pageE: 'css;.atl-main > div[class="atl-item"]',
  788. replaceE: 'css;.atl-pages > form',
  789. scrollD: 2000
  790. }
  791. }, // 天涯社区 - 帖子内
  792. nga_thread: {
  793. host: ['bbs.nga.cn', 'ngabbs.com', 'nga.178.com', 'g.nga.cn'],
  794. iframe: true,
  795. functionS: function() {locationC = true;
  796. if (lp == '/thread.php') { // 帖子列表
  797. curSite = DBSite.nga_thread;
  798. } else if (lp == '/read.php') { // 帖子内
  799. curSite = DBSite.nga_read;
  800. }},
  801. pager: {
  802. type: 1,
  803. nextL: 'css;#pagebbtm a[title="下一页"]',
  804. pageE: 'css;#topicrows > tbody, #topicrows > script',
  805. insertP: ['css;#topicrows', 3],
  806. replaceE: 'css;div[name="pageball"]',
  807. scriptT: 2,
  808. scrollD: 1000
  809. },
  810. function: {
  811. aF: function() {document.body.appendChild(document.createElement('script')).textContent = 'commonui.topicArg.loadAll();';}
  812. }
  813. }, // NGA - 各版块帖子列表
  814. nga_read: {
  815. pager: {
  816. type: 1,
  817. nextL: 'css;#pagebbtm a[title*="下一页"]',
  818. pageE: 'id("m_posts_c")/table | id("m_posts_c")/script | //script[contains(text(), "commonui.userInfo.setAll")]',
  819. insertP: ['css;#m_posts_c', 3],
  820. replaceE: 'css;div[name="pageball"]',
  821. scriptT: 2,
  822. scrollD: 1000
  823. }
  824. }, // NGA - 帖子内
  825. v2ex_recent: {
  826. host: ['v2ex.com', 'www.v2ex.com'],
  827. functionS: function() {if (lp == '/') {
  828. v2ex_aF('#Main a.topic-link:not([target])');
  829. } else if (lp == '/recent') {
  830. curSite = DBSite.v2ex_recent;
  831. v2ex_aF('#Main a.topic-link:not([target])');
  832. } else if (lp == '/notifications') {
  833. curSite = DBSite.v2ex_notifications;
  834. v2ex_aF('#Main a[href^="/t/"]:not([target])');
  835. } else if (lp == '/balance') {
  836. curSite = DBSite.v2ex_balance;
  837. } else if (indexOF('/go/')) {
  838. curSite = DBSite.v2ex_go;
  839. v2ex_aF('#Main a.topic-link:not([target])');
  840. } else if (indexOF('/replies')) {
  841. curSite = DBSite.v2ex_replies;
  842. v2ex_aF('#Main a[href^="/t/"]:not([target])');
  843. }},
  844. pager: {
  845. type: 1,
  846. nextL: 'css;a.page_current+a.page_normal',
  847. pageE: 'css;.cell.item',
  848. replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table',
  849. scrollD: 1500
  850. },
  851. function: {
  852. aF: v2ex_aF,
  853. pF: '#Main a.topic-link:not([target])'
  854. }
  855. }, // V2EX - 最近主题页
  856. v2ex_notifications: {
  857. pager: {
  858. type: 1,
  859. nextL: 'css;a.page_current+a.page_normal',
  860. pageE: 'css;#notifications > div',
  861. replaceE: 'css;#Main > .box > .cell[style] > table',
  862. scrollD: 1500
  863. },
  864. function: {
  865. aF: v2ex_aF,
  866. pF: '#Main a[href^="/t/"]:not([target])'
  867. }
  868. }, // V2EX - 提醒消息页
  869. v2ex_replies: {
  870. pager: {
  871. type: 1,
  872. nextL: 'css;a.page_current+a.page_normal',
  873. pageE: '//div[@id="Main"]//div[@class="box"]//div[@class="dock_area"] | //*[@id="Main"]//div[@class="box"]//div[@class="inner"] | //*[@id="Main"]//div[@class="box"]//div[@class="dock_area"][last()]/following-sibling::div[@class="cell"][1]',
  874. insertP: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
  875. replaceE: 'css;#Main > .box > .cell[style] > table',
  876. scrollD: 1500
  877. },
  878. function: {
  879. aF: v2ex_aF,
  880. pF: '#Main a[href^="/t/"]:not([target])'
  881. }
  882. }, // V2EX - 用户回复页
  883. v2ex_go: {
  884. pager: {
  885. type: 1,
  886. nextL: 'css;a.page_current+a.page_normal',
  887. pageE: 'css;#TopicsNode > div',
  888. replaceE: 'css;#Main > .box > .cell[style] > table',
  889. scrollD: 1500
  890. },
  891. function: {
  892. aF: v2ex_aF,
  893. pF: '#Main a.topic-link:not([target])'
  894. }
  895. }, // V2EX - 分类主题页
  896. v2ex_balance: {
  897. pager: {
  898. type: 1,
  899. nextL: 'css;a.page_current+a.page_normal',
  900. pageE: 'css;#Main .box > div:not(.cell) > table > tbody > tr:not(:first-child)',
  901. replaceE: 'css;#Main > .box > .cell[style] > table',
  902. scrollD: 1000
  903. }
  904. }, // V2EX - 账户余额页
  905. jandan: {
  906. host: 'jandan.net',
  907. functionS: function() {if (lp == '/' || indexOF('/page/')) {
  908. curSite = DBSite.jandan;
  909. } else if (lp == '/dzh') {
  910. curSite = DBSite.jandan_dzh;
  911. } else {
  912. curSite = DBSite.jandan_comment;
  913. }},
  914. insStyle: '#nav_prev, #nav_next, .post.f:not(.list-post) {display: none !important;}',
  915. pager: {
  916. type: 1,
  917. nextL: '//div[@class="wp-pagenavi"]/a[contains(text(), "下一页") or contains(text(), "更多文章")]',
  918. pageE: 'css;#content > .list-post',
  919. replaceE: 'css;.wp-pagenavi',
  920. scrollD: 1500
  921. },
  922. function: {
  923. bF: src_bF,
  924. pF: [0, 'img[data-original]', 'data-original']
  925. }
  926. }, // 煎蛋网
  927. jandan_comment: {
  928. insStyle: '#nav_prev, #nav_next {display: none !important;}',
  929. pager: {
  930. type: 1,
  931. nextL: 'css;a.previous-comment-page',
  932. pageE: 'css;ol.commentlist > li[id^="comment-"], script[src^="//cdn.jandan.net/static/min/"]',
  933. insertP: ['css;ol.commentlist', 3],
  934. replaceE: 'css;.cp-pagenavi',
  935. scriptT: 2,
  936. scrollD: 1500
  937. }
  938. }, // 煎蛋网
  939. jandan_dzh: {
  940. pager: {
  941. type: 2,
  942. nextL: 'css;.show_more',
  943. interval: 1500,
  944. scrollD: 1500
  945. }
  946. }, // 煎蛋网 - 大杂烩
  947. qiushibaike: {
  948. host: 'www.qiushibaike.com',
  949. functionS: function() {insStyle('.qrcode-wrap, .qrcode-wrap-img, .index-side-left-AD1 {display: none !important;}');
  950. if (lp == '/') {
  951. curSite = DBSite.qiushibaike;
  952. } else if (!indexOF('/article/')) {
  953. curSite = DBSite.qiushibaike_;
  954. }},
  955. pager: {
  956. type: 1,
  957. nextL: '//ul[@class="pagination"]//a[./span[@class="next"]]',
  958. pageE: 'css;.recommend-article > ul > li',
  959. replaceE: 'css;ul.pagination',
  960. scrollD: 1500
  961. }
  962. }, // 糗事百科
  963. qiushibaike_: {
  964. pager: {
  965. type: 1,
  966. nextL: '//ul[@class="pagination"]//a[./span[@class="next"]]',
  967. pageE: 'css;[id^="qiushi_tag_"]',
  968. replaceE: 'css;ul.pagination',
  969. scrollD: 1500
  970. }
  971. }, // 糗事百科 - 分类页
  972. lkong: {
  973. host: 'www.lkong.com',
  974. functionS: function() {if (indexOF('/forum/')) {
  975. curSite = DBSite.lkong;
  976. } else if (indexOF('/thread/')) {
  977. curSite = DBSite.lkong_thread;
  978. }},
  979. pager: {
  980. type: 1,
  981. nextL: lkong_nextL,
  982. pageE: '//div[@class="main-title"]/parent::div/parent::div | //head/style[@data-emotion-css]',
  983. insertP: ['//div[@class="main-title"][1]/parent::div/parent::div/parent::div', 3],
  984. replaceE: 'css;ul.ant-pagination',
  985. interval: 500,
  986. scrollD: 1200
  987. }
  988. }, // 龙的天空 - 各版块帖子列表
  989. lkong_thread: {
  990. pager: {
  991. type: 1,
  992. nextL: lkong_nextL,
  993. pageE: '//div[@class="main-content"]/parent::div | //head/style[@data-emotion-css]',
  994. insertP: ['//div[@class="main-content"][1]/parent::div/parent::div', 3],
  995. replaceE: 'css;ul.ant-pagination',
  996. interval: 500,
  997. scrollD: 1200
  998. }
  999. }, // 龙的天空 - 帖子内
  1000. pediy_forum: {
  1001. host: 'bbs.pediy.com',
  1002. functionS: function() {if (indexOF('/forum-')) {
  1003. curSite = DBSite.pediy_forum;
  1004. } else if (indexOF('/thread-')) {
  1005. if (GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.pediy_thread;}
  1006. }},
  1007. pager: {
  1008. type: 1,
  1009. nextL: '//a[@class="page-link" and text()="▶"]',
  1010. pageE: 'css;table.threadlist > tbody > tr',
  1011. replaceE: 'css;ul.pagination',
  1012. scrollD: 1500
  1013. }
  1014. }, // 看雪论坛 - 各版块帖子列表
  1015. pediy_thread: {
  1016. pager: {
  1017. type: 1,
  1018. nextL: '//a[@class="page-link" and text()="▶"]',
  1019. pageE: 'css;table.postlist > tbody > tr[data-pid]',
  1020. replaceE: 'css;ul.pagination',
  1021. scrollD: 1500
  1022. }
  1023. }, // 看雪论坛 - 帖子内
  1024. bangumitv: {
  1025. host: 'bangumi.tv',
  1026. functionS: function() {
  1027. if (indexOF('/browser') || indexOF('/subject_search')) {
  1028. curSite = DBSite.bangumitv;
  1029. } else if (indexOF('/forum')) {
  1030. curSite = DBSite.bangumitv_forum;
  1031. }},
  1032. pager: {
  1033. type: 1,
  1034. nextL: '//div[@class="page_inner"]/a[text()="››"]',
  1035. pageE: 'css;ul#browserItemList > li',
  1036. replaceE: 'css;.page_inner',
  1037. scrollD: 1500
  1038. }
  1039. }, // 番组计划
  1040. bangumitv_forum: {
  1041. pager: {
  1042. type: 1,
  1043. nextL: '//div[@class="page_inner"]/a[text()="››"]',
  1044. pageE: 'css;.topic_list > tbody:last-of-type > tr.topic',
  1045. replaceE: 'css;.page_inner',
  1046. scrollD: 1500
  1047. }
  1048. }, // 番组计划 - 小组帖子列表
  1049. dongchedi: {
  1050. host: 'www.dongchedi.com',
  1051. functionS: function() {locationC = true;
  1052. if (indexOF('/community/')) {
  1053. curSite = DBSite.dongchedi;
  1054. }},
  1055. history: true,
  1056. pager: {
  1057. type: 1,
  1058. nextL: 'css;li.pagination-item.is-active+li > a',
  1059. pageE: 'css;.data-wrapper > section.community-card, style',
  1060. insertP: ['css;.data-wrapper', 3],
  1061. replaceE: '//ul[./li[contains(@class, "pagination-item")]]',
  1062. scrollD: 2000
  1063. },
  1064. function: {
  1065. bF: function(pageElems) {
  1066. pageElems.forEach(function (one) {
  1067. one.querySelectorAll('.g-load-img-wrap, .tw-absolute.tw-cursor-pointer, .avatar').forEach(function (now) {
  1068. getCSS('noscript+img', now).src = getCSS('noscript > img', now).src;
  1069. });
  1070. });
  1071. return pageElems
  1072. }
  1073. }
  1074. }, // 懂车帝论坛
  1075. kdslife: {
  1076. host: 'club.kdslife.com',
  1077. functionS: function() {
  1078. if (indexOF('/f_')) {
  1079. curSite = DBSite.kdslife;
  1080. } else if (indexOF('/t_')) {
  1081. curSite = DBSite.kdslife_t;
  1082. }},
  1083. pager: {
  1084. type: 1,
  1085. nextL: '//div[@class="fr i3_r"]/a[text()="后一页"]',
  1086. pageE: 'css;ul.main_List > li.i2:not(.h_bg)',
  1087. replaceE: 'css;ul.main_List > li.i3',
  1088. scrollD: 1000
  1089. }
  1090. }, // 宽带山论坛
  1091. kdslife_t: {
  1092. pager: {
  1093. type: 1,
  1094. nextL: '//div[@class="pages"]/a[text()=">>"]',
  1095. pageE: 'css;#reply_list_panel > *, script[src*="ui/js/kds.js"]',
  1096. insertP: ['css;#reply_list_panel', 3],
  1097. replaceE: 'css;.pages',
  1098. scriptT: 2,
  1099. scrollD: 1000
  1100. }
  1101. }, // 宽带山论坛 - 帖子内
  1102. libaclub: {
  1103. host: 'www.libaclub.com',
  1104. functionS: function() {
  1105. if (lp == '/' || indexOF('/date_')) {
  1106. curSite = DBSite.libaclub;
  1107. } else if (indexOF('/f_')) {
  1108. curSite = DBSite.libaclub_f;
  1109. } else if (indexOF('/t_') || indexOF('/reply_')) {
  1110. curSite = DBSite.libaclub_t;
  1111. } else if (indexOF('/prt_')) {
  1112. curSite = DBSite.libaclub_prt;
  1113. } else if (lp == '/facade.php') {
  1114. curSite = DBSite.libaclub_search;
  1115. }},
  1116. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1117. pager: {
  1118. type: 1,
  1119. nextL: '//div[@class="ui-crumbs-more"]/a[@class="fn-link"][1]',
  1120. pageE: 'css;ul.ui-list > li:not(.ui-list-item-head):not(.ui-list-merchant-ad)',
  1121. replaceE: 'css;div.ui-crumbs-more',
  1122. scrollD: 1200
  1123. }
  1124. }, // 篱笆网论坛
  1125. libaclub_f: {
  1126. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1127. pager: {
  1128. type: 1,
  1129. nextL: 'css;a.ui-paging-next',
  1130. pageE: 'css;ul.ui-list > li:not(.ui-list-item-head):not(.ui-list-merchant-ad)',
  1131. replaceE: 'css;div.ui-paging',
  1132. scrollD: 1200
  1133. }
  1134. }, // 篱笆网论坛 - 各版块帖子列表
  1135. libaclub_t: {
  1136. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1137. pager: {
  1138. type: 1,
  1139. nextL: 'css;a.ui-paging-next',
  1140. pageE: 'css;.ui-box-content > div.ui-topic, .ui-box-content > a[name]',
  1141. insertP: ['css;.ui-box-content', 3],
  1142. replaceE: 'css;div.ui-paging',
  1143. scrollD: 1500
  1144. }
  1145. }, // 篱笆网论坛 - 帖子内
  1146. libaclub_prt: {
  1147. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1148. pager: {
  1149. type: 1,
  1150. nextL: 'css;a.ui-paging-next',
  1151. pageE: 'css;ul.ui-list > li',
  1152. replaceE: 'css;div.ui-paging',
  1153. scrollD: 2000
  1154. }
  1155. }, // 篱笆网论坛 - 帖子内 - 打印版
  1156. libaclub_search: {
  1157. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1158. pager: {
  1159. type: 1,
  1160. nextL: '//div[@class="ui-page"]/a[contains(text(), "下一页")]',
  1161. pageE: 'css;.ui-box-main > ul.ui-list > li',
  1162. replaceE: 'css;div.ui-page',
  1163. scrollD: 1200
  1164. }
  1165. }, // 篱笆网论坛 - 搜索页
  1166. taoguba: {
  1167. host: 'www.taoguba.com.cn',
  1168. functionS: function() {insStyle('#joinTGB {display: none !important;}')
  1169. if (indexOF('/Article/')) {
  1170. curSite = DBSite.taoguba_t;
  1171. } else if (indexOF('/shenghuoba/')) {
  1172. curSite = DBSite.taoguba_;
  1173. } else if (indexOF(/\/bbs|zongban|dianzan|jinghua\//)) {
  1174. curSite = DBSite.taoguba;
  1175. }},
  1176. pager: {
  1177. type: 1,
  1178. nextL: function() {
  1179. let next = getXpath('//div[contains(@class, "t_page01")]/a[contains(text(), "下一页")]'), next_ = '/';
  1180. if (next) {
  1181. next = next.getAttribute('onclick').replace('gotoPage(','').replace(')','').split(',');
  1182. if (indexOF(/\/dianzan|jinghua\//)) next_ = '-';
  1183. if (parseInt(next[0]) <= parseInt(next[2])) {return (`${location.origin}/${location.pathname.split('/')[1]}/${next[0]}${next_}${next[1]}`)}
  1184. }
  1185. return '';
  1186. },
  1187. pageE: 'css;.p_list > .p_list01[class*="user_"]',
  1188. replaceE: 'css;.t_page',
  1189. scrollD: 1000
  1190. }
  1191. }, // 淘股吧论坛
  1192. taoguba_: {
  1193. pager: {
  1194. type: 1,
  1195. nextL: function() {
  1196. let next = getCSS('#N_go_pageBtn'), next_ = location.pathname.split('/')[2].split('-')[0];
  1197. if (next && (parseInt(next.dataset.now) + 1 <= parseInt(next.dataset.total))) {
  1198. if (!next_) next_ = 'H';
  1199. return (`${location.origin}/shenghuoba/${next_}-${parseInt(next.dataset.now) + 1}`)
  1200. }
  1201. return '';
  1202. },
  1203. pageE: 'css;.lifeContent-topicList-item',
  1204. replaceE: 'css;.N_sortPage ',
  1205. scrollD: 1000
  1206. }
  1207. }, // 淘股吧论坛 - 生活圈
  1208. taoguba_t: {
  1209. pager: {
  1210. type: 1,
  1211. nextL: function() {
  1212. let next = getXpath('//div[contains(@class, "t_page01")]/a[contains(text(), "下一页")]');
  1213. if (next) {
  1214. next = next.getAttribute('onclick').replace('gotoPageTopic(','').replace(')','').split(',');
  1215. if (parseInt(next[0]) <= parseInt(next[1])) {return (`${location.origin}/Article/${getCSS("#looktopicID").value}/${next[0]}`)}
  1216. }
  1217. return '';
  1218. },
  1219. pageE: 'css;div[id^="reply_"]',
  1220. replaceE: 'css;.t_page',
  1221. scrollD: 1000
  1222. },
  1223. function: {
  1224. bF: src_bF,
  1225. pF: [0, 'img[data-original]', 'data-original']
  1226. }
  1227. }, // 淘股吧论坛 - 帖子内
  1228. lowendtalk: {
  1229. host: 'lowendtalk.com',
  1230. pager: {
  1231. type: 1,
  1232. nextL: 'css;a.Next',
  1233. pageE: 'css;ul.DataList > li',
  1234. replaceE: 'css;.Pager',
  1235. scrollD: 1500
  1236. }
  1237. }, // LowEndTalk
  1238. lieyou: {
  1239. host: 'bbs.lieyou888.com',
  1240. functionS: function() {if (indexOF('/forum')) {curSite = DBSite.lieyou;}},
  1241. pager: {
  1242. type: 1,
  1243. nextL: '//div[contains(@class, "_pageNav")]/a[text()="下一页"]',
  1244. pageE: 'css;ul.gb-bbs-list > li',
  1245. replaceE: 'css;._pageNav',
  1246. scrollD: 1000
  1247. },
  1248. function: {
  1249. bF: src_bF,
  1250. pF: [0, 'img[original]', 'original']
  1251. }
  1252. }, // 芥子空间论坛
  1253. xcar_forumdisplay: {
  1254. host: 'www.xcar.com.cn',
  1255. functionS: function() {if (lp == '/bbs/forumdisplay.php') {curSite = DBSite.xcar_forumdisplay}},
  1256. pager: {
  1257. type: 1,
  1258. nextL: 'css;a.page_down',
  1259. pageE: 'css;.table-section > dl:not(.table_head)',
  1260. replaceE: 'css;.forumList_page',
  1261. scrollD: 2000
  1262. }
  1263. }, // 爱卡汽车网论坛 - 各版块帖子列表
  1264. flyert_forumdisplay: {
  1265. host: 'www.flyert.com',
  1266. functionS: function() {if (indexOF('/forum-') || indexOF('mod=forumdisplay', 's')) {
  1267. curSite = DBSite.flyert_forumdisplay;
  1268. } else if (indexOF('/forum') || indexOF('mod=viewthread', 's')) {
  1269. if (GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.flyert_viewthread;}
  1270. }},
  1271. pager: {
  1272. type: 1,
  1273. nextL: 'css;a.nxt:not([href*="javascript"])',
  1274. pageE: 'css;#threadlist table > tbody[id^="normalthread_"]',
  1275. replaceE: 'css;.pg',
  1276. scrollD: 2500
  1277. }
  1278. }, // 飞客网论坛 - 各版块帖子列表
  1279. flyert_viewthread: {
  1280. pager: {
  1281. type: 1,
  1282. nextL: 'css;a.nxt:not([href*="javascript"])',
  1283. pageE: 'css;#postlist > .comiis_viewbox',
  1284. replaceE: 'css;.comiis_pgs > .pg',
  1285. scrollD: 3000
  1286. }
  1287. }, // 飞客网论坛 - 帖子内
  1288. cnprint: {
  1289. host: 'www.cnprint.org',
  1290. functionS: function() {if (indexOF('/forum/')) {curSite = DBSite.cnprint;} else if (indexOF('/thread/') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.cnprint_thread;}},
  1291. pager: {
  1292. type: 1,
  1293. nextL: 'css;a[rel="next"]',
  1294. pageE: 'css;tbody[id*="threadbits_forum"] > tr',
  1295. replaceE: 'css;.pagenav',
  1296. scrollD: 2500
  1297. }
  1298. }, // CPC 中文印刷社区
  1299. cnprint_thread: {
  1300. pager: {
  1301. type: 1,
  1302. nextL: 'css;a[rel="next"]',
  1303. pageE: 'css;#posts > div:not([id])',
  1304. replaceE: 'css;.pagenav',
  1305. scrollD: 2000
  1306. }
  1307. }, // CPC 中文印刷社区 - 帖子内
  1308. adnmb3: {
  1309. host: ['adnmb3.com', 'www.tnmb.org'],
  1310. functionS: function() {
  1311. if (indexOF('/m/f/')) {
  1312. curSite = DBSite.adnmb3_mf;
  1313. } else if (indexOF('/m/t/')) {
  1314. curSite = DBSite.adnmb3_mt;
  1315. } else if (indexOF(/\/(f|Forum)\//)) {
  1316. curSite = DBSite.adnmb3;
  1317. } else if (indexOF('/t/')) {
  1318. curSite = DBSite.adnmb3_t;
  1319. }},
  1320. pager: {
  1321. type: 1,
  1322. nextL: '//ul[contains(@class, "pagination")]//a[text()="下一页"]',
  1323. pageE: 'css;.h-threads-list > *, script[src$="/h.desktop.js"]',
  1324. insertP: ['css;.h-threads-list', 3],
  1325. replaceE: '//ul[contains(@class, "pagination")]',
  1326. scriptT: 2,
  1327. scrollD: 2500
  1328. }
  1329. }, // A 岛
  1330. adnmb3_t: {
  1331. pager: {
  1332. type: 1,
  1333. nextL: '//ul[contains(@class, "pagination")]//a[text()="下一页"]',
  1334. pageE: 'css;.h-threads-list > .h-threads-item > .h-threads-item-replys, script[src$="/h.desktop.js"]',
  1335. insertP: ['css;.h-threads-list > .h-threads-item', 3],
  1336. replaceE: '//ul[contains(@class, "pagination")]',
  1337. scriptT: 2,
  1338. scrollD: 2500
  1339. }
  1340. }, // A 岛 - 帖子内
  1341. adnmb3_mf: {
  1342. pager: {
  1343. type: 1,
  1344. nextL: '//li[contains(@class, "pagination-next")]//a[text()="下一页"]',
  1345. pageE: 'css;.h-middle > div[id^="threads_"], .h-middle > hr.h-middle > div[id^="threads_"], .h-middle > hr:nth-of-type(n+2), script[src$="/h.mobile.js"]',
  1346. insertP: ['css;#h-threads-pagination', 1],
  1347. replaceE: 'css;#h-threads-pagination',
  1348. scriptT: 2,
  1349. scrollD: 2500
  1350. }
  1351. }, // A 岛 - 帖子列表(手机版)
  1352. adnmb3_mt: {
  1353. pager: {
  1354. type: 1,
  1355. nextL: '//li[contains(@class, "pagination-next")]//a[text()="下一页"]',
  1356. pageE: 'css;.h-threads-replylist > div, script[src$="/h.mobile.js"]',
  1357. insertP: ['css;.h-threads-replylist', 3],
  1358. replaceE: 'css;#h-threads-pagination',
  1359. scriptT: 2,
  1360. scrollD: 2500
  1361. }
  1362. }, // A 岛 - 帖子内(手机版)
  1363. pixiv: {
  1364. host: 'www.pixiv.net',
  1365. functionS: function() {locationC = true;
  1366. if (lp == '/') {
  1367. forceTarget();
  1368. } else if (indexOF('/tags/')/* && self == top*/) {
  1369. curSite = DBSite.pixiv;
  1370. } else if (indexOF('/users/') && indexOF(/\/(artworks|illustrations|manga)/)) {
  1371. curSite = DBSite.pixiv_user;
  1372. } else if (indexOF('/artworks/')) {
  1373. setTimeout(function(){getXpath('//button[contains(string(), "查看全部") or contains(string(), "See all") or contains(string(), "すべて見る") or contains(string(), "모두 보기")]').click();}, 1000)
  1374. }
  1375. },
  1376. forceTarget: true,
  1377. insStyle: 'ul[class*="-1 "] > li {display: inline !important;} #root{margin-bottom: -175px;} ul > li > button[class^="sc-"][style="background-color: rgb(0, 0, 0);"], a[href^="/premium/lead/lp"] {display: none !important;}',
  1378. history: true,
  1379. iframe: true,
  1380. pager: {
  1381. type: 5,
  1382. nextL: 'css;a[aria-disabled="false"][class*="filterProps-Styled-Component"][href]:last-child',
  1383. /*pageE: '//ul[contains(@class, "-1 ")]/li',
  1384. insertP: ['//ul[contains(@class, "-1 ")]', 3],
  1385. replaceE: '//nav[./a[@aria-disabled="false"][contains(@class, "filterProps-Styled-Component")]]',*/
  1386. scrollD: 2000
  1387. }
  1388. }, // Pixiv - 分类页
  1389. pixiv_user: {
  1390. forceTarget: true,
  1391. insStyle: 'ul[class*="-1 "] > li {display: inline !important;} #root{margin-bottom: -125px;} ul > li > button[class^="sc-"][style="background-color: rgb(0, 0, 0);"], a[href^="/premium/lead/lp"] {display: none !important;}',
  1392. history: true,
  1393. pager: {
  1394. type: 5,
  1395. nextL: 'css;a[aria-disabled="false"][class*="filterProps-Styled-Component"][href]:last-child',
  1396. /*pageE: '//ul[contains(@class, "-1 ")]/li',
  1397. insertP: ['//ul[contains(@class, "-1 ")]', 3],
  1398. replaceE: '//nav[./a[@aria-disabled="false"][contains(@class, "filterProps-Styled-Component")]]',*/
  1399. scrollD: 2000
  1400. }
  1401. }, // Pixiv - 用户作品页
  1402. vilipix: {
  1403. host: 'www.vilipix.com',
  1404. functionS: function() {locationC = true; if (lp == '/') {forceTarget();} else if (indexOF(/\/(tags|user|new|ranking)/)) {curSite = DBSite.vilipix;}},
  1405. forceTarget: true,
  1406. history: true,
  1407. pager: {
  1408. type: 6,
  1409. nextL: function() {let next = getCSS('li.number.active+li.number'); if (next) return (location.origin + location.pathname + '?p=' + next.textContent)},
  1410. pageE: 'css;ul.illust-content > li',
  1411. replaceE: 'css;ul.el-pager',
  1412. loadTime: 800,
  1413. scrollD: 2000
  1414. }
  1415. }, // Vilipix
  1416. pixivision: {
  1417. host: 'www.pixivision.net',
  1418. functionS: function() {if (!indexOF('/a/')) curSite = DBSite.pixivision;},
  1419. pager: {
  1420. type: 1,
  1421. nextL: 'css;a.next',
  1422. pageE: 'css;li.article-card-container',
  1423. replaceE: 'css;._pager',
  1424. scrollD: 2000
  1425. }
  1426. }, // Pixivision
  1427. _58pic: {
  1428. host: 'www.58pic.com',
  1429. functionS: function() {insStyle('.qt-model-t.login-model {display: none !important;}');
  1430. if (indexOF(/\/(tupian|piccate)\//)) {
  1431. curSite = DBSite._58pic;
  1432. if (indexOF('/piccate/') && getCSS('.card-grid-box .qt-card-box[style*="width:"]')) insStyle('.card-grid-box .qt-card-box {display: block;height: 300px;min-height: 250px;}')
  1433. } else if (indexOF('/c/')) {
  1434. curSite = DBSite._58pic_c;
  1435. }},
  1436. insStyle: '.qtw-card.place-box, .card-lazy, .is-line .is-back {display: none !important;}',
  1437. pager: {
  1438. type: 1,
  1439. nextL: '//div[contains(@class,"page-box")]//a[text()="下一页"]',
  1440. pageE: 'css;.card-grid-box:not(.favorites-box) > div',
  1441. replaceE: 'css;.page-box',
  1442. scrollD: 2500
  1443. },
  1444. function: {
  1445. bF: src_bF,
  1446. pF: [0, 'img[data-original]', 'data-original']
  1447. }
  1448. }, // 千图网 - 分类/搜索页
  1449. _58pic_c: {
  1450. pager: {
  1451. type: 1,
  1452. nextL: '//div[contains(@class,"page-box")]//a[text()="下一页"]',
  1453. pageE: 'css;.list-box > .qtw-card',
  1454. replaceE: 'css;.page-box',
  1455. scrollD: 4000
  1456. },
  1457. function: {
  1458. bF: src_bF,
  1459. pF: [0, 'img[data-original]', 'data-original']
  1460. }
  1461. }, // 千图网 - 专题/收藏夹
  1462. _588ku: {
  1463. host: '588ku.com',
  1464. insStyle: '.listlogin-box.listloginBox, .CLdialogV1, .editIndexEntry, .globalRSideB {display: none !important;}',
  1465. pager: {
  1466. type: 1,
  1467. nextL: '//ul[contains(@class, "page-list")]//a[text()="下一页"]',
  1468. pageE: 'css;.data-box .dataList, .data-box .data-list',
  1469. insertP: ['css;.data-box .dataList, .data-box .data-list', 3],
  1470. replaceE: 'css;ul.page-list',
  1471. scrollD: 2000
  1472. },
  1473. function: {
  1474. bF: src_bF,
  1475. pF: [0, 'img[data-original]', 'data-original']
  1476. }
  1477. }, // 千库网
  1478. nipic: {
  1479. host: ['www.nipic.com', 'soso.nipic.com'],
  1480. insStyle: 'li.search-works-item {display: none !important;}',
  1481. pager: {
  1482. type: 1,
  1483. nextL: '//a[@title="下一页" or text()="下一页"][not(contains(@class, "search-works-nextpage"))]',
  1484. pageE: 'css;ul#img-list-outer > li',
  1485. replaceE: 'css;.common-page-box, .common-seo-page-box',
  1486. scrollD: 2000
  1487. },
  1488. function: {
  1489. bF: src_bF,
  1490. pF: [0, 'img[data-original]', 'data-original']
  1491. }
  1492. }, // 昵图网
  1493. ztupic: {
  1494. host: 'www.ztupic.com',
  1495. functionS: function() {if (lp != '/' && !indexOF('/sucai/')) {curSite = DBSite.ztupic;}},
  1496. pager: {
  1497. type: 1,
  1498. nextL: 'css;a.page-link[rel="next"]',
  1499. pageE: 'css;.floor_item',
  1500. replaceE: 'css;ul.pagination',
  1501. scrollD: 2000
  1502. },
  1503. function: {
  1504. bF: src_bF,
  1505. pF: [0, 'img[data-src]', 'data-src']
  1506. }
  1507. }, // 众图网
  1508. pixabay: {
  1509. host: 'pixabay.com',
  1510. pager: {
  1511. type: 1,
  1512. nextL: '//a[text()="›"]',
  1513. pageE: 'css;[class^="results"] > [class^="container"] > div',
  1514. replaceE: '//a[text()="›"]',
  1515. scrollD: 2000
  1516. },
  1517. function: {
  1518. bF: src_bF,
  1519. pF: [0, 'img[data-lazy-src]', 'data-lazy-src']
  1520. }
  1521. }, // Pixabay
  1522. logosc: {
  1523. host: 'www.logosc.cn',
  1524. functionS: function() {if (indexOF('/so/')) {curSite = DBSite.logosc;}},
  1525. pager: {
  1526. type: 2,
  1527. nextL: 'css;button.so-pablo-button',
  1528. interval: 1500,
  1529. scrollD: 1500
  1530. }
  1531. }, // 搜图神器 (免费无版权)
  1532. sccnn: {
  1533. host: 'www.sccnn.com',
  1534. pager: {
  1535. type: 1,
  1536. nextL: '//ul[@class="listpage"]//a[text()=">"]',
  1537. pageE: 'css;td[valign="TOP"]:not([width]) tr[valign="Middle"]',
  1538. replaceE: 'css;ul.listpage',
  1539. scrollD: 1000
  1540. }
  1541. }, // 素材中国
  1542. sccnn_so: {
  1543. host: 'so.sccnn.com',
  1544. pager: {
  1545. type: 1,
  1546. nextL: 'css;font[color="Red"]+a.F16',
  1547. pageE: '//tr[@valign="Top"][1]/preceding-sibling::tr',
  1548. replaceE: '//tr[@valign="Top"][last()]',
  1549. scrollD: 1000
  1550. }
  1551. }, // 素材中国 - 搜索页
  1552. iconfont: {
  1553. host: 'www.iconfont.cn',
  1554. functionS: function() {locationC = true; if (indexOF('/search/')) curSite = DBSite.iconfont;},
  1555. forceTarget: true,
  1556. insStyle: '.footer, header .bind-tips, .block-pagination-wrap {display: none !important;}',
  1557. history: true,
  1558. iframe: true,
  1559. pager: {
  1560. type: 5,
  1561. nextL: () => getNextP('css;li.active+li:not(.disabled) > a', 'page=', /page=\d+/),
  1562. scrollD: 1000
  1563. }
  1564. }, // iconfont
  1565. iconarchive: {
  1566. host: 'iconarchive.com',
  1567. functionS: function() {if (indexOF(/\/(tag|search|category)/)) curSite = DBSite.iconarchive;},
  1568. history: true,
  1569. pager: {
  1570. type: 1,
  1571. nextL: 'css;a.next',
  1572. pageE: 'css;.icondetail',
  1573. replaceE: 'css;.pagination',
  1574. scrollD: 2000
  1575. }
  1576. }, // IconArchive
  1577. puxiang: {
  1578. host: 'www.puxiang.com',
  1579. functionS: function() {if (lp == '/search/favorite') {
  1580. curSite = DBSite.puxiang_collect;
  1581. } else if (lp == '/search/puxiang' || lp == '/list' || lp == '/galleries' || lp == '/articles') {
  1582. curSite = DBSite.puxiang;
  1583. } else if (lp == '/') {
  1584. curSite = DBSite.puxiang; curSite.pager.scrollD = 4000;
  1585. }},
  1586. pager: {
  1587. type: 1,
  1588. nextL: 'css;li.next > a',
  1589. pageE: 'css;.work-list > div',
  1590. replaceE: 'css;.pagerbar',
  1591. scrollD: 1500
  1592. }
  1593. }, // 普象网 - 作品集/搜索页
  1594. puxiang_collect: {
  1595. pager: {
  1596. type: 1,
  1597. nextL: 'css;li.next > a',
  1598. pageE: 'css;.collect-list > div',
  1599. replaceE: 'css;.pagerbar',
  1600. scrollD: 1500
  1601. }
  1602. }, // 普象网 - 收藏夹
  1603. xuexiniu: {
  1604. host: ['www.xuexiniu.com', 'bbs.xuexiniu.com'],
  1605. functionS: function() {
  1606. if (getCSS('body#nv_forum.pg_forumdisplay')) {
  1607. if (getCSS('ul.waterfall')) {
  1608. curSite = DBSite.xuexiniu_forum;
  1609. } else {
  1610. curSite = DBSite.discuz_guide
  1611. }
  1612. } else if (getCSS('body#nv_forum.pg_viewthread') && GM_getValue('menu_discuz_thread_page')) {
  1613. curSite = DBSite.xuexiniu_thread;
  1614. } else if (indexOF('/search.php')) {
  1615. curSite = DBSite.xuexiniu_search;
  1616. } else {
  1617. curSite = DBSite.xuexiniu;
  1618. }
  1619. },
  1620. pager: {
  1621. type: 1,
  1622. nextL: '//a[@class="page-link" and contains(text(), "下一页")]',
  1623. pageE: 'css;.row > .col-sm-6',
  1624. replaceE: 'css;ul.pagination',
  1625. scrollD: 1000
  1626. }
  1627. }, // 学犀牛 - 分类页
  1628. xuexiniu_forum: {
  1629. pager: {
  1630. type: 1,
  1631. nextL: 'css;a.nxt:not([href*="javascript"])',
  1632. pageE: 'css;.waterfall > li',
  1633. replaceE: 'css;.pg',
  1634. scrollD: 1500
  1635. }
  1636. }, // 学犀牛 - 各板块帖子列表
  1637. xuexiniu_thread: {
  1638. pager: {
  1639. type: 1,
  1640. nextL: 'css;a.nxt:not([href*="javascript"])',
  1641. pageE: 'css;#zhanzhuai_primary > .box',
  1642. replaceE: 'css;.pg',
  1643. scrollD: 1500
  1644. }
  1645. }, // 学犀牛 - 帖子内
  1646. xuexiniu_search: {
  1647. pager: {
  1648. type: 1,
  1649. nextL: 'css;a.nxt:not([href*="javascript"])',
  1650. pageE: 'css;.yangshi.yangshi2',
  1651. insertP: ['css;.page', 1],
  1652. replaceE: 'css;.page',
  1653. scrollD: 1500
  1654. }
  1655. }, // 学犀牛 - 搜索页
  1656. om: {
  1657. host: 'www.om.cn',
  1658. functionS: function() {if (location.pathname != '/') {curSite = DBSite.om;}},
  1659. pager: {
  1660. type: 1,
  1661. nextL: 'css;li.next > a',
  1662. pageE: 'css;.main_content > ul > li',
  1663. replaceE: 'css;ul.pagination',
  1664. scrollD: 1500
  1665. }
  1666. }, // 欧模网
  1667. xiadele: {
  1668. host: ['www.xiadele.com', 'search.xiadele.com'],
  1669. functionS: function() {if (location.pathname != '/') {curSite = DBSite.xiadele;}},
  1670. insStyle: '.last-li-carousel-img {display: none !important;}',
  1671. pager: {
  1672. type: 1,
  1673. nextL: 'css;li.next_page a[rel="next"]',
  1674. pageE: 'css;ul.list-page-ul > li',
  1675. replaceE: 'css;ul.pagination',
  1676. scrollD: 2000
  1677. }
  1678. }, // 下得乐
  1679. Mixkit: {
  1680. host: 'mixkit.co',
  1681. functionS: function() {if (location.pathname != '/') {curSite = DBSite.Mixkit;}},
  1682. pager: {
  1683. type: 1,
  1684. nextL: 'css;a.pagination__link--next',
  1685. pageE: 'css;.item-grid-item',
  1686. replaceE: 'css;.pagination__wrapper',
  1687. scrollD: 2000
  1688. }
  1689. }, // Mixkit
  1690. _3dmgame: {
  1691. host: 'www.3dmgame.com',
  1692. functionS: function() {
  1693. if (getCSS('.Llist_b > div.lis')) {
  1694. curSite = DBSite._3dmgame_list;
  1695. } else if (getCSS('.newsleft > ul')) {
  1696. curSite = DBSite._3dmgame_list2;
  1697. } else if (indexOF('/resource')) {
  1698. curSite = DBSite._3dmgame_list3;
  1699. } else {
  1700. curSite = DBSite._3dmgame;
  1701. }},
  1702. history: true,
  1703. pager: {
  1704. type: 3,
  1705. nextL: 'css;li.next > a',
  1706. pageE: 'css;script[src*="common.js"], .news_warp_center > *',
  1707. insertP: ['css;.news_warp_center', 3],
  1708. replaceE: 'css;.pagewrap',
  1709. scrollE: 'css;.pagewrap',
  1710. scriptT: 2,
  1711. scrollD: 1000
  1712. }
  1713. }, // 3DM
  1714. _3dmgame_list: {
  1715. pager: {
  1716. type: 1,
  1717. nextL: 'css;li.next > a',
  1718. pageE: 'css;.Llist_b > div.lis',
  1719. replaceE: 'css;.pagewrap',
  1720. scrollD: 1000
  1721. },
  1722. function: {
  1723. bF: src_bF,
  1724. pF: [0, 'img[data-original]', 'data-original']
  1725. }
  1726. }, // 3DM - 分类页
  1727. _3dmgame_list2: {
  1728. pager: {
  1729. type: 1,
  1730. nextL: 'css;li.next > a',
  1731. pageE: 'css;.newsleft > ul > li',
  1732. replaceE: 'css;.pagewrap',
  1733. scrollD: 1000
  1734. },
  1735. function: {
  1736. bF: src_bF,
  1737. pF: [0, 'img[data-original]', 'data-original']
  1738. }
  1739. }, // 3DM - 游戏专区 - 分类页
  1740. _3dmgame_list3: {
  1741. pager: {
  1742. type: 1,
  1743. nextL: 'css;li.next > a',
  1744. pageE: 'css;.item > ul',
  1745. insertP: ['css;.item > ul:last-child', 1],
  1746. replaceE: 'css;.pagewrap',
  1747. scrollD: 800
  1748. }
  1749. }, // 3DM - 游戏专区 - 资源页
  1750. _3dmgame_mod: {
  1751. host: 'mod.3dmgame.com',
  1752. history: true,
  1753. pager: {
  1754. type: 1,
  1755. nextL: () => getNextP('//li[@class="page-list active"]/following-sibling::li[contains(@class, "page-list")]/a', 'Page=', /Page=\d+/),
  1756. pageE: '//div[contains(@class, "game-mod-list") or contains(@class, "search-mod-list")] | //script[not(@src or @type)][contains(text(), ".game-mod-page") or contains(text(), ".search-mod-page")]',
  1757. insertP: ['//div[contains(@class, "game-mod-wrap") or contains(@class, "search-mod ")]', 3],
  1758. scriptT: 2,
  1759. scrollD: 1200
  1760. }
  1761. }, // 3DM MOD站
  1762. ali213_www: {
  1763. host: 'www.ali213.net',
  1764. pager: {
  1765. type: 3,
  1766. nextL: 'css;#after_this_page',
  1767. pageE: 'css;#Content >*:not(.news_ding):not(.page_fenye)',
  1768. insertP: ['css;.page_fenye', 1],
  1769. replaceE: 'css;.page_fenye',
  1770. scrollE: 'css;.page_fenye',
  1771. scrollD: 1000
  1772. }
  1773. }, // 游侠网
  1774. ali213_list: {
  1775. host: 'down.ali213.net',
  1776. functionS: function() {if (getCSS('.famous-ul > .famous-li')) {curSite = DBSite.ali213_list;}},
  1777. pager: {
  1778. type: 1,
  1779. nextL: 'css;a.page-next',
  1780. pageE: 'css;.famous-ul > .famous-li',
  1781. replaceE: 'css;.page-container',
  1782. scrollD: 1000
  1783. },
  1784. function: {
  1785. bF: src_bF,
  1786. pF: [0, 'img[data-original]', 'data-original']
  1787. }
  1788. }, // 游侠网 - 分类页
  1789. ali213_gl: {
  1790. host: 'gl.ali213.net',
  1791. insStyle: '.n_show_b {display: none !important;}',
  1792. history: true,
  1793. pager: {
  1794. type: 3,
  1795. nextL: 'css;a.next',
  1796. pageE: 'css;.c-detail >*',
  1797. insertP: ['css;.c-detail', 3],
  1798. replaceE: 'css;.page_fenye',
  1799. scrollE: 'css;.page_fenye',
  1800. scrollD: 1000
  1801. }
  1802. }, // 游侠网 - 攻略
  1803. ali213_pic: {
  1804. host: 'pic.ali213.net',
  1805. insStyle: 'a.prev, a.next {display: none !important;}',
  1806. pager: {
  1807. type: 1,
  1808. nextL: 'css;a.next',
  1809. pageE: 'css;#image-show > img',
  1810. replaceE: 'css;#image-show > a',
  1811. scrollD: 1200
  1812. }
  1813. }, // 游侠网 - 图库
  1814. gamersky_ent: {
  1815. host: 'www.gamersky.com',
  1816. functionS: function() {if (indexOF('/ent/')) {curSite = DBSite.gamersky_ent;} else {curSite = DBSite.gamersky_gl;}},
  1817. pager: {
  1818. type: 3,
  1819. nextL: '//div[@class="page_css"]/a[text()="下一页"]',
  1820. pageE: 'css;.Mid2L_con > *:not(.gs_nc_editor):not(.pagecss):not(.page_css):not(.gs_ccs_solve):not(.post_ding)',
  1821. insertP: ['css;.page_css', 1],
  1822. replaceE: 'css;.page_css',
  1823. scrollE: 'css;.page_css',
  1824. scrollD: 1000
  1825. }
  1826. }, // 游民星空
  1827. gamersky_gl: {
  1828. history: true,
  1829. pager: {
  1830. type: 3,
  1831. nextL: '//div[@class="page_css"]/a[text()="下一页"]',
  1832. pageE: 'css;.Mid2L_con > *:not(.gs_nc_editor):not(.pagecss):not(.gs_ccs_solve):not(.post_ding)',
  1833. insertP: ['css;.gs_nc_editor', 1],
  1834. replaceE: 'css;.page_css',
  1835. scrollE: 'css;.page_css',
  1836. forceHTTPS: true,
  1837. scrollD: 1000
  1838. },
  1839. function: {
  1840. bF: gamersky_gl_bF
  1841. }
  1842. }, // 游民星空 - 攻略
  1843. nexusmods: {
  1844. host: 'www.nexusmods.com',
  1845. pager: {
  1846. type: 1,
  1847. nextL: nexusmods_nextL,
  1848. pageE: 'css;ul.tiles > li',
  1849. replaceE: 'css;.pagination',
  1850. scrollD: 4000
  1851. },
  1852. function: {
  1853. bF: nexusmods_bF
  1854. }
  1855. }, // NexusMods
  1856. curseforge: {
  1857. host: 'www.curseforge.com',
  1858. pager: {
  1859. type: 1,
  1860. nextL: 'css;.pagination-next > a',
  1861. pageE: 'css;div.my-2',
  1862. replaceE: 'css;.pagination',
  1863. scrollD: 2500
  1864. }
  1865. }, // CurseForge
  1866. steamcommunity: {
  1867. host: 'steamcommunity.com',
  1868. functionS: function() {if (indexOF('/workshop/browse')) {curSite = DBSite.steamcommunity;}},
  1869. pager: {
  1870. type: 1,
  1871. nextL: '//a[@class="pagebtn"][last()]',
  1872. pageE: 'css;.workshopBrowseItems > *',
  1873. replaceE: 'css;.workshopBrowsePaging',
  1874. scriptT: 2,
  1875. scrollD: 1500
  1876. }
  1877. }, // Steam 创意工坊 - 项目列表
  1878. yikm: {
  1879. host: 'www.yikm.net',
  1880. pager: {
  1881. type: 1,
  1882. nextL: '//ul[@class="pager"]//a[text()="下一页"]',
  1883. pageE: '//h2[contains(text(), "所有游戏") or contains(text(), "搜索结果")]/following-sibling::div[1]/div',
  1884. replaceE: 'css;ul.pager',
  1885. scrollD: 1500
  1886. }
  1887. }, // 小霸王其乐无穷
  1888. cs_rin_ru: {
  1889. host: 'cs.rin.ru',
  1890. functionS: function() {if (lp == '/forum/viewforum.php') { // 版块帖子列表
  1891. curSite = DBSite.cs_rin_ru;
  1892. } else if (lp == '/forum/viewtopic.php') { // 帖子内
  1893. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.cs_rin_ru_list;
  1894. } else if (lp == '/forum/search.php') { // 搜索结果
  1895. curSite = DBSite.cs_rin_ru_search;
  1896. }},
  1897. pager: {
  1898. type: 1,
  1899. nextL: '//td[@class="gensmall"][@align="right"]//a[text()="Next"]',
  1900. pageE: 'css;#pagecontent > table.tablebg > tbody > tr:not([align])',
  1901. replaceE: 'css;#pagecontent > table:first-child',
  1902. scrollD: 1500
  1903. },
  1904. function: {
  1905. bF: cs_rin_ru_bF
  1906. }
  1907. }, // cs.rin.ru - 各版块帖子列表
  1908. cs_rin_ru_list: {
  1909. pager: {
  1910. type: 1,
  1911. nextL: 'id("pageheader")/p[@class="gensmall"]//a[text()="Next"]',
  1912. pageE: 'css;#pagecontent > table.tablebg:not(:nth-last-child(2)):not(:nth-child(2))',
  1913. replaceE: 'css;#pagecontent >table:not(.tablebg), #pageheader p.gensmall',
  1914. scrollD: 2000
  1915. }
  1916. }, // cs.rin.ru - 帖子内
  1917. cs_rin_ru_search: {
  1918. pager: {
  1919. type: 1,
  1920. nextL: 'id("wrapcentre")/div[@class="nav"]//a[text()="Next"]',
  1921. pageE: 'css;#wrapcentre > form > table.tablebg > tbody > tr[valign]',
  1922. replaceE: 'css;#wrapcentre > div',
  1923. scrollD: 1500
  1924. }
  1925. }, // cs.rin.ru - 搜索页
  1926. crackhub: {
  1927. host: 'crackhub.site',
  1928. insStyle: 'html.wp-dark-mode-active .inside-article {background-color: var(--wp-dark-mode-bg);}',
  1929. pager: {
  1930. type: 1,
  1931. nextL: 'css;a.next.page-numbers',
  1932. pageE: 'css;article[id^="post-"]',
  1933. replaceE: 'css;nav.paging-navigation',
  1934. scrollD: 2000
  1935. }
  1936. }, // Crackhub213
  1937. fitgirl: {
  1938. host: 'fitgirl-repacks.site',
  1939. pager: {
  1940. type: 1,
  1941. nextL: 'css;a.next.page-numbers',
  1942. pageE: 'css;article[id^="post-"]',
  1943. replaceE: 'css;nav.paging-navigation',
  1944. scrollD: 2500
  1945. }
  1946. }, // FitGirl Repacks
  1947. bilibili_search: {
  1948. host: 'search.bilibili.com',
  1949. functionS: function() {locationC = true; curSite = DBSite.bilibili_search;},
  1950. history: true,
  1951. retry: 100,
  1952. pager: {
  1953. type: 1,
  1954. nextL: bilibili_search_nextL,
  1955. pageE: '//ul[contains(@class, "video-list")]/li | //script[contains(text(), "window.__INITIAL_STATE__")]',
  1956. insertP: ['css;ul.video-list', 3],
  1957. replaceE: 'css;ul.pages',
  1958. scriptT: 2,
  1959. scrollD: 1000
  1960. },
  1961. function: {
  1962. aF: bilibili_search_aF
  1963. }
  1964. }, // B 站(Bilibili) - 搜索页
  1965. pianku: {
  1966. host: /pianku/,
  1967. functionS: function() {if (location.pathname != '/') {curSite = DBSite.pianku;}},
  1968. pager: {
  1969. type: 1,
  1970. nextL: 'css;a.a1',
  1971. pageE: 'css;.content-list > li',
  1972. replaceE: 'css;.pages',
  1973. scrollD: 1500
  1974. },
  1975. function: {
  1976. bF: src_bF,
  1977. pF: [0, 'img[data-src]', 'data-src']
  1978. }
  1979. }, // 片库
  1980. cupfox: {
  1981. host: 'www.cupfox.com',
  1982. pager: {
  1983. type: 2,
  1984. nextL: 'css;.load-more',
  1985. nextText: '点击加载更多',
  1986. scrollD: 700
  1987. }
  1988. }, // 茶杯狐
  1989. novipnoad: {
  1990. host: 'www.novipnoad.com',
  1991. functionS: function() {if (location.pathname != '/' && !indexOF('.html')) {curSite = DBSite.novipnoad;}},
  1992. pager: {
  1993. type: 1,
  1994. nextL: 'css;a.nextpostslink',
  1995. pageE: 'css;.video-listing-content .row > div',
  1996. replaceE: 'css;.wp-pagenavi',
  1997. scrollD: 1500
  1998. },
  1999. function: {
  2000. bF: src_bF,
  2001. pF: [0, 'img[data-original]', 'data-original']
  2002. }
  2003. }, // NO视频
  2004. ddrk: {
  2005. host: ['ddrk.me', 'ddys.tv'],
  2006. functionS: function() {if (lp == '/' || indexOF(/\/(category|tag)\//)) {curSite = DBSite.ddrk;}},
  2007. pager: {
  2008. type: 1,
  2009. nextL: 'css;a.next',
  2010. pageE: 'css;.post-box-list > article',
  2011. replaceE: 'css;.pagination_wrap',
  2012. scrollD: 1500
  2013. }
  2014. }, // 低端影视
  2015. nfmovies: {
  2016. host: 'www.nfmovies.com',
  2017. functionS: function() {if (lp == '/search.php' || indexOF('/list/')) {curSite = DBSite.nfmovies;}},
  2018. pager: {
  2019. type: 1,
  2020. nextL: '//ul[contains(@class, "myui-page")]/li/a[text()="下一页"]',
  2021. pageE: 'css;ul.myui-vodlist > li',
  2022. replaceE: 'css;ul.myui-page',
  2023. scrollD: 1500
  2024. },
  2025. function: {
  2026. bF: src_bF,
  2027. pF: [1, 'a[data-original]', 'data-original']
  2028. }
  2029. }, // 奈菲影视
  2030. zxzj: {
  2031. host: ['www.zxzj.me', 'www.zxzj.fun'],
  2032. functionS: function() {if (location.pathname != '/' && !indexOF('/detail/') && !indexOF('/video/')) {curSite = DBSite.zxzj;}},
  2033. insStyle: 'div.stui-page__all {display: none !important;}',
  2034. pager: {
  2035. type: 1,
  2036. nextL: '//ul[contains(@class, "stui-page__item")]//a[text()="下一页"]',
  2037. pageE: 'css;ul.stui-vodlist > li',
  2038. replaceE: 'css;ul.stui-page__item',
  2039. scrollD: 1000
  2040. },
  2041. function: {
  2042. bF: src_bF,
  2043. pF: [1, 'a[data-original]', 'data-original']
  2044. }
  2045. }, // 在线之家
  2046. enlienli: {
  2047. host: 'enlienli.com',
  2048. functionS: function() {if (indexOF('/show/') || indexOF('/search')) {curSite = DBSite.enlienli;}},
  2049. pager: {
  2050. type: 1,
  2051. nextL: 'css;a.page-number.page-next',
  2052. pageE: 'css;.module-items > *',
  2053. replaceE: 'css;#page',
  2054. scrollD: 1000
  2055. },
  2056. function: {
  2057. bF: src_bF,
  2058. pF: [0, 'img[data-src]', 'data-src']
  2059. }
  2060. }, // 嗯哩嗯哩
  2061. _91mjw: {
  2062. host: '91mjw.com',
  2063. functionS: function() {if (!indexOF('/video/') || !indexOF('/vplay/')) {curSite = DBSite._91mjw;}},
  2064. pager: {
  2065. type: 1,
  2066. nextL: 'css;.next-page > a',
  2067. pageE: 'css;.m-movies > article',
  2068. replaceE: 'css;.pagination',
  2069. scrollD: 1500
  2070. },
  2071. function: {
  2072. bF: src_bF,
  2073. pF: [0, 'img[data-original]', 'data-original']
  2074. }
  2075. }, // 91 美剧网
  2076. zhenbuka: {
  2077. host: ['www.zhenbuka3.com', 'www.zhenbuka5.com'],
  2078. functionS: function() {if (indexOF('/vodtype/')) {curSite = DBSite.zhenbuka;}},
  2079. pager: {
  2080. type: 1,
  2081. nextL: '//ul[contains(@class, "stui-page")]/li/a[text()="下一页"]',
  2082. pageE: 'css;ul.stui-vodlist > li',
  2083. replaceE: 'css;ul.stui-page',
  2084. scrollD: 1500
  2085. },
  2086. function: {
  2087. bF: src_bF,
  2088. pF: [1, 'a[data-original]', 'data-original']
  2089. }
  2090. }, // 真不卡影院
  2091. zzzfun: {
  2092. host: 'www.zzzfun.com',
  2093. functionS: function() {
  2094. if (indexOF('/vod_type') || indexOF('/vod_show')) {
  2095. curSite = DBSite.zzzfun;
  2096. } else if (indexOF('/vod_search')) {
  2097. curSite = DBSite.zzzfun_search;
  2098. }},
  2099. pager: {
  2100. type: 1,
  2101. nextL: 'css;#page a[title="下一页"]',
  2102. pageE: 'css;ul.search-result > a',
  2103. replaceE: 'css;#page',
  2104. scrollD: 1000
  2105. },
  2106. function: {
  2107. bF: src_bF,
  2108. pF: [0, 'img[data-original]', 'data-original']
  2109. }
  2110. }, // ZzzFun 动漫
  2111. zzzfun_search: {
  2112. pager: {
  2113. type: 1,
  2114. nextL: 'css;#page a[title="下一页"]',
  2115. pageE: 'css;ul.show-list > li',
  2116. replaceE: 'css;#page',
  2117. scrollD: 1000
  2118. },
  2119. function: {
  2120. bF: src_bF,
  2121. pF: [0, 'img[data-original]', 'data-original']
  2122. }
  2123. }, // ZzzFun 动漫 - 搜索页
  2124. tucao: {
  2125. host: 'www.tucao.one',
  2126. functionS: function() {if (indexOF('/list/')) {
  2127. curSite = DBSite.tucao;
  2128. } else if (indexOF('search', 's')) {
  2129. curSite = DBSite.tucao_search;
  2130. }},
  2131. pager: {
  2132. type: 1,
  2133. nextL: 'css;.pagego a',
  2134. pageE: 'css;.list > ul > li',
  2135. replaceE: 'css;.newpages, .pagego, #float_show',
  2136. scrollD: 1000
  2137. }
  2138. }, // 吐槽弹幕网
  2139. tucao_search: {
  2140. pager: {
  2141. type: 1,
  2142. nextL: '//a[@class="a1"][contains(text(), "下一页")]',
  2143. pageE: 'css;.search_list > *',
  2144. replaceE: 'css;.pages',
  2145. scrollD: 1000
  2146. }
  2147. }, // 吐槽弹幕网 - 搜索页
  2148. mandao: {
  2149. host: 'www.mandao.tv',
  2150. functionS: function() {if (location.pathname != '/' && !indexOF('/man')) {
  2151. curSite = DBSite.mandao;
  2152. }},
  2153. pager: {
  2154. type: 1,
  2155. nextL: '//div[contains(@class, "page")]/a[text()=">"]',
  2156. pageE: 'css;.index-tj > ul > li',
  2157. replaceE: 'css;.page',
  2158. scrollD: 1000
  2159. },
  2160. function: {
  2161. bF: src_bF,
  2162. pF: [0, 'img[data-original]', 'data-original']
  2163. }
  2164. }, // 漫岛动漫
  2165. yxdm: {
  2166. host: 'www.yxdm.li',
  2167. functionS: function() {if (indexOF('/search') || indexOF('/category') || indexOF('/resource')) {curSite = DBSite.yxdm;}},
  2168. pager: {
  2169. type: 1,
  2170. nextL: '//a[@class="nextPage" or text()="下一页"]',
  2171. pageE: 'css;.dhnew > ul > li',
  2172. replaceE: 'css;.pagelist',
  2173. scrollD: 2000
  2174. }
  2175. }, // 怡萱动漫
  2176. nicotv: {
  2177. host: 'www.nicotv.me',
  2178. functionS: function() {if (indexOF('/search') || indexOF('/type')) {curSite = DBSite.nicotv;}},
  2179. pager: {
  2180. type: 1,
  2181. nextL: '//ul[contains(@class, "pagination ")]//a[text()="»"]',
  2182. pageE: 'css;ul.list-unstyled > li',
  2183. replaceE: 'css;ul.pagination ',
  2184. scrollD: 1000
  2185. },
  2186. function: {
  2187. bF: src_bF,
  2188. pF: [0, 'img[data-original]', 'data-original']
  2189. }
  2190. }, // 妮可动漫
  2191. yhdm: {
  2192. host: ['www.imomoe.la', 'www.imomoe.live'],
  2193. functionS: function() {if (indexOF('/list/')) {
  2194. curSite = DBSite.yhdm;
  2195. } else if (lp == '/so.asp' || lp == '/search.asp') {
  2196. curSite = DBSite.yhdm_;
  2197. }},
  2198. pager: {
  2199. type: 1,
  2200. nextL: '//div[@class="pages"]/a[text()="下一页"]',
  2201. pageE: 'css;#contrainer > .img> ul > li',
  2202. replaceE: 'css;.pages',
  2203. scrollD: 1000
  2204. }
  2205. }, // 樱花动漫
  2206. yhdm_: {
  2207. pager: {
  2208. type: 1,
  2209. nextL: '//div[@class="pages"]/a[text()="下一页"]',
  2210. pageE: 'css;#contrainer .fire .pics > ul > li',
  2211. replaceE: 'css;.pages',
  2212. scrollD: 1000
  2213. }
  2214. }, // 樱花动漫 - 搜索页等
  2215. agefans: {
  2216. host: 'www.agefans.cc',
  2217. functionS: function() {if (indexOF('/catalog/') || lp == '/search') {
  2218. curSite = DBSite.agefans;
  2219. } else if (lp == '/recommend' || lp == '/update') {
  2220. curSite = DBSite.agefans_;
  2221. } else if (lp == '/rank') {
  2222. curSite = DBSite.agefans_rank;
  2223. }},
  2224. pager: {
  2225. type: 1,
  2226. nextL: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[contains(text(), "下一页")]',
  2227. pageE: 'css;#container .blockcontent1 > div',
  2228. replaceE: 'css;#container .blockcontent > div[style]:not([class])',
  2229. scrollD: 1000
  2230. }
  2231. }, // AGE 动漫 - 全部/搜索
  2232. agefans_: {
  2233. pager: {
  2234. type: 1,
  2235. nextL: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[contains(text(), "下一页")]',
  2236. pageE: 'css;#container .blockcontent > ul > li',
  2237. replaceE: 'css;#container .blockcontent > div[style]:not([class])',
  2238. scrollD: 1000
  2239. }
  2240. }, // AGE 动漫 - 其他页
  2241. agefans_rank: {
  2242. pager: {
  2243. type: 1,
  2244. nextL: 'id("container")/ul[@style][not(@class)]/li/a[contains(text(), "下一页")]',
  2245. pageE: 'css;#container > .div_right .blockcontent.div_right_r_3 > ul',
  2246. replaceE: 'css;#container > ul[style]:not([class])',
  2247. scrollD: 1000
  2248. }
  2249. }, // AGE 动漫 - 排行榜
  2250. dm233: {
  2251. host: 'www.dm233.cc',
  2252. functionS: function() {if (indexOF('/catalog/') || lp == '/recommend/' || lp == '/search') {
  2253. curSite = DBSite.dm233;
  2254. } else if (lp == '/article/') {
  2255. curSite = DBSite.dm233_article;
  2256. } else if (lp == '/rank/') {
  2257. curSite = DBSite.dm233_rank;
  2258. }},
  2259. pager: {
  2260. type: 1,
  2261. nextL: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
  2262. pageE: 'css;.dhnew ul > li',
  2263. replaceE: 'css;.pagelist',
  2264. scrollD: 1000
  2265. }
  2266. }, // 233 动漫
  2267. dm233_article: {
  2268. pager: {
  2269. type: 1,
  2270. nextL: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
  2271. pageE: 'css;.xgyd ul > li',
  2272. replaceE: 'css;.pagelist',
  2273. scrollD: 1000
  2274. }
  2275. }, // 233 动漫 - 动漫情报/资讯
  2276. dm233_rank: {
  2277. pager: {
  2278. type: 1,
  2279. nextL: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
  2280. pageE: 'css;.side-update.normal-wai > .normal-nei',
  2281. replaceE: 'css;.pagelist',
  2282. scrollD: 1000
  2283. }
  2284. }, // 233 动漫 - 排行榜
  2285. anime1: {
  2286. host: 'anime1.me',
  2287. functionS: function() {if (indexOF('s=', 's')) {
  2288. curSite = DBSite.anime1_search;
  2289. } else if (lp == '/') {
  2290. curSite = DBSite.anime1;
  2291. }},
  2292. pager: {
  2293. type: 4,
  2294. nextL: anime1_nextL,
  2295. interval: 500,
  2296. scrollD: 800
  2297. }
  2298. }, // Anime1
  2299. anime1_search: {
  2300. pager: {
  2301. type: 1,
  2302. nextL: 'css;.nav-previous > a',
  2303. pageE: 'css;#main > article',
  2304. replaceE: 'css;nav.navigation',
  2305. scrollD: 1200
  2306. }
  2307. }, // Anime1 - 搜索页
  2308. yinfans: {
  2309. host: 'www.yinfans.net',
  2310. insStyle: '#post_container {height: auto !important;} #post_container > li {position: static !important; float: left !important; height: 620px !important;}',
  2311. pager: {
  2312. type: 1,
  2313. nextL: 'css;a.next',
  2314. pageE: 'css;#post_container > li',
  2315. replaceE: 'css;.pagination',
  2316. scrollD: 1500
  2317. }
  2318. }, // 音范丝
  2319. btbtt: {
  2320. host: /btbtt/,
  2321. pager: {
  2322. type: 1,
  2323. nextL: '//div[@class="page"]/a[contains(text(), "▶") or contains(text(), "下一页")]',
  2324. pageE: 'css;#threadlist > *',
  2325. replaceE: 'css;.page',
  2326. scrollD: 2000
  2327. }
  2328. }, // BT 之家
  2329. bdys: {
  2330. host: 'www.bd2020.com',
  2331. functionS: function() {if (location.pathname != '/' && !indexOF(/\/\d+\.htm/)) {curSite = DBSite.bdys;}},
  2332. pager: {
  2333. type: 2,
  2334. nextL: 'css;div.layui-flow-more > a',
  2335. nextText: '加载更多',
  2336. scrollD: 1000
  2337. }
  2338. }, // BD 影视
  2339. gaoqing_fm: {
  2340. host: 'gaoqing.fm',
  2341. pager: {
  2342. type: 2,
  2343. nextL: 'css;.col-md-12 > a, #loadmore > a',
  2344. interval: 1500,
  2345. scrollD: 1000
  2346. }
  2347. }, // 高清电台
  2348. yyds: {
  2349. host: 'yyds.fans',
  2350. functionS: function() {if (location.search != '' && !indexOF('p=', 's')) {curSite = DBSite.yyds;}},
  2351. pager: {
  2352. type: 1,
  2353. nextL: 'css;a.next.page-numbers',
  2354. pageE: 'css;.list-grouped > div',
  2355. replaceE: 'css;nav.pagination',
  2356. scrollD: 1100
  2357. }
  2358. }, // YYDS 电影
  2359. kisssub: {
  2360. host: ['www.kisssub.org','www.comicat.org'],
  2361. pager: {
  2362. type: 1,
  2363. nextL: 'css;a.nextprev',
  2364. pageE: 'css;#data_list > tr',
  2365. replaceE: 'css;.pages',
  2366. scrollD: 2500
  2367. }
  2368. }, // 爱恋动漫
  2369. dmhy: {
  2370. host: ['share.dmhy.org', 'dmhy.anoneko.com'],
  2371. pager: {
  2372. type: 1,
  2373. nextL: '//div[@class="nav_title"]/a[contains(text(), "下一")]',
  2374. pageE: 'css;#topic_list > tbody > tr',
  2375. replaceE: 'css;.nav_title',
  2376. scrollD: 1500
  2377. },
  2378. function: {
  2379. aF: function() {document.body.appendChild(document.createElement('script')).textContent = `$('#topic_list > tbody > tr:even:not(.even):not(.odd)').addClass('even'); $('#topic_list > tbody > tr:odd:not(.even):not(.odd)').addClass('odd');`;}
  2380. }
  2381. }, // 动漫花园
  2382. hacg: {
  2383. host: 'www.hacg.cat',
  2384. functionS: function() {if (indexOF('/wp/') && !indexOF(/\d+\.html/)) curSite = DBSite.hacg},
  2385. pager: {
  2386. type: 1,
  2387. nextL: 'css;a.nextpostslink',
  2388. pageE: 'css;article[id^="post-"]',
  2389. replaceE: 'css;.wp-pagenavi',
  2390. scrollD: 1500
  2391. }
  2392. }, // 琉璃神社
  2393. futaacg: {
  2394. host: 'futaacg.com',
  2395. pager: {
  2396. type: 1,
  2397. nextL: 'css;ul.pagination a[rel="next"]',
  2398. pageE: 'css;.topic-list > div',
  2399. replaceE: 'css;ul.pagination',
  2400. scrollD: 1500
  2401. }
  2402. }, // 扶她动漫
  2403. bangumi: {
  2404. host: 'bangumi.moe',
  2405. pager: {
  2406. type: 2,
  2407. nextL: 'css;[torrent-list="lattorrents"] button[ng-click="loadMore()"] ,[torrent-list="torrents"] button[ng-click="loadMore()"]',
  2408. interval: 1000,
  2409. scrollD: 1500
  2410. }
  2411. }, // 萌番组
  2412. miobt: {
  2413. host: ['miobt.com', 'www.36dm.club'],
  2414. functionS: function() {curSite = DBSite.miobt; if (location.hostname === 'www.36dm.club') {curSite.pager.scrollD = 1000;}},
  2415. pager: {
  2416. type: 1,
  2417. nextL: '//a[@class="nextprev"][contains(text(), "〉") or contains(text(), "下一页") or contains(text(), "»")]',
  2418. pageE: 'css;#data_list > tr',
  2419. replaceE: 'css;.pages',
  2420. scrollD: 2000
  2421. }
  2422. }, // MioBT + 简单动漫
  2423. nyaa: {
  2424. host: /nyaa\.si/,
  2425. pager: {
  2426. type: 1,
  2427. nextL: 'css;a[rel="next"], li.next > a',
  2428. pageE: 'css;table.torrent-list > tbody > tr',
  2429. replaceE: 'css;ul.pagination',
  2430. scrollD: 2000
  2431. }
  2432. }, // Nyaa
  2433. skrbt: {
  2434. host: /skrbt/,
  2435. functionS: function() {if (lp == '/search') curSite = DBSite.skrbt;},
  2436. pager: {
  2437. type: 1,
  2438. nextL: skrbt_nextL,
  2439. pageE: 'css;div[class="row"] > .col-md-6 > ul',
  2440. insertP: ['css;nav[aria-label*="Page"]', 1],
  2441. replaceE: 'css;ul.pagination',
  2442. scrollD: 900
  2443. }
  2444. }, // SkrBT
  2445. rarbg: {
  2446. host: /rarbg/,
  2447. functionS: function() {if (lp == '/torrents.php') {curSite = DBSite.rarbg; rarbg_bF(getAllCSS('table.lista2t tr.lista2'));}},
  2448. insStyle: 'html::-webkit-scrollbar {height: 0 !important;}',
  2449. pager: {
  2450. type: 1,
  2451. nextL: 'css;#pager_links > a[title="next page"]',
  2452. pageE: 'css;table.lista2t tr.lista2',
  2453. replaceE: 'css;#pager_links',
  2454. scrollD: 1000
  2455. },
  2456. function: {
  2457. bF: rarbg_bF
  2458. }
  2459. }, // RARBG
  2460. subdh: {
  2461. host: 'subdh.com',
  2462. functionS: function() {if (lp == '/' || indexOF('/list/new')) {curSite = DBSite.subdh;} else if (indexOF('/search')) {curSite = DBSite.subdh_search;}},
  2463. pager: {
  2464. type: 1,
  2465. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  2466. pageE: 'css;.col-lg-9 .bg-white.shadow-sm.rounded-3 > .row.gx-0',
  2467. replaceE: 'css;ul.pagination',
  2468. scrollD: 1000
  2469. }
  2470. }, // SubDH
  2471. subdh_search: {
  2472. pager: {
  2473. type: 1,
  2474. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  2475. pageE: 'css;.col-lg-9 .bg-white.shadow-sm.rounded-3',
  2476. insertP: ['css;nav[aria-label="pagination"]', 1],
  2477. replaceE: 'css;ul.pagination',
  2478. scrollD: 1000
  2479. }
  2480. }, // SubDH - 搜索页
  2481. mini4k: {
  2482. host: 'www.mini4k.com',
  2483. functionS: function() {if (location.pathname != '/' && !indexOF(/\/\d{3,}/)) {curSite = DBSite.mini4k;};},
  2484. pager: {
  2485. type: 1,
  2486. nextL: 'css;a.pager__item--next',
  2487. pageE: 'css;div[class*="-item-list"] > ul > li',
  2488. replaceE: 'css;.pagination',
  2489. scrollD: 2000
  2490. }
  2491. }, // MINI4K
  2492. bthaha: {
  2493. host: /bthaha/,
  2494. functionS: function() {if (indexOF('/search/')) {
  2495. curSite = DBSite.bthaha;
  2496. getAllCSS('[id^="list_top"], [id^="list_bottom"]').forEach(function (one) {one.parentElement.parentElement.hidden = true;});
  2497. }},
  2498. insStyle: '[id^="list_top"], [id^="list_bottom"] {display: none !important;}',
  2499. pager: {
  2500. type: 1,
  2501. nextL: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]',
  2502. pageE: 'css;table.table > tbody > tr',
  2503. replaceE: 'css;ul.pagination',
  2504. scrollD: 1000
  2505. },
  2506. function: {
  2507. bF: bthaha_bF
  2508. }
  2509. }, // BTHaha
  2510. a4k: {
  2511. host: 'www.a4k.net',
  2512. functionS: function() {if (!indexOF('/subtitle/')) {curSite = DBSite.a4k;};},
  2513. pager: {
  2514. type: 1,
  2515. nextL: 'css;a.pager__item--next',
  2516. pageE: 'css;ul.list > li',
  2517. replaceE: 'css;.pagination',
  2518. scrollD: 1000
  2519. }
  2520. }, // A4k 字幕网(字幕)
  2521. assrt: {
  2522. host: 'assrt.net',
  2523. functionS: function() {if (location.pathname != '/') {curSite = DBSite.assrt;};},
  2524. history: true,
  2525. pager: {
  2526. type: 1,
  2527. nextL: () => getNextP('css;#pl-current+a', 'page=', /page=\d+/),
  2528. pageE: 'css;.resultcard > div:not(#top-banner):not(#bottom-banner):not(.pagelinkcard)',
  2529. insertP: ['css;.pagelinkcard', 1],
  2530. replaceE: 'css;.pagelinkcard',
  2531. scrollD: 1000
  2532. }
  2533. }, // 射手网(字幕)
  2534. subhd: {
  2535. host: 'subhd.tv',
  2536. functionS: function() {if (lp == '/forum/forum') {
  2537. curSite = DBSite.subhd_forum;
  2538. } else if (location.pathname != '/' && location.pathname != '/zu' && !indexOF('/a/') && !indexOF('/d/') && !indexOF('/forum/')) {
  2539. curSite = DBSite.subhd;
  2540. }},
  2541. pager: {
  2542. type: 1,
  2543. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  2544. pageE: 'css;.bg-white.shadow-sm.rounded-3',
  2545. insertP: ['css;nav.clearfix', 1],
  2546. replaceE: 'css;nav.clearfix',
  2547. scrollD: 1000
  2548. }
  2549. }, // SubHD(字幕)
  2550. subhd_forum: {
  2551. pager: {
  2552. type: 1,
  2553. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  2554. pageE: 'css;.bg-white.shadow-sm.rounded-3 > div',
  2555. replaceE: 'css;nav.clearfix',
  2556. scrollD: 800
  2557. }
  2558. }, // SubHD - forum(字幕)
  2559. manben: {
  2560. host: 'www.manben.com',
  2561. functionS: function() {if (indexOF(/\/m\d+/)) {
  2562. if (getCookie('showtype') != '2') {
  2563. document.cookie='showtype=2; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 开启 [垂直阅读] 模式
  2564. location.reload(); // 刷新网页
  2565. }
  2566. curSite = DBSite.mhxqiu;
  2567. }}
  2568. }, // 漫本
  2569. haoman: {
  2570. host: ['www.haoman6.com', 'www.g-lens.com'],
  2571. functionS: function() {
  2572. if (indexOF('/chapter/')) {
  2573. curSite = DBSite.haoman;
  2574. if (location.hostname == 'www.g-lens.com') curSite.function.pF = [0, 'img[data-echo]', 'data-echo']
  2575. } else if (indexOF('/comic/')) {
  2576. if (getCSS('.chapter__more')) getCSS('.chapter__more').click();
  2577. } else if (indexOF('/category/') || indexOF('/search')) {
  2578. curSite = DBSite.haoman_list;
  2579. }},
  2580. insStyle: '.rd-guess, .rd-aside, .page-index__btn {display: none !important;} .rd-article__pic {display: initial !important;} .rd-article__pic > img {margin: 0 auto;display: block;height: auto;min-height: 200px;}',
  2581. history: true,
  2582. pager: {
  2583. type: 1,
  2584. nextL: function() {if (getCSS('a.rd-aside__item.j-rd-next')) return location.origin + getCSS('a.rd-aside__item.j-rd-next').getAttribute('_href')},
  2585. pageE: 'css;.rd-article-wr > div',
  2586. replaceE: 'css;a.last-crumb, .rd-aside',
  2587. interval: 2000,
  2588. scrollD: 2000
  2589. },
  2590. function: {
  2591. bF: src_bF,
  2592. pF: [0, 'img[dta-echo]', 'dta-echo']
  2593. }
  2594. }, // 好漫 6
  2595. haoman_list: {
  2596. pager: {
  2597. type: 1,
  2598. nextL: 'css;a.next',
  2599. pageE: 'css;.cate-comic-list > div',
  2600. replaceE: 'css;#Pagination',
  2601. scrollD: 1000
  2602. },
  2603. function: {
  2604. bF: src_bF,
  2605. pF: [0, 'img[data-original]', 'data-original']
  2606. }
  2607. }, // 好漫 6 - 分类/搜索页
  2608. cartoonmad: {
  2609. host: ['www.cartoonmad.com','www.cartoonmad.cc'],
  2610. functionS: function() {if (indexOF('/comic/')) {
  2611. getCSS('body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child > a').href = 'javascript:void(0);'; // 清理图片上的链接
  2612. curSite = DBSite.cartoonmad;
  2613. } else if (location.pathname != '/') {
  2614. curSite = DBSite.cartoonmad_list;
  2615. }},
  2616. insStyle: 'body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:not(:first-child) {display: none !important;} body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child img {max-width: 100%;height: auto;display: block !important;margin: 0 auto !important;}',
  2617. history: true,
  2618. pager: {
  2619. type: 1,
  2620. nextL: cartoonmad_nextL,
  2621. pageE: 'css;body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child img',
  2622. replaceE: 'css;body > table > tbody > tr:nth-child(2), body > table > tbody > tr:nth-child(5)',
  2623. scrollD: 2000
  2624. }
  2625. }, // 动漫狂
  2626. cartoonmad_list: {
  2627. pager: {
  2628. type: 1,
  2629. nextL: '//a[@class="pages"][contains(text(), "下一頁")]',
  2630. pageE: 'css;td[background="/image/content_box4.gif"]+td > table > tbody > tr',
  2631. replaceE: '//a[@class="pages"]/parent::td/parent::tr | //font[contains(text(), "目前在第")]',
  2632. scrollD: 1000
  2633. }
  2634. }, // 动漫狂 - 分类/搜索页
  2635. manhuacat: {
  2636. host: ['www.manhuacat.com', 'www.maofly.com'],
  2637. functionS: function() {if (indexOF(/\/manga\/\d+\/.+\.html/)) {
  2638. if (getCookie('is_pull') == 'true') { // 强制关闭 [下拉] 模式
  2639. document.cookie='is_pull=false; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 关闭 [下拉] 模式
  2640. location.reload(); // 刷新网页
  2641. }
  2642. setTimeout(manhuacat_init, 100);
  2643. curSite = DBSite.manhuacat;
  2644. } else if (indexOF('/list')) {
  2645. curSite = DBSite.manhuacat_list;
  2646. } else if (indexOF('/search') || indexOF('/update')) {
  2647. curSite = DBSite.manhuacat_search;
  2648. }},
  2649. insStyle: '#left, #right, #pull-load, .loading, .pagination, footer {display: none !important;} .img-content > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}', // 隐藏不需要的元素,调整图片
  2650. history: true,
  2651. pager: {
  2652. type: 4,
  2653. nextL: manhuacat_nextL,
  2654. insertP: ['css;.img-content', 3],
  2655. insertE: manhuacat_insertE,
  2656. replaceE: 'css;.comic-detail > .breadcrumb-bar, .comic-detail >h2.h4, .vg-r-data, body > script:not([src])',
  2657. interval: 2000,
  2658. scrollD: 3000
  2659. }
  2660. }, // 漫画猫
  2661. manhuacat_list: {
  2662. pager: {
  2663. type: 1,
  2664. nextL: '//div[contains(@class, "pagination")]//a[contains(text(), "下一页") or contains(text(), "下页")]',
  2665. pageE: 'css;.comic-main-section > *',
  2666. replaceE: 'css;.pagination',
  2667. scrollD: 1000
  2668. },
  2669. function: {
  2670. bF: src_bF,
  2671. pF: [0, 'img[data-original]', 'data-original']
  2672. }
  2673. }, // 漫画猫 - 分类页
  2674. manhuacat_search: {
  2675. pager: {
  2676. type: 1,
  2677. nextL: '//div[contains(@class, "pagination")]//a[contains(text(), "下一页") or contains(text(), "下页")]',
  2678. pageE: 'css;.comic-main-section .row > div',
  2679. replaceE: 'css;.pagination',
  2680. scrollD: 1000
  2681. }
  2682. }, // 漫画猫 - 搜索页
  2683. manhuatai: {
  2684. host: 'www.manhuatai.net',
  2685. functionS: function() {if (indexOF('/manhua/')) {
  2686. curSite = DBSite.manhuatai;
  2687. } else if (indexOF('/fenlei_') || indexOF('/top_')) {
  2688. curSite = DBSite.manhuatai_list;
  2689. } else if (indexOF('/search')) {
  2690. curSite = DBSite.manhuatai_search;
  2691. }},
  2692. history: true,
  2693. pager: {
  2694. type: 1,
  2695. nextL: '//div[contains(@class, "page")]//a[@href][contains(text(), "下一页") or contains(text(), "下一章")]',
  2696. pageE: 'css;#htmlContent p.img > img',
  2697. replaceE: 'css;.page, .title',
  2698. scrollD: 2000
  2699. }
  2700. }, // 漫画台
  2701. manhuatai_list: {
  2702. pager: {
  2703. type: 1,
  2704. nextL: 'css;#pagelink a.next',
  2705. pageE: 'css;.article-list',
  2706. replaceE: 'css;#pagelink',
  2707. scrollD: 1500
  2708. }
  2709. }, // 漫画台 - 分类页
  2710. manhuatai_search: {
  2711. pager: {
  2712. type: 1,
  2713. nextL: 'css;#pagelink a.next',
  2714. pageE: 'css;#content > table > tbody > tr:not([align])',
  2715. replaceE: 'css;#pagelink',
  2716. scrollD: 1500
  2717. }
  2718. }, // 漫画台 - 搜索页
  2719. manhuapi: {
  2720. host: 'www.manhuapi.com',
  2721. functionS: function() {if (indexOF('/chapter/')) {
  2722. curSite = DBSite.manhuapi;
  2723. } else if (!indexOF(/\/manhua\/\d+\.html/)) {
  2724. curSite = DBSite.manhuapi_list;
  2725. }},
  2726. history: true,
  2727. pager: {
  2728. type: 1,
  2729. nextL: '//div[@class="page"]/a[text()="下一页" or text()="下一章"]',
  2730. pageE: 'css;.mh_list img[src]',
  2731. replaceE: 'css;.page',
  2732. scrollD: 2000
  2733. }
  2734. }, // 漫画皮
  2735. manhuapi_list: {
  2736. pager: {
  2737. type: 1,
  2738. nextL: '//div[@class="pages"]/a[text()="下一页"]',
  2739. pageE: 'css;.cy_list_mh > ul',
  2740. replaceE: 'css;.pages',
  2741. scrollD: 1500
  2742. }
  2743. }, // 漫画皮 - 分类页
  2744. manhuagui: {
  2745. host: 'www.mhgui.com',
  2746. functionS: function() {if (indexOF(/\/comic\/\d+\/\d+\.html/)) {
  2747. if (!getXpath('//li[@class="pfunc"]/a[@class="current" and text()="双击"]')) getXpath('//li[@class="pfunc"]/a[text()="双击"]').click();
  2748. pausePage = false;
  2749. setTimeout(manhuagui_init, 100);
  2750. curSite = DBSite.manhuagui;
  2751. } else if (indexOF('list/') || indexOF('/s/')) {
  2752. curSite = DBSite.manhuagui_list;
  2753. }},
  2754. insStyle: '.sub-btn, .tc {display: none !important;} #mangaBox > img {width: auto !important;height: auto !important;display: block !important;margin: 0 auto !important;}',
  2755. pager: {
  2756. type: 4,
  2757. nextL: manhuagui_nextL,
  2758. pageE: 'css;body > script:not([src])',
  2759. insertP: ['css;#mangaBox', 3],
  2760. insertE: manhuagui_insertE,
  2761. replaceE: 'css;title',
  2762. interval: 4000,
  2763. scrollD: 2500
  2764. }
  2765. }, // 漫画柜
  2766. manhuagui_list: {
  2767. pager: {
  2768. type: 1,
  2769. nextL: '//div[@class="pager"]/a[text()="下一页"]',
  2770. pageE: 'css;.book-result > ul > li, .book-list > ul > li',
  2771. insertP: ['css;.book-result > ul, .book-list > ul', 3],
  2772. replaceE: 'css;.pager',
  2773. scrollD: 1500
  2774. },
  2775. function: {
  2776. bF: src_bF,
  2777. pF: [0, 'img[data-src]', 'data-src']
  2778. }
  2779. }, // 漫画台 - 分类/搜索页
  2780. manhuadb: {
  2781. host: 'www.manhuadb.com',
  2782. functionS: function() {if (indexOF(/\/manhua\/\d+\/.+\.html/)) {
  2783. if (getCSS('img.img-fluid.show-pic')) getCSS('img.img-fluid.show-pic').style.display = 'none'; // 隐藏第一个图片(避免重复)
  2784. setTimeout(manhuadb_init, 100);
  2785. curSite = DBSite.manhuadb;
  2786. } else if (indexOF('/list')) {
  2787. curSite = DBSite.manhuacat_list;
  2788. } else if (indexOF('/search') || indexOF('/update')) {
  2789. curSite = DBSite.manhuacat_search;
  2790. }},
  2791. insStyle: '.row.m-0.pt-3.ad_2_wrap, .row.m-0.ad_1_wrap, .pagination.justify-content-center, #left, #right {display: none !important;}',
  2792. pager: {
  2793. type: 4,
  2794. nextL: manhuadb_nextL,
  2795. pageE: 'css;body > script:not([type]):not([src]), .vg-r-data, ol.links-of-books.num_div',
  2796. insertP: ['css;.pjax-container', 3],
  2797. insertE: manhuadb_insertE,
  2798. interval: 5000,
  2799. scrollD: 3000
  2800. }
  2801. }, // 漫画 DB
  2802. hicomic: {
  2803. host: 'www.hicomic.net',
  2804. functionS: function() {if (indexOF('/chapters/')) {
  2805. setTimeout(hicomic_init, 100);
  2806. curSite = DBSite.hicomic;
  2807. }},
  2808. insStyle: '.content {height: auto !important;} .footer, .left_cursor, .right_cursor, .finish {display: none !important;} .content > img {display: block !important;margin: 0 auto !important;}',
  2809. pager: {
  2810. type: 4,
  2811. nextL: hicomic_nextL,
  2812. insertP: ['css;.content', 3],
  2813. insertE: hicomic_insertE,
  2814. interval: 5000,
  2815. scrollD: 3000
  2816. }
  2817. }, // HiComic (嗨漫画)
  2818. dmzj: {
  2819. host: 'www.dmzj.com',
  2820. functionS: function() {if (indexOF('/view/')) {
  2821. if (getCookie('display_mode') != '1') { // 强制开启 [上下滚动阅读] 模式
  2822. document.cookie='display_mode=1; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 开启 [上下滚动阅读] 模式
  2823. location.reload(); // 刷新网页
  2824. }
  2825. setTimeout(function() {dmzj_init('.comic_wraCon > a > img')}, 100);
  2826. curSite = DBSite.dmzj;
  2827. } else if (indexOF('/category') || indexOF('/update')) {
  2828. curSite = DBSite.dmzj_list;
  2829. } else if (indexOF('/rank')) {
  2830. curSite = DBSite.dmzj_rank;
  2831. }},
  2832. insStyle: 'p.mh_curr_page, .btmBtnBox, .float_code, #floatCode {display: none !important;} .comic_wraCon > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}', // 隐藏中间的页数信息
  2833. history: true,
  2834. pager: {
  2835. type: 4,
  2836. nextL: 'css;span.next > a',
  2837. insertP: ['css;.comic_wraCon', 3],
  2838. insertE: dmzj_insertE,
  2839. replaceE: 'css;.wrap_last_mid, .wrap_last_head',
  2840. interval: 2000,
  2841. scrollD: 3000
  2842. }
  2843. }, // 动漫之家 - 原创
  2844. dmzj_list: {
  2845. insStyle: '.wrap_mhlist_l.con_left, .wrap_list {height: auto!important;}',
  2846. pager: {
  2847. type: 1,
  2848. nextL: 'css;a.pg_next',
  2849. pageE: 'css;ul.list_con_li > li',
  2850. replaceE: 'css;.page',
  2851. scrollD: 1000
  2852. }
  2853. }, // 动漫之家 - 原创 - 分类页
  2854. dmzj_rank: {
  2855. insStyle: '.wrap_mhlist_l.con_left {height: auto!important;}',
  2856. pager: {
  2857. type: 1,
  2858. nextL: 'css;a.pg_next',
  2859. pageE: 'css;.ph_r_con_li > div:not(.ad_column)',
  2860. replaceE: 'css;.page',
  2861. scrollD: 1000
  2862. }
  2863. }, // 动漫之家 - 原创 - 排行榜
  2864. dmzj_manhua: {
  2865. host: 'manhua.dmzj.com',
  2866. functionS: function() {if (indexOF(/\/\d+\.shtml/)) {
  2867. let chapterScroll = getCSS('#qiehuan_txt') // 强制为 [上下滚动阅读] 模式
  2868. if (chapterScroll && chapterScroll.textContent === '切换到上下滚动阅读') {chapterScroll.click();}
  2869. setTimeout(function() {dmzj_init('#center_box > .inner_img img[src]')}, 100);
  2870. curSite = DBSite.dmzj_manhua;
  2871. } else if (indexOF('/update')) {
  2872. curSite = DBSite.dmzj_manhua_update;
  2873. }},
  2874. insStyle: 'p.curr_page, .btmBtnBox, .float_code, #floatCode {display: none !important;} #center_box > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}', // 隐藏中间的页数信息
  2875. history: true,
  2876. pager: {
  2877. type: 4,
  2878. nextL: 'css;#next_chapter',
  2879. insertP: ['css;#center_box', 3],
  2880. insertE: dmzj_manhua_insertE,
  2881. replaceE: 'css;.display_graybg',
  2882. interval: 2000,
  2883. scrollD: 3000
  2884. }
  2885. }, // 动漫之家 - 日漫
  2886. dmzj_manhua_update: {
  2887. pager: {
  2888. type: 1,
  2889. nextL: '//div[@class="pages"]/a[contains(text(), "下一页")]',
  2890. pageE: 'css;.newpic_content > *:not(.pages)',
  2891. replaceE: 'css;.pages',
  2892. scrollD: 1000
  2893. }
  2894. }, //动漫之家 - 日漫 - 最新更新
  2895. acgn: {
  2896. host: 'comic.acgn.cc',
  2897. functionS: function() {
  2898. if (indexOF('/view-')) {
  2899. curSite = DBSite.acgn;
  2900. acgn_aF();
  2901. } else if (indexOF('/cate-') || indexOF('/pinyin-')) {
  2902. curSite = DBSite.acgn_list;
  2903. }
  2904. },
  2905. insStyle: '.img1 {cursor: initial !important;}',
  2906. history: true,
  2907. pager: {
  2908. type: 1,
  2909. nextL: 'css;#next_chapter',
  2910. pageE: 'css;.pic[_src]',
  2911. replaceE: 'css;[class^="display_"]',
  2912. interval: 2000,
  2913. scrollD: 2000
  2914. },
  2915. function: {
  2916. aF: acgn_aF
  2917. }
  2918. }, // 动漫戏说
  2919. acgn_list: {
  2920. pager: {
  2921. type: 1,
  2922. nextL: 'css;a[rel="next"]',
  2923. pageE: 'css;ul#display > li',
  2924. replaceE: 'css;#pagination',
  2925. scrollD: 1000
  2926. }
  2927. }, // 动漫戏说 - 分类页
  2928. copymanga: {
  2929. host: /copymanga\./,
  2930. functionS: function() {if (indexOF('/chapter/')) {
  2931. curSite = DBSite.copymanga;
  2932. } else if (indexOF('/comics')) {
  2933. curSite = DBSite.copymanga_list;
  2934. }},
  2935. insStyle: '.upMember, .comicContainerAds, .footer {display: none !important;} body, html {height: auto !important;}',
  2936. history: true,
  2937. iframe: true,
  2938. pager: {
  2939. type: 5,
  2940. nextL: 'css;.comicContent-next > a',
  2941. insStyle: 'h4.header, h4.header +div[style*="fixed"] {display: none !important;}',
  2942. scrollD: 3000
  2943. }
  2944. }, // 拷贝漫画
  2945. copymanga_list: {
  2946. pager: {
  2947. type: 1,
  2948. nextL: 'css;li.next > a',
  2949. pageE: 'css;.exemptComic-box > div',
  2950. replaceE: 'css;ul.page-all',
  2951. scrollD: 1500
  2952. },
  2953. function: {
  2954. bF: src_bF,
  2955. pF: [0, 'img[data-src]', 'data-src']
  2956. }
  2957. }, // 拷贝漫画 - 分类页
  2958. mhxqiu: {
  2959. host: /\.mhxqiu/,
  2960. functionS: function() {if (indexOF(/\/\d+\.html/)) { // 阅读页
  2961. curSite = DBSite.mhxqiu;
  2962. } else if (indexOF(/\/\d+\/$/)) { // 目录页
  2963. setTimeout(function(){if (getCSS('#zhankai')) getCSS('#zhankai').click();}, 500)
  2964. } else if (indexOF(/\/(sort|rank)\//)) { // 分类页
  2965. curSite = DBSite.mhxqiu_list;
  2966. }},
  2967. insStyle: '.imgFloat_1, .imgFloat_2, .main_control, span.comic-ft {display: none !important;} html, body, #mainView {height: auto !important;} body.view .main ul.comic-contain li{margin:0 auto !important;} .comic-contain .loaded{box-shadow: none !important;}',
  2968. history: true,
  2969. pager: {
  2970. type: 4,
  2971. nextL: 'css;#mainControlNext',
  2972. insertP: ['css;#comicContain', 3],
  2973. insertE: mhxqiu_insertE,
  2974. replaceE: 'css;.main_control, h1.chaptername_title, span.title-comicHeading',
  2975. interval: 4000,
  2976. scrollD: 3000
  2977. }
  2978. }, // 漫画星球
  2979. mhxqiu_list: {
  2980. pager: {
  2981. type: 1,
  2982. nextL: '//div[@class="NewPages"]//a[contains(text(), "下一页")]',
  2983. pageE: 'css;.cy_list_mh > ul',
  2984. replaceE: 'css;.NewPages',
  2985. scrollD: 1000
  2986. }
  2987. }, // 漫画星球 - 分类页
  2988. fffdm: {
  2989. host: 'manhua.fffdm.com',
  2990. functionS: function() {if (location.pathname.split('/').length === 4) {curSite = DBSite.fffdm;}},
  2991. insStyle: '#footer, #header {display: none !important;} #mhimg0 img {display: block !important;margin: 0 auto !important;}',
  2992. history: true,
  2993. pager: {
  2994. type: 4,
  2995. nextL: '//a[contains(text(), "下一页") or contains(text(), "下一頁") or contains(text(), "下一话") or contains(text(), "下一話")]',
  2996. insertP: ['css;#mhimg0', 3],
  2997. insertE: fffdm_insertE,
  2998. replaceE: 'css;.navigation, #weizhi, h1',
  2999. scrollD: 2000
  3000. }
  3001. }, // 风之动漫
  3002. baozimh: {
  3003. host: ['www.webmota.com', 'cn.webmota.com', 'cn.baozimh.com'],
  3004. functionS: function() {
  3005. if (indexOF('/chapter/')) {
  3006. curSite = DBSite.baozimh;
  3007. } else if (indexOF('/comic/')) {
  3008. if (getCSS('#button_show_all_chatper')) getCSS('#button_show_all_chatper').click();
  3009. }},
  3010. insStyle: '#footer, #header {display: none !important;} .header, .bottom-bar {opacity: 0.3;}',
  3011. history: true,
  3012. pager: {
  3013. type: 1,
  3014. nextL: 'css;.next_chapter > a',
  3015. pageE: 'css;.comic-contain > amp-img',
  3016. replaceE: 'css;.next_chapter, .bottom-bar, .header .title',
  3017. scrollD: 2000
  3018. }
  3019. }, // 包子漫画
  3020. leyuman: {
  3021. host: 'www.leyuman.com',
  3022. functionS: function() {if (indexOF(/\/comic\/\d+\/\d+\.html/)) {
  3023. curSite = DBSite.leyuman;
  3024. setTimeout(leyuman_init, 100);
  3025. } else if (indexOF(/\/comic\/\d+\.html/)) {
  3026. setTimeout(function(){if (getCSS('#read-more')) getCSS('#read-more').click();}, 500)
  3027. } else {
  3028. curSite = DBSite.leyuman_list;
  3029. }},
  3030. insStyle: '.mh_select, .mh_comicpic > p, mh_headpager {display: none !important;} .mh_comicpic > img{width: 100% !important; height: auto !important;}',
  3031. history: true,
  3032. pager: {
  3033. type: 4,
  3034. nextL: 'css;#xurl',
  3035. insertP: ['css;.mh_comicpic', 3],
  3036. insertE: leyuman_insertE,
  3037. replaceE: 'css;.mh_headpager, .mh_readtitle',
  3038. interval: 3000,
  3039. scrollD: 3000
  3040. }
  3041. }, // 乐语漫画
  3042. leyuman_list: {
  3043. pager: {
  3044. type: 1,
  3045. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  3046. pageE: 'css;.works_recommend.classification_works > ul',
  3047. replaceE: 'css;.paging',
  3048. scrollD: 1000
  3049. },
  3050. function: {
  3051. bF: src_bF,
  3052. pF: [0, 'img[data-src]', 'data-src']
  3053. }
  3054. }, // 乐语漫画 - 分类页
  3055. _77mh: {
  3056. host: 'www.77mh.cc',
  3057. functionS: function() {if (indexOF(/\/\d+\.html/)) {
  3058. curSite = DBSite._77mh;
  3059. setTimeout(_77mh_init, 100);
  3060. } else if (indexOF('/colist_')) {
  3061. setTimeout(function(){if (getCSS('#listmore1, .listmore')) getCSS('#listmore1, .listmore').click();}, 500)
  3062. } else {
  3063. curSite = DBSite._77mh_list;
  3064. }},
  3065. insStyle: '.page_num, #bdtopbot {display: none !important;} #comicImg > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}',
  3066. history: true,
  3067. pager: {
  3068. type: 4,
  3069. nextL: _77mh_nextL,
  3070. insertP: ['css;#comicImg', 3],
  3071. insertE: _77mh_insertE,
  3072. interval: 3000,
  3073. scrollD: 2000
  3074. }
  3075. }, // 新新漫画
  3076. _77mh_list: {
  3077. pager: {
  3078. type: 1,
  3079. nextL: '//div[@class="pages_s"]/a[text()="下一页"]',
  3080. pageE: 'css;.ar_list_co > ul > li',
  3081. replaceE: 'css;.pages_s',
  3082. scrollD: 1000
  3083. }
  3084. }, // 新新漫画 - 分类页
  3085. _77mh_search: {
  3086. host: 'so.77mh.cc',
  3087. pager: {
  3088. type: 1,
  3089. nextL: 'css;a.next',
  3090. pageE: 'css;.ar_list_co > ul > dl',
  3091. replaceE: 'css;.pages_s',
  3092. scrollD: 1000
  3093. }
  3094. }, // 新新漫画 - 搜索页
  3095. gufengmh: {
  3096. host: /gufengmh/,
  3097. functionS: function() {if (indexOF(/\/\d+.+\.html/)) {
  3098. let chapterScroll = getCSS('#chapter-scroll') // 强制为 [下拉阅读] 模式
  3099. if (chapterScroll && chapterScroll.className === '') {chapterScroll.click();}
  3100. curSite = DBSite.gufengmh;
  3101. } else if (indexOF(/\/(update|list|search)/)) {
  3102. curSite = DBSite.gufengmh_list;
  3103. }},
  3104. insStyle: 'p.img_info {display: none !important;}', // 隐藏中间的页数信息
  3105. pager: {
  3106. type: 4,
  3107. nextL: gufengmh_nextL,
  3108. pageE: 'css;body > script:first-child',
  3109. insertP: ['css;#images', 3],
  3110. insertE: gufengmh_insertE,
  3111. interval: 5000,
  3112. scrollD: 4000
  3113. }
  3114. }, // 古风漫画网
  3115. gufengmh_list: {
  3116. pager: {
  3117. type: 1,
  3118. nextL: 'css;li.next > a',
  3119. pageE: 'css;ul.book-list > li',
  3120. replaceE: 'css;ul.pagination',
  3121. scrollD: 1000
  3122. }
  3123. }, // 古风漫画网 - 分类页
  3124. szcdmj: {
  3125. host: 'www.szcdmj.com',
  3126. functionS: function() {
  3127. if (indexOF('/szcchapter/')) {
  3128. curSite = DBSite.szcdmj;
  3129. } else if (indexOF('/szcbook/')) {
  3130. if (getCSS('#detail-list-more')) getCSS('#detail-list-more').click();
  3131. } else if (lp == '/szcbolist' || lp == '/update') {
  3132. curSite = DBSite.szcdmj_list;
  3133. }},
  3134. insStyle: '.header {opacity: 0.3 !important;}',
  3135. history: true,
  3136. pager: {
  3137. type: 1,
  3138. nextL: '//div[@class="fanye"][1]/a[@href][text()="下一页" or text()="下一话"]',
  3139. pageE: 'css;.comicpage > div',
  3140. insertP: ['css;.comicpage', 3],
  3141. replaceE: 'css;.fanye,h1.title',
  3142. scrollD: 2000
  3143. },
  3144. function: {
  3145. bF: src_bF,
  3146. pF: [0, 'img[data-original]', 'data-original']
  3147. }
  3148. }, // 砂之船动漫家
  3149. szcdmj_list: {
  3150. pager: {
  3151. type: 1,
  3152. nextL: 'css;#nextPage',
  3153. pageE: 'css;ul.mh-list > li',
  3154. replaceE: 'css;.pagination',
  3155. scrollD: 1000
  3156. }
  3157. }, // 砂之船动漫家 - 分类/搜索页
  3158. mangabz: {
  3159. host: ['mangabz.com', 'www.mangabz.com'],
  3160. functionS: function() {if (indexOF(/\/m\d+/)) {
  3161. setTimeout(mangabz_init, 1500);
  3162. curSite = DBSite.mangabz;
  3163. } else if (indexOF(/\/\d+bz\//)) {
  3164. if (getCSS('.detail-list-form-more')) getCSS('.detail-list-form-more').click();
  3165. } else if (indexOF('/manga-list') || lp == '/search') {
  3166. curSite = DBSite.mangabz_list;
  3167. }},
  3168. insStyle: 'body > .container > div:not([id]) {display: none !important;} .top-bar {opacity: 0.3 !important;} #cp_img > img{display: block !important;margin: 0 auto !important;width: auto !important; height: auto !important;}',
  3169. hiddenPN: true,
  3170. history: true,
  3171. pager: {
  3172. type: 4,
  3173. nextL: mangabz_nextL,
  3174. insertP: ['css;#cp_img', 3],
  3175. insertE: mangabz_insertE,
  3176. replaceE: 'css;p.top-title, body > .container > div:not([id])',
  3177. interval: 500,
  3178. scrollD: 2000
  3179. }
  3180. }, // Mangabz 漫画
  3181. mangabz_list: {
  3182. pager: {
  3183. type: 1,
  3184. nextL: '//div[@class="page-pagination"]//a[contains(text(), ">")]',
  3185. pageE: 'css;ul.mh-list > li',
  3186. replaceE: 'css;.page-pagination',
  3187. scrollD: 800
  3188. }
  3189. }, // Mangabz 漫画 - 分类/搜索页
  3190. xmanhua: {
  3191. host: ['xmanhua.com', 'www.xmanhua.com'],
  3192. functionS: function() {if (indexOF(/\/m\d+/)) {
  3193. setTimeout(mangabz_init, 1500);
  3194. curSite = DBSite.xmanhua;
  3195. } else if (indexOF(/\/\d+xm\//)) {
  3196. if (getCSS('.detail-list-form-more')) getCSS('.detail-list-form-more').click();
  3197. } else if (indexOF('/manga-list') || lp == '/search') {
  3198. curSite = DBSite.xmanhua_list;
  3199. }},
  3200. insStyle: 'a.reader-bottom-page {display: none !important;} .header, .reader-bottom {opacity: 0.3 !important;} #cp_img > img{display: block !important;margin: 0 auto !important;width: auto !important; height: auto !important;}',
  3201. hiddenPN: true,
  3202. history: true,
  3203. pager: {
  3204. type: 4,
  3205. nextL: xmanhua_nextL,
  3206. insertP: ['css;#cp_img', 3],
  3207. insertE: xmanhua_insertE,
  3208. replaceE: 'css;.reader-title, body > .container > div:not([id])',
  3209. interval: 500,
  3210. scrollD: 2500
  3211. }
  3212. }, // Xmanhua 漫画
  3213. xmanhua_list: {
  3214. pager: {
  3215. type: 1,
  3216. nextL: '//div[@class="page-pagination"]//a[contains(text(), ">")]',
  3217. pageE: 'css;ul.mh-list > li',
  3218. replaceE: 'css;.page-pagination',
  3219. scrollD: 1000
  3220. }
  3221. }, // Xmanhua 漫画 - 分类/搜索页
  3222. cocomanga: {
  3223. host: 'www.cocomanga.com',
  3224. functionS: function() {if (indexOF('.html')) {
  3225. if (!(getCookie('mh_readmode') === '' || getCookie('mh_readmode') === '3')) {
  3226. document.cookie='mh_readmode=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'; // 强制开启自带的无缝翻页功能
  3227. location.reload(); // 刷新网页
  3228. }
  3229. setTimeout(cocomanga_init, 500);
  3230. curSite = DBSite.cocomanga;
  3231. } else if (indexOF(/\/\d+\/$/)) {
  3232. setTimeout(function(){if (getCSS('a.website-display-all')) getCSS('a.website-display-all').click();}, 300)
  3233. } else if (lp == '/show') {
  3234. curSite = DBSite.cocomanga_list;
  3235. } else if (lp == '/search') {
  3236. curSite = DBSite.cocomanga_search;
  3237. }},
  3238. insStyle: '.mh_readend, .mh_footpager, .mh_readmode {display: none !important;} .mh_comicpic img {cursor: unset !important;} .mh_comicpic img {min-height: 150px;}',
  3239. history: true,
  3240. pager: {
  3241. type: 4,
  3242. nextL: '//a[contains(@class, "read_page_link") and contains(string(), "下一章")][not(contains(@href, "javascript"))]',
  3243. insertP: ['css;#mangalist', 3],
  3244. insertE: cocomanga_insertE,
  3245. replaceE: 'css;.mh_readtitle, .mh_headpager > a.mh_prevbook, .mh_readend',
  3246. interval: 1000,
  3247. scrollD: 2500
  3248. }
  3249. }, // COCOMANGA 漫画
  3250. cocomanga_list: {
  3251. pager: {
  3252. type: 1,
  3253. nextL: () => getNextP('css;.fed-page-info a.fed-btns-green+a[onclick]', 'page=', /page=\d+/),
  3254. pageE: 'css;ul.fed-list-info > li',
  3255. replaceE: 'css;.fed-page-info',
  3256. scrollD: 1000
  3257. },
  3258. function: {
  3259. bF: src_bF,
  3260. pF: [1, 'a[data-original]', 'data-original']
  3261. }
  3262. }, // COCOMANGA 漫画 - 分类页
  3263. cocomanga_search: {
  3264. pager: {
  3265. type: 1,
  3266. nextL: () => getNextP('css;.fed-page-info a.fed-btns-green+a[onclick]', 'page=', /page=\d+/),
  3267. pageE: 'css;dl.fed-deta-info',
  3268. replaceE: 'css;.fed-page-info',
  3269. scrollD: 1000
  3270. },
  3271. function: {
  3272. bF: src_bF,
  3273. pF: [1, 'a[data-original]', 'data-original']
  3274. }
  3275. }, // COCOMANGA 漫画 - 搜索页
  3276. qidian: {
  3277. host: 'www.qidian.com',
  3278. functionS: function() {if (indexOF('/all/')) {curSite = DBSite.qidian;}},
  3279. pager: {
  3280. type: 1,
  3281. nextL: 'css;a[class*="pagination-next"]',
  3282. pageE: 'css;ul.all-img-list > li',
  3283. replaceE: 'css;#page-container',
  3284. scrollD: 900
  3285. }
  3286. }, // 起点小说
  3287. qidian_read: {
  3288. host: 'read.qidian.com',
  3289. insStyle: '.admire-wrap {display: none !important;}',
  3290. history: true,
  3291. pager: {
  3292. type: 1,
  3293. nextL: 'css;a[id$="chapterNext"]',
  3294. pageE: 'css;.main-text-wrap > div:not(.admire-wrap)',
  3295. replaceE: 'css;.chapter-control',
  3296. scrollD: 900
  3297. }
  3298. }, // 起点小说 - 阅读页
  3299. baoshuu: {
  3300. host: 'www.baoshuu.com',
  3301. functionS: function() {if (indexOF('/TXT/list')) curSite = DBSite.baoshuu;},
  3302. pager: {
  3303. type: 1,
  3304. nextL: '//div[@class="listl2"]//a[text()="下一页"]',
  3305. pageE: 'css;.listl2 > ul > li',
  3306. replaceE: 'css;.listl2 > dl',
  3307. scrollD: 900
  3308. }
  3309. }, // 宝书网
  3310. baoshuu_m: {
  3311. host: 'm.baoshuu.com',
  3312. functionS: function() {if (indexOF('/TXT/list')) curSite = DBSite.baoshuu_m;},
  3313. pager: {
  3314. type: 1,
  3315. nextL: '//div[@class="man_first"]//a[text()="下一页"]',
  3316. pageE: 'css;.man_first > ul > li',
  3317. replaceE: 'css;.man_first > dl',
  3318. scrollD: 900
  3319. }
  3320. }, // 宝书网- 手机版
  3321. yushubo: {
  3322. host: 'www.yushubo.com',
  3323. functionS: function() {if (indexOF('/read_')) {
  3324. curSite = DBSite.yushubo;
  3325. } else if (indexOF('/lists/')) {
  3326. curSite = DBSite.yushubo_list;
  3327. } else if (indexOF('/all')) {
  3328. curSite = DBSite.yushubo_all;
  3329. }},
  3330. insStyle: '.readbg.mt10 {display: none !important;}',
  3331. history: true,
  3332. pager: {
  3333. type: 1,
  3334. nextL: '//div[contains(@class, "articlebtn")]/a[contains(text(), "下一页") or contains(text(), "下一章")]',
  3335. pageE: 'css;#BookText',
  3336. insertP: ['css;#BookText', 6],
  3337. replaceE: 'css;.articlebtn',
  3338. scrollD: 1000
  3339. }
  3340. }, // 御书网
  3341. yushubo_list: {
  3342. pager: {
  3343. type: 1,
  3344. nextL: 'id("pager")//a[contains(text(), "下一页")]',
  3345. pageE: 'css;.books-list > ul > li',
  3346. replaceE: 'css;#pager',
  3347. scrollD: 1000
  3348. }
  3349. }, // 御书网 - 分类页
  3350. yushubo_all: {
  3351. pager: {
  3352. type: 1,
  3353. nextL: 'id("pager")//a[contains(text(), "下一页")]',
  3354. pageE: 'css;ul.search-list > li',
  3355. replaceE: 'css;#pager',
  3356. scrollD: 1000
  3357. }
  3358. }, // 御书网 - 书库页
  3359. xineyby: {
  3360. host: 'www.xineyby.com',
  3361. functionS: function() {if (indexOF('/read/')) {
  3362. curSite = DBSite.xineyby;
  3363. } else if (indexOF(/\/(list|quanben|search)/)) {
  3364. curSite = DBSite.xineyby_list;
  3365. }},
  3366. history: true,
  3367. pager: {
  3368. type: 1,
  3369. nextL: 'id("footlink")/a[contains(text(), "下一页")]',
  3370. pageE: 'css;#contents',
  3371. insertP: ['css;#contents', 6],
  3372. replaceE: 'css;#footlink, #amain dd h1',
  3373. scrollD: 900
  3374. }
  3375. }, // 无错小说网
  3376. xineyby_list: {
  3377. pager: {
  3378. type: 1,
  3379. nextL: 'css;#pagelink a.next',
  3380. pageE: 'css;#content > dd tbody > tr:not(:first-child)',
  3381. insertP: ['css;#content > dd tbody', 3],
  3382. replaceE: 'css;#pagelink',
  3383. scrollD: 900
  3384. }
  3385. }, // 无错小说网 - 分类/搜索页
  3386. linovel: {
  3387. host: 'www.linovel.net',
  3388. functionS: function() {if (indexOF(/\/book\/\d+\/.+\.html/)) {
  3389. insStyle('.reward-section {display: none !important;}');
  3390. } else if (indexOF('/cat/')) {
  3391. curSite = DBSite.linovel;
  3392. }},
  3393. pager: {
  3394. type: 1,
  3395. nextL: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]',
  3396. pageE: 'css;.rank-book-list > div',
  3397. replaceE: 'css;ul.pagination',
  3398. scrollD: 1000
  3399. }
  3400. }, // 轻之文库
  3401. _23qb: {
  3402. host: 'www.23qb.net',
  3403. functionS: function() {if (indexOF(/\/book\/\d+\/.+\.html/)) {
  3404. curSite = DBSite._23qb;
  3405. } else if (location.pathname != '/' && !indexOF(/\/book\/\d+\//)) {
  3406. curSite = DBSite._23qb_list;
  3407. }},
  3408. pager: {
  3409. type: 1,
  3410. nextL: () => (location.origin + ReadParams.url_next),
  3411. pageE: 'id("mlfy_main_text")/* | //script[contains(text(), "ReadParams")]',
  3412. insertP: ['css;#mlfy_main_text', 3],
  3413. replaceE: 'css;title',
  3414. scriptT: 2,
  3415. scrollD: 1500
  3416. }
  3417. }, // 铅笔小说
  3418. _23qb_list: {
  3419. pager: {
  3420. type: 1,
  3421. nextL: 'css;.pages a.next, .pages > strong+a',
  3422. pageE: 'css;#sitebox > dl',
  3423. replaceE: 'css;.pages',
  3424. scrollD: 1000
  3425. },
  3426. function: {
  3427. bF: src_bF,
  3428. pF: [0, 'img[_src]', '_src']
  3429. }
  3430. }, // 铅笔小说 - 分类页
  3431. linovelib: {
  3432. host: 'www.linovelib.com',
  3433. functionS: function() {if (indexOF(/\/novel\/\d+\/.+\.html/)) {
  3434. curSite = DBSite.linovelib;
  3435. } else if (indexOF('/wenku/')) {
  3436. curSite = DBSite.linovelib_wenku;
  3437. } else if (indexOF('/top/') || indexOF('/topfull/') || indexOF('toplist.php')) {
  3438. curSite = DBSite.linovelib_top;
  3439. }},
  3440. history: true,
  3441. pager: {
  3442. type: 1,
  3443. nextL: '//p[@class="mlfy_page"]/a[contains(text(), "下一页") or contains(text(), "下一章")]',
  3444. pageE: 'css;#mlfy_main_text > *',
  3445. replaceE: 'css;p.mlfy_page',
  3446. scrollD: 1000
  3447. }
  3448. }, // 哔哩轻小说
  3449. linovelib_wenku: {
  3450. pager: {
  3451. type: 1,
  3452. nextL: 'css;#pagelink > a.next',
  3453. pageE: 'css;.store_collist > div.bookbox',
  3454. replaceE: 'css;#pagelink',
  3455. scrollD: 1000
  3456. },
  3457. function: {
  3458. bF: src_bF,
  3459. pF: [0, 'img[data-original]', 'data-original']
  3460. }
  3461. }, // 哔哩轻小说 - 文库
  3462. linovelib_top: {
  3463. pager: {
  3464. type: 1,
  3465. nextL: 'css;#pagelink > a.next',
  3466. pageE: 'css;.rankpage_box > div.rank_d_list',
  3467. replaceE: 'css;#pagelink',
  3468. scrollD: 1000
  3469. },
  3470. function: {
  3471. bF: src_bF,
  3472. pF: [0, 'img[data-original]', 'data-original']
  3473. }
  3474. }, // 哔哩轻小说 - 全本
  3475. linovelib_w: {
  3476. host: 'w.linovelib.com',
  3477. functionS: function() {if (indexOF(/\/novel\/\d+\/.+\.html/)) {
  3478. curSite = DBSite.linovelib_w;
  3479. } else if (indexOF('/wenku/') || indexOF('/sa/')) {
  3480. curSite = DBSite.linovelib_w_wenku;
  3481. }},
  3482. insStyle: 'body {min-height: 1000px;}',
  3483. history: true,
  3484. pager: {
  3485. type: 1,
  3486. nextL: function() {if (ReadParams) {return (location.origin + ReadParams.url_next)}; return ''},
  3487. pageE: '//body/script[contains(text(), "var ReadParams")] | id("apage")/div',
  3488. insertP: ['css;#apage', 3],
  3489. scriptT: 2,
  3490. scrollD: 1000
  3491. }
  3492. }, // 哔哩轻小说 (手机版)
  3493. linovelib_w_wenku: {
  3494. pager: {
  3495. type: 1,
  3496. nextL: 'css;#pagelink > strong+a ,#pagelink a.next',
  3497. pageE: 'css;ol.book-ol > li',
  3498. replaceE: 'css;#pagelink',
  3499. scrollD: 1000
  3500. },
  3501. function: {
  3502. bF: src_bF,
  3503. pF: [0, 'img[data-original]', 'data-original']
  3504. }
  3505. }, // 哔哩轻小说 (手机版) - 文库
  3506. _423down: {
  3507. host: 'www.423down.com',
  3508. functionS: function() {if (!indexOF('.html')) curSite = DBSite._423down;},
  3509. pager: {
  3510. type: 1,
  3511. nextL: '//div[@class="paging"]//a[contains(text(),"下一页")]',
  3512. pageE: 'css;div.content-wrap ul.excerpt > li',
  3513. replaceE: 'css;div.paging',
  3514. scrollD: 2000
  3515. }
  3516. }, // 423Down
  3517. iao_su: {
  3518. host: 'iao.su',
  3519. pager: {
  3520. type: 1,
  3521. nextL: 'css;li.next > a',
  3522. pageE: 'css;#index > article, #archive > article',
  3523. insertP: ['css;ol.page-navigator', 1],
  3524. replaceE: 'css;ol.page-navigator',
  3525. scriptT: 3,
  3526. scrollD: 1000
  3527. }
  3528. }, // 不死鸟
  3529. sharerw: {
  3530. host: 'www.sharerw.com',
  3531. functionS: function() {if (!indexOF('.html')) {if (lp == '/search.php') {curSite = DBSite.sharerw_search;} else {curSite = DBSite.sharerw;};};},
  3532. pager: {
  3533. type: 1,
  3534. nextL: 'css;span.next > a',
  3535. pageE: 'css;.new-post > article',
  3536. replaceE: 'css;.pagebar',
  3537. scrollD: 1500
  3538. }
  3539. }, // 分享者
  3540. sharerw_search: {
  3541. pager: {
  3542. type: 1,
  3543. nextL: 'css;span.next > a',
  3544. pageE: 'css;#mainbox > article',
  3545. replaceE: 'css;.pagebar',
  3546. scrollD: 1500
  3547. }
  3548. }, // 分享者 - 搜索页
  3549. extfans: {
  3550. host: 'www.extfans.com',
  3551. functionS: function() {if (location.pathname != '/') {curSite = DBSite.extfans;}},
  3552. pager: {
  3553. type: 1,
  3554. nextL: 'css;.page a[data-page="next"]',
  3555. pageE: 'css;.side-left > ul[class*="-list"] > li',
  3556. replaceE: 'css;.page',
  3557. scrollD: 2000
  3558. }
  3559. }, // 扩展迷
  3560. chrome_zzzmh: {
  3561. host: 'chrome.zzzmh.cn',
  3562. pager: {
  3563. type: 2,
  3564. nextL: 'css;button.more-btn',
  3565. interval: 1000,
  3566. scrollD: 1500
  3567. }
  3568. }, // 极简插件
  3569. appinn: {
  3570. host: 'www.appinn.com',
  3571. pager: {
  3572. type: 1,
  3573. nextL: 'css;a.next.page-numbers',
  3574. pageE: 'css;section#latest-posts > article',
  3575. replaceE: 'css;div.nav-links',
  3576. scrollD: 1500
  3577. }
  3578. }, // 小众软件
  3579. isharepc: {
  3580. host: 'www.isharepc.com',
  3581. pager: {
  3582. type: 1,
  3583. nextL: 'css;a.next',
  3584. pageE: 'css;.content > div',
  3585. replaceE: 'css;nav.pagination',
  3586. scrollD: 1000
  3587. }
  3588. }, // 乐软博客
  3589. ghxi: {
  3590. host: 'www.ghxi.com',
  3591. functionS: function() {if (lp == '/' && !location.search) {curSite = DBSite.ghxi;} else {curSite = DBSite.ghxi_list;}},
  3592. pager: {
  3593. type: 2,
  3594. nextL: 'css;.load-more',
  3595. interval: 1000,
  3596. scrollD: 5000
  3597. }
  3598. }, // 果核剥壳 - 首页
  3599. ghxi_list: {
  3600. pager: {
  3601. type: 1,
  3602. nextL: 'css;a.next',
  3603. pageE: 'css;ul.post-loop > li',
  3604. replaceE: 'css;ul.pagination',
  3605. scrollD: 1500
  3606. },
  3607. function: {
  3608. bF: src_bF,
  3609. pF: [0, 'img[data-original]', 'data-original']
  3610. }
  3611. }, // 果核剥壳 - 分类/搜索页
  3612. sixyin: {
  3613. host: 'www.sixyin.com',
  3614. functionS: function() {if (lp == '/' && location.search === '') { // 首页
  3615. curSite = DBSite.sixyin;
  3616. } else if (!indexOF('.html')) { // 分类页
  3617. curSite = DBSite.sixyin_list;
  3618. }},
  3619. pager: {
  3620. type: 2,
  3621. nextL: 'css;.load-more',
  3622. nextHTML: '点击查看更多',
  3623. scrollD: 1500
  3624. }
  3625. }, // 六音软件 - 首页
  3626. sixyin_list: {
  3627. pager: {
  3628. type: 1,
  3629. nextL: 'css;a.next',
  3630. pageE: 'css;ul.post-loop > li',
  3631. replaceE: 'css;ul.pagination',
  3632. scrollD: 1500
  3633. }
  3634. }, // 六音软件 - 分类页
  3635. apprcn: {
  3636. host: ['www.apprcn.com', 'free.apprcn.com'],
  3637. functionS: function() {if (lp == '/' || indexOF('/category/')) {curSite = DBSite.apprcn;}},
  3638. pager: {
  3639. type: 1,
  3640. nextL: '//div[@class="pagination"]//a[contains(text(), "Next")]',
  3641. pageE: 'css;article.article',
  3642. replaceE: 'css;.pagination',
  3643. scrollD: 1000
  3644. }
  3645. }, // 反斗软件
  3646. weidown: {
  3647. host: 'www.weidown.com',
  3648. functionS: function() {if (indexOF('/search/')) { //搜索页
  3649. curSite = DBSite.weidown_search;
  3650. } else if (indexOF('/special')) { // 专题页
  3651. curSite = DBSite.weidown_special;
  3652. } else {
  3653. curSite = DBSite.weidown;
  3654. }},
  3655. pager: {
  3656. type: 1,
  3657. nextL: 'css;a.nextpage',
  3658. pageE: 'css;.articleWrapper > .itemArticle, .articleWrapper > .richTextItem.search',
  3659. insertP: ['css;.articleWrapper', 3],
  3660. replaceE: 'css;#pageGroup',
  3661. scrollD: 1500
  3662. }
  3663. }, // 微当下载
  3664. weidown_search: {
  3665. pager: {
  3666. type: 1,
  3667. nextL: 'css;a.nextpage',
  3668. pageE: 'css;.articleListWrapper > .richTextItem.search',
  3669. replaceE: 'css;#pageGroup',
  3670. scrollD: 700
  3671. }
  3672. }, // 微当下载 - 搜索页
  3673. weidown_special: {
  3674. pager: {
  3675. type: 1,
  3676. nextL: 'css;a.nextpage',
  3677. pageE: 'css;.special > .item, .articleWrapper > div',
  3678. insertP: ['css;.special, .articleWrapper', 3],
  3679. replaceE: 'css;#pageGroup',
  3680. scrollD: 700
  3681. }
  3682. }, // 微当下载 - 专题页
  3683. fsylr: {
  3684. host: 'fsylr.com',
  3685. functionS: function() {if (!indexOF('.html')) {curSite = DBSite.fsylr;}},
  3686. pager: {
  3687. type: 1,
  3688. nextL: 'css;a.next.page-numbers',
  3689. pageE: 'css;.posts-con > div:not([class*="posts-"])',
  3690. replaceE: 'css;nav.pagination',
  3691. scrollD: 2000
  3692. }
  3693. }, // 发烧友绿软
  3694. iplaysoft: {
  3695. host: 'www.iplaysoft.com',
  3696. functionS: function() {if (indexOF('.html') || indexOF('/p/')) {curSite = DBSite.iplaysoft_comment;} else {curSite = DBSite.iplaysoft;}},
  3697. pager: {
  3698. type: 1,
  3699. nextL: 'css;.pagenavi a[title="下一页"]',
  3700. pageE: 'css;#postlist > div.entry',
  3701. replaceE: 'css;.pagenavi-button, .pagenavi',
  3702. scrollD: 1200
  3703. },
  3704. function: {
  3705. bF: src_bF,
  3706. pF: [0, 'img[data-src]', 'data-src']
  3707. }
  3708. }, // 异次元软件
  3709. iplaysoft_comment: {
  3710. pager: {
  3711. type: 2,
  3712. nextL: 'css;#loadHistoryComments',
  3713. nextTextOf: '展开后面',
  3714. scrollD: 1200
  3715. }
  3716. }, // 异次元软件 - 评论
  3717. mubolin: {
  3718. host: 'www.mubolin.cn',
  3719. pager: {
  3720. type: 1,
  3721. nextL: 'css;a.next.page-numbers',
  3722. pageE: 'css;#recent-content > div',
  3723. replaceE: 'css;nav.pagination',
  3724. scrollD: 1500
  3725. }
  3726. }, // 悪魔の小站
  3727. mpyit: {
  3728. host: 'www.mpyit.com',
  3729. functionS: function() {if (lp == '/' && !location.search) {
  3730. curSite = DBSite.mpyit;
  3731. } else if (indexOF('/category/') || indexOF('?s=', 's')) { // 搜索页 / 分类页
  3732. curSite = DBSite.mpyit_category;
  3733. }},
  3734. pager: {
  3735. type: 1,
  3736. nextL: 'css;a.page-numbers[title="下一页"]',
  3737. pageE: 'css;#post > div[id^="post-"]',
  3738. replaceE: 'css;#post > #pagenavi',
  3739. scrollD: 1700
  3740. }
  3741. }, // 老殁 | 殁漂遥
  3742. mpyit_category: {
  3743. pager: {
  3744. type: 1,
  3745. nextL: 'css;a.page-numbers[title="下一页"]',
  3746. pageE: 'css;#content > div[class^="entry_box"]',
  3747. replaceE: 'css;#content > #pagenavi',
  3748. scrollD: 1700
  3749. }
  3750. }, // 老殁 | 殁漂遥 - 搜索页/分类页
  3751. tenlonstudio: {
  3752. host: 'www.tenlonstudio.com',
  3753. functionS: function() {if (lp == '/' && !location.search) {
  3754. curSite = DBSite.tenlonstudio;
  3755. } else {
  3756. curSite = DBSite.tenlonstudio_list;
  3757. }},
  3758. pager: {
  3759. type: 2,
  3760. nextL: 'css;.load-more',
  3761. nextText: '加载更多',
  3762. interval: 500,
  3763. scrollD: 1000
  3764. }
  3765. }, // 腾龙工作室
  3766. tenlonstudio_list: {
  3767. pager: {
  3768. type: 1,
  3769. nextL: '//div[@class="btn-pager"]/a[contains(text(), "❯")]',
  3770. pageE: 'css;li.post-list-item',
  3771. replaceE: 'css;.ajax-pager',
  3772. scrollD: 1000
  3773. }
  3774. }, // 腾龙工作室 - 分类/搜索页
  3775. yxssp: {
  3776. host: 'www.yxssp.com',
  3777. pager: {
  3778. type: 1,
  3779. nextL: '//div[contains(@class, "page-nav")]/a[last()]',
  3780. pageE: 'css;.td-modules-container.td-module-number4 > div',
  3781. replaceE: 'css;.page-nav.td-pb-padding-side',
  3782. scrollD: 1000
  3783. }
  3784. }, // 异星软件空间
  3785. yrxitong: {
  3786. host: 'www.yrxitong.com',
  3787. functionS: function() {
  3788. if (lp == '/sr.jsp') {
  3789. curSite = DBSite.yrxitong_search;
  3790. } else if (!indexOF('/h-nd-')) {
  3791. curSite = DBSite.yrxitong;
  3792. }
  3793. },
  3794. pager: {
  3795. type: 1,
  3796. nextL: 'css;span.pageNext > a',
  3797. pageE: 'css;#containerFormsCenter .m_news_list > div',
  3798. replaceE: 'css;.pagenation',
  3799. scrollD: 1200
  3800. },
  3801. function: {
  3802. bF: src_bF,
  3803. pF: [1, 'a[data-original]', 'data-original']
  3804. }
  3805. }, // 小鱼儿 yr 系统
  3806. yrxitong_search: {
  3807. pager: {
  3808. type: 1,
  3809. nextL: 'css;span.pageNext > a',
  3810. pageE: 'css;#containerFormsCenter .newsList > div',
  3811. replaceE: 'css;.pagenation',
  3812. scrollD: 2000
  3813. }
  3814. }, // 小鱼儿 yr 系统 - 搜索页
  3815. downg: {
  3816. host: 'www.downg.com',
  3817. functionS: function() {if (indexOF('/new/')) {curSite = DBSite.downg;}},
  3818. pager: {
  3819. type: 1,
  3820. nextL: 'css;a.nextpage',
  3821. pageE: 'css;.ApdList > ul.ApdLi',
  3822. replaceE: 'css;.pagination',
  3823. scrollD: 1500
  3824. }
  3825. }, // 绿软家园
  3826. sordum: {
  3827. host: 'www.sordum.org',
  3828. pager: {
  3829. type: 1,
  3830. nextL: 'css;a.next.page-numbers',
  3831. pageE: 'css;.article > article',
  3832. replaceE: 'css;nav.navigation.posts-navigation',
  3833. scrollD: 1500
  3834. }
  3835. }, // (下面这几个都是国外博客网站)
  3836. winaero: {
  3837. host: 'winaero.com',
  3838. functionS: function() {if (lp == '/blog/' || indexOF('/category/')) curSite = DBSite.winaero;},
  3839. pager: {
  3840. type: 1,
  3841. nextL: 'css;.nav-previous > a',
  3842. pageE: 'css;#content > article',
  3843. replaceE: 'css;#nav-below',
  3844. scrollD: 1500
  3845. }
  3846. },
  3847. lrepacks: {
  3848. host: 'lrepacks.net',
  3849. functionS: function() {if (!indexOF('.html')) curSite = DBSite.lrepacks;},
  3850. pager: {
  3851. type: 1,
  3852. nextL: 'css;.page_next > a',
  3853. pageE: 'css;#main .post-list article',
  3854. replaceE: 'css;.page_nav',
  3855. scrollD: 1500
  3856. },
  3857. function: {
  3858. bF: lrepacks_bF
  3859. }
  3860. },
  3861. winhelponline: {
  3862. host: 'www.winhelponline.com',
  3863. functionS: function() {if (lp == '/blog/') {curSite = DBSite.winhelponline;}},
  3864. pager: {
  3865. type: 1,
  3866. nextL: 'css;span.prev > a',
  3867. pageE: 'css;#main > article',
  3868. replaceE: 'css;nav.paging-navigation',
  3869. scrollD: 2000
  3870. }
  3871. },
  3872. windowslatest: {
  3873. host: 'www.windowslatest.com',
  3874. pager: {
  3875. type: 1,
  3876. nextL: '//div[contains(@class, "page-nav")]/a[last()]',
  3877. pageE: 'css;.td-ss-main-content > div:not(.td-block-title-wrap):not(.page-nav)',
  3878. replaceE: 'css;.page-nav',
  3879. scrollD: 2000
  3880. }
  3881. },
  3882. thewindowsclub: {
  3883. host: 'www.thewindowsclub.com',
  3884. functionS: function() {curSite = DBSite.thewindowsclub; if (lp == '/') {curSite.pager.scrollD = 2000;}},
  3885. pager: {
  3886. type: 1,
  3887. nextL: 'css;li.pagination-next > a',
  3888. pageE: 'css;#genesis-content > article',
  3889. replaceE: 'css;.pagination',
  3890. scrollD: 1500
  3891. }
  3892. },
  3893. acs: {
  3894. host: ['pubs.acs.org','onlinelibrary.wiley.com'],
  3895. functionS: function() {if (indexOF('/doSearch')) {curSite = DBSite.acs;}},
  3896. history: true,
  3897. pager: {
  3898. type: 1,
  3899. nextL: 'css;a.pagination__btn--next',
  3900. pageE: 'css;ul.items-results > *',
  3901. replaceE: 'css;.pagination',
  3902. scrollD: 3000
  3903. }
  3904. }, // Wiley Online Library + ACS (Publications)
  3905. libgen: {
  3906. host: /libgen/,
  3907. functionS: function() {if (lp == '/search.php') {curSite = DBSite.libgen;}},
  3908. history: true,
  3909. pager: {
  3910. type: 1,
  3911. nextL: '//font/a[contains(text(), "►")]',
  3912. pageE: 'css;table[rules="rows"] > tbody > tr:nth-of-type(n+2), .paginator+script:not([src])',
  3913. insertP: ['css;table[rules="rows"] > tbody', 3],
  3914. replaceE: '//td[./font/a[contains(text(), "►")]]',
  3915. scriptT: 2,
  3916. scrollD: 2000
  3917. }
  3918. }, // Library Genesis
  3919. sciencedirect: {
  3920. host: 'www.sciencedirect.com',
  3921. functionS: function() {locationC = true; if (lp == '/search') {curSite = DBSite.sciencedirect; setTimeout(function(){insStyle('html, body {height: ' + (document.documentElement.scrollHeight || document.body.scrollHeight) + 'px;}')}, 2000)}},
  3922. insStyle: 'footer {display: none !important;}',
  3923. history: true,
  3924. iframe: true,
  3925. pager: {
  3926. type: 5,
  3927. nextL: 'css;a[data-aa-name="srp-next-page"]',
  3928. scrollD: 2000
  3929. }
  3930. }, // ScienceDirect
  3931. pubmed: {
  3932. host: 'pubmed.ncbi.nlm.nih.gov',
  3933. pager: {
  3934. type: 2,
  3935. nextL: 'css;button.load-button.next-page',
  3936. nextText: 'Show more results',
  3937. scrollD: 1500
  3938. }
  3939. }, // PubMed
  3940. x_mol: {
  3941. host: 'www.x-mol.com',
  3942. functionS: function() {if (indexOF('/search/q') || indexOF('/paper/')) {curSite = DBSite.x_mol;}},
  3943. history: true,
  3944. pager: {
  3945. type: 1,
  3946. nextL: () => getNextP('css;.pagination li.active+li > a', 'pageIndex=', /pageIndex=\d+/),
  3947. pageE: 'css;.magazine-senior-search-results-list > ul > li, .magazine-model-content-new > ul > li',
  3948. insertP: ['css;.magazine-senior-search-results-list > ul, .magazine-model-content-new > ul', 3],
  3949. replaceE: 'css;.pagination',
  3950. scrollD: 2000
  3951. }
  3952. }, // X-MOL
  3953. cqvip: {
  3954. host: 'www.cqvip.com',
  3955. functionS: function() {if (indexOF('/search')) {curSite = DBSite.cqvip;}},
  3956. history: true,
  3957. pager: {
  3958. type: 6,
  3959. nextL: '//ul[@class="pagenum"]//a[text()="下一页"]',
  3960. pageE: 'css;ul.prolist:last-child > li',
  3961. replaceE: 'css;ul.pagenum',
  3962. loadTime: 1000,
  3963. scrollD: 2000
  3964. }
  3965. }, // 维普网
  3966. ablesci: {
  3967. host: 'www.ablesci.com',
  3968. functionS: function() {if (indexOF('/detail') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.ablesci_p;} else if (getCSS('ul.fly-list')) {curSite = DBSite.ablesci;}},
  3969. pager: {
  3970. type: 1,
  3971. nextL: 'css;li.next > a',
  3972. pageE: 'css;ul.fly-list > li',
  3973. replaceE: 'css;.pages',
  3974. scrollD: 2000
  3975. }
  3976. }, // 科研通
  3977. ablesci_p: {
  3978. pager: {
  3979. type: 1,
  3980. nextL: 'css;li.next > a',
  3981. pageE: 'css;ul#jieda > li',
  3982. replaceE: 'css;.pages',
  3983. scrollD: 2000
  3984. }
  3985. }, // 科研通 - 帖子内
  3986. google_scholar: {
  3987. pager: {
  3988. type: 1,
  3989. nextL: '//a[./span[contains(@class, "next")]]',
  3990. pageE: 'css;#gs_res_ccl_mid > *',
  3991. replaceE: 'id("gs_n")',
  3992. scriptT: 1,
  3993. scrollD: 2000
  3994. }
  3995. }, // 谷歌学术
  3996. bing_academic: {
  3997. insStyle: 'li.aca_algo_count {display: none !important;}',
  3998. pager: {
  3999. type: 1,
  4000. nextL: 'css;a.sb_pagN',
  4001. pageE: 'css;#b_results > li.aca_algo',
  4002. replaceE: 'css;#b_results .b_pag',
  4003. scrollD: 1000
  4004. }
  4005. }, // 必应学术
  4006. baidu_xueshu: {
  4007. host: 'xueshu.baidu.com',
  4008. functionS: function() {if (lp == '/s') {
  4009. curSite = DBSite.baidu_xueshu;
  4010. } else if (indexOF('journal/navigation')) {
  4011. curSite = DBSite.baidu_xueshu_journal;
  4012. } else if (indexOF('paper/show')) {
  4013. curSite = DBSite.baidu_xueshu_paper;
  4014. }},
  4015. history: true,
  4016. pager: {
  4017. type: 1,
  4018. nextL: 'id("page")/a[./i[@class="c-icon-pager-next"]]',
  4019. pageE: 'css;#bdxs_result_lists > div.result',
  4020. replaceE: 'css;#page',
  4021. scrollD: 1000
  4022. }
  4023. }, // 百度学术
  4024. baidu_xueshu_journal: {
  4025. history: true,
  4026. pager: {
  4027. type: 1,
  4028. nextL: 'css;a.res-page-next',
  4029. pageE: 'css;#journaldetail > div',
  4030. replaceE: 'css;.res-page',
  4031. scrollD: 1000
  4032. }
  4033. }, // 百度学术
  4034. baidu_xueshu_paper: {
  4035. pager: {
  4036. type: 2,
  4037. nextL: 'css;div:not([style*="display: none"]) > .more_btn',
  4038. nextText: '加载更多',
  4039. scrollD: 1000
  4040. }
  4041. }, // 百度学术
  4042. so_xueshu: {
  4043. host: 'xueshu.so.com',
  4044. functionS: function() {if (lp == '/s') {curSite = DBSite.so_xueshu;}},
  4045. pager: {
  4046. type: 1,
  4047. nextL: 'css;a#snext',
  4048. pageE: 'css;ul.list > li',
  4049. replaceE: 'css;#page',
  4050. scrollD: 1000
  4051. }
  4052. }, // 360 学术
  4053. wanfangdata: {
  4054. host: 's.wanfangdata.com.cn',
  4055. functionS: function() {locationC = true; curSite = DBSite.wanfangdata;},
  4056. insStyle: '#zkFooter {display: none !important;}',
  4057. history: true,
  4058. iframe: true,
  4059. pager: {
  4060. type: 5,
  4061. nextL: () => getNextP('css;.pager.active+span.pager', 'p=', /p=\d+/),
  4062. scrollD: 2000
  4063. }
  4064. }, // 万方数据知识服务平台
  4065. nsfc: {
  4066. host: ['output.nsfc.gov.cn', 'kd.nsfc.gov.cn'],
  4067. functionS: function() {if (indexOF('/conclusionProject/')) curSite = DBSite.nsfc;},
  4068. insStyle: '#pageNoUl {display: none !important;}',
  4069. pager: {
  4070. type: 4,
  4071. nextL: nsfc_nextL,
  4072. insertP: ['css;#pageNoUl', 1],
  4073. insertE: nsfc_insertE,
  4074. scrollD: 1500
  4075. }
  4076. }, // 国家自然科学基金
  4077. coolkeyan: {
  4078. host: 'www.coolkeyan.com',
  4079. functionS: function() {if (location.hash.indexOf('/project/') > -1) curSite = DBSite.coolkeyan;},
  4080. insStyle: '.q-img {height: auto !important;} .q-img__image {max-height: 1000px !important;} .row.q-my-sm.q-gutter-sm {display: none !important;}',
  4081. pager: {
  4082. type: 4,
  4083. nextL: coolkeyan_nextL,
  4084. insertP: ['//div[contains(@class, "q-img__image")][last()]', 4],
  4085. insertE: coolkeyan_insertE,
  4086. scrollD: 1500
  4087. }
  4088. }, // 酷科研
  4089. stackoverflow: {
  4090. host: 'stackoverflow.com',
  4091. functionS: function() {if (indexOF('/questions') && !indexOF(/\/questions\/\d+\//)) {
  4092. curSite = DBSite.stackoverflow;
  4093. } else if (lp == '/search') {
  4094. curSite = DBSite.stackoverflow_search;
  4095. } else if (lp == '/tags') {
  4096. curSite = DBSite.stackoverflow_tags;
  4097. } else if (lp == '/users') {
  4098. curSite = DBSite.stackoverflow_users;
  4099. }},
  4100. pager: {
  4101. type: 1,
  4102. nextL: 'css;a[rel="next"]',
  4103. pageE: 'css;#questions > div',
  4104. replaceE: 'css;.pager',
  4105. scrollD: 2000
  4106. }
  4107. }, // StackOverflow - Questions
  4108. stackoverflow_tags: {
  4109. pager: {
  4110. type: 1,
  4111. nextL: 'css;a[rel="next"]',
  4112. pageE: 'css;#tags-browser > div',
  4113. replaceE: 'css;.pager',
  4114. scrollD: 2000
  4115. }
  4116. }, // StackOverflow - Tags
  4117. stackoverflow_users: {
  4118. pager: {
  4119. type: 1,
  4120. nextL: 'css;a[rel="next"]',
  4121. pageE: 'css;#user-browser > div:first-child > div',
  4122. replaceE: 'css;.pager',
  4123. scrollD: 2000
  4124. }
  4125. }, // StackOverflow - Users
  4126. stackoverflow_search: {
  4127. pager: {
  4128. type: 1,
  4129. nextL: 'css;a[rel="next"]',
  4130. pageE: 'css;.js-search-results > div:first-child > div',
  4131. replaceE: 'css;.pager',
  4132. scrollD: 2000
  4133. }
  4134. }, // StackOverflow - Search
  4135. segmentfault: {
  4136. host: 'segmentfault.com',
  4137. functionS: function() {locationC = true;
  4138. if (indexOF('/questions')) {
  4139. curSite = DBSite.segmentfault;
  4140. } else if (lp == '/search') {
  4141. curSite = DBSite.segmentfault_search;
  4142. }},
  4143. pager: {
  4144. type: 1,
  4145. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  4146. pageE: 'css;ul.list-group > li',
  4147. replaceE: 'css;ul.pagination',
  4148. scrollD: 1000
  4149. }
  4150. }, // SegmentFault - Questions
  4151. segmentfault_search: {
  4152. pager: {
  4153. type: 1,
  4154. nextL: 'css;a[rel="next"]',
  4155. pageE: 'css;.search-result > section',
  4156. replaceE: 'css;ul.pagination',
  4157. scrollD: 1000
  4158. }
  4159. }, // SegmentFault - Search
  4160. w3school_cn: {
  4161. host: 'www.w3school.com.cn',
  4162. functionS: function() {if (location.pathname.split('/').length > 2) {curSite = DBSite.w3school_cn;}},
  4163. insStyle: '#maincontent h1:not(:nth-of-type(1)) {margin-top: 30px;}',
  4164. history: true,
  4165. pager: {
  4166. type: 3,
  4167. nextL: function() { // 过滤部分非本页的参考手册
  4168. let next = getCSS('li.next > a[href]')
  4169. if (next && next.href.indexOf('/index.') === -1) return next.href;
  4170. curSite = {SiteTypeID: 0}; return ''
  4171. },
  4172. pageE: 'css;#maincontent > *:not([class*="prenextnav"]):not(#bpn):not(#tpn)',
  4173. insertP: ['id("bpn") | //div[contains(@class, "prenextnav")][last()]', 1],
  4174. replaceE: 'css;ul.prenext, #navsecond',
  4175. scrollE: 'id("bpn") | //div[contains(@class, "prenextnav")][last()]',
  4176. forceHTTPS: true,
  4177. scrollD: 600
  4178. }
  4179. }, // W3school
  4180. runoob: {
  4181. host: 'www.runoob.com',
  4182. functionS: function() {if (location.pathname.split('/').length > 2 && getCSS('#leftcolumn')) {curSite = DBSite.runoob;}},
  4183. insStyle: '#comments, #postcomments, #respond, #footer {display: none !important;} .article-intro h1:not(:nth-of-type(1)) {margin: 30px 0 10px 0;}',
  4184. history: true,
  4185. pager: {
  4186. type: 1,
  4187. nextL: function() { // 过滤部分非本页的参考手册
  4188. let next = getCSS('#leftcolumn > a[style]~a[href]')
  4189. if (next && next.href.split('/').length === location.href.split('/').length && next.href.split('/')[3] === location.href.split('/')[3]) return next.href;
  4190. next.href = location.href; curSite = {SiteTypeID: 0}; return ''
  4191. },
  4192. pageE: 'css;#content > *',
  4193. insertP: ['css;#content', 3],
  4194. replaceE: 'css;.previous-next-links, #leftcolumn',
  4195. forceHTTPS: true,
  4196. scrollD: 1000
  4197. },
  4198. function: {
  4199. aF: function() { // 左侧栏高亮当前页面标题
  4200. let title = document.title.split(' | '); if (title.length > 1) {title = title[0]; getAllCSS('#leftcolumn > a').forEach(function(e){if (e.innerText === title) {e.style = 'background-color: rgb(150, 185, 125); font-weight: bold; color: rgb(255, 255, 255);';}})}
  4201. }
  4202. }
  4203. }, // 菜鸟教程
  4204. cnblogs: {
  4205. host: ['www.cnblogs.com', 'zzk.cnblogs.com'],
  4206. functionS: function() {
  4207. if (location.hostname === 'zzk.cnblogs.com') {
  4208. curSite = DBSite.cnblogs_search;
  4209. } else if (getCSS('#post_list')) {
  4210. curSite = DBSite.cnblogs_list;
  4211. } else if (location.pathname.split('/').length === 3 && getCSS('.topicListFooter')) {
  4212. curSite = DBSite.cnblogs;
  4213. if (!getCSS('#homepage_top_pager')) {
  4214. getCSS('.forFlow').insertAdjacentHTML(getAddTo(2), '<div id="homepage_top_pager" class="topicListFooter"></div>');
  4215. getCSS('.forFlow').insertAdjacentHTML(getAddTo(3), '<div id="homepage_bottom_pager" class="topicListFooter"></div>');
  4216. }
  4217. }
  4218. },
  4219. pager: {
  4220. type: 1,
  4221. nextL: '//div[@class="topicListFooter"]//a[contains(text(), "下一页")]',
  4222. pageE: 'css;div.day',
  4223. replaceE: 'css;.topicListFooter',
  4224. scrollD: 1000
  4225. }
  4226. }, // 博客园 - 文章列表(个人)
  4227. cnblogs_list: {
  4228. pager: {
  4229. type: 1,
  4230. nextL: '//div[@class="pager"]//a[contains(text(), ">")]',
  4231. pageE: 'css;#post_list > article',
  4232. replaceE: 'css;.pager',
  4233. scrollD: 1000
  4234. }
  4235. }, // 博客园 - 文章列表
  4236. cnblogs_search: {
  4237. pager: {
  4238. type: 1,
  4239. nextL: '//div[@class="pager"]//a[contains(text(), ">")]',
  4240. pageE: 'css;div.searchItem',
  4241. replaceE: 'css;.pager',
  4242. scrollD: 1000
  4243. }
  4244. }, // 博客园 - 搜索页
  4245. gitee: {
  4246. host: 'gitee.com',
  4247. functionS: function() {
  4248. if (indexOF('/explore/')) {
  4249. curSite = DBSite.gitee;
  4250. } else if (indexOF(/\/issues$/)) {
  4251. curSite = DBSite.gitee_issues;
  4252. } else if (indexOF(/\/releases/)) {
  4253. curSite = DBSite.gitee_releases;
  4254. } else if (indexOF(/\/tags/)) {
  4255. curSite = DBSite.gitee_tags;
  4256. }
  4257. if (curSite.SiteTypeID > 0 && !curSite.pager.nextL) {
  4258. curSite.pager.type = 1;
  4259. curSite.pager.nextL = 'css;a[rel="next"]';
  4260. curSite.pager.replaceE = 'css;.pagination';
  4261. curSite.pager.scrollD = 2500;
  4262. }
  4263. },
  4264. pager: {
  4265. pageE: 'css;.items > .item',
  4266. }
  4267. }, // Gitee - Explore 列表
  4268. gitee_issues: {
  4269. pager: {
  4270. pageE: 'css;.issue-wrapper',
  4271. }
  4272. }, // Gitee - Issues 列表
  4273. gitee_releases: {
  4274. pager: {
  4275. pageE: 'css;.release-tag-item',
  4276. }
  4277. }, // Gitee - Releases 列表
  4278. gitee_tags: {
  4279. pager: {
  4280. pageE: 'css;.tag-item',
  4281. }
  4282. }, // Gitee - Tags 列表
  4283. gitee_search: {
  4284. host: 'search.gitee.com',
  4285. functionS: function() {if (location.search) curSite = DBSite.gitee_search;},
  4286. pager: {
  4287. type: 1,
  4288. nextL: 'css;li.next:not(.disabled) > a',
  4289. pageE: 'css;#hits-list > div',
  4290. replaceE: 'css;ul.pagination',
  4291. scrollD: 1000
  4292. }
  4293. }, // Gitee - Search 列表
  4294. github: {
  4295. host: ['github.com', 'hub.fastgit.org'],
  4296. functionS: function() {locationC = true;
  4297. if (lp == '/') {
  4298. curSite = DBSite.github;
  4299. } else if (indexOF('tab=stars', 's')) {
  4300. curSite = DBSite.github_star;
  4301. } else if (indexOF('tab=repositories', 's')) {
  4302. curSite = DBSite.github_repositories;
  4303. } else if (indexOF(/\/issues$/) || indexOF(/\/pulls$/)) {
  4304. curSite = DBSite.github_issues;
  4305. } else if (indexOF(/\/discussions$/) || indexOF('/discussions/categories')) {
  4306. curSite = DBSite.github_discussions;
  4307. } else if (indexOF(/\/releases$/)) {
  4308. curSite = DBSite.github_releases;
  4309. } else if (indexOF(/\/tags$/)) {
  4310. curSite = DBSite.github_tags;
  4311. } else if (indexOF('/commits')) {
  4312. curSite = DBSite.github_commits;
  4313. } else if (indexOF('/notifications')) {
  4314. curSite = DBSite.github_notifications;
  4315. } else if (indexOF('/search')) {
  4316. if (!location.search) return
  4317. if (!indexOF('type=', 's')) {
  4318. if (lp == '/search') {
  4319. curSite = DBSite.github_search_repositories;
  4320. } else {
  4321. curSite = DBSite.github_search_code;
  4322. }
  4323. } else {
  4324. curSite = DBSite['github_search_' + /type=[a-z]+/.exec(location.search.toLowerCase())[0].replace('type=','')];
  4325. }
  4326. if (curSite.SiteTypeID > 0 && !curSite.pager.nextL) {
  4327. curSite.pager.type = 1;
  4328. curSite.pager.nextL = 'css;a.next_page';
  4329. curSite.pager.replaceE = 'css;.pagination';
  4330. curSite.pager.scrollD = 3000;
  4331. }
  4332. }},
  4333. pager: {
  4334. type: 2,
  4335. nextL: 'css;.ajax-pagination-btn',
  4336. nextText: 'More',
  4337. scrollD: 2500
  4338. }
  4339. }, // Github - 首页
  4340. github_star: {
  4341. pager: {
  4342. type: 1,
  4343. nextL: '//div[@class="paginate-container"]//a[contains(text(), "Next")]',
  4344. pageE: 'css;#js-pjax-container .position-relative div[class^="col-lg-"] > div:not(.position-relative):not(.paginate-container)',
  4345. insertP: ['css;.paginate-container', 1],
  4346. replaceE: 'css;.paginate-container',
  4347. scrollD: 3000
  4348. }
  4349. }, // Github - 用户 Star 列表
  4350. github_repositories: {
  4351. pager: {
  4352. type: 1,
  4353. nextL: '//div[@class="paginate-container"]//a[contains(text(), "Next")]',
  4354. pageE: 'css;#user-repositories-list > ul > li',
  4355. replaceE: 'css;.paginate-container',
  4356. scrollD: 3000
  4357. }
  4358. }, // Github - 用户 项目 列表
  4359. github_issues: {
  4360. pager: {
  4361. type: 1,
  4362. nextL: 'css;a.next_page',
  4363. pageE: 'css;.js-navigation-container.js-active-navigation-container > div[id^="issue_"]',
  4364. replaceE: 'css;.pagination',
  4365. scrollD: 3000
  4366. }
  4367. }, // Github - Issues 列表 / PR 列表
  4368. github_discussions: {
  4369. pager: {
  4370. type: 1,
  4371. nextL: 'css;a.next_page',
  4372. pageE: 'css;#repo-content-pjax-container div[data-discussion-hovercards-enabled] > div',
  4373. replaceE: 'css;.pagination',
  4374. scrollD: 3000
  4375. }
  4376. }, // Github - Discussions 列表
  4377. github_releases: {
  4378. pager: {
  4379. type: 1,
  4380. nextL: 'css;a.next_page',
  4381. pageE: 'css;#repo-content-pjax-container > div[data-pjax] > div:not(.paginate-container)',
  4382. replaceE: 'css;.pagination',
  4383. scrollD: 3000
  4384. }
  4385. }, // Github - Releases 列表
  4386. github_tags: {
  4387. pager: {
  4388. type: 1,
  4389. nextL: '//div[@class="pagination"]/a[contains(text(), "Next")]',
  4390. pageE: 'css;.Box-body > div.Box-row',
  4391. replaceE: 'css;.pagination',
  4392. scrollD: 3000
  4393. }
  4394. }, // Github - Tags 列表
  4395. github_commits: {
  4396. pager: {
  4397. type: 1,
  4398. nextL: '//div[@class="paginate-container"]//a[contains(text(), "Older")]',
  4399. pageE: 'css;div.js-navigation-container > div',
  4400. replaceE: 'css;.paginate-container',
  4401. scrollD: 3000
  4402. }
  4403. }, // Github - Commits 列表
  4404. github_notifications: {
  4405. pager: {
  4406. type: 1,
  4407. nextL: 'css;nav.paginate-container > a[aria-label="Next"]',
  4408. pageE: 'css;li.notifications-list-item',
  4409. replaceE: 'css;nav.paginate-container, .js-notifications-list-paginator-counts',
  4410. scrollD: 3000
  4411. }
  4412. }, // Github - Notifications 列表
  4413. github_search_repositories: {
  4414. pager: {
  4415. pageE: 'css;ul.repo-list > li',
  4416. }
  4417. }, //Github - Search 列表
  4418. github_search_code: {
  4419. pager: {
  4420. pageE: 'css;.code-list-item',
  4421. }
  4422. }, // Github - Search 列表 - Code
  4423. github_search_commits: {
  4424. pager: {
  4425. pageE: 'css;#commit_search_results > div',
  4426. }
  4427. }, // Github - Search 列表 - Commit
  4428. github_search_issues: {
  4429. pager: {
  4430. pageE: 'css;.issue-list-item',
  4431. }
  4432. }, // Github - Search 列表 - Issues
  4433. github_search_discussions: {
  4434. pager: {
  4435. pageE: 'css;.discussion-list-item',
  4436. }
  4437. }, // Github - Search 列表 - Discussions
  4438. github_search_registrypackages: {
  4439. pager: {
  4440. pageE: 'css;#package_search_results > div',
  4441. }
  4442. }, // Github - Search 列表 - Package
  4443. github_search_marketplace: {
  4444. pager: {
  4445. pageE: 'css;#marketplace_search_results > div:first-child > div',
  4446. }
  4447. }, // Github - Search 列表 - Marketplace
  4448. github_search_topics: {
  4449. pager: {
  4450. pageE: 'css;.topic-list-item',
  4451. }
  4452. }, // Github - Search 列表 - Topics
  4453. github_search_wikis: {
  4454. pager: {
  4455. pageE: 'css;#wiki_search_results > div:first-child > div',
  4456. }
  4457. }, // Github - Search 列表 - wiki
  4458. github_search_users: {
  4459. pager: {
  4460. pageE: 'css;#user_search_results > div:first-child > div',
  4461. }
  4462. }, // Github - Search 列表 - user
  4463. oi_wiki: {
  4464. host: 'oi-wiki.org',
  4465. insStyle: 'blockquote.page-copyright, h2#__comments, form#gitalk-form {display: none !important;} article.md-content__inner{min-height: 700px;}',
  4466. history: true,
  4467. pager: {
  4468. type: 1,
  4469. nextL: 'css;li.md-nav__item.md-nav__item--active.md-nav__item--nested li.md-nav__item--active+li a',
  4470. pageE: 'css;article.md-content__inner',
  4471. insertP: ['css;article.md-content__inner', 6],
  4472. replaceE: 'css;.md-sidebar.md-sidebar--primary',
  4473. scrollD: 1300
  4474. }
  4475. }, // OI Wiki
  4476. guokr: {
  4477. host: 'www.guokr.com',
  4478. pager: {
  4479. type: 2,
  4480. nextL: 'css;div[class*="LoadMoreWrap"]',
  4481. interval: 1500,
  4482. scrollD: 1500
  4483. }
  4484. }, // 果壳网
  4485. expreview: {
  4486. host: 'www.expreview.com',
  4487. pager: {
  4488. type: 2,
  4489. nextL: 'css;#show_article_red_1SHOW',
  4490. interval: 1500,
  4491. scrollD: 1500
  4492. }
  4493. }, // 超能网
  4494. landian: {
  4495. host: 'www.landian.vip',
  4496. pager: {
  4497. type: 2,
  4498. nextL: 'css;.load-more > button',
  4499. nextText: '加载更多',
  4500. scrollD: 1300
  4501. }
  4502. }, // 蓝点网
  4503. ithome: {
  4504. host: 'www.ithome.com',
  4505. pager: {
  4506. type: 2,
  4507. nextL: 'css;a.more',
  4508. interval: 1500,
  4509. scrollD: 1500
  4510. }
  4511. }, // IT之家
  4512. _36kr: {
  4513. host: ['36kr.com', 'www.36kr.com'],
  4514. functionS: function() {if (lp != '/' && !indexOF('/p/') && !indexOF('/newsflashes/')) {curSite = DBSite._36kr;}},
  4515. pager: {
  4516. type: 2,
  4517. nextL: 'css;.kr-loading-more-button.show',
  4518. nextText: '查看更多',
  4519. scrollD: 1500
  4520. }
  4521. }, // 36氪
  4522. _36kr_m: {
  4523. host: 'm.36kr.com',
  4524. pager: {
  4525. type: 2,
  4526. nextL: 'css;.kr-loading-more-button-default',
  4527. nextText: '查看更多',
  4528. scrollD: 1500
  4529. }
  4530. }, // 36氪 - 手机版
  4531. zhutix: {
  4532. host: 'zhutix.com',
  4533. functionS: function() {if (getCSS('#post-list')) {
  4534. curSite = DBSite.zhutix;
  4535. } else {
  4536. curSite = DBSite.zhutix_list;
  4537. }},
  4538. pager: {
  4539. type: 1,
  4540. nextL: '//li[@class="next-page"]/a | //div[@class="btn-pager"]/a[contains(text(), "❯")]',
  4541. pageE: 'css;#post-list > ul > li',
  4542. replaceE: 'css;.pagination, .b2-pagenav.post-nav',
  4543. scrollD: 1500
  4544. }
  4545. }, // 致美化
  4546. zhutix_list: {
  4547. pager: {
  4548. type: 1,
  4549. nextL: 'css;li.next-page a',
  4550. pageE: 'css;#primary-home > div:not(.pagination)',
  4551. replaceE: 'css;.pagination',
  4552. scrollD: 1500
  4553. }
  4554. }, // 致美化 - 文章列表
  4555. lanzou: {
  4556. host: /\.lanzou[a-z]\./,
  4557. hiddenPN: true,
  4558. pager: {
  4559. type: 2,
  4560. nextL: 'css;#filemore',
  4561. nextTextOf: '更多',
  4562. isHidden: true,
  4563. scrollD: 800
  4564. }
  4565. }, // 蓝奏云 - 分享链接列表
  4566. lanzou_: {
  4567. host: 'pc.woozooo.com',
  4568. iframe: true,
  4569. hiddenPN: true,
  4570. pager: {
  4571. type: 2,
  4572. nextL: 'css;#filemore > span[onclick]',
  4573. nextText: '显示更多文件',
  4574. isHidden: true,
  4575. scrollD: 800
  4576. }
  4577. }, // 蓝奏云 - 后台
  4578. wikihow: {
  4579. host: ['www.wikihow.com', 'zh.wikihow.com'],
  4580. functionS: function() {if (indexOF('/Category:')) {
  4581. curSite = DBSite.wikihow;
  4582. } else if (indexOF('/wikiHowTo') && indexOF('?search=', 's')) {
  4583. curSite = DBSite.wikihow_search;
  4584. }},
  4585. pager: {
  4586. type: 1,
  4587. nextL: 'css;a.pag_next',
  4588. pageE: 'css;#cat_all > .cat_grid > div',
  4589. replaceE: 'css;#large_pagination',
  4590. scriptT: 3,
  4591. scrollD: 2000
  4592. }
  4593. }, // 指南
  4594. wikihow_search: {
  4595. pager: {
  4596. type: 1,
  4597. nextL: 'css;#searchresults_footer > a.buttonright',
  4598. pageE: 'css;#searchresults_list > a',
  4599. replaceE: 'css;#searchresults_footer',
  4600. scrollD: 3000
  4601. }
  4602. }, // 指南 - 搜索页
  4603. afreecatv: {
  4604. host: 'www.afreecatv.com',
  4605. pager: {
  4606. type: 2,
  4607. nextL: 'css;.btn-more > button',
  4608. interval: 2000,
  4609. scrollD: 1000
  4610. }
  4611. }, // 直播
  4612. greasyfork: {
  4613. host: 'greasyfork.org',
  4614. functionS: function() {if (indexOF(/\/scripts$/) || indexOF('/scripts/by-site/')) {
  4615. curSite = DBSite.greasyfork;
  4616. } else if (indexOF(/\/feedback$/)) {
  4617. curSite = DBSite.greasyfork_feedback;
  4618. } else if (indexOF('/discussions') && !indexOF(/\/\d+/)) {
  4619. curSite = DBSite.greasyfork_discussions;
  4620. }},
  4621. pager: {
  4622. type: 1,
  4623. nextL: 'css;a.next_page',
  4624. pageE: 'css;ol#browse-script-list > li',
  4625. replaceE: 'css;.pagination',
  4626. scrollD: 1300
  4627. }
  4628. }, // 脚本
  4629. greasyfork_feedback: {
  4630. pager: {
  4631. type: 1,
  4632. nextL: 'css;a.next_page',
  4633. pageE: 'css;.script-discussion-list > div',
  4634. replaceE: 'css;.pagination',
  4635. scrollD: 1800
  4636. }
  4637. }, // 脚本 - 反馈页
  4638. greasyfork_discussions: {
  4639. pager: {
  4640. type: 1,
  4641. nextL: 'css;a.next_page',
  4642. pageE: 'css;.discussion-list > div',
  4643. replaceE: 'css;.pagination',
  4644. scrollD: 1300
  4645. }
  4646. }, // 脚本 - 讨论页
  4647. smzdm: {
  4648. host: ['www.smzdm.com', 'search.smzdm.com'],
  4649. functionS: function() {if (location.hostname === 'search.smzdm.com' || indexOF('/fenlei/')) {
  4650. curSite = DBSite.smzdm;
  4651. }},
  4652. pager: {
  4653. type: 1,
  4654. nextL: '//ul[@class="pagenation-list"]//a[contains(text() ,"下一页")] | //ul[@class="pagenation-list"]/li[contains(@class, "next-page")]/a',
  4655. pageE: 'css;#feed-main-list > li',
  4656. replaceE: 'css;ul.pagenation-list',
  4657. scrollD: 1500
  4658. }
  4659. }, // 什么值得买 - 分类/搜索页
  4660. meidebi: {
  4661. host: 'www.meidebi.com',
  4662. functionS: function() {if (indexOF('/fenlei/') || lp == '/Search') {
  4663. curSite = DBSite.meidebi;
  4664. }},
  4665. pager: {
  4666. type: 1,
  4667. nextL: 'css;a.next',
  4668. pageE: 'css;.share-list > ul > li',
  4669. replaceE: 'css;.h-pages',
  4670. scrollD: 1500
  4671. }
  4672. }, // 没得比 - 分类/搜索页
  4673. ruyile_xuexiao: {
  4674. host: 'www.ruyile.com',
  4675. functionS: function() {
  4676. if (lp == '/xuexiao/') {
  4677. curSite = DBSite.ruyile_xuexiao;
  4678. } else if (lp == '/data/') {
  4679. curSite = DBSite.ruyile_data;
  4680. } else if (lp == '/shijuan/') {
  4681. curSite = DBSite.ruyile_shijuan;
  4682. }},
  4683. pager: {
  4684. type: 1,
  4685. nextL: '//div[@class="fy"]/a[contains(text(), "下一页")]',
  4686. pageE: 'css;.xxlb > .sk',
  4687. insertP: ['css;.xxlb', 3],
  4688. replaceE: 'css;.fy',
  4689. scrollD: 1000
  4690. }
  4691. }, // 如意了教育 - 学校
  4692. ruyile_data: {
  4693. pager: {
  4694. type: 1,
  4695. nextL: '//div[@class="fy"]/a[contains(text(), "下一页")]',
  4696. pageE: 'css;.m1_z > .lbk',
  4697. insertP: ['css;.page', 1],
  4698. replaceE: 'css;.fy',
  4699. scrollD: 1000
  4700. }
  4701. }, // 如意了教育 - 数据
  4702. ruyile_shijuan: {
  4703. pager: {
  4704. type: 1,
  4705. nextL: '//div[@class="fy"]/a[contains(text(), "下一页")]',
  4706. pageE: 'css;.m1_z > .m2_lb',
  4707. insertP: ['css;.page', 1],
  4708. replaceE: 'css;.fy',
  4709. scrollD: 1000
  4710. }
  4711. }, // 如意了教育 - 试卷
  4712. che168: {
  4713. host: 'www.che168.com',
  4714. functionS: function() {
  4715. if (location.pathname != '/' && !indexOF('/dealer/')) {
  4716. curSite = DBSite.che168;
  4717. }},
  4718. pager: {
  4719. type: 1,
  4720. nextL: 'css;a.page-item-next',
  4721. pageE: 'css;ul.viewlist_ul > li',
  4722. replaceE: 'css;.page',
  4723. scrollD: 2000
  4724. }
  4725. }, // 二手车之家
  4726. jiligamefun: {
  4727. host: 'www.jiligamefun.com',
  4728. functionS: function() {if (indexOF('/category/')) {curSite = DBSite.jiligamefun;}},
  4729. pager: {
  4730. type: 1,
  4731. nextL: 'css;a.poi-pager__item.poi-pager__item_next',
  4732. pageE: 'css;.inn-archive__container > article',
  4733. replaceE: 'css;.poi-pager',
  4734. scrollD: 1800
  4735. }
  4736. }, // 叽哩叽哩日报
  4737. wendangku: {
  4738. host: 'www.wendangku.net',
  4739. functionS: function() {if (indexOF('/doc/')) {curSite = DBSite.wendangku;}},
  4740. pager: {
  4741. type: 1,
  4742. nextL: 'css;a.next',
  4743. pageE: 'css;#contents > *:not(.pages)',
  4744. replaceE: 'css;.pages',
  4745. scrollD: 1800
  4746. }
  4747. }, // 文档库
  4748. getquicker: {
  4749. host: 'getquicker.net',
  4750. functionS: function() {if (indexOF('/Share/')) {curSite = DBSite.getquicker;}},
  4751. pager: {
  4752. type: 1,
  4753. nextL: '//a[@class="page-link" and text()="下一页"]',
  4754. pageE: 'css;table.table > tbody > tr:not(:first-child), script[src^="/js/site.js"]',
  4755. insertP: ['css;table.table > tbody', 3],
  4756. replaceE: 'css;ul.pagination',
  4757. scriptT: 2,
  4758. scrollD: 1000
  4759. }
  4760. }, // Quicker
  4761. netbian: {
  4762. host: 'pic.netbian.com',
  4763. insStyle: 'li.nextpage {display: none !important;}',
  4764. pager: {
  4765. type: 1,
  4766. nextL: '//div[@class="page"]/a[contains(text(),"下一页")]',
  4767. pageE: 'css;.slist ul > li:not(.nextpage)',
  4768. replaceE: 'css;.page',
  4769. scrollD: 1000
  4770. }
  4771. }, // 彼岸图网
  4772. ioliu: {
  4773. host: 'bing.ioliu.cn',
  4774. functionS: function() {if (!indexOF('/photo/') && !indexOF('.html')) {curSite = DBSite.ioliu; document.head.appendChild(document.createElement('base')).target = '_blank';}},
  4775. insStyle: '.progressive--not-loaded {filter: none !important;}',
  4776. pager: {
  4777. type: 1,
  4778. nextL: '//div[@class="page"]/a[contains(text(), "下一页")]',
  4779. pageE: 'css;body > .container > div.item',
  4780. replaceE: 'css;.page',
  4781. scrollD: 1000
  4782. }
  4783. }, // 必应壁纸
  4784. konachan: {
  4785. host: 'konachan.net',
  4786. functionS: function() {if (indexOF('/post')) {curSite = DBSite.konachan; document.head.appendChild(document.createElement('base')).target = '_blank';}},
  4787. insStyle: 'html, body {min-height: 1000px;} .javascript-hide {display: inline-block !important;} ul#post-list-posts img, ul#post-list-posts .inner{width: auto !important; height: auto !important;} ul#post-list-posts li {width: 33% !important;} a.directlink {margin: 0 !important;}',
  4788. history: true,
  4789. pager: {
  4790. type: 1,
  4791. nextL: 'css;a.next_page',
  4792. pageE: 'css;ul#post-list-posts > li',
  4793. replaceE: 'css;#paginator',
  4794. scrollD: 1000
  4795. }
  4796. }, // 动漫壁纸
  4797. nastol: {
  4798. host: 'www.nastol.com.ua',
  4799. pager: {
  4800. type: 1,
  4801. nextL: '//a[./span[@class="nav-next"]]',
  4802. pageE: 'css;#dle-content > div',
  4803. replaceE: 'css;.navigation',
  4804. scrollD: 1000
  4805. }
  4806. }, // 壁纸
  4807. hdqwalls: {
  4808. host: 'hdqwalls.com',
  4809. pager: {
  4810. type: 1,
  4811. nextL: 'css;a#next',
  4812. pageE: 'css;.wallpapers_container > div.wall-resp',
  4813. replaceE: 'css;ul.pagination',
  4814. scrollD: 1000
  4815. }
  4816. }, // 壁纸
  4817. xinpianchang: {
  4818. host: 'www.xinpianchang.com',
  4819. insStyle: '.lazy-img {opacity: 1 !important;}',
  4820. pager: {
  4821. type: 1,
  4822. nextL: 'css;.page > a[title="下一页"]',
  4823. pageE: 'css;div[class*="-container"] div[class*="-con"] > ul > li, div[class*="-container"] div[class*="-con"] > div[class*="-wrap"] > ul > li',
  4824. insertP: ['css;div[class*="-container"] div[class*="-con"] > ul, div[class*="-container"] div[class*="-con"] > div[class*="-wrap"] > ul', 3],
  4825. replaceE: 'css;.page',
  4826. scrollD: 2000
  4827. },
  4828. function: {
  4829. bF: src_bF,
  4830. pF: [0, 'img[_src]', '_src']
  4831. }
  4832. }, // 新片场
  4833. tujigu: {
  4834. host: ['www.tuji001.com', 'www.tujigu.net'],
  4835. functionS: function() {
  4836. if (indexOF('/a/')) {
  4837. curSite = DBSite.tujigu;
  4838. } else if (location.pathname != '/' && !indexOF('/search/')) {
  4839. curSite = DBSite.tujigu_list;
  4840. }},
  4841. insStyle: '.content img {display: block !important;}',
  4842. pager: {
  4843. type: 1,
  4844. nextL: 'id("pages")/a[contains(text(), "下一页")]',
  4845. pageE: 'css;.content > img',
  4846. replaceE: 'css;#pages',
  4847. scrollD: 2000
  4848. },
  4849. function: {
  4850. bF: src_bF,
  4851. pF: [0, 'img[original]', 'original']
  4852. }
  4853. }, // 图集谷 - 图片页
  4854. tujigu_list: {
  4855. pager: {
  4856. type: 1,
  4857. nextL: 'id("pages")/a[contains(text(), "下一页")]',
  4858. pageE: 'css;.hezi > ul > li',
  4859. insertP: ['//div[@class="hezi"][last()]/ul', 3],
  4860. replaceE: 'css;#pages',
  4861. scrollD: 1000
  4862. }
  4863. }, // 图集谷 - 分类页
  4864. mvtui: {
  4865. host: 'mvtui.com',
  4866. functionS: function() {if (indexOF('.html')) {curSite = DBSite.mvtui;} else {curSite = DBSite.mvtui_list;}},
  4867. pager: {
  4868. type: 1,
  4869. nextL: 'css;.article-paging span.current+a',
  4870. pageE: 'css;.article-content > p',
  4871. replaceE: 'css;.article-paging',
  4872. scrollD: 3000
  4873. }
  4874. }, // 美女推 - 图片页
  4875. mvtui_list: {
  4876. pager: {
  4877. type: 1,
  4878. nextL: 'css;li.next-page a',
  4879. pageE: 'css;#posts > div',
  4880. replaceE: 'css;.pagination',
  4881. scrollD: 1500
  4882. },
  4883. function: {
  4884. bF: src_bF,
  4885. pF: [0, 'img[data-src]', 'data-src']
  4886. }
  4887. }, // 美女推 - 分类页
  4888. mzitu: {
  4889. host: 'www.mzitu.com',
  4890. functionS: function() {if (indexOF(/\/\d+/)) {curSite = DBSite.mzitu;getCSS('.main-image a[href]').href = 'javascript:void(0);'} else {curSite = DBSite.mzitu_list;}},
  4891. pager: {
  4892. type: 1,
  4893. nextL: '//div[@class="pagenavi"]/a[contains(string(), "下一页")]',
  4894. pageE: 'css;.main-image img',
  4895. replaceE: 'css;.pagenavi',
  4896. scrollD: 1500
  4897. }
  4898. }, // 妹子图 - 图片页
  4899. mzitu_list: {
  4900. pager: {
  4901. type: 1,
  4902. nextL: 'css;.next.page-numbers',
  4903. pageE: 'css;.postlist > ul > li',
  4904. replaceE: 'css;.pagination',
  4905. scrollD: 1000
  4906. },
  4907. function: {
  4908. bF: src_bF,
  4909. pF: [0, 'img[data-original]', 'data-original']
  4910. }
  4911. }, // 妹子图 - 分类/搜索页
  4912. xiurenji: {
  4913. host: /\.xiurenji\./,
  4914. functionS: function() {insStyle('img[src$=".gif"]:not([src*="logo"]) {display: none !important;}');
  4915. if (indexOF('.html') && !indexOF('/index')) {
  4916. curSite = DBSite.xiurenji;
  4917. } else if (indexOF('search')) {
  4918. curSite = DBSite.xiurenji_search;
  4919. } else {
  4920. curSite = DBSite.xiurenji_list;
  4921. }},
  4922. pager: {
  4923. type: 1,
  4924. nextL: '//div[@class="page"]/a[contains(text(), "后")]',
  4925. pageE: 'css;div.img > p > *',
  4926. replaceE: 'css;.page',
  4927. scrollD: 2000
  4928. }
  4929. }, // 秀人集 - 图片页
  4930. xiurenji_list: {
  4931. pager: {
  4932. type: 1,
  4933. nextL: '//div[@class="page"]/a[contains(text(), "下页")]',
  4934. pageE: 'css;td >.tp2 > *',
  4935. replaceE: 'css;.page',
  4936. scrollD: 1000
  4937. }
  4938. }, // 秀人集 - 分类页
  4939. xiurenji_search: {
  4940. pager: {
  4941. type: 1,
  4942. nextL: 'css;.page > a.current+a',
  4943. pageE: 'css;.node > *',
  4944. replaceE: 'css;.page',
  4945. scrollD: 1000
  4946. }
  4947. }, // 秀人集 - 搜索页
  4948. mm131: {
  4949. host: ['www.mm131.net', 'www.mmm131.com'],
  4950. functionS: function() {if (indexOF('.html')) {curSite = DBSite.mm131;} else {curSite = DBSite.mm131_list;}},
  4951. history: true,
  4952. retry: 300,
  4953. pager: {
  4954. type: 1,
  4955. nextL: '//div[@class="content-page"]/a[contains(text(), "下一页")]',
  4956. pageE: 'css;.content-pic img',
  4957. replaceE: 'css;.content-page',
  4958. scrollD: 2000
  4959. }
  4960. }, // MM131 - 图片页
  4961. mm131_list: {
  4962. pager: {
  4963. type: 1,
  4964. nextL: '//dd[@class="page"]/a[contains(text(), "下一页")]',
  4965. pageE: 'css;dl.list-left > dd:not([class="page"])',
  4966. replaceE: 'css;.page',
  4967. scrollD: 1000
  4968. }
  4969. }, // MM131 - 分类页
  4970. mm131_m: {
  4971. host: 'm.mmm131.com',
  4972. functionS: function() {insStyle('.bannert, .bannerb, bannert_ios, .bannerb_ios {display: none !important;}'); if (lp == '/') {curSite = DBSite.mm131_m_;} else if (indexOF('.html')) {curSite = DBSite.mm131_m;} else {curSite = DBSite.mm131_m_list;}},
  4973. history: true,
  4974. retry: true,
  4975. pager: {
  4976. type: 1,
  4977. nextL: '//div[@class="paging"]/a[text()="下一张" or text()="下一页"]',
  4978. pageE: 'css;.post-content img',
  4979. replaceE: 'css;.paging',
  4980. scrollD: 2000
  4981. }
  4982. }, // MM131 - 手机版 - 图片页
  4983. mm131_m_list: {
  4984. pager: {
  4985. type: 1,
  4986. nextL: 'css;#xbtn',
  4987. pageE: 'css;#content > article',
  4988. replaceE: 'css;#webpage',
  4989. scrollD: 2000
  4990. },
  4991. function: {
  4992. bF: src_bF,
  4993. pF: [0, 'img[data-img]', 'data-img']
  4994. }
  4995. }, // MM131 - 手机版 - 分类页
  4996. mm131_m_: {
  4997. pager: {
  4998. type: 2,
  4999. nextL: 'css;#webpage>span[onclick]',
  5000. isHidden: true,
  5001. interval: 500,
  5002. scrollD: 2000
  5003. }
  5004. }, // MM131 - 手机版 - 首页
  5005. mrcong: {
  5006. host: 'mrcong.com',
  5007. functionS: function() {if (lp == '/' || indexOF('/tag/')) {curSite = DBSite.mrcong_list;} else {curSite = DBSite.mrcong;}},
  5008. pager: {
  5009. type: 1,
  5010. nextL: 'css;.post-page-numbers.current+a.post-page-numbers',
  5011. pageE: 'css;#fukie2 > p > img',
  5012. replaceE: 'css;.page-link',
  5013. scrollD: 3000
  5014. }
  5015. }, // MrCong - 图片页
  5016. mrcong_list: {
  5017. pager: {
  5018. type: 3,
  5019. nextL: 'css;.current+a.page',
  5020. pageE: 'css;article.item-list',
  5021. scrollE: 'css;.pagination',
  5022. replaceE: 'css;.pagination',
  5023. scrollD: 2000
  5024. }
  5025. }, // MrCong - 分类页
  5026. buondua: {
  5027. host: 'buondua.com',
  5028. functionS: function() {if (indexOF(/-photos-\d+/)) {curSite = DBSite.buondua;} else {curSite = DBSite.buondua_list;}},
  5029. pager: {
  5030. type: 3,
  5031. nextL: '//nav[@class="pagination"]//span[./a[contains(@class, "is-current")]]/following-sibling::span[1]/a',
  5032. pageE: 'css;.article-fulltext > p',
  5033. scrollE: 'css;nav.pagination',
  5034. replaceE: 'css;nav.pagination',
  5035. scrollD: 1500
  5036. },
  5037. function: {
  5038. bF: src_bF,
  5039. pF: [0, 'img[data-src]', 'data-src']
  5040. }
  5041. }, // Buon Dua - 图片页
  5042. buondua_list: {
  5043. pager: {
  5044. type: 3,
  5045. nextL: 'css;.pagination-next',
  5046. pageE: 'css;.items-row.column, .collection-item.column',
  5047. scrollE: 'css;nav.pagination',
  5048. replaceE: 'css;nav.pagination',
  5049. scrollD: 1200
  5050. },
  5051. function: {
  5052. bF: src_bF,
  5053. pF: [0, 'img[data-src]', 'data-src']
  5054. }
  5055. }, // Buon Dua - 分类页
  5056. fnvshen: {
  5057. host: 'www.fnvshen.com',
  5058. functionS: function() {
  5059. if (indexOF('/gallery/') || indexOF('/tag/')) {
  5060. curSite = DBSite.fnvshen_list;
  5061. } else if (indexOF('/g/')) {
  5062. curSite = DBSite.fnvshen;
  5063. } else if (indexOF(/\/article\/\d+\//)) {
  5064. curSite = DBSite.fnvshen_article;
  5065. } else if (indexOF('/article/')) {
  5066. curSite = DBSite.fnvshen_article_list;
  5067. }},
  5068. pager: {
  5069. type: 1,
  5070. nextL: 'id("pages")/a[contains(text(), "下一页")]',
  5071. pageE: 'css;#hgallery > img',
  5072. replaceE: 'css;#pages',
  5073. scrollD: 1000
  5074. }
  5075. }, // 宅男女神 - 图片页
  5076. fnvshen_list: {
  5077. insStyle: '.yalayi_box {display: none !important; margin: -4px 0 !important;}',
  5078. pager: {
  5079. type: 1,
  5080. nextL: '//div[@class="pagesYY"]//a[contains(text(), "下一页")]',
  5081. pageE: 'css;#listdiv > ul > li',
  5082. replaceE: 'css;.pagesYY',
  5083. scrollD: 1000
  5084. },
  5085. function: {
  5086. bF: src_bF,
  5087. pF: [0, 'img[data-original]', 'data-original']
  5088. }
  5089. }, // 宅男女神 - 分类页
  5090. fnvshen_article_list: {
  5091. pager: {
  5092. type: 1,
  5093. nextL: '//div[@class="pagesYY"]//a[contains(text(), "下一页")]',
  5094. pageE: 'css;li.other_girlli',
  5095. replaceE: 'css;.pagesYY',
  5096. scrollD: 1000
  5097. }
  5098. }, //宅男女神 - 文章列表
  5099. fnvshen_article: {
  5100. pager: {
  5101. type: 1,
  5102. nextL: 'css;.pagesYY a.cur+a',
  5103. pageE: 'css;#articleDiv',
  5104. insertP: ['css;#articleDiv', 6],
  5105. replaceE: 'css;.pagesYY',
  5106. scrollD: 1000
  5107. }
  5108. }, // 宅男女神 - 文章内
  5109. xrmn5: {
  5110. host: 'www.xrmn5.cc',
  5111. functionS: function() {if (indexOF(/\d+\.html/)) {
  5112. curSite = DBSite.xrmn5;
  5113. } else if (indexOF('/search')) {
  5114. curSite = DBSite.xrmn5_search;
  5115. } else {
  5116. curSite = DBSite.xrmn5_list;
  5117. }},
  5118. pager: {
  5119. type: 1,
  5120. nextL: '//div[contains(@class, "page")]//a[contains(text(), "下页")]',
  5121. pageE: 'css;.content_left > p > img',
  5122. replaceE: 'css;.page',
  5123. scrollD: 3000
  5124. }
  5125. }, // 秀人美女 - 图片页
  5126. xrmn5_list: {
  5127. pager: {
  5128. type: 1,
  5129. nextL: '//div[contains(@class, "page")]//a[contains(text(), "下页")]',
  5130. pageE: 'css;ul.update_area_lists > li',
  5131. replaceE: 'css;.page',
  5132. scrollD: 2000
  5133. }
  5134. }, // 秀人美女 - 分类页
  5135. xrmn5_search: {
  5136. pager: {
  5137. type: 1,
  5138. nextL: 'css;.page a.current+a',
  5139. pageE: 'css;div.sousuo',
  5140. replaceE: 'css;.page',
  5141. scrollD: 2000
  5142. }
  5143. }, // 秀人美女 - 搜索页
  5144. jpmn8: {
  5145. host: 'www.jpmn8.com',
  5146. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.jpmn8;} else if (location.pathname != '/') {curSite = DBSite.jpmn8_list;}},
  5147. insStyle: 'img[onload] {min-height: 500px;}',
  5148. pager: {
  5149. type: 1,
  5150. nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
  5151. pageE: 'css;img[onload]',
  5152. replaceE: 'css;.pagination1',
  5153. scrollD: 3000
  5154. }
  5155. }, // 精品美女 - 图片页
  5156. jpmn8_list: {
  5157. pager: {
  5158. type: 1,
  5159. nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
  5160. pageE: 'css;article.excerpt',
  5161. replaceE: 'css;.pagination1',
  5162. scrollD: 1500
  5163. }
  5164. }, // 精品美女 - 分类页
  5165. ku66: {
  5166. host: 'www.ku66.net',
  5167. functionS: function() {if (/\/\d+\.html/.test(location.pathname)) {curSite = DBSite.ku66;} else {curSite = DBSite.ku66_list;}},
  5168. insStyle: '.content img {min-height: 500px;}',
  5169. pager: {
  5170. type: 1,
  5171. nextL: '//div[@class="NewPages"]//a[text()="下一页"]',
  5172. pageE: 'css;.content > img',
  5173. insertP: ['css;.content', 3],
  5174. replaceE: 'css;.NewPages',
  5175. scrollD: 4000
  5176. }
  5177. }, // 美女图片 - 图片页
  5178. ku66_list: {
  5179. pager: {
  5180. type: 1,
  5181. nextL: '//div[@class="NewPages"]//a[text()="下一页"]',
  5182. pageE: 'css;.TypeList > ul > li',
  5183. insertP: ['css;.TypeList > ul', 3],
  5184. replaceE: 'css;.NewPages',
  5185. scrollD: 1000
  5186. }
  5187. }, // 美女图片 - 分类页
  5188. ku66_m: {
  5189. host: 'm.ku66.net',
  5190. functionS: function() {if (/\/\d+\.html/.test(location.pathname)) {curSite = DBSite.ku66_m;} else {curSite = DBSite.ku66_m_list;}},
  5191. insStyle: '.ArticleImageBox img {min-height: 200px;}',
  5192. pager: {
  5193. type: 1,
  5194. nextL: '//div[@class="article_page"]//a[text()="下一页"]',
  5195. pageE: 'css;.ArticleImageBox > *',
  5196. replaceE: 'css;.article_page',
  5197. scrollD: 4000
  5198. }
  5199. }, // 美女图片 - 手机版 - 图片页
  5200. ku66_m_list: {
  5201. pager: {
  5202. type: 1,
  5203. nextL: '//div[@class="article_page"]//a[text()="下一页"]',
  5204. pageE: 'css;.PictureList > ul > li',
  5205. replaceE: 'css;.article_page',
  5206. scrollD: 1000
  5207. }
  5208. }, // 美女图片 - 手机版 - 分类页
  5209. ku137: {
  5210. host: 'www.ku137.net',
  5211. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.ku137;} else if (location.pathname != '/') {curSite = DBSite.ku137_list;}},
  5212. insStyle: '.Title9, .dibu1, .dibu2 {display: none !important;} .content img {min-height: 500px;}',
  5213. pager: {
  5214. type: 1,
  5215. nextL: '//div[@class="page"]/a[text()="下一页"]',
  5216. pageE: 'css;.content > img',
  5217. replaceE: 'css;.page',
  5218. scrollD: 3000
  5219. }
  5220. }, // 美女写真 - 图片页
  5221. ku137_list: {
  5222. pager: {
  5223. type: 1,
  5224. nextL: '//div[@class="page"]/a[text()="下一页"]',
  5225. pageE: 'css;.m-list > ul > li',
  5226. replaceE: 'css;.page',
  5227. scrollD: 1500
  5228. }
  5229. }, // 美女写真 - 分类页
  5230. ku137_m: {
  5231. host: 'm.ku137.net',
  5232. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.ku137_m;} else if (location.pathname != '/') {curSite = DBSite.ku137_m_list;}},
  5233. insStyle: '.ArticleImageBox img {min-height: 300px;}',
  5234. pager: {
  5235. type: 1,
  5236. nextL: '//div[@class="article_page"]//a[text()="下一页"]',
  5237. pageE: 'css;.ArticleImageBox > *',
  5238. replaceE: 'css;.article_page',
  5239. scrollD: 3000
  5240. }
  5241. }, // 美女写真 - 手机版 - 图片页
  5242. ku137_m_list: {
  5243. pager: {
  5244. type: 1,
  5245. nextL: '//div[@class="article_page"]//a[text()="下一页"]',
  5246. pageE: 'css;.PictureList > ul > li',
  5247. replaceE: 'css;.article_page',
  5248. scrollD: 1500
  5249. }
  5250. }, // 美女写真 - 手机版 - 分类页
  5251. mnttz: {
  5252. host: 'www.mnttz.com',
  5253. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.mnttz;} else {curSite = DBSite.mnttz_list;}},
  5254. insStyle: 'img.content_img {min-height: 500px;}',
  5255. pager: {
  5256. type: 1,
  5257. nextL: 'css;.article-paging > span+a',
  5258. pageE: 'css;img.content_img',
  5259. replaceE: 'css;.article-paging',
  5260. scrollD: 3000
  5261. }
  5262. }, // 美女套图 - 图片页
  5263. mnttz_list: {
  5264. pager: {
  5265. type: 1,
  5266. nextL: 'css;li.next-page > a',
  5267. pageE: 'css;article.excerpt',
  5268. replaceE: 'css;.pagination',
  5269. scrollD: 1500
  5270. },
  5271. function: {
  5272. bF: src_bF,
  5273. pF: [0, 'img[data-src]', 'data-src']
  5274. }
  5275. }, // 美女套图 - 分类页
  5276. kingdom: {
  5277. host: ['kingdom-en.com', 'www.kingdom-en.com', 'm.kingdom-en.com'],
  5278. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.kingdom;} else {curSite = DBSite.kingdom_list;}},
  5279. insStyle: '.pic_center img {min-height: 300px;} .arcmain > .title, .footer, .index-list-title, .listmain_st {display: none !important;}',
  5280. pager: {
  5281. type: 1,
  5282. nextL: '//a[@class="page_next"] | //div[@class="article_page"]//a[text()="下一页"]',
  5283. pageE: 'css;.pic_center img',
  5284. replaceE: '//div[@class="pages2" or @class="article_page"]',
  5285. scrollD: 4000
  5286. }
  5287. }, // King爱模 - 图片页
  5288. kingdom_list: {
  5289. pager: {
  5290. type: 1,
  5291. nextL: () => getCSS('a.page_next').href.replace(/(www.)?ermo.net/, location.hostname).replace(/http(s)?:/, location.protocol),
  5292. pageE: 'css;.channel_list3 > ul > li, ul#container > li',
  5293. replaceE: 'css;.pages, .list_page',
  5294. scrollD: 1000
  5295. }
  5296. }, // King爱模 - 分类页
  5297. planetminecraft: {
  5298. host: 'www.planetminecraft.com',
  5299. functionS: function() {if (!indexOF('/forums/') && !indexOF('/posts/')) {curSite = DBSite.planetminecraft;}},
  5300. insStyle: '.resource .r-preview>a img[loading=lazy]:not(.lazyloaded) {visibility: initial !important;}',
  5301. history: true,
  5302. pager: {
  5303. type: 1,
  5304. nextL: 'css;a.pagination_next',
  5305. pageE: 'css;.resource_block > ul.resource_list > li',
  5306. replaceE: 'css;.pagination',
  5307. scrollD: 3000
  5308. }
  5309. }, // Planet Minecraft
  5310. cadtutor: {
  5311. host: 'www.cadtutor.net',
  5312. functionS: function() {
  5313. if (indexOF('/forum/forum/')) {
  5314. curSite = DBSite.cadtutor;
  5315. } else if (indexOF('/forum/topic/') && GM_getValue('menu_discuz_thread_page')) {
  5316. curSite = DBSite.cadtutor_post;
  5317. } else if (indexOF('/forum/search/')) {
  5318. curSite = DBSite.cadtutor_search;
  5319. }},
  5320. pager: {
  5321. type: 1,
  5322. nextL: 'css;a[rel="next"]',
  5323. pageE: 'css;ol.ipsDataList > li:not([data-rowid])~li',
  5324. replaceE: 'css;ul.ipsPagination',
  5325. scrollD: 2000
  5326. }
  5327. }, // CADTutor - 列表页
  5328. cadtutor_post: {
  5329. pager: {
  5330. type: 1,
  5331. nextL: 'css;a[rel="next"]',
  5332. pageE: 'css;#elPostFeed > form > *:not(input):not(.after-first-post)',
  5333. replaceE: 'css;ul.ipsPagination',
  5334. scrollD: 2000
  5335. }
  5336. }, // CADTutor - 帖子内
  5337. cadtutor_search: {
  5338. pager: {
  5339. type: 1,
  5340. nextL: 'css;a[rel="next"]',
  5341. pageE: 'css;ol.ipsStream > li',
  5342. replaceE: 'css;ul.ipsPagination',
  5343. scrollD: 2000
  5344. }
  5345. }, // CADTutor - 搜索页
  5346. theswamp: {
  5347. host: 'www.theswamp.org',
  5348. functionS: function() {
  5349. if (!location.search) return
  5350. if (indexOF('board=', 's')) {
  5351. curSite = DBSite.theswamp;
  5352. } else if (indexOF('topic=', 's') && GM_getValue('menu_discuz_thread_page')) {
  5353. curSite = DBSite.theswamp_post;
  5354. }},
  5355. pager: {
  5356. type: 1,
  5357. nextL: 'css;.pagelinks > strong+a',
  5358. pageE: 'css;#messageindex tbody > tr:not([class])',
  5359. replaceE: 'css;.pagelinks',
  5360. scrollD: 2000
  5361. }
  5362. }, // TheSwamp - 列表页
  5363. theswamp_post: {
  5364. pager: {
  5365. type: 1,
  5366. nextL: 'css;.pagelinks > strong+a',
  5367. pageE: 'css;#forumposts form > *',
  5368. replaceE: 'css;.pagelinks',
  5369. scrollD: 2000
  5370. }
  5371. } // TheSwamp - 帖子内
  5372. };
  5373. // 生成 SiteTypeID
  5374. setSiteTypeID();
  5375. // 用于脚本判断(针对部分特殊的网站)
  5376. SiteType = {
  5377. BAIDU_TIEBA: DBSite.baidu_tieba.SiteTypeID
  5378. };
  5379. }
  5380.  
  5381.  
  5382. if (webType != 1) {
  5383. switch (webType) {
  5384. case 2: // < 所有 Discuz!论坛 >
  5385. discuz_(); break;
  5386. case 3: // < 所有 Flarum 论坛 >
  5387. DBSite.flarum.functionS(); break;
  5388. case 4: // < 所有 phpBB 论坛 >
  5389. DBSite.phpbb.functionS(); break;
  5390. case 5: // < 所有 Xiuno 论坛 >
  5391. DBSite.xiuno.functionS(); break;
  5392. case 6: // < 所有 XenForo 论坛 >
  5393. DBSite.xenforo.functionS(); break;
  5394. case 100: // < 所有使用 WordPress DUX 主题的网站 >
  5395. DBSite.dux.functionS(); if (location.hostname === 'apphot.cc') {curSite.pager.scrollD = 2500;}; break;
  5396. case 101: // < 所有使用 WordPress XIU 主题的网站 >
  5397. DBSite.dux.functionS(); curSite.function = {bF: src_bF, pF: [0, 'img.thumb[data-original]', 'data-original']}; break;
  5398. case 102: // < 所有使用 WordPress D8 主题的网站 >
  5399. DBSite.dux.functionS(); delete curSite.function; break;
  5400. case 103: // < 所有使用 WordPress Begin 主题的网站 >
  5401. DBSite.begin.functionS(); break;
  5402. case 200: // < 所有使用 笔趣阁 模板的小说网站 >
  5403. DBSite.biquge.functionS(); break;
  5404. }
  5405. }
  5406.  
  5407. // 显示页码
  5408. if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');}
  5409. // 左键双击网页空白处暂停翻页
  5410. pausePageEvent();
  5411. // 强制新标签页打开链接(翻页模式 5/6)
  5412. if (curSite.forceTarget) forceTarget();
  5413.  
  5414. // 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则
  5415. if (locationC) {
  5416. nowLocation = location.href
  5417. addLocationchange(); // 自定义 locationChange 事件
  5418. if (webType === 1) {
  5419. window.addEventListener('locationChange', function(){
  5420. lp = location.pathname;
  5421. //console.log(nowLocation, location.href)
  5422. if (curSite.history && window.top.document.xiu_nowUrl === location.href) {nowLocation = location.href; return}
  5423. if (nowLocation == location.href) return
  5424. if (curSite.pager && curSite.pager.type == 5) {
  5425. if (self != top) {window.top.location.href = location.href;} else {if (getCSS('iframe#xiu_iframe')) {getCSS('iframe#xiu_iframe').remove();}}
  5426. pausePage = true;
  5427. } // 对于翻页模式 5,如果是 iframe 框架内 URL 变动,则升级为顶级页面,如果是顶级页面的 URL 变动,则清理 iframe 框架
  5428. nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码
  5429. registerMenuCommand(); // 重新判断规则
  5430. //console.log(curSite);
  5431. if (curSite.insStyle) {insStyle(curSite.insStyle)} // 插入 Style CSS 样式
  5432. curSite.pageUrl = ''; // 下一页URL
  5433. pageLoading(); // 自动无缝翻页
  5434.  
  5435. if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');} // 显示页码
  5436. pausePageEvent(); // 左键双击网页空白处暂停翻页
  5437. })
  5438. } else if (webType === 3) {
  5439. window.addEventListener('locationChange', function(){
  5440. lp = location.pathname;
  5441. if (nowLocation == location.href) return
  5442. nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码
  5443. DBSite.flarum.functionS(); // 重新判断规则
  5444. if (curSite.insStyle) {insStyle(curSite.insStyle)} // 插入 Style CSS 样式
  5445. pageLoading(); // 自动无缝翻页
  5446.  
  5447. if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');} // 显示页码
  5448. pausePageEvent(); // 左键双击网页空白处暂停翻页
  5449. })
  5450. }
  5451. }
  5452. // 插入 Style CSS 样式
  5453. if (curSite.insStyle) insStyle(curSite.insStyle)
  5454.  
  5455. // 对翻页模式 5 的子 iframe 添加一个跟随滚动的事件
  5456. if (curSite.pager && curSite.pager.type === 5 && self != top) {
  5457. var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop
  5458. window.addEventListener('scroll', function (e) {
  5459. let scrollTop = window.parent.document.documentElement.scrollTop || window.parent.document.body.scrollTop,
  5460. clientHeight = window.parent.document.documentElement.clientHeight || window.parent.document.body.clientHeight,
  5461. scrollHeight = window.parent.document.documentElement.scrollHeight || window.parent.document.body.scrollHeight,
  5462. afterScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  5463. delta = afterScrollTop - beforeScrollTop;
  5464. if (delta == 0) return false;
  5465. beforeScrollTop = afterScrollTop;
  5466. //console.log(delta, scrollHeight - (scrollTop + clientHeight), '2222')
  5467. if (delta > 0 && scrollTop + clientHeight < scrollHeight) {
  5468. window.parent.scrollBy(0, delta*2);
  5469. }
  5470. }, false);
  5471. }
  5472.  
  5473. curSite.pageUrl = ''; // 下一页URL
  5474. //console.log(curSite);
  5475. pageLoading(); // 自动无缝翻页
  5476.  
  5477.  
  5478. // --------------------------------------------------------
  5479.  
  5480.  
  5481. // [Discuz! 论坛] 判断各版块帖子列表类型
  5482. function discuzForum() {
  5483. if (getCSS('#autopbn')) { // 判断是否有 [下一页] 按钮
  5484. curSite = DBSite.discuz_forum;
  5485. } else if (getCSS('#waterfall')) { // 判断是否为图片模式
  5486. if (!getCSS('#pgbtn, .pgbtn')) { // 如果各版块帖子列表已存在这个元素,说明自带了无缝翻页
  5487. curSite = DBSite.discuz_waterfall; waterfallStyle(); // 图片模式列表样式预处理
  5488. }
  5489. } else {
  5490. curSite = DBSite.discuz_guide;
  5491. }
  5492. }
  5493. function discuz_() {
  5494. if (getCSS('body[id="nv_forum"][class^="pg_"][onkeydown*="27"]')) {
  5495. switch (getCSS('body[id="nv_forum"][class^="pg_"][onkeydown*="27"]').className) {
  5496. case 'pg_forumdisplay': // < 各版块帖子列表 >
  5497. discuzForum(); break;
  5498. case 'pg_viewthread': // < 帖子内 >
  5499. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread; break;
  5500. case 'pg_guide': // < 导读帖子列表等 >
  5501. curSite = DBSite.discuz_guide; break;
  5502. case 'pg_collection': // < 淘贴列表 >
  5503. curSite = DBSite.discuz_collection; break;
  5504. }
  5505. }
  5506. // 如果上面没有匹配的则继续 < 搜索结果 >
  5507. if (curSite.SiteTypeID === 0) {
  5508. if (indexOF('search') || getCSS('body[id="nv_search"][onkeydown*="27"]')) {
  5509. curSite = DBSite.discuz_search;
  5510. }
  5511. }
  5512. // 如果上面没有匹配的则继续
  5513. if (curSite.SiteTypeID === 0) {
  5514. if (indexOF('.html')) { // 判断是不是静态网页(.html 结尾)
  5515. if (indexOF('/forum-')) { // < 各版块帖子列表 >
  5516. discuzForum();
  5517. } else if (indexOF('/thread-')) { // < 帖子内 >
  5518. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread;
  5519. }
  5520. }
  5521. }
  5522. // 如果上面没有匹配的则继续
  5523. if (curSite.SiteTypeID === 0) {
  5524. if (indexOF('mod=forumdisplay', 's') || indexOF('forumdisplay.php')) { // < 各版块帖子列表 >
  5525. discuzForum();
  5526. } else if (indexOF('mod=viewthread', 's') || indexOF('viewthread.php')) { // < 帖子内 >
  5527. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread;
  5528. } else if (indexOF('mod=guide', 's')) { // < 导读帖子列表 >
  5529. curSite = DBSite.discuz_guide;
  5530. } else if(indexOF('mod=space', 's') && indexOF('do=thread', 's')) { // 别人的主题/回复
  5531. curSite = DBSite.discuz_youspace;
  5532. } else if (indexOF('mod=collection', 's')) { // < 淘贴列表 >
  5533. curSite = DBSite.discuz_collection;
  5534. } else if (getCSS('#threadlist')) { // < 部分论坛的各板块 URL 是自定义的 >
  5535. discuzForum();
  5536. } else if (getCSS('#postlist')) { // < 部分论坛的帖子内 URL 是自定义的 >
  5537. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread;
  5538. }
  5539. }
  5540. }
  5541. // [Discuz! 论坛] 图片模式列表样式预处理
  5542. function waterfallStyle() {
  5543. let width = getCSS('#waterfall > li:first-child').style.width;
  5544. if (width) insStyle(`#waterfall {height: auto !important; width: 100% !important;} #waterfall > li {width: ${width} !important; float: left !important; position: inherit !important; left: auto !important; top: auto !important;}`);
  5545. }
  5546.  
  5547.  
  5548. // [谷歌搜索] 的插入前函数(加载视频图片)
  5549. function google_bF(pageElems) {
  5550. if (!indexOF('tbm=nws', 's')){
  5551. pageElems.forEach(function (one) {
  5552. getAllCSS('a[aria-label][href*="https://www.youtube.com/watch?v="]').forEach(function (one1) {
  5553. let img = getCSS('img', one1)
  5554. if (img) img.src = `https://i.ytimg.com/vi/${one1.href.split('?v=')[1]}/mqdefault.jpg`
  5555. })
  5556. });
  5557. }
  5558. return pageElems
  5559. }
  5560.  
  5561.  
  5562. // [必应搜索] 的插入前函数(加载网站图标)
  5563. function bing_bF(pageElems) {
  5564. pageElems.forEach(function (one) {
  5565. getAllCSS('div.rms_iac[data-src]').forEach(function (one1) {
  5566. one1.outerHTML = `<img src="${one1.dataset.src}" height="16" width="16" alt="全球 Web 图标" role="presentation" class="rms_img">`;
  5567. })
  5568. });
  5569. return pageElems
  5570. }
  5571.  
  5572.  
  5573. // [头条搜索] 的插入前函数(过滤相关搜索)
  5574. function toutiao_bF(pageElems) {
  5575. if (getXpath('//div[contains(@class,"-header") and string()="相关搜索"]', pageElems[pageElems.length - 1])) pageElems[pageElems.length - 1].style.display = 'none';
  5576. return pageElems
  5577. }
  5578.  
  5579.  
  5580. // [Startpage] 获取下一页地址
  5581. function startpage_nextL() {
  5582. let form = getXpath('//div[contains(@class, "pagination ")]/form[./button[@class="pagination__next-prev-button next"]]'), value;
  5583. if (form) {
  5584. form.querySelectorAll('input[name]').forEach(function(input) {value += input.name + '=' + input.value + '&';}) // 生成表单参数
  5585. value = encodeURI(value.replace(/&$/,'')); // 清理最后一个 & 符号
  5586. if (form.action && value) return (form.action + '?' + value)
  5587. }
  5588. return '';
  5589. }
  5590.  
  5591.  
  5592. // [F 搜] 的插入前函数(移除旧页码)
  5593. function fsou_bF(pageElems) {
  5594. let old = getCSS('.bottom-pagination')
  5595. if (old) old.remove();
  5596. return pageElems
  5597. }
  5598.  
  5599.  
  5600. // [SkrBT] 获取下一页地址
  5601. function skrbt_nextL() {
  5602. let page = getCSS('a[onclick][aria-label="Next"]');
  5603. if (page) {page = /(?<=\()\d+(?=\))/.exec(page.onclick)[0];} else {return '';} // 获取下一页页码
  5604. if (page) {
  5605. let action = getCSS('#search-form').action, value = ''; // 获取提交表单 URL
  5606. getAllCSS('#search-form input[name]').forEach(function(input) {value += input.name + '=' + input.value + '&';}) // 生成表单参数
  5607. value = encodeURI(value.replace(/&$/,'').replace(/p=\d+/,'p=' + page)); // 清理最后一个 & 符号,并替换页码
  5608. if (action && value) return (action + '?' + value)
  5609. }
  5610. return '';
  5611. }
  5612.  
  5613.  
  5614. // [百度贴吧](发帖按钮点击事件)
  5615. function baidu_tieba_1() {
  5616. let button = getCSS('.tbui_aside_fbar_button.tbui_fbar_post > a');
  5617. if (button) {
  5618. button.remove();
  5619. getCSS('li.tbui_aside_fbar_button.tbui_fbar_down').insertAdjacentHTML(getAddTo(4), '<li class="tbui_aside_fbar_button tbui_fbar_post"><a href="javascript:void(0);" title="因为 [自动无缝翻页] 的原因,请点击该按钮发帖!"></a></li>')
  5620. button = getCSS('.tbui_aside_fbar_button.tbui_fbar_post > a');
  5621. if (button) {
  5622. button.onclick = function(){
  5623. let button2 = getCSS('div.edui-btn.edui-btn-fullscreen.edui-btn-name-portrait');
  5624. if (button2) {button2.click();} else {alert('提示:登录后才能发帖!');}
  5625. return false;
  5626. }
  5627. }
  5628. }
  5629. }
  5630. // [百度贴吧] 插入数据
  5631. function baidu_tieba_insertE(pageElems, type) {
  5632. if (!pageElems) return
  5633. // 获取 <script> 内容
  5634. const scriptElems = getXpath(`//script[contains(text(), 'Bigpipe.register("frs-list/pagelet/thread_list", ')]`, pageElems, pageElems);
  5635. if (scriptElems) {
  5636. // 从 <script> 中提取帖子列表字符串
  5637. let scriptText = scriptElems.textContent.replace('Bigpipe.register("frs-list/pagelet/thread_list", ','');
  5638. scriptText = scriptText.slice(0, scriptText.indexOf(').'));
  5639. // 字符串转 Element 元素
  5640. let temp_baidu_tieba = document.createElement('div'); temp_baidu_tieba.innerHTML = JSON.parse(scriptText).content;
  5641. processElems(temp_baidu_tieba);
  5642. }
  5643. }
  5644.  
  5645.  
  5646. // [V2EX] 的插入后函数(新标签页打开链接)
  5647. function v2ex_aF(css) {
  5648. let links = getAllCSS(css);if (!links) return
  5649. links.forEach(function (_this) {_this.target = '_blank';});
  5650. }
  5651.  
  5652.  
  5653. // [龙的天空] 获取下一页地址
  5654. function lkong_nextL() {
  5655. let next = getCSS('li.ant-pagination-next'), page;
  5656. if (next && next.getAttribute('aria-disabled') === 'false') {
  5657. page = getCSS('li.ant-pagination-item-active[title]');
  5658. if (page && page.title) {
  5659. return (location.origin + location.pathname + '?page=' + ++page.title);
  5660. }
  5661. }
  5662. return '';
  5663. }
  5664.  
  5665.  
  5666. // [游民星空-攻略] 的插入前函数(移除下一页底部的 "更多相关内容请关注:xxx" 文字)
  5667. function gamersky_gl_bF(pageElems) {
  5668. pageElems.forEach(function (one) {if (one.tagName === 'P' && one.textContent.indexOf('更多相关内容请关注') > -1) {one.style.display = 'none';}});
  5669. return pageElems
  5670. }
  5671.  
  5672.  
  5673. // [NexusMods] 获取下一页地址
  5674. function nexusmods_nextL() {
  5675. if (getCSS('.nexus-ui-blocker')) return
  5676. let modList;
  5677. if (indexOF('/news')) {modList = RH_NewsTabContent;} else {modList = RH_ModList;}
  5678. let out_items = JSON.stringify(modList.out_items).replace(/{|}|"/g,''),
  5679. nextNum = getXpath('//div[contains(@class, "pagenav")][1]//a[contains(@class, "page-selected")]/parent::li/following-sibling::li/a'),
  5680. categories = modList.out_items.categories, categoriesUrl = '';
  5681. var url = '';
  5682. if (nextNum && nextNum.innerText) {
  5683. nextNum = nextNum.innerText;
  5684. if (out_items.indexOf('page:') > -1) {
  5685. out_items = out_items.replace(/page:\d+/, `page:${nextNum}`)
  5686. } else {
  5687. out_items += `,page:${nextNum}`;
  5688. }
  5689. if (categories && categories != []) {
  5690. for (let i = 0; i < categories.length; i++) {
  5691. categoriesUrl += `,categories[]:${categories[i]}`
  5692. }
  5693. categoriesUrl = categoriesUrl.replace(/,/,'');
  5694. if (out_items.indexOf('categories:') > -1) {
  5695. out_items = out_items.replace(/categories:\[.*\]/, categoriesUrl)
  5696. }
  5697. }
  5698. return `https://www.nexusmods.com${modList.uri}?RH_${modList.id}=${out_items}`
  5699. }
  5700. return ''
  5701. }
  5702. // [NexusMods] 的插入前函数(隐藏底部元素)
  5703. function nexusmods_bF(pageElems) {
  5704. pageElems.forEach(function (one) {
  5705. let now = one.querySelector('.mod-tile-left');
  5706. if (now) {
  5707. let downloadCount = now.querySelector('.downloadcount > span.flex-label');
  5708. if (downloadCount) {
  5709. if (GlobalModStats[now.dataset.gameId] && GlobalModStats[now.dataset.gameId][now.dataset.modId]) {
  5710. downloadCount.textContent = shortFormat(parseInt(GlobalModStats[now.dataset.gameId][now.dataset.modId].total));
  5711. }
  5712. }
  5713. }
  5714. });
  5715. return pageElems
  5716. }
  5717.  
  5718.  
  5719. // [cs_rin_ru] 各版块帖子列表的插入前函数(过滤置顶帖子)
  5720. function cs_rin_ru_bF(pageElems) {
  5721. for (let i = 0; i < pageElems.length; i++) {
  5722. if (pageElems[i].textContent.replace(/\n| /g,'') === 'Topics') {
  5723. pageElems.splice(0,i+1);
  5724. break;
  5725. }
  5726. }
  5727. return pageElems
  5728. }
  5729.  
  5730.  
  5731. // [bilibili_search] 获取下一页地址
  5732. function bilibili_search_nextL() {
  5733. if (!location.search) return
  5734. let pageActive = 1, pageLast = parseInt(getXpath('//ul[@class="pages"]/li[contains(@class, "page-item")][not(contains(@class, "next") or contains(@class, "prev"))][last()]').innerText);
  5735. if (!pageLast) return
  5736. if (indexOF(/page=\d+/, 's')) {
  5737. pageActive = parseInt(/page=\d+/.exec(location.search)[0].replace('page=',''))
  5738. }
  5739. if (pageActive < pageLast) {
  5740. if (indexOF(/page=\d+/, 's')) {
  5741. return (location.origin + location.pathname + location.search.replace(/page=\d+/,`page=${pageActive+1}`))
  5742. } else {
  5743. return (location.origin + location.pathname + location.search + `&page=${pageActive+1}`)
  5744. }
  5745. }
  5746. }
  5747. // [bilibili_search] 插入后函数(加载图片)
  5748. function bilibili_search_aF() {
  5749. let result = __INITIAL_STATE__.flow[__INITIAL_STATE__.flow.fields[0]].result;
  5750. if (result.length > 0) {
  5751. let imgArr = getAllCSS('.img > .lazy-img > img[src=""]');
  5752. if (imgArr.length > 0) {
  5753. for (let i = 0; i < imgArr.length; i++) {
  5754. imgArr[i].src = result[i].pic;
  5755. }
  5756. }
  5757. }
  5758. }
  5759.  
  5760.  
  5761. // [Anime1] 获取下一页内容(叠加)
  5762. function anime1_nextL() {
  5763. let next = getCSS('#tablepress-1_next');
  5764. if (next && next.className.indexOf('disabled') === -1) {
  5765. let oldList = getCSS('tbody.row-hover').innerHTML;
  5766. if (oldList) {
  5767. next.click();
  5768. pageNum.now = pageNum._now + 1;
  5769. getCSS('tbody.row-hover').insertAdjacentHTML('afterbegin', oldList); // 插入到列表头部
  5770. }
  5771. }
  5772. }
  5773.  
  5774.  
  5775. // [BTHaha] 的插入前函数(隐藏底部元素)
  5776. function bthaha_bF(pageElems) {
  5777. pageElems.forEach(function (one) {
  5778. let now = one.querySelector('[id^="list_top"], [id^="list_bottom"]')
  5779. if (now) {one.hidden = true;}
  5780. });
  5781. return pageElems
  5782. }
  5783.  
  5784.  
  5785. // [RARBG] 的插入前函数(鼠标指向显示封面)
  5786. function rarbg_bF(pageElems) {
  5787. pageElems.forEach(function (one) {
  5788. one.querySelectorAll('td > a[onmouseover][onmouseout]').forEach(function (now) {
  5789. now.parentElement.parentElement.setAttribute('onmouseover', now.getAttribute('onmouseover')); now.removeAttribute('onmouseover');
  5790. now.parentElement.parentElement.setAttribute('onmouseout', now.getAttribute('onmouseout')); now.removeAttribute('onmouseout');
  5791. });
  5792. });
  5793. return pageElems
  5794. }
  5795.  
  5796.  
  5797. // [LRepacks] 的插入前函数(调整 class)
  5798. function lrepacks_bF(pageElems) {
  5799. pageElems.forEach(function (one) {
  5800. let now = one.querySelector('.slideUp, .elementFade')
  5801. if (now) {
  5802. now.className = now.className.replace('slideUp','slideUpRun').replace('elementFade','elementFadeRun');
  5803. }
  5804. });
  5805. return pageElems
  5806. }
  5807.  
  5808.  
  5809. // [漫画狂] 获取下一页地址
  5810. function cartoonmad_nextL() {
  5811. let url = getXpath('//a[@class="pages"][contains(text(),"下一頁")]');
  5812. if (url) {
  5813. if (url.getAttribute('href') === 'thend.asp') {
  5814. url = getXpath('//a[@class="pages"][contains(string(),"下一話")]')
  5815. if (url) return url.href;
  5816. pausePage = false;
  5817. GM_notification({text: `注意:该网站早期漫画(如海贼王、柯南)因为网站自身问题而无法翻至下一话(仅限于显示为 [第 X 卷]/[下一卷] 的)。\n因此需要手动去 [目录页] 进入下一卷!`, timeout: 10000});
  5818. } else {
  5819. return url.href;
  5820. }
  5821. }
  5822. return '';
  5823. }
  5824.  
  5825.  
  5826. // [漫画猫] 初始化(显示本话所以图片)
  5827. function manhuacat_init() {
  5828. let _img = '';
  5829. for (let now of img_data_arr) {_img += `<img src="${asset_domain}${img_pre}${now}">`;}
  5830. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  5831.  
  5832. }
  5833. // [漫画猫] 获取下一页地址
  5834. function manhuacat_nextL(pageElems, type) {
  5835. if (type === 'url') {
  5836. if(pageElems.code == '0000') {
  5837. if (pageElems.url === curSite.pageUrl) return
  5838. curSite.pageUrl = pageElems.url;
  5839. getPageElems_(curSite.pageUrl); // 真正的下一页链接
  5840. }
  5841. } else {
  5842. let vg_r_data = getCSS('.vg-r-data');
  5843. if (vg_r_data) {
  5844. getPageElems_(`${location.origin}/chapter_num?chapter_id=${vg_r_data.dataset.chapter_num}&ctype=1&type=${vg_r_data.dataset.chapterType};`, 'json', 'GET', '', 'url');
  5845. }
  5846. }
  5847. }
  5848. // [漫画猫] 插入数据
  5849. function manhuacat_insertE(pageElems, type) {
  5850. if (!pageElems) return
  5851. if (type === 'url') { // 获取下一页链接
  5852. manhuacat_nextL(pageElems, type); return
  5853. }
  5854. addHistory(pageElems);
  5855. replaceElems(pageElems);
  5856.  
  5857. // 插入图片
  5858. let _img = '', _img_arr = LZString.decompressFromBase64(getXpath('//body/script[not(@src)][contains(text(), "img_data")]').textContent.split('"')[1]).split(','), vg_r_data = getCSS('.vg-r-data');;
  5859. for (let now of _img_arr) {_img += `<img src="${vg_r_data.dataset.chapterDomain}${img_pre}${now}">`;}
  5860. if (_img) {
  5861. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5862. pageNum.now = pageNum._now + 1
  5863. }
  5864. }
  5865.  
  5866.  
  5867. // [漫画柜] 初始化(将本话其余图片插入网页中)
  5868. function manhuagui_init() {
  5869. // hook imgDate 代码
  5870. SMH.imgData = function(n) {window['imgDate'] = n;return{preInit:function(){}}}
  5871. // 重新执行本页的 imgDate 代码
  5872. insScript(curSite.pager.pageE);
  5873. let _img = '', imgPath = `${location.protocol}//i.hamreus.com${window['imgDate'].path}`;
  5874. //console.log(imgPath, window['imgDate'])
  5875. if (!(window['imgDate']) || !(imgPath)) return
  5876. // 遍历图片文件名数组,组合为 img 标签
  5877. for (let i = 0; i < window['imgDate'].files.length; i++) {_img += `<img src="${imgPath + window['imgDate'].files[i]}?e=${window['imgDate'].sl.e}&m=${window['imgDate'].sl.m}">`;}
  5878. // 插入并覆盖原来的一个图片
  5879. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  5880. pausePage = true;
  5881. }
  5882. // [漫画柜] 获取下一页地址
  5883. function manhuagui_nextL() {
  5884. if (window['imgDate'].nextId == 0) return
  5885. var url = location.origin + location.pathname.replace(window['imgDate'].cid.toString(), window['imgDate'].nextId.toString())
  5886. if (url === curSite.pageUrl) return
  5887. curSite.pageUrl = url
  5888. getPageElems_(curSite.pageUrl);
  5889. }
  5890. // [漫画柜] 插入数据
  5891. function manhuagui_insertE(pageElems, type) {
  5892. if (!pageElems) return
  5893. // 重新执行本页的 imgDate 代码
  5894. insScript(curSite.pager.pageE, document.body, pageElems);
  5895. let _img = '', imgPath = `${location.protocol}//i.hamreus.com${window['imgDate'].path}`;
  5896. //console.log(imgPath, window['imgDate'])
  5897. if (!(window['imgDate']) || !(imgPath)) return
  5898. // 遍历图片文件名数组,组合为 img 标签
  5899. for (let i = 0; i < window['imgDate'].files.length; i++) {_img += `<img src="${imgPath + window['imgDate'].files[i]}?e=${window['imgDate'].sl.e}&m=${window['imgDate'].sl.m}">`;}
  5900. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
  5901. addHistory(pageElems);
  5902. pageNum.now = pageNum._now + 1
  5903. }
  5904.  
  5905.  
  5906. // [漫画 DB] 初始化(将本话其余图片插入网页中)
  5907. function manhuadb_init() {
  5908. let _img = '', data = getCSS('.vg-r-data'), imgDate;
  5909. if (!data) return
  5910. getAllCSS(curSite.pager.pageE.replace('css;', '')).forEach(function (one) {
  5911. if (one.tagName === 'SCRIPT' && one.textContent.indexOf('var img_data =') > -1) {
  5912. let json = JSON.parse(window.atob(one.textContent.split("'")[1]));
  5913. if (json) {
  5914. let _img = '';
  5915. for (let i = 0; i < json.length; i++) {_img += `<img class="img-fluid show-pic" src="${data.dataset.host + data.dataset.img_pre + json[i].img}">`;}
  5916. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5917. }
  5918. }
  5919. })
  5920. }
  5921. // [漫画 DB] 获取下一页地址
  5922. function manhuadb_nextL() {
  5923. let nextArr = getAllCSS('a.fixed-a-es'), next;
  5924. var url = '';
  5925. if (nextArr.length == 0) return
  5926. for (let i = 0; i < nextArr.length; i++) {
  5927. if (nextArr[i].className.indexOf('active') > -1) {
  5928. if (nextArr[i+1]) url = nextArr[i+1].href;
  5929. break;
  5930. }
  5931. }
  5932. if (url === curSite.pageUrl) return
  5933. curSite.pageUrl = url
  5934. getPageElems_(curSite.pageUrl);
  5935. }
  5936. // [漫画 DB] 插入数据
  5937. function manhuadb_insertE(pageElems, type) {
  5938. if (!pageElems) return
  5939. if (replaceElems(pageElems, curSite.pager.pageE, curSite.pager.pageE)) {
  5940. addHistory(pageElems);
  5941. pageNum.now = pageNum._now + 1
  5942. manhuadb_init(); // 将刚刚替换的图片插入网页中
  5943. }
  5944. }
  5945.  
  5946.  
  5947. // [HiComic(嗨漫画)] 初始化(将本话其余图片插入网页中)
  5948. function hicomic_init() {
  5949. let _img = '';
  5950. getAllCSS('.chapter > section:not(:first-child) > section[val]').forEach(function (one) {
  5951. let src = one.getAttribute('val');
  5952. if (src.indexOf('!p_c_c_') === -1) src += '!p_c_c_h'
  5953. _img += `<img src="${src}">`
  5954. })
  5955. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5956. window.document.title = window.document.title.replace(/(\(第.+\))? - HiComic/, `(${getCSS('.chapter_name').textContent}) - HiComic`); // 修改网页标题(加上 第 X 话)
  5957. }
  5958. // [HiComic(嗨漫画)] 获取下一页地址
  5959. function hicomic_nextL() {
  5960. let nextId;
  5961. nextId = getCSS('.next_chapter:not(.end)')
  5962. if (nextId && nextId.id && nextId.id != 'None') {
  5963. curSite.pageUrl = location.href;
  5964. getPageElems_(`https://www.hicomic.net/api/web/chapter/${nextId.id}/contents`, 'json');
  5965. }
  5966. }
  5967. // [HiComic(嗨漫画)] 插入数据
  5968. function hicomic_insertE(pageElems, type) {
  5969. if (!pageElems || pageElems.code != 200) return
  5970. if (pageElems.results.chapter.next) { // 写入下一页的 UUID
  5971. getCSS('.next_chapter').id = pageElems.results.chapter.next;
  5972. } else {
  5973. getCSS('.next_chapter').id = 'None';
  5974. getCSS('.next_chapter').classList.add('end');
  5975. }
  5976. curSite.pageUrl =`https://www.hicomic.net/chapters/${pageElems.results.chapter.uuid}/contents`
  5977. getCSS('.chapter_name').textContent = pageElems.results.chapter.name; // 修改漫画标题
  5978. addHistory(pageElems, window.document.title.replace(/(\(第.+\))? - HiComic/, `(${pageElems.results.chapter.name}) - HiComic`));
  5979. let _img = '';
  5980. for (let i = 0; i < pageElems.results.chapter.contents.length; i++) { // 遍历图片文件名数组,组合为 img 标签
  5981. let src = pageElems.results.chapter.contents[i].url;
  5982. if (src.indexOf('!p_c_c_') === -1) src += '!p_c_c_h';
  5983. _img += `<img src="${src}">`
  5984. }
  5985. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5986. pageNum.now = pageNum._now + 1
  5987. }
  5988.  
  5989.  
  5990. // [动漫之家] 初始化(调整本话其余图片)
  5991. function dmzj_init(css) {
  5992. let _img = '';
  5993. getAllCSS(css).forEach(function (one) {_img += `<img src="${one.dataset.original}">`;})
  5994. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  5995. }
  5996. // [动漫之家] 插入数据
  5997. function dmzj_insertE(pageElems, type) {
  5998. if (!pageElems) return
  5999. // 插入并运行 <script>
  6000. insScript('css;head > script[type]:not([src])', document.body, pageElems);
  6001.  
  6002. // 插入图片
  6003. let _img = '', _img_arr;
  6004. if (pages.indexOf('|') === -1) {
  6005. _img_arr = JSON.parse(pages.replace(/\r\n/g,'|')).page_url.split('|');
  6006. } else {
  6007. _img_arr = JSON.parse(pages).page_url.split('|');
  6008. }
  6009. for (let now of _img_arr) {
  6010. _img += `<img src="${img_prefix}${now}">`;
  6011. }
  6012. if (_img) {
  6013. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6014. addHistory(pageElems);
  6015. if (replaceElems(pageElems)) pageNum.now = pageNum._now + 1
  6016. }
  6017. }
  6018. // [动漫之家-漫画] 插入数据
  6019. function dmzj_manhua_insertE(pageElems, type) {
  6020. if (!pageElems) return
  6021. // 插入并运行 <script>
  6022. insScript('css;head > script[type]:not([src])', document.body, pageElems);
  6023.  
  6024. // 插入图片
  6025. let _img = '';
  6026. for (let now of arr_pages) {
  6027. _img += `<img src="${img_prefix}${now}">`;
  6028. }
  6029. if (_img) {
  6030. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6031. addHistory(pageElems);
  6032. if (replaceElems(pageElems)) pageNum.now = pageNum._now + 1
  6033. }
  6034. }
  6035.  
  6036.  
  6037. // [动漫戏说] 插入后函数(加载图片)
  6038. function acgn_aF() {
  6039. let old = getAllCSS('.pic[_src][id]'), _img = '';
  6040. if (old.length > 0) {
  6041. for (let now of old) {now.outerHTML = `<div class="pic" _src="${now.getAttribute('_src')}"><img src="${now.getAttribute('_src')}" class="img1"></div>`;}
  6042. }
  6043. }
  6044.  
  6045.  
  6046. // [漫画星球] 插入数据
  6047. function mhxqiu_insertE(pageElems, type) {
  6048. if (!pageElems) return
  6049. // 插入并运行 <script>
  6050. insScript('//script[contains(text(), "eval") and contains(text(), "newImgs")]', document.body, pageElems);
  6051.  
  6052. // 插入图片
  6053. let _img = '';
  6054. for (let now of newImgs) {_img += `<li><div style="display: inline-block;zoom: 1;"><img src="${now}" class="loaded lazy" style="opacity: 1;box-shadow:none;"></div></li>`;}
  6055. if (_img) {
  6056. // 将 img 标签插入到网页中
  6057. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
  6058. addHistory(pageElems);
  6059. pageNum.now = pageNum._now + 1
  6060. replaceElems(pageElems)
  6061. }
  6062. }
  6063.  
  6064.  
  6065. // [风之动漫] 插入数据
  6066. function fffdm_insertE(pageElems, type) {
  6067. if (!pageElems) return
  6068. // 插入并运行 <script>
  6069. let scriptElems = getXpath('id("main")/script[contains(text(), "mhpicurl")][1]', pageElems, pageElems);
  6070. if (scriptElems) {
  6071. document.body.appendChild(document.createElement('script')).textContent = scriptElems.textContent.replace(/document\.write.+/, '');
  6072.  
  6073. // 插入图片
  6074. setTimeout(function() {
  6075. getOne(curSite.pager.insertP[0]).appendChild(document.createElement('img')).src = mhpicurl;
  6076. addHistory(pageElems);
  6077. pageNum.now = pageNum._now + 1
  6078. replaceElems(pageElems)
  6079. }, 100)
  6080. }
  6081. }
  6082.  
  6083.  
  6084. // [乐语漫画] 初始化(调整本话其余图片)
  6085. function leyuman_init() {
  6086. let _img = '';
  6087. for (let one of JSON.parse(z_img)) {
  6088. if (one.slice(0,4) === 'http') {
  6089. _img += `<img src="${one}">`;
  6090. } else {
  6091. _img += `<img src="https://img.shishi-life.com/${one}">`;
  6092. }
  6093. }
  6094. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  6095.  
  6096. }
  6097. // [乐语漫画] 插入数据
  6098. function leyuman_insertE(pageElems, type) {
  6099. if (!pageElems) return
  6100. // 插入并运行 <script>
  6101. insScript('//body//script[not(@src)][contains(text(), "z_img=")]', document.body, pageElems);
  6102.  
  6103. // 插入图片
  6104. let _img = '';
  6105. for (let one of JSON.parse(z_img)) {
  6106. if (one.slice(0,4) === 'http') {
  6107. _img += `<img src="${one}">`;
  6108. } else {
  6109. _img += `<img src="https://img.shishi-life.com/${one}">`;
  6110. }
  6111. }
  6112. if (_img) {
  6113. // 将 img 标签插入到网页中
  6114. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
  6115. addHistory(pageElems);
  6116. pageNum.now = pageNum._now + 1
  6117. replaceElems(pageElems)
  6118. }
  6119. }
  6120.  
  6121.  
  6122. // [新新漫画] 初始化(调整本话其余图片)
  6123. function _77mh_init() {
  6124. let _img = '';
  6125. for (let one of arr) {_img += `<img src="${img_qianz}${one}">`;}
  6126. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  6127. }
  6128. // [新新漫画] 获取下一页地址
  6129. function _77mh_nextL() {
  6130. let next = nextLink_b
  6131. if (next && next != curSite.pageUrl) {
  6132. curSite.pageUrl = next;
  6133. getPageElems_(curSite.pageUrl);
  6134. }
  6135. }
  6136. // [新新漫画] 插入数据
  6137. function _77mh_insertE(pageElems, type) {
  6138. if (!pageElems) return
  6139. // 插入并运行 <script>
  6140. insScript('//script[not(@src)][contains(text(), "eval(")]', document.body, pageElems);
  6141.  
  6142. // 插入图片
  6143. let _img = '';
  6144. for (let one of msg.split('|')) {_img += `<img src="${img_qianz}${one}.webp">`;}
  6145. if (_img) {
  6146. // 将 img 标签插入到网页中
  6147. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
  6148. addHistory(pageElems);
  6149. pageNum.now = pageNum._now + 1
  6150. }
  6151. }
  6152.  
  6153.  
  6154. // [古风漫画网] 获取下一页地址
  6155. function gufengmh_nextL() {
  6156. let pageElems = getOne(curSite.pager.pageE); // 寻找数据所在元素
  6157. if (pageElems) {
  6158. let comicUrl, nextId;
  6159. var url = '';
  6160. pageElems.textContent.split(';').forEach(function (one){ // 分号 ; 分割为数组并遍历
  6161. //console.log(one)
  6162. if (one.indexOf('comicUrl') > -1) { // 下一页 URL 前半部分
  6163. comicUrl = one.split('"')[1];
  6164. } else if (one.indexOf('nextChapterData') > -1) { // 下一页 URL 的后半部分 ID
  6165. nextId = one.split('"id":')[1].split(',')[0];
  6166. }
  6167. })
  6168. if (comicUrl && nextId && nextId != 'null') { // 组合到一起就是下一页 URL
  6169. url = comicUrl + nextId + '.html'
  6170. if (url === curSite.pageUrl) return
  6171. curSite.pageUrl = url
  6172. getPageElems_(curSite.pageUrl); // 访问下一页 URL 获取
  6173. }
  6174. }
  6175. }
  6176. // [古风漫画网] 插入数据
  6177. function gufengmh_insertE(pageElems, type) {
  6178. if (pageElems) {
  6179. let url = curSite.pageUrl;
  6180. pageElems = getOne(curSite.pager.pageE, pageElems, pageElems);
  6181. let chapterImages, chapterPath;
  6182. getOne(curSite.pager.pageE).innerText = pageElems.textContent; // 将当前网页内的数据所在元素内容改为刚刚获取的下一页数据内容,以便循环获取下一页 URL
  6183. pageElems.textContent.split(';').forEach(function (one){ // 分号 ; 分割为数组并遍历
  6184. //console.log(one)
  6185. if (one.indexOf('chapterImages') > -1) { // 图片文件名数组
  6186. chapterImages = one.replace(/^.+\[/, '').replace(']', '').replaceAll('"', '').split(',')
  6187. } else if (one.indexOf('chapterPath') > -1) { // 图片文件路径
  6188. chapterPath = one.split('"')[1];
  6189. } else if (one.indexOf('pageTitle') > -1) { // 网页标题
  6190. addHistory(pageElems, one.split('"')[1]);
  6191. }
  6192. })
  6193. if (chapterImages && chapterPath) {
  6194. let _img = '';
  6195. chapterImages.forEach(function (one2){_img += '<img src="https://res.xiaoqinre.com/' + chapterPath + one2 + '" data-index="0" style="display: inline-block;">';})
  6196. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6197. pageNum.now = pageNum._now + 1
  6198. }
  6199. }
  6200. }
  6201.  
  6202.  
  6203. // [Mangabz 漫画] 初始化(调整本话图片)
  6204. function mangabz_init() {
  6205. let showimage = getCSS('#showimage'),
  6206. cp_img = getCSS('#cp_img'),
  6207. cp_image = getCSS('#cp_image');
  6208. if (showimage) {showimage.removeAttribute('oncontextmenu');}
  6209. if (cp_img) {cp_img.removeAttribute('oncontextmenu');}
  6210. if (cp_image) {
  6211. cp_image.removeAttribute('oncontextmenu');
  6212. cp_image.removeAttribute('id');
  6213. cp_image.removeAttribute('style');
  6214. }
  6215. }
  6216. // [Mangabz 漫画] 获取下一页地址
  6217. function mangabz_nextL() {
  6218. var url = '';
  6219. if (MANGABZ_PAGE === MANGABZ_IMAGE_COUNT) { // 下一话
  6220. if (getNextE('//a[./img[contains(@src, "icon_xiayizhang")]]')) getPageElems_(curSite.pageUrl); // 访问下一话 URL 获取
  6221. } else { // 下一页
  6222. if (!mkey) var mkey = '';
  6223. url = location.origin + location.pathname + 'chapterimage.ashx' + `?cid=${MANGABZ_CID}&page=${MANGABZ_PAGE + 1}&key=${(mkey)}&_cid=${MANGABZ_CID}&_mid=${MANGABZ_MID}&_dt=${MANGABZ_VIEWSIGN_DT}&_sign=${MANGABZ_VIEWSIGN}`
  6224. if (url === curSite.pageUrl) return
  6225. curSite.pageUrl = url
  6226. //console.log(curSite.pageUrl)
  6227. getPageElems_(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取
  6228. }
  6229. }
  6230. // [Mangabz 漫画] 插入数据
  6231. function mangabz_insertE(pageElems, type) {
  6232. if (pageElems) {
  6233. if (type === 'Next') { // 下一页
  6234. let imgArr = eval(pageElems),
  6235. _img = '';
  6236. for (let now of imgArr) {_img += `<img src="${now}">`;}
  6237. if (_img) {
  6238. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6239. MANGABZ_PAGE += imgArr.length;
  6240. addHistory(pageElems, document.title, location.origin + MANGABZ_CURL.substring(0, MANGABZ_CURL.length - 1) + '-p' + MANGABZ_PAGE + '/');
  6241. }
  6242. } else { // 下一话
  6243. // 插入 <script> 标签
  6244. insScript('css;html:not([dir]) > head > script:not([src])', document.body, pageElems);
  6245. addHistory(pageElems);
  6246. pageNum.now = pageNum._now + 1
  6247. replaceElems(pageElems)
  6248. MANGABZ_PAGE = 0;
  6249. mangabz_nextL();
  6250. }
  6251. }
  6252. }
  6253.  
  6254.  
  6255. // [Xmanhua 漫画] 获取下一页地址
  6256. function xmanhua_nextL() {
  6257. var url = '';
  6258. if (XMANHUA_PAGE === XMANHUA_IMAGE_COUNT) { // 下一话
  6259. if (getNextE('//a[./img[contains(@src, "reader-bottom-right-2.png")]]')) getPageElems_(curSite.pageUrl); // 访问下一话 URL 获取
  6260. } else { // 下一页
  6261. if (!mkey) var mkey = '';
  6262. url = location.origin + location.pathname + 'chapterimage.ashx' + `?cid=${XMANHUA_CID}&page=${XMANHUA_PAGE + 1}&key=${(mkey)}&_cid=${XMANHUA_CID}&_mid=${XMANHUA_MID}&_dt=${XMANHUA_VIEWSIGN_DT}&_sign=${XMANHUA_VIEWSIGN}`
  6263. if (url === curSite.pageUrl) return
  6264. curSite.pageUrl = url
  6265. //console.log(curSite.pageUrl)
  6266. getPageElems_(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取
  6267. }
  6268. }
  6269. // [Xmanhua 漫画] 插入数据
  6270. function xmanhua_insertE(pageElems, type) {
  6271. if (pageElems) {
  6272. if (type === 'Next') { // 下一页
  6273. let imgArr = eval(pageElems),
  6274. _img = '';
  6275. for (let now of imgArr) {_img += `<img src="${now}">`;}
  6276. if (_img) {
  6277. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6278. XMANHUA_PAGE += imgArr.length;
  6279. addHistory(pageElems, document.title, location.origin + XMANHUA_CURL.substring(0, XMANHUA_CURL.length - 1) + '-p' + XMANHUA_PAGE + '/');
  6280. }
  6281. } else { // 下一话
  6282. // 插入 <script> 标签
  6283. insScript('css;html:not([dir]) > head > script:not([src])', document.body, pageElems);
  6284. addHistory(pageElems);
  6285. pageNum.now = pageNum._now + 1
  6286. replaceElems(pageElems)
  6287. XMANHUA_PAGE = 0;
  6288. xmanhua_nextL();
  6289. }
  6290. }
  6291. }
  6292.  
  6293.  
  6294. // [COCOMANGA 漫画] 初始化(调整本话图片)
  6295. function cocomanga_init() {
  6296. let last = getCSS('.mh_comicpic:last-of-type');
  6297. if (last && last.getAttribute('p')) {
  6298. getOne(curSite.pager.insertP[0]).innerHTML = ''; // 删除旧图片元素
  6299. cocomanga_img(parseInt(last.getAttribute('p'))) // 插入新图片元素
  6300. }
  6301. }
  6302. // [COCOMANGA 漫画] 生成图片元素并插入网页
  6303. function cocomanga_img(totalImageCount) {
  6304. if (totalImageCount < 1) return
  6305. let _img = '';
  6306. for (let i=1; i<=totalImageCount; i++) {_img += `<div class="mh_comicpic" p="${i}"><img src="${__cr.getPicUrl(i)}"></div>`;}
  6307. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6308. }
  6309. // [COCOMANGA 漫画] 插入数据
  6310. function cocomanga_insertE(pageElems, type) {
  6311. if (pageElems) {
  6312. // 插入 <script> 标签
  6313. insScript('css;head > script:not([src]), script[src*="custom.js"], script[src*="dynamicjs.js"]', document.body, pageElems);
  6314.  
  6315. // 插入新图片元素
  6316. setTimeout(function() {
  6317. let totalImageCount = __cdecrypt('fw122587mkertyui', CryptoJS.enc.Base64.parse(mh_info.enc_code1).toString(CryptoJS.enc.Utf8));
  6318. if (!totalImageCount) totalImageCount = __cdecrypt('fw12558899ertyui', CryptoJS.enc.Base64.parse(mh_info.enc_code1).toString(CryptoJS.enc.Utf8));
  6319. cocomanga_img(parseInt(totalImageCount));
  6320. }, 100)
  6321. addHistory(pageElems);
  6322. pageNum.now = pageNum._now + 1
  6323. replaceElems(pageElems)
  6324. }
  6325. }
  6326.  
  6327.  
  6328. // [国家自然科学基金] 获取下一页地址
  6329. function nsfc_nextL() {
  6330. let id = decodeURIComponent(document.location.href.split('/')[document.location.href.split('/').length - 1]), data
  6331. if (!document.nowPageNum) document.nowPageNum = 2
  6332. data = `id=${id}&index=${document.nowPageNum}`
  6333. if (data === curSite.pageUrl) return
  6334. curSite.pageUrl = data
  6335. getPageElems_(location.origin + '/baseQuery/data/completeProjectReport', 'json', 'POST', data); // 访问下一页 URL 获取
  6336. }
  6337. // [国家自然科学基金] 插入数据
  6338. function nsfc_insertE(pageElems, type) {
  6339. if (!pageElems || pageElems.code != 200) {curSite.SiteTypeID = 0; return}
  6340. if (!pageElems.data.hasnext) {curSite.SiteTypeID = 0} else {document.nowPageNum++}
  6341. pageNum.now = pageNum._now + 1
  6342. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), `<img style="width: 100%;" data-magnify="gallery" data-src="${pageElems.data.url}" src="${pageElems.data.url}">`);
  6343. }
  6344.  
  6345.  
  6346.  
  6347. // [酷科研] 获取下一页地址
  6348. function coolkeyan_nextL() {
  6349. if (!getCSS('.q-img__image')) return
  6350. let id = getCSS('.q-breadcrumbs--last > span.q-breadcrumbs__el'), data
  6351. if (id && id.textContent) {id=parseInt(id.textContent)} else {return}
  6352. if (!document.nowPageNum) document.nowPageNum = 2
  6353. data = `ratify_no=${id}&index=${document.nowPageNum}`
  6354. if (data === curSite.pageUrl) return
  6355. curSite.pageUrl = data
  6356. getPageElems_(location.origin + '/api/funds/nsfc/creport?' + data, 'json', 'GET'); // 访问下一页 URL 获取
  6357. }
  6358. // [酷科研] 插入数据
  6359. function coolkeyan_insertE(pageElems, type) {
  6360. if (!pageElems || pageElems == {}) {curSite.SiteTypeID = 0; return}
  6361. if (!pageElems.url) {curSite.SiteTypeID = 0; return} else {document.nowPageNum++}
  6362. pageNum.now = pageNum._now + 1
  6363. getCSS('.q-img>div[style*="padding-bottom"]').style.paddingBottom = `${(document.nowPageNum * 1000) - 1000}px`
  6364. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), `<div class="q-img__image absolute-full" style="background-size: contain; background-position: 50% 50%; background-image: url('${pageElems.url}'); top: ${(document.nowPageNum * 1000) - 2000}px"></div>`);
  6365. }
  6366.  
  6367.  
  6368. // --------------------------------------------------------
  6369.  
  6370.  
  6371. // 自动无缝翻页
  6372. function pageLoading() {
  6373. if (curSite.SiteTypeID == 0) return
  6374. windowScroll(function (direction, e) {
  6375. // 下滑 且 未暂停翻页 且 SiteTypeID > 0 时,才准备翻页
  6376. if (direction != 'down' || !pausePage || curSite.SiteTypeID == 0) return
  6377. // 翻页模式 5 且为框架内时,要判断顶层是否通过页码暂停翻页了
  6378. if (curSite.pager.type == 5 && self != top && window.top.document.xiu_pausePage == false) return
  6379.  
  6380. let scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop,
  6381. scrollHeight = window.innerHeight || document.documentElement.clientHeight,
  6382. scrollD = curSite.pager.scrollD;
  6383.  
  6384. // <<<<< 翻页类型 3(依靠 [基准元素] 与 [浏览器可视区域底部] 之间的距离缩小来触发翻页)>>>>>
  6385. if (curSite.pager.type === 3) {
  6386. let scrollE = getOne(curSite.pager.scrollE);
  6387. //console.log(scrollE.offsetTop, scrollE.offsetTop - (scrollTop + scrollHeight), scrollD, scrollTop + scrollHeight, curSite.SiteTypeID)
  6388. if (scrollE.offsetTop - (scrollTop + scrollHeight) <= scrollD) {intervalPause(); checkURL(getPageElems);}
  6389.  
  6390. } else {
  6391. if (document.documentElement.scrollHeight <= scrollHeight + scrollTop + scrollD) {
  6392. // <<<<< 翻页类型 1(由脚本实现自动无缝翻页)>>>>>
  6393. if (curSite.pager.type === 1) {
  6394. intervalPause(); checkURL(getPageElems);
  6395.  
  6396. // <<<<< 翻页类型 2(网站自带了自动无缝翻页功能,只需要点击下一页按钮即可)>>>>>
  6397. } else if (curSite.pager.type === 2) {
  6398. let autopbn = getOne(curSite.pager.nextL);
  6399. if (!autopbn) return
  6400. if (curSite.pager.isHidden && isHidden(autopbn)) return // 如果 isHidden = true,那么需要判断元素是否隐藏
  6401. if (curSite.pager.nextText) {
  6402. // 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页
  6403. if (autopbn.innerText === curSite.pager.nextText) {autopbn.click(); pageNum.now = pageNum._now + 1;}
  6404. } else if (curSite.pager.nextTextOf) {
  6405. // 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页
  6406. if (autopbn.innerText.indexOf(curSite.pager.nextTextOf) > -1) {autopbn.click(); pageNum.now = pageNum._now + 1;}
  6407. } else if (curSite.pager.nextHTML) {
  6408. // 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页
  6409. if (autopbn.innerHTML === curSite.pager.nextHTML) {autopbn.click(); pageNum.now = pageNum._now + 1;}
  6410. } else {
  6411. // 对于没有按钮文字变化的按钮,可以指定间隔时间(默认 300ms)
  6412. if (!curSite.pager.interval) curSite.pager.interval = 300;
  6413. intervalPause();
  6414. // 如果没有指定按钮文字就直接点击
  6415. autopbn.click(); pageNum.now = pageNum._now + 1;
  6416. }
  6417.  
  6418. // <<<<< 翻页类型 4(部分简单的动态加载类网站)>>>>>
  6419. } else if (curSite.pager.type === 4) {
  6420. // 为百度贴吧的发帖考虑,预留底部一小部分...
  6421. if (!(curSite.SiteTypeID === SiteType.BAIDU_TIEBA && document.documentElement.scrollHeight <= scrollHeight + scrollTop + 200)) {
  6422. intervalPause(); if (typeof curSite.pager.nextL == 'function') {curSite.pager.nextL();} else if (getNextE(curSite.pager.nextL)) {getPageElems_(curSite.pageUrl);}
  6423. }
  6424.  
  6425. // <<<<< 翻页类型 5(插入 iframe 方式来加载下一页)>>>>>
  6426. } else if (curSite.pager.type === 5) {checkURL(insIframe);
  6427.  
  6428. // <<<<< 翻页类型 6(通过 iframe 获取下一页动态加载内容)>>>>>
  6429. } else if (curSite.pager.type === 6) {checkURL(insIframe_);}
  6430. }
  6431. }
  6432. });
  6433.  
  6434. function intervalPause() {
  6435. if (curSite.pager.interval) {
  6436. pausePage = false
  6437. setTimeout(function(){pausePage = true;}, curSite.pager.interval)
  6438. }
  6439. }
  6440. }
  6441. // 判断是支持
  6442. function doesItSupport() {
  6443. setDBSite(); // 配置 DBSite 变量对象
  6444.  
  6445. // 遍历判断是否是某个已支持的网站,顺便直接赋值
  6446. let support = false;
  6447. for (let now in DBSite) { // 遍历对象
  6448. if (!DBSite[now].host) continue; // 如果不存在则继续下一个循环
  6449. if (Array.isArray(DBSite[now].host)) { // 如果是数组
  6450. for (let i of DBSite[now].host) { // 遍历数组
  6451. if (i === location.hostname) {
  6452. if (DBSite[now].functionS) {
  6453. DBSite[now].functionS();
  6454. } else {
  6455. curSite = DBSite[now];
  6456. }
  6457. support = true; break; // 如果找到了就退出循环
  6458. }
  6459. }
  6460. } else if (DBSite[now].host instanceof RegExp) {
  6461. if (DBSite[now].host.test(location.hostname)) {
  6462. if (self != top) {if (!DBSite[now].iframe) break;} // 如果当前位于 iframe 框架下,就需要判断是否需要执行
  6463. if (DBSite[now].functionS) {
  6464. DBSite[now].functionS();
  6465. } else {
  6466. curSite = DBSite[now];
  6467. }
  6468. support = true; break; // 如果找到了就退出循环
  6469. }
  6470. } else if (DBSite[now].host === location.hostname) {
  6471. if (self != top) {if (!DBSite[now].iframe) break;} // 如果当前位于 iframe 框架下,就需要判断是否需要执行
  6472. if (DBSite[now].functionS) {
  6473. DBSite[now].functionS();
  6474. } else {
  6475. curSite = DBSite[now];
  6476. }
  6477. support = true; break; // 如果找到了就退出循环
  6478. }
  6479. }
  6480.  
  6481. if (support) {
  6482. console.info('[自动无缝翻页] - 独立规则 网站'); return 1;
  6483. } else if (getCSS('meta[name="author" i][content*="Discuz!" i], meta[name="generator" i][content*="Discuz!" i], body[id="nv_forum" i][class^="pg_" i][onkeydown*="27"], body[id="nv_search" i][onkeydown*="27"]') || (getCSS('a[href*="www.discuz.net" i]') && getCSS('a[href*="www.discuz.net" i]').textContent.indexOf('Discuz!') > -1) || (getCSS('#ft') && getCSS('#ft').textContent.indexOf('Discuz!') > -1)) {
  6484. console.info('[自动无缝翻页] - <Discuz!> 论坛'); return 2;
  6485. } else if (getCSS('#flarum-loading')) {
  6486. console.info('[自动无缝翻页] - <Flarum> 论坛'); return 3;
  6487. } else if (getCSS('body#phpbb')) {
  6488. console.info('[自动无缝翻页] - <phpBB> 论坛'); return 4;
  6489. } else if (getXpath('//footer//a[contains(string(), "Xiuno")] | //link[contains(@href, "xiuno")] | //script[contains(@src, "xiuno")]')) {
  6490. console.info('[自动无缝翻页] - <Xiuno> 论坛'); return 5;
  6491. } else if (typeof XF != 'undefined') {
  6492. console.info('[自动无缝翻页] - <XenForo> 论坛'); return 6;
  6493. } else if (getCSS('link[href*="themes/dux" i], script[src*="themes/dux" i]')) {
  6494. console.info('[自动无缝翻页] - 使用 WordPress <DUX> 主题的网站'); return 100;
  6495. } else if (getCSS('link[href*="themes/xiu" i], script[src*="themes/xiu" i]')) {
  6496. console.info('[自动无缝翻页] - 使用 WordPress <XIU> 主题的网站'); return 101;
  6497. } else if (getCSS('link[href*="themes/d8" i], script[src*="themes/d8" i]')) {
  6498. console.info('[自动无缝翻页] - 使用 WordPress <D8> 主题的网站'); return 102;
  6499. } else if (getCSS('link[href*="themes/begin" i], script[src*="themes/begin" i], img[src*="themes/begin" i]')) {
  6500. console.info('[自动无缝翻页] - 使用 WordPress <Begin> 主题的网站'); return 103;
  6501. } else if (getCSS('meta[name="description"][content*="小说"], meta[name="description"][content*="章节"], meta[name="description"][content*="阅读"]') && getCSS('#content, #chaptercontent, .chaptercontent, #BookText') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
  6502. console.info('[自动无缝翻页] - <笔趣阁> 模板的小说网站'); return 200;
  6503. } else if (self != top) {
  6504. return -1;
  6505. }
  6506. return 0;
  6507. }
  6508.  
  6509.  
  6510. // 翻页类型 1/3
  6511. function getPageElems(url) {
  6512. GM_xmlhttpRequest({
  6513. url: url,
  6514. method: 'GET',
  6515. overrideMimeType: 'text/html; charset=' + document.charset,
  6516. headers: {
  6517. 'Referer': location.href
  6518. },
  6519. timeout: 10000,
  6520. onload: function (response) {
  6521. try {
  6522. //console.log('最终 URL:' + response.finalUrl, '返回内容:' + response.responseText)
  6523. processElems(createDocumentByString(response.responseText));
  6524. } catch (e) {
  6525. console.log(e);
  6526. }
  6527. }
  6528. });
  6529. }
  6530. // 翻页类型 4
  6531. function getPageElems_(url, type = '', method = 'GET', data = '', type2) {
  6532. let mimeType;
  6533. switch (type) {
  6534. case 'json':
  6535. mimeType = 'application/json; charset=' + document.charset; break;
  6536. case 'text':
  6537. mimeType = 'text/plain; charset=' + document.charset; break;
  6538. default:
  6539. mimeType = 'text/html; charset=' + document.charset;
  6540. }
  6541.  
  6542. GM_xmlhttpRequest({
  6543. url: url,
  6544. method: method,
  6545. data: data,
  6546. responseType: type,
  6547. overrideMimeType: mimeType,
  6548. headers: {
  6549. 'Referer': location.href,
  6550. 'Content-Type': (method === 'POST') ? 'application/x-www-form-urlencoded':''
  6551. },
  6552. timeout: 10000,
  6553. onload: function (response) {
  6554. try {
  6555. //console.log('最终 URL:' + response.finalUrl, '返回内容:' + response.responseText)
  6556. switch (type) {
  6557. case 'json':
  6558. curSite.pager.insertE(response.response, type2);
  6559. break;
  6560. case 'text':
  6561. curSite.pager.insertE(response.responseText, type2)
  6562. break;
  6563. default:
  6564. curSite.pager.insertE(createDocumentByString(response.responseText), type2)
  6565. }
  6566. } catch (e) {
  6567. console.log(e);
  6568. }
  6569. }
  6570. });
  6571. }
  6572. // 翻页类型 5(插入 iframe 方式加载下一页)
  6573. function insIframe(src) {
  6574. // 停用当前页面翻页
  6575. if (curSite.SiteTypeID == 0) return
  6576. curSite.SiteTypeID = 0;
  6577.  
  6578. var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop
  6579. // 当滚动条到底部时(即完全显示 iframe 框架),隐藏当前页面的滚动条
  6580. window.addEventListener('scroll', function () {
  6581. let scrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  6582. clientHeight = document.documentElement.clientHeight || document.body.clientHeight,
  6583. scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight,
  6584. afterScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  6585. delta = afterScrollTop - beforeScrollTop;
  6586. if (delta == 0) return false;
  6587. beforeScrollTop = afterScrollTop;
  6588.  
  6589. //console.log(delta, scrollHeight - (scrollTop + clientHeight + 10), '1111')
  6590. if (delta > 0 && scrollTop + clientHeight + 10 >= scrollHeight && !getCSS('#xiu-scroll')) {
  6591. let newStyle = document.createElement('style'); newStyle.id = 'xiu-scroll';
  6592. newStyle.textContent = 'html::-webkit-scrollbar, body::-webkit-scrollbar {width: 0 !important;height: 0 !important;} html, body {scrollbar-width: none !important;}';
  6593. if (curSite.pager.insStyle) newStyle.textContent += curSite.pager.insStyle;
  6594. document.documentElement.appendChild(newStyle);
  6595. } else if (delta < 0 && getCSS('#xiu-scroll')) {
  6596. getCSS('#xiu-scroll').remove();
  6597. }
  6598. }, false);
  6599.  
  6600. // 创建 iframe
  6601. let iframe = document.createElement('iframe');
  6602. iframe.style = 'position: absolute; width: 100%; height: 100%; border: none;';
  6603. iframe.id = 'xiu_iframe';
  6604. iframe.src = src;
  6605.  
  6606. // 加载完成后才继续
  6607. iframe.onload = function() {
  6608. // 添加历史记录
  6609. if (curSite.history) addHistory(iframe.contentWindow.document, iframe.contentWindow.document.title);
  6610. // 当前页码 + 1
  6611. if (!curSite.hiddenPN) {
  6612. let autopageNumber = getCSS('#Autopage_number', window.top.document)
  6613. if (autopageNumber) {autopageNumber.textContent = parseInt(autopageNumber.textContent) + 1;}
  6614. }
  6615. }
  6616.  
  6617. // 插入 iframe
  6618. document.documentElement.appendChild(iframe);
  6619. }
  6620. // 翻页类型 6(通过 iframe 获取下一页动态加载内容)
  6621. function insIframe_(src) {
  6622. // 暂停翻页
  6623. if (!pausePage) return
  6624. pausePage = false
  6625. console.log(src)
  6626. // 如果不存在,则创建一个 iframe
  6627. let iframe = document.getElementById('xiu_iframe');
  6628. if (!iframe) {
  6629. iframe = document.createElement('iframe');
  6630. iframe.style = 'position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; border: none; z-index: -999; /*visibility: hidden;*/';
  6631. iframe.id = 'xiu_iframe';
  6632. iframe.src = src;
  6633. }
  6634.  
  6635. // 加载完成后才继续
  6636. iframe.onload = function() {
  6637. //iframe.contentWindow.scrollTo(0, 999999); // 滚动到底部,以触发网页的滚动条相关加载事件
  6638. //iframe.contentWindow.scrollTo({top: 9999999, behavior: 'smooth'});
  6639. if (!curSite.pager.loadTime) curSite.pager.loadTime = 100; // 默认 100ms
  6640. //console.log(curSite.pager.loadTime, curSite.pager.loadTime/30)
  6641. //console.time('sort');
  6642. let time1 = 0 ,time2 = setInterval(function(){
  6643. let scrollHeight = (iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)/10
  6644. iframe.contentWindow.scrollTo(0, 999999);
  6645. iframe.contentWindow.scrollTo(0, scrollHeight*time1);
  6646. //console.log(time1, iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)
  6647. if (++time1 == 10) {
  6648. //console.timeEnd('sort');
  6649. clearInterval(time2);
  6650. processElems(iframe.contentWindow.document); // 插入/替换元素等
  6651. //console.log(iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)
  6652. pausePage = true; // 恢复翻页
  6653. }
  6654. }, curSite.pager.loadTime/10)
  6655. }
  6656.  
  6657. // 插入 iframe(如果已存在则直接改 src)
  6658. if (document.getElementById('xiu_iframe')) {
  6659. iframe.src = src;
  6660. } else {
  6661. document.documentElement.appendChild(iframe);
  6662. }
  6663. }
  6664.  
  6665.  
  6666. // XHR 后处理结果,插入、替换元素等(适用于翻页类型 1/3/6)
  6667. function processElems(response) {
  6668. if (!curSite.pager.insertP) {curSite.pager.insertP = [curSite.pager.pageE, 5]}
  6669. let pageElems = getAll(curSite.pager.pageE, response, response), toElement;
  6670. if (curSite.pager.insertP[1] === 5) { // 插入 pageE 列表最后一个元素的后面
  6671. toElement = getAll(curSite.pager.insertP[0]).pop();
  6672. } else {
  6673. toElement = getOne(curSite.pager.insertP[0]);
  6674. }
  6675. //console.log(curSite.pager.pageE, pageElems, curSite.pager.insertP, toElement)
  6676.  
  6677. if (pageElems.length > 0 && toElement) {
  6678. // 如果有插入前函数就执行函数
  6679. if (curSite.function && curSite.function.bF) {
  6680. if (curSite.function.pF) { // 如果指定了参数
  6681. pageElems = curSite.function.bF(pageElems, curSite.function.pF);
  6682. } else {
  6683. pageElems = curSite.function.bF(pageElems);
  6684. }
  6685. }
  6686.  
  6687. // 插入位置
  6688. let addTo = getAddTo(curSite.pager.insertP[1]);
  6689.  
  6690. // 插入新页面元素
  6691. if (curSite.pager.insertP[1] === 6) { // 插入到目标内部末尾(针对文本,比如小说网页)
  6692. let afterend = '';
  6693. pageElems.forEach(function (one) {afterend += one.innerHTML;});
  6694. toElement.insertAdjacentHTML(addTo, afterend);
  6695. } else {
  6696. if (curSite.pager.insertP[1] === 2 || curSite.pager.insertP[1] === 4 || curSite.pager.insertP[1] === 5) pageElems.reverse(); // 插入到 [元素内头部]、[目标本身后面] 时,需要反转顺序
  6697. pageElems.forEach(function (one) {toElement.insertAdjacentElement(addTo, one);});
  6698. }
  6699.  
  6700. // 当前页码 + 1
  6701. pageNum.now = pageNum._now + 1
  6702.  
  6703. // 插入 <script> 标签
  6704. if (curSite.pager.scriptT || curSite.pager.scriptT == 0) {
  6705. switch (curSite.pager.scriptT) {
  6706. case 0: // 下一页的所有 <script> 标签
  6707. insScript('css;script', toElement, response); break;
  6708. case 1: // 下一页的所有 <script> 标签(不包括 src 链接)
  6709. insScript('css;script:not([src])', toElement, response); break;
  6710. case 2: // 下一页主体元素 (pageE) 的同级 <script> 标签
  6711. insScript(null, toElement, pageElems); break;
  6712. case 3: // 下一页主体元素 (pageE) 的子元素 <script> 标签
  6713. insScript('css;script:not([src])', toElement, pageElems); break;
  6714. }
  6715. }
  6716.  
  6717. // 添加历史记录
  6718. if (curSite.history) addHistory(response);
  6719.  
  6720. // 替换待替换元素
  6721. if (curSite.pager.replaceE) replaceElems(response);
  6722.  
  6723. // 如果有插入后函数就执行函数
  6724. if (curSite.function && curSite.function.aF) {
  6725. if (curSite.function.pF) { // 如果指定了参数
  6726. curSite.function.aF(curSite.function.pF);
  6727. } else {
  6728. curSite.function.aF();
  6729. }
  6730. }
  6731. } else { // 获取主体元素失败后,尝试重新获取
  6732. if (curSite.retry) {
  6733. setTimeout(function(){curSite.pageUrl = '';}, curSite.retry)
  6734. } else { // 尝试替换元素看能不能继续翻页下去
  6735. if (curSite.pager.replaceE) {
  6736. if (replaceElems(response)) { // 如果替换成功
  6737. pageNum.now = pageNum._now + 1; // 当前页码 + 1
  6738. if (curSite.history) addHistory(response); // 添加历史记录
  6739. }
  6740. }
  6741. }
  6742. }
  6743. }
  6744. // 通用型插入前函数(加载图片)
  6745. function src_bF(pageElems, css) {
  6746. pageElems.forEach(function (one) {
  6747. if (css[0] == 0) { // src 图片
  6748. one.querySelectorAll(css[1]).forEach(function (now) {
  6749. now.src = now.getAttribute(css[2]);
  6750. });
  6751. } else if (css[0] == 1) { // 背景图片
  6752. one.querySelectorAll(css[1]).forEach(function (now) {
  6753. now.style.backgroundImage = 'url("' + now.getAttribute(css[2]) + '")';
  6754. });
  6755. }
  6756. });
  6757. return pageElems
  6758. }
  6759. // 通用型获取下一页地址(URL 替换 page= 参数)
  6760. function getNextP(css, pf, reg) {
  6761. let nextNum = getOne(css);
  6762. var url = '';
  6763. if (nextNum && nextNum.textContent) {
  6764. nextNum = nextNum.textContent.replaceAll(' ','');
  6765. if (location.search) {
  6766. if (indexOF(pf, 's')) {
  6767. url = location.search.replace(reg, pf + nextNum);
  6768. } else {
  6769. url = location.search + '&' + pf + nextNum;
  6770. }
  6771. } else {
  6772. url = '?' + pf + nextNum;
  6773. }
  6774. url = location.origin + location.pathname + url;
  6775. }
  6776. return url
  6777. }
  6778. // 通用型获取下一页地址(直接从元素获取)
  6779. function getNextE(css) {
  6780. if (!css) css = curSite.pager.nextL;
  6781. let next = getOne(css)
  6782. if (next && next.nodeType === 1 && next.href && next.href.slice(0,4) === 'http' && next.href != curSite.pageUrl) {
  6783. if (curSite.pager.forceHTTPS && location.protocol === 'https:') {
  6784. curSite.pageUrl = next.href.replace(/^http:/,'https:');
  6785. } else {
  6786. curSite.pageUrl = next.href;
  6787. }
  6788. //console.log(curSite.pageUrl)
  6789. return true
  6790. }
  6791. return false
  6792. }
  6793. // 检查 URL
  6794. function checkURL(func) {
  6795. if (typeof curSite.pager.nextL == 'function') {
  6796. let tempUrl = curSite.pager.nextL();
  6797. if (!tempUrl || (tempUrl && tempUrl.slice(0,4) != 'http') || tempUrl === curSite.pageUrl ) return;
  6798. curSite.pageUrl = tempUrl;
  6799. func(curSite.pageUrl);
  6800. } else if (getNextE()) {
  6801. func(curSite.pageUrl);
  6802. }
  6803. //console.log(curSite.pageUrl);
  6804. }
  6805. // 替换元素
  6806. function replaceElems(pageElems, o = curSite.pager.replaceE, r = curSite.pager.replaceE) {
  6807. let oriE = getAll(o),
  6808. repE = getAll(r, pageElems, pageElems);
  6809. //console.log(oriE, repE)
  6810. if (oriE.length != 0 && repE.length != 0 && oriE.length === repE.length) {
  6811. for (let i = 0; i < oriE.length; i++) {
  6812. oriE[i].outerHTML = repE[i].outerHTML;
  6813. }
  6814. return true
  6815. }
  6816. return false
  6817. }
  6818. // 添加历史记录
  6819. function addHistory(pageElems, title, url) {
  6820. if (!curSite.pageUrl) return
  6821. title = title || pageElems.querySelector('title').textContent || window.top.document.title;
  6822. url = url || curSite.pageUrl;
  6823. window.top.document.title = title;
  6824. window.top.document.xiu_nowUrl = curSite.pageUrl;
  6825. window.top.history.pushState('xiu_history', title, url);
  6826. }
  6827. // 插入 <Script>
  6828. function insScript(selector, toElement = document.body, contextNode = document) {
  6829. let scriptElems = contextNode;
  6830. if (selector) {
  6831. if (contextNode instanceof Array) {
  6832. scriptElems = []; contextNode.forEach(function (one) {scriptElems = scriptElems.concat(getAll(selector, one, one));})
  6833. } else {
  6834. scriptElems = getAll(selector, contextNode, contextNode);
  6835. }
  6836. }
  6837. scriptElems.forEach(function (one) {
  6838. if (one.tagName === 'SCRIPT') {
  6839. if (one.src) {
  6840. toElement.appendChild(document.createElement('script')).src = one.src;
  6841. } else {
  6842. toElement.appendChild(document.createElement('script')).textContent = one.textContent;
  6843. }
  6844. }
  6845. });
  6846. }
  6847. // 插入 <Style>
  6848. function insStyle(style) {
  6849. document.documentElement.appendChild(document.createElement('style')).textContent = style;
  6850. }
  6851.  
  6852.  
  6853. // 获取元素(CSS/Xpath)来自:https://github.com/machsix/Super-preloader
  6854. function getCSS(css, contextNode = document) {
  6855. return contextNode.querySelector(css);
  6856. }
  6857. function getAllCSS(css, contextNode = document) {
  6858. return [].slice.call(contextNode.querySelectorAll(css));
  6859. }
  6860. function getXpath(xpath, contextNode, doc = document) {
  6861. contextNode = contextNode || doc;
  6862. try {
  6863. const result = doc.evaluate(xpath, contextNode, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  6864. // 应该总是返回一个元素节点
  6865. return result.singleNodeValue && result.singleNodeValue.nodeType === 1 && result.singleNodeValue;
  6866. } catch (err) {
  6867. throw new Error(`无效 Xpath: ${xpath}`);
  6868. }
  6869. }
  6870. function getAllXpath(xpath, contextNode, doc = document) {
  6871. contextNode = contextNode || doc;
  6872. const result = [];
  6873. try {
  6874. const query = doc.evaluate(xpath, contextNode, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  6875. for (let i = 0; i < query.snapshotLength; i++) {
  6876. const node = query.snapshotItem(i);
  6877. // 如果是 Element 节点
  6878. if (node.nodeType === 1) result.push(node);
  6879. }
  6880. } catch (err) {
  6881. throw new Error(`无效 Xpath: ${xpath}`);
  6882. }
  6883. return result;
  6884. }
  6885. function getOne(selector, contextNode = undefined, doc = document) {
  6886. if (!selector) return;
  6887. contextNode = contextNode || doc;
  6888. if (selector.search(/^css;/i) === 0) {
  6889. return getCSS(selector.slice(4), contextNode);
  6890. } else {
  6891. return getXpath(selector, contextNode, doc);
  6892. }
  6893. }
  6894. function getAll(selector, contextNode = undefined, doc = document) {
  6895. if (!selector) return [];
  6896. contextNode = contextNode || doc;
  6897. if (selector.search(/^css;/i) === 0) {
  6898. return getAllCSS(selector.slice(4), contextNode);
  6899. } else {
  6900. return getAllXpath(selector, contextNode, doc);
  6901. }
  6902. }
  6903. function createDocumentByString(e) {
  6904. if (e) {
  6905. if ('HTML' !== document.documentElement.nodeName) return (new DOMParser).parseFromString(e, 'application/xhtml+xml');
  6906. var t;
  6907. try { t = (new DOMParser).parseFromString(e, 'text/html');} catch (e) {}
  6908. if (t) return t;
  6909. if (document.implementation.createHTMLDocument) {
  6910. t = document.implementation.createHTMLDocument('ADocument');
  6911. } else {
  6912. try {((t = document.cloneNode(!1)).appendChild(t.importNode(document.documentElement, !1)), t.documentElement.appendChild(t.createElement('head')), t.documentElement.appendChild(t.createElement('body')));} catch (e) {}
  6913. }
  6914. if (t) {
  6915. var r = document.createRange(),
  6916. n = r.createContextualFragment(e);
  6917. r.selectNodeContents(document.body);
  6918. t.body.appendChild(n);
  6919. for (var a, o = { TITLE: !0, META: !0, LINK: !0, STYLE: !0, BASE: !0}, i = t.body, s = i.childNodes, c = s.length - 1; c >= 0; c--) o[(a = s[c]).nodeName] && i.removeChild(a);
  6920. return t;
  6921. }
  6922. } else console.error('没有找到要转成 DOM 的字符串');
  6923. }
  6924.  
  6925.  
  6926. // 强制新标签页打开链接(翻页模式 5/6)
  6927. function forceTarget() {
  6928. document.body.addEventListener('click', function(e) {
  6929. if (e.target.tagName === 'A') {
  6930. forceTarget_(e.target, e);
  6931. } else {
  6932. let path = e.path || e.composedPath();
  6933. for (let i = 1; i < path.length - 3; i++) {
  6934. //console.log(path[i])
  6935. if (path[i].tagName === 'A') {
  6936. forceTarget_(path[i], e);
  6937. break;
  6938. }
  6939. }
  6940. }
  6941. });
  6942.  
  6943. function forceTarget_(target, e){
  6944. if (target.href && target.target != '_blank' && !(target.getAttribute('onclick')) && target.href.slice(0,4) == 'http' && target.getAttribute('href').slice(0,1) != '#') {
  6945. e.preventDefault(); // 阻止默认打开链接事件
  6946. //console.log(target.href);
  6947. //window.top.location.href = target.href;
  6948. window.GM_openInTab(target.href, {active: true,insert: true,setParent: true});
  6949. }
  6950. }
  6951. //document.head.appendChild(document.createElement('base')).target = '_top';
  6952. }
  6953. // 判断元素是否隐藏(隐藏返回 true)
  6954. function isHidden(el){
  6955. return (el.offsetParent === null);
  6956. }
  6957. // 判断 URL 是否存在指定文本
  6958. function indexOF(e, l = 'p', low = false){
  6959. switch (l) {
  6960. case 'h':
  6961. l = location.href; break;
  6962. case 'p':
  6963. l = location.pathname; break;
  6964. case 's':
  6965. l = location.search; break;
  6966. }
  6967. //console.log(l,e,l.indexOf(e))
  6968. if (low) {e = e.toLowerCase(); l = l.toLowerCase();} // 全部转为小写
  6969. if (e instanceof RegExp) {
  6970. if (e.test(l)) return true
  6971. } else {
  6972. if (l.indexOf(e) > -1) return true
  6973. }
  6974. return false
  6975. }
  6976. // 启用/禁用 (当前网站)
  6977. function menu_disable(type) {
  6978. switch(type) {
  6979. case 'check':
  6980. return check(); break;
  6981. case 'add':
  6982. add(); break;
  6983. case 'del':
  6984. del(); break;
  6985. }
  6986.  
  6987. function check() { // 存在返回真,不存在返回假
  6988. if (GM_getValue('menu_disable').indexOf(location.hostname) == -1) return false // 不存在返回假
  6989. return true
  6990. }
  6991.  
  6992. function add() {
  6993. if (check()) return
  6994. let list = GM_getValue('menu_disable'); // 读取网站列表
  6995. list.push(location.hostname); // 追加网站域名
  6996. GM_setValue('menu_disable', list); // 写入配置
  6997. location.reload(); // 刷新网页
  6998. }
  6999.  
  7000. function del() {
  7001. if (!check()) return
  7002. let list = GM_getValue('menu_disable'), // 读取网站列表
  7003. index = list.indexOf(location.hostname);
  7004. list.splice(index, 1); // 删除网站域名
  7005. GM_setValue('menu_disable', list); // 写入配置
  7006. location.reload(); // 刷新网页
  7007. }
  7008. }
  7009. // 左键双击网页空白处暂停翻页
  7010. function pausePageEvent() {
  7011. if (!GM_getValue('menu_pause_page')) return
  7012. if (curSite.SiteTypeID === 0) return
  7013. if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
  7014. document.body.addEventListener('dblclick', function () {
  7015. if (pausePage) {GM_notification({text: `❌ 已暂停本页 [自动无缝翻页]\n (再次双击可恢复)`, timeout: 2000});} else {GM_notification({text: `✅ 已恢复本页 [自动无缝翻页]\n (再次双击可暂停)`, timeout: 2000});}
  7016. pausePage = !pausePage;
  7017. if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
  7018. });
  7019. }
  7020. // 显示页码
  7021. function pageNumber(type) {
  7022. if (curSite.SiteTypeID === 0 || curSite.hiddenPN || (curSite.pager && curSite.pager.type == 5 && self != top)) {if (getCSS('#Autopage_number')) {getCSS('#Autopage_number').style.display = 'none';}; return}
  7023. let status = getCSS('#Autopage_number');
  7024. switch (type) {
  7025. case 'add':
  7026. add(); break;
  7027. case 'del':
  7028. del(); break;
  7029. case 'set':
  7030. set(); break;
  7031. }
  7032.  
  7033. function add(){
  7034. if (status) {
  7035. if (status.style.display === 'none') {status.style.display = 'flex';}
  7036. return
  7037. }
  7038. // 插入网页
  7039. let _html = `<style>#Autopage_number {top: calc(75vh) !important;left: 0 !important;width: 32px;height: 32px;padding: 6px !important;display: flex;position: fixed !important;opacity: 0.5;transition: .2s;z-index: 9999 !important;cursor: pointer;user-select: none !important;flex-direction: column;align-items: center;justify-content: center;box-sizing: content-box;border-radius: 0 50% 50% 0;transform-origin: center !important;transform: translateX(-8px);background-color: #eee;-webkit-tap-highlight-color: transparent;box-shadow: 1px 1px 3px 0px #aaa !important;color: #000 !important;font-size: medium;} #Autopage_number:hover {opacity: 0.9;transform: translateX(0);}</style>
  7040. <div id="Autopage_number" title="1. 此处数字为 [当前页码] (可在脚本菜单中关闭)&#10;&#10;2. 鼠标左键点击此处 [临时暂停本页自动无缝翻页](再次点击可恢复)">${pageNum._now}</div>`
  7041. document.documentElement.insertAdjacentHTML('beforeend', _html);
  7042. if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
  7043. // 点击事件(临时暂停翻页)
  7044. getCSS('#Autopage_number').onclick = function () {
  7045. if (pausePage) {this.style = 'color: #FF5722 !important; font-style: italic !important;';} else {this.style = '';}
  7046. pausePage = !pausePage;
  7047. if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
  7048. };
  7049. status = getCSS('#Autopage_number');
  7050. set();
  7051. }
  7052. // 监听储存当前页码的对象值的变化
  7053. function set(){
  7054. Object.defineProperty(pageNum, 'now', {
  7055. set: function(value) {
  7056. this._now = value;
  7057. if (status) status.textContent = value;
  7058. }
  7059. });
  7060. }
  7061. function del(){
  7062. if (!status) return
  7063. status.style.display = 'none';
  7064. }
  7065. }
  7066. // 菜单开关
  7067. function menu_switch(menu_status, Name, Tips) {
  7068. if (menu_status === true){
  7069. GM_setValue(Name, false);
  7070. } else {
  7071. GM_setValue(Name, true);
  7072. }
  7073. if (Name === 'menu_page_number') {
  7074. if (menu_status === true){pageNumber('del');} else {pageNumber('add');}
  7075. registerMenuCommand(); // 重新注册脚本菜单
  7076. } else {
  7077. location.reload();}
  7078. };
  7079. // 生成 SiteTypeID
  7080. function setSiteTypeID() {
  7081. let num = 0
  7082. for (let val in DBSite) {
  7083. DBSite[val].SiteTypeID = num = num + 1;
  7084. }
  7085. }
  7086. // 获取 Cookie
  7087. function getCookie(name) {
  7088. if (!name) return ''
  7089. let arr = document.cookie.split(';');
  7090. name += '='
  7091. for (let i=0; i<arr.length; i++) {
  7092. let now = arr[i].trim();
  7093. if (now.indexOf(name) == 0) return now.substring(name.length, now.length);
  7094. }
  7095. return '';
  7096. }
  7097. // 插入位置
  7098. function getAddTo(num) {
  7099. switch (num) {
  7100. case 1:
  7101. return 'beforebegin'; break;
  7102. case 2:
  7103. return 'afterbegin'; break;
  7104. case 3:
  7105. case 6:
  7106. return 'beforeend'; break;
  7107. case 4:
  7108. case 5:
  7109. return 'afterend'; break;
  7110. }
  7111. }
  7112. // 滚动条事件
  7113. function windowScroll(fn1) {
  7114. var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  7115. fn = fn1 || function () {};
  7116. setTimeout(function () { // 延时 1 秒执行,避免刚载入到页面就触发翻页事件
  7117. window.addEventListener('scroll', function (e) {
  7118. var afterScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  7119. delta = afterScrollTop - beforeScrollTop;
  7120. if (delta == 0) return false;
  7121. fn(delta > 0 ? 'down' : 'up', e);
  7122. beforeScrollTop = afterScrollTop;
  7123. }, false);
  7124. }, 1000)
  7125. }
  7126. // 自定义 locationChange 事件(用来监听 URL 变化)
  7127. function addLocationchange() {
  7128. history.pushState = ( f => function pushState(){
  7129. var ret = f.apply(this, arguments);
  7130. window.dispatchEvent(new Event('pushstate'));
  7131. window.dispatchEvent(new Event('locationChange'));
  7132. return ret;
  7133. })(history.pushState);
  7134.  
  7135. history.replaceState = ( f => function replaceState(){
  7136. var ret = f.apply(this, arguments);
  7137. window.dispatchEvent(new Event('replacestate'));
  7138. window.dispatchEvent(new Event('locationChange'));
  7139. return ret;
  7140. })(history.replaceState);
  7141.  
  7142. window.addEventListener('popstate',()=>{
  7143. window.dispatchEvent(new Event('locationChange'))
  7144. });
  7145. }
  7146. })();