自动无缝翻页

无缝拼接下一页内容(瀑布流),目前支持:[所有「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-13 提交的版本,查看 最新版本

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