自动无缝翻页

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

  1. // ==UserScript==
  2. // @name 自动无缝翻页
  3. // @version 4.0.6
  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. // @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
  10. // @grant GM_xmlhttpRequest
  11. // @grant GM_registerMenuCommand
  12. // @grant GM_unregisterMenuCommand
  13. // @grant GM_openInTab
  14. // @grant GM_getValue
  15. // @grant GM_setValue
  16. // @grant GM_notification
  17. // @grant unsafeWindow
  18. // @license GPL-3.0 License
  19. // @run-at document-end
  20. // @namespace https://github.com/XIU2/UserScript
  21. // @supportURL https://github.com/XIU2/UserScript
  22. // @homepageURL https://github.com/XIU2/UserScript
  23. // ==/UserScript==
  24.  
  25. (function() {
  26. 'use strict';
  27. var menuAll = [
  28. ['menu_disable', '✅ 已启用 (点击对当前网站禁用)', '❌ 已禁用 (点击对当前网站启用)', []],
  29. ['menu_discuz_thread_page', '帖子内自动翻页', '帖子内自动翻页', true],
  30. ['menu_page_number', '显示当前页码及点击暂停翻页', '显示当前页码及点击暂停翻页', true],
  31. ['menu_pause_page', '左键双击网页空白处暂停翻页', '左键双击网页空白处暂停翻页', false]
  32. ], 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'];
  33. for (let i=0;i<menuAll.length;i++){ // 如果读取到的值为 null 就写入默认值
  34. if (GM_getValue(menuAll[i][0]) == null){GM_setValue(menuAll[i][0], menuAll[i][3])};
  35. }
  36. registerMenuCommand();
  37. if (menuId.length < 2) {return}
  38. // 注册(不可用)脚本菜单
  39. function registerMenuCommand() {
  40. if (menuId.length != []){
  41. for (let i=0;i<menuId.length;i++){
  42. GM_unregisterMenuCommand(menuId[i]);
  43. }
  44. }
  45. for (let i=0;i<menuAll.length;i++) { // 循环注册(不可用)脚本菜单
  46. menuAll[i][3] = GM_getValue(menuAll[i][0]);
  47. if (menuAll[i][0] === 'menu_disable') { // 启用/禁用
  48.  
  49. if (menu_disable('check')) { // 当前网站在禁用列表中
  50. menuId[i] = GM_registerMenuCommand(`${menuAll[i][2]}`, function(){menu_disable('del')});
  51. return
  52. } else { // // 不在禁用列表中
  53. webType = doesItSupport(); // 判断网站类型(即是否支持),顺便直接赋值
  54. if (webType === 0) {
  55. GM_registerMenuCommand('❌ 当前网站暂不支持 [点击申请支持]', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://gf.qytechs.cn/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
  56. console.info('[自动无缝翻页] - 不支持当前网站 [ ' + location.href + ' ],欢迎申请支持: https://github.com/XIU2/UserScript / https://gf.qytechs.cn/zh-CN/scripts/96880/feedback');
  57. return
  58. } else if (webType === -1) {
  59. return
  60. }
  61. menuId[i] = GM_registerMenuCommand(`${menuAll[i][1]}`, function(){menu_disable('add')});
  62. }
  63.  
  64. } else if (menuAll[i][0] === 'menu_discuz_thread_page') { // 帖子内自动翻页 (仅论坛)
  65.  
  66. if ([2,4,5,6].indexOf(webType) > -1 || forumWebsite.indexOf(location.hostname) > -1) {
  67. menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
  68. }
  69.  
  70. } else {
  71. menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
  72. }
  73. }
  74. 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://gf.qytechs.cn/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
  75. }
  76.  
  77. // 网站规则
  78. function setDBSite() {
  79. /*
  80. functionS: 匹配该网站域名时要执行的函数(一般用于根据 URL 分配相应翻页规则)
  81. locationC: 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则(需要放在 functionS 中)
  82.  
  83. insStyle: 要插入网页的 CSS Style 样式
  84. hiddenPN: 不显示脚本左下角的页码
  85. history: 添加历史记录 并 修改当前 URL
  86. retry: 允许获取失败后重试
  87.  
  88. pager: {
  89. type: 翻页模式
  90. 1 = 由脚本实现自动无缝翻页(适用于:静态加载内容网站,常规模式)
  91.  
  92. 2 = 只需要点击下一页按钮(适用于:网站自带了 自动无缝翻页 功能)
  93. nextText: 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页(避免一瞬间加载太多次下一页,下同)
  94. nextTextOf: 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页
  95. nextHTML: 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页
  96. interval: 点击间隔时间,对于没有按钮文字变化的按钮,可以手动指定间隔时间(单位 ms,默认 300,当指定上面三个时,会忽略 interval)
  97. isHidden: 只有下一页按钮可见时(没有被隐藏),才会点击
  98.  
  99. 3 = 依靠 [基准元素] 与 [浏览器可视区域底部] 之间的距离缩小来触发翻页(适用于:主体元素下方内容太多 且 高度不固定时)
  100. scrollE: 作为基准线的元素(一般为底部页码元素)
  101. scrollD: 基准元素 - 可视区域底部
  102.  
  103. 4 = 动态加载类网站(适用于:简单的动态加载内容网站)
  104. insertE: 用来插入元素的函数
  105.  
  106. 5 = 插入 iframe 方式来加载下一页,无限套娃(适用于:部分动态加载内容的网站,需要允许 iframe 且支持通过 GET/POST 直接打开下一页)
  107. insStyle: 加载 iframe 前要插入的 CSS Style 样式(比如为了悬浮的样式与下一页的重叠,隐藏网页底部间距提高阅读连续性)
  108. iframe: 这个必须加到 pager{} 外面(这样才会在该域名的 iframe 框架下运行脚本)
  109. forceTarget: 强制新标签页打开链接(适用于一些使用 pjax 技术的链接)
  110.  
  111. 6 = 通过 iframe 获取下一页动态加载内容插入本页,只有一个娃(适用于:部分动态加载内容的网站,与上面不同的是,该模式适合简单的网页,没有复杂事件什么的)
  112. loadTime: 预留的网页加载时间,确保网页内容加载完成
  113. forceTarget: 强制新标签页打开链接
  114.  
  115. nextL: 下一页链接所在元素
  116. pageE: 要从下一页获取的元素
  117. insertP: 下一页元素插入本页的位置(数组第一个是基准元素,第二个是基准元素的前后具体位置)
  118. 1 = 插入基准元素自身的前面
  119. 2 = 插入基准元素内,第一个子元素前面
  120. 3 = 插入基准元素内,最后一个子元素后面
  121. 4 = 插入基准元素自身的后面
  122. 5 = 插入 pageE 列表最后一个元素的后面(该 insertP 可以直接省略不写,等同于 ['pageE', 5] )
  123. 6 = 插入该元素自身内部末尾(针对小说网站等文本类的)
  124. // 小技巧:当基准元素是下一页主体元素的父元素时(或者说要将下一页元素插入到本页同元素最后一个后面时)是可以省略不写 insertP
  125. 例如:当 pageE: 'css;ul>li' 且 insertP: ['css;ul', 3] 时,实际等同于 ['css;ul>li', 5]
  126. 当 pageE: 'css;.item' 且 insertP: ['css;.item', 4] 时,实际等同于 ['css;.item', 5]
  127. 当 pageE: 'css;.item' 且 insertP: ['css;.page', 1] 时,实际等同于 ['css;.item', 5]
  128. 注意:如 pageE 中选择了多类元素,则不能省略 insertP(比如包含 `,` 与 `|` 符号)
  129.  
  130. replaceE: 要替换为下一页内容的元素(比如页码)
  131. scrollD: 翻页动作触发点([滚动条] 与 [网页底部] 之间的距离),数值越大,越早开始翻页,一般是访问网页速度越慢,该值就需要越大
  132.  
  133. scriptT: 单独插入 <script> 标签
  134. 0 = 下一页的所有 <script> 标签
  135. 1 = 下一页的所有 <script> 标签(不包括 src 链接)
  136. 2 = 下一页主体元素 (pageE) 的同级 <script> 标签
  137. 3 = 下一页主体元素 (pageE) 的子元素 <script> 标签
  138.  
  139. interval: 翻页后间隔时间(单位 ms)
  140. forceHTTPS: 下一页链接强制 HTTPS
  141. },
  142. function: {
  143. bF = 插入前执行函数
  144. aF = 插入后执行函数
  145. pF = 参数
  146. }
  147. */ //<<< 规则简单说明 >>>
  148. DBSite = {
  149. discuz_forum: {
  150. pager: {
  151. type: 2,
  152. nextL: 'css;#autopbn',
  153. nextTextOf: '下一页',
  154. scrollD: 1500
  155. }
  156. }, // Discuz! 论坛 - 帖子列表(自带无缝加载下一页按钮的)
  157. discuz_guide: {
  158. pager: {
  159. type: 1,
  160. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  161. pageE: 'id("threadlist")//table[./tbody[contains(@id, "normalthread_")]]/tbody[not(@id="separatorline")]',
  162. replaceE: 'css;.pg, .pages',
  163. scrollD: 1000
  164. }
  165. }, // Discuz! 论坛 - 导读页 及 帖子列表(不带无缝加载下一页按钮的)
  166. discuz_waterfall: {
  167. pager: {
  168. type: 1,
  169. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  170. pageE: 'css;#waterfall > li',
  171. replaceE: 'css;.pg, .pages',
  172. scrollD: 1000
  173. }
  174. }, // Discuz! 论坛 - 图片模式的帖子列表(不带无缝加载下一页按钮的)
  175. discuz_thread: {
  176. insStyle: '.pgbtn {display: none;}',
  177. pager: {
  178. type: 1,
  179. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  180. pageE: 'css;#postlist > div[id^="post_"]',
  181. replaceE: 'css;.pg, .pages',
  182. scrollD: 1000
  183. },
  184. function: {
  185. bF: src_bF,
  186. pF: [0, 'img[file]', 'file']
  187. }
  188. }, // Discuz! 论坛 - 帖子内
  189. discuz_search: {
  190. pager: {
  191. type: 1,
  192. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  193. pageE: 'css;#threadlist > ul',
  194. replaceE: 'css;.pg, .pages',
  195. scrollD: 1000
  196. }
  197. }, // Discuz! 论坛 - 搜索页
  198. discuz_youspace: {
  199. pager: {
  200. type: 1,
  201. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  202. pageE: 'css;form:not([action^="search.php?"]) tbody > tr:not(.th)',
  203. replaceE: 'css;.pg, .pages',
  204. scrollD: 1000
  205. }
  206. }, // Discuz! 论坛 - 回复页、主题页(别人的)
  207. discuz_collection: {
  208. pager: {
  209. type: 1,
  210. nextL: 'css;a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])',
  211. pageE: 'css;#ct .bm_c table > tbody',
  212. replaceE: 'css;.pg, .pages',
  213. scrollD: 1000
  214. }
  215. }, // Discuz! 论坛 - 淘帖页
  216. flarum: {
  217. functionS: function() {locationC = true;if (!indexOF('/d/')) {curSite = DBSite.flarum;}},
  218. pager: {
  219. type: 2,
  220. nextL: 'css;.DiscussionList-loadMore > button',
  221. isHidden: true,
  222. scrollD: 1000
  223. }
  224. }, // Flarum 论坛
  225. phpbb: {
  226. functionS: function() {if (indexOF('/viewforum.php')) {
  227. curSite = DBSite.phpbb;
  228. } else if (indexOF('/viewtopic.php') && GM_getValue('menu_discuz_thread_page')) {
  229. curSite = DBSite.phpbb_post;
  230. } else if (indexOF('/search.php')) {
  231. curSite = DBSite.phpbb_search;
  232. }},
  233. pager: {
  234. type: 1,
  235. nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
  236. pageE: 'css;.forumbg:not(.announcement) ul.topiclist.topics > li',
  237. replaceE: 'css;.action-bar .pagination, .topic-actions .pagination',
  238. scrollD: 2000
  239. }
  240. }, // phpBB 论坛 - 帖子列表
  241. phpbb_post: {
  242. pager: {
  243. type: 1,
  244. nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
  245. pageE: 'css;div.post[id], div.post[id]+hr',
  246. replaceE: 'css;.action-bar .pagination, .topic-actions .pagination',
  247. scrollD: 2000
  248. }
  249. }, // phpBB 论坛 - 帖子内
  250. phpbb_search: {
  251. pager: {
  252. type: 1,
  253. nextL: 'css;.pagination li.next a[rel="next"], .topic-actions .pagination strong~a',
  254. pageE: 'css;div.search.post',
  255. replaceE: 'css;.action-bar .pagination, .pagination',
  256. scrollD: 2000
  257. }
  258. }, // phpBB 论坛 - 搜索页
  259. xenforo: {
  260. functionS: function() {if (indexOF(/\/(forums|f)\//)) {
  261. curSite = DBSite.xenforo;
  262. } else if (indexOF(/\/(threads|t)\//) && GM_getValue('menu_discuz_thread_page')) {
  263. curSite = DBSite.xenforo_post;
  264. } else if (indexOF('/search/')) {
  265. curSite = DBSite.xenforo_search;
  266. }},
  267. pager: {
  268. type: 1,
  269. nextL: 'css;a.pageNav-jump--next',
  270. pageE: 'css;.structItemContainer-group.js-threadList > div',
  271. replaceE: 'css;nav.pageNavWrapper',
  272. scrollD: 2500
  273. }
  274. }, // XenForo 论坛 - 帖子列表
  275. xenforo_post: {
  276. pager: {
  277. type: 1,
  278. nextL: 'css;a.pageNav-jump--next',
  279. pageE: 'css;.block-body.js-replyNewMessageContainer > article',
  280. replaceE: 'css;nav.pageNavWrapper',
  281. scrollD: 2500
  282. }
  283. }, // XenForo 论坛 - 帖子内
  284. xenforo_search: {
  285. pager: {
  286. type: 1,
  287. nextL: 'css;a.pageNav-jump--next',
  288. pageE: 'css;ol.block-body > li',
  289. replaceE: 'css;nav.pageNavWrapper',
  290. scrollD: 2500
  291. }
  292. }, // XenForo 论坛 - 搜索页
  293. xiuno: {
  294. functionS: function() {if (lp == '/' || indexOF(/\/(index|forum)/)) {curSite = DBSite.xiuno;} else if (indexOF('/thread') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.xiuno_post;}},
  295. pager: {
  296. type: 1,
  297. nextL: '//li[@class="page-item"]/a[text()="▶"]',
  298. pageE: 'css;ul.threadlist > li',
  299. replaceE: 'css;ul.pagination',
  300. scrollD: 1500
  301. }
  302. }, // Xiuno 论坛 - 帖子列表
  303. xiuno_post: {
  304. pager: {
  305. type: 1,
  306. nextL: '//li[@class="page-item"]/a[text()="▶"]',
  307. pageE: 'css;li.post[data-pid]:not(.newpost)',
  308. replaceE: 'css;ul.pagination',
  309. scrollD: 1500
  310. }
  311. }, // Xiuno 论坛 - 帖子内
  312. dux: {
  313. functionS: function() {if (!indexOF('.html')) curSite = DBSite.dux;},
  314. host: 'www.puresys.net',
  315. pager: {
  316. type: 1,
  317. nextL: 'css;li.next-page > a',
  318. pageE: 'css;.content > article',
  319. replaceE: 'css;.content > .pagination',
  320. scrollD: 1500
  321. },
  322. function: {
  323. bF: src_bF,
  324. pF: [0, 'img.thumb[data-src]', 'data-src']
  325. }
  326. }, // WordPress 的 DUX、XIU、D8 主题
  327. begin: {
  328. functionS: function() {if (location.search.slice(0,3) === '?s=') {curSite = DBSite.begin_search;} else if (!indexOF('.html')) {curSite = DBSite.begin;}},
  329. pager: {
  330. type: 2,
  331. nextL: 'css;div[id^="ias_trigger_"]',
  332. interval: 500,
  333. scrollD: 1500
  334. }
  335. }, // WordPress 的 Begin 主题
  336. begin_search: {
  337. pager: {
  338. type: 1,
  339. nextL: 'css;a.next',
  340. pageE: 'css;#main > ul > li',
  341. replaceE: 'css;nav.pagination',
  342. scrollD: 1500
  343. }
  344. }, // WordPress 的 Begin 主题 - 搜索页
  345. biquge: {
  346. functionS: function() {if (indexOF(/\d+\/\d+\.html/)) {curSite = DBSite.biquge;}},
  347. insStyle: 'img {display: none !important;}',
  348. history: true,
  349. pager: {
  350. type: 1,
  351. nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]',
  352. pageE: 'css;#content',
  353. insertP: ['css;#content', 6],
  354. replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]]',
  355. scrollD: 1500
  356. }
  357. }, // 笔趣阁 模板的小说网站
  358. biquge_m: {
  359. functionS: function() {if (indexOF(/\d+\/\d+\.html/)) {curSite = DBSite.biquge_m;}},
  360. insStyle: 'img {display: none !important;}',
  361. history: true,
  362. pager: {
  363. type: 1,
  364. nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]',
  365. pageE: 'css;#chaptercontent, .chaptercontent, #BookText',
  366. insertP: ['css;#chaptercontent, .chaptercontent, #BookText', 6],
  367. replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]]',
  368. scrollD: 1500
  369. }
  370. }, // 笔趣阁 - 手机版 模板的小说网站
  371. baidu: {
  372. host: 'www.baidu.com',
  373. functionS: function() {locationC = true; if (lp == '/s') {curSite = DBSite.baidu;} else if (indexOF('/s')) {location.hostname = 'm.baidu.com';}},
  374. insStyle: '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}',
  375. history: true,
  376. pager: {
  377. type: 1,
  378. nextL: 'id("page")//a[contains(text(),"下一页")]',
  379. pageE: 'css;#content_left > *',
  380. replaceE: 'css;#page',
  381. scrollD: 2000
  382. }
  383. }, // 百度 搜索
  384. baidu_m: {
  385. host: 'm.baidu.com',
  386. functionS: function() {if (indexOF('/s')) curSite = DBSite.baidu_m;},
  387. history: true,
  388. insStyle: 'div.result[tpl="recommend_list"], #page-copyright {display: none !important;}',
  389. pager: {
  390. type: 1,
  391. nextL: 'css;a[class^="new-nextpage"]',
  392. pageE: 'css;#results > *',
  393. replaceE: 'css;#page-controller',
  394. scrollD: 2000
  395. }
  396. }, // 百度 搜索 - 手机版
  397. google: {
  398. host: /\.google\./,
  399. functionS: function() {if (lp == '/search' && !indexOF('tbm=isch', 's')) {
  400. curSite = DBSite.google;
  401. } else if (lp == '/scholar') {
  402. curSite = DBSite.google_scholar;
  403. }},
  404. history: true,
  405. pager: {
  406. type: 1,
  407. nextL: 'css;#pnnext',
  408. pageE: 'id("search")/* | //style[not(contains(text(), "table,div,span,p{display:none}"))]',
  409. insertP: ['css;#search', 3],
  410. replaceE: 'id("navcnt") | id("rcnt")//div[@role="navigation"]',
  411. scriptT: 0,
  412. scrollD: 3000
  413. },
  414. function: {
  415. bF: google_bF
  416. }
  417. }, // 谷歌 搜索
  418. bing: {
  419. host: ['www.bing.com','cn.bing.com'],
  420. functionS: function() {if (lp == '/search') {
  421. curSite = DBSite.bing;
  422. } else if (lp == '/academic/search') {
  423. curSite = DBSite.bing_academic;
  424. }},
  425. insStyle: '.b_imagePair.square_mp > .inner {display: none !important;}',
  426. history: true,
  427. pager: {
  428. type: 1,
  429. nextL: 'css;a.sb_pagN',
  430. pageE: 'css;#b_results > li:not(.b_msg):not([class="b_ans"]):not(.b_pag):not(#mfa_root)',
  431. replaceE: 'css;#b_results > .b_pag',
  432. scrollD: 1500
  433. },
  434. function: {
  435. bF: bing_bF
  436. }
  437. }, // 必应 搜索
  438. sogou: {
  439. host: 'www.sogou.com',
  440. functionS: function() {if (location.pathname != '/') {curSite = DBSite.sogou;}},
  441. history: true,
  442. pager: {
  443. type: 1,
  444. nextL: 'css;#sogou_next',
  445. pageE: 'css;.results > *',
  446. replaceE: 'css;#pagebar_container',
  447. scriptT: 3,
  448. scrollD: 1500
  449. }
  450. }, // 搜狗 搜索
  451. sogou_weixin: {
  452. host: 'weixin.sogou.com',
  453. functionS: function() {if (lp == '/') {
  454. curSite = DBSite.sogou_weixin;
  455. } else if (lp == '/weixin') {
  456. curSite = DBSite.sogou_weixin_search;
  457. }},
  458. pager: {
  459. type: 2,
  460. nextL: 'css;#look-more',
  461. interval: 1000,
  462. scrollD: 1000
  463. }
  464. }, // 搜狗微信 - 首页
  465. sogou_weixin_search: {
  466. history: true,
  467. pager: {
  468. type: 1,
  469. nextL: 'css;#sogou_next',
  470. pageE: 'css;ul[class*="news-list"] > li',
  471. replaceE: 'css;#pagebar_container',
  472. scrollD: 1200
  473. }
  474. }, // 搜狗微信 - 搜索
  475. toutiao: {
  476. host: ['www.toutiao.com', 'so.toutiao.com'],
  477. functionS: function() {if (location.hostname != 'www.toutiao.com' && lp == '/search') curSite = DBSite.toutiao;},
  478. history: true,
  479. pager: {
  480. type: 1,
  481. nextL: '//div[contains(@class, "-pagination")]/a[string()="下一页"]',
  482. pageE: 'css;div[class*="-result-list"] > .result-content[data-i]',
  483. replaceE: 'css;div[class*="-pagination"]',
  484. scrollD: 1500
  485. },
  486. function: {
  487. bF: toutiao_bF
  488. }
  489. }, // 头条 搜索
  490. so: {
  491. host: 'www.so.com',
  492. functionS: function() {if (location.pathname != '/') {curSite = DBSite.so; insStyle('img {opacity: 1 !important;}')}},
  493. history: true,
  494. pager: {
  495. type: 1,
  496. nextL: 'css;a#snext',
  497. pageE: 'css;ul.result > li, style:not(src)',
  498. insertP: ['css;ul.result', 3],
  499. replaceE: 'css;#page',
  500. scrollD: 1500
  501. },
  502. function: {
  503. bF: src_bF,
  504. pF: [0, 'img[data-isrc]', 'data-isrc']
  505. }
  506. }, // 360 搜索
  507. duckduckgo: {
  508. host: 'duckduckgo.com',
  509. functionS: function() {
  510. if (getCookie('av') != '1') {
  511. document.cookie='av=1; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 强制开启自带的无缝翻页功能
  512. location.reload(); // 刷新网页
  513. }
  514. },
  515. }, // DuckDuckGo 搜索
  516. startpage: {
  517. host: ['startpage.com', 'www.startpage.com'],
  518. functionS: function() {if (indexOF('/search')) {curSite = DBSite.startpage;}},
  519. history: true,
  520. pager: {
  521. type: 1,
  522. nextL: startpage_nextL,
  523. pageE: 'css;section.w-gl--desktop > div',
  524. replaceE: 'css;.pagination',
  525. scrollD: 2000
  526. }
  527. }, // Startpage 搜索
  528. yandex: {
  529. host: 'yandex.com',
  530. functionS: function() {if (lp == '/search/') {curSite = DBSite.yandex;}},
  531. history: true,
  532. pager: {
  533. type: 1,
  534. nextL: 'css;a.pager__item_kind_next',
  535. pageE: 'css;#search-result > *, style',
  536. insertP: ['css;#search-result', 3],
  537. replaceE: 'css;.pager',
  538. scrollD: 2000
  539. }
  540. }, // Yandex 搜索
  541. yahoo: {
  542. host: 'search.yahoo.com',
  543. functionS: function() {if (indexOF('/search')) {curSite = DBSite.yahoo;}},
  544. history: true,
  545. pager: {
  546. type: 1,
  547. nextL: 'css;.pagination a.next',
  548. pageE: 'css;#web ol > li',
  549. replaceE: 'css;.pagination',
  550. scrollD: 2000
  551. }
  552. }, // Yahoo 搜索
  553. yahoo_jp: {
  554. host: 'search.yahoo.co.jp',
  555. functionS: function() {if (indexOF('/search')) {curSite = DBSite.yahoo_jp;}},
  556. history: true,
  557. pager: {
  558. type: 1,
  559. nextL: 'css;.Pagenation__next > a',
  560. pageE: 'css;.Contents__innerGroupBody > div',
  561. replaceE: 'css;.Pagenation',
  562. scrollD: 2000
  563. }
  564. }, // Yahoo 搜索 (JP)
  565. qwant: {
  566. host: 'www.qwant.com',
  567. functionS: function() {locationC = true; if (indexOF('q=', 's') && indexOF('t=web', 's')) {curSite = DBSite.qwant;}},
  568. pager: {
  569. type: 2,
  570. nextL: 'css;button[data-testid="buttonShowMore"]',
  571. interval: 500,
  572. scrollD: 2000
  573. }
  574. }, // Qwant 搜索
  575. ecosia: {
  576. host: 'www.ecosia.org',
  577. functionS: function() {if (lp == '/search') {curSite = DBSite.ecosia;}},
  578. history: true,
  579. pager: {
  580. type: 1,
  581. nextL: 'css;nav.pagination a[aria-label="Next page"]',
  582. pageE: 'css;section.mainline > div:not(.related-queries)',
  583. replaceE: 'css;nav.pagination',
  584. scrollD: 1500
  585. }
  586. }, // Ecosia 搜索
  587. magi: {
  588. host: 'magi.com',
  589. functionS: function() {if (lp == '/search') {curSite = DBSite.magi;}},
  590. pager: {
  591. type: 2,
  592. nextL: 'css;.card[data-type="next"]',
  593. nextText: '加载更多',
  594. scrollD: 1500
  595. }
  596. }, // Magi 搜索
  597. ask: {
  598. host: ['ask.com', 'www.ask.com'],
  599. functionS: function() {if (lp == '/web') {curSite = DBSite.ask;}},
  600. insStyle: '.PartialSearchResults-heading {display: none !important;}',
  601. history: true,
  602. pager: {
  603. type: 1,
  604. nextL: 'css;li.PartialWebPagination-next > a',
  605. pageE: 'css;.PartialSearchResults.mid',
  606. replaceE: 'css;.PartialWebPagination',
  607. scrollD: 2000
  608. }
  609. }, // ASK 搜索
  610. fsou: {
  611. host: 'fsou.cc',
  612. functionS: function() {if (lp == '/search') {curSite = DBSite.fsou;}},
  613. history: true,
  614. retry: 1000,
  615. pager: {
  616. type: 6,
  617. nextL: () => getNextP('css;.selected.turn-page-text.turn-page-num', 'pageIndex=', /pageIndex=\d+/),
  618. pageE: 'css;#search-result > div',
  619. replaceE: 'css;.bottom-pagination',
  620. loadTime: 1000,
  621. scrollD: 3000
  622. },
  623. function: {
  624. bF: fsou_bF
  625. }
  626. }, // F 搜
  627. baidu_tieba: {
  628. host: ['tieba.baidu.com', 'jump2.bdimg.com'],
  629. functionS: function() {if (location.hostname == 'jump2.bdimg.com') location.hostname = 'tieba.baidu.com';
  630. if (lp == '/f') {
  631. baidu_tieba_1(); // 右侧悬浮发帖按钮点击事件(解决自动翻页导致无法发帖的问题)
  632. curSite = DBSite.baidu_tieba;
  633. } else if (indexOF('/p/') && GM_getValue('menu_discuz_thread_page')) {
  634. curSite = DBSite.baidu_tieba_post;
  635. } else if (lp == '/f/search/res') {
  636. curSite = DBSite.baidu_tieba_search;
  637. }},
  638. insStyle: 'img.j_retract {margin-top: 0 !important;margin-bottom: 0 !important;}', // 修复帖子列表中预览图片,在切换下一个/上一个图片时,多出来的图片上下边距
  639. iframe: true,
  640. pager: {
  641. type: 4,
  642. nextL: function() {if (getNextE('css;a.next.pagination-item')) getPageElems_(curSite.pageUrl + '&pagelets=frs-list%2Fpagelet%2Fthread&pagelets_stamp=' + new Date().getTime());},
  643. pageE: 'css;#thread_list > li',
  644. insertP: ['css;#thread_list', 3],
  645. insertE: baidu_tieba_insertE,
  646. replaceE: 'css;#frs_list_pager',
  647. interval: 2000,
  648. scrollD: 2500
  649. },
  650. function: {
  651. bF: src_bF,
  652. pF: [0, 'img[data-original]', 'data-original']
  653. }
  654. }, // 百度贴吧 - 帖子列表
  655. baidu_tieba_post: {
  656. forceTarget: true,
  657. 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 元素
  658. pager: {
  659. type: 5,
  660. nextL: '//li[contains(@class,"pb_list_pager")]/a[text()="下一页"]',
  661. insStyle: 'ul.tbui_aside_float_bar, .core_title_wrap_bright.tbui_follow_fixed.core_title_absolute_bright {display: none !important;}',
  662. scrollD: 1500
  663. }
  664. }, // 百度贴吧 - 帖子内
  665. baidu_tieba_search: {
  666. pager: {
  667. type: 1,
  668. nextL: 'css;a.next',
  669. pageE: 'css;.s_post_list > div',
  670. replaceE: 'css;.pager',
  671. scriptT: 1,
  672. scrollD: 1000
  673. }
  674. }, // 百度贴吧 - 搜索页
  675. douban_subject_comments: {
  676. host: 'movie.douban.com',
  677. functionS: function() {if (indexOF('/subject') && indexOF('/comments')) {
  678. curSite = DBSite.douban_subject_comments;
  679. } else if (indexOF('/subject') && indexOF('/reviews')) {
  680. curSite = DBSite.douban_subject_reviews;
  681. } else if(indexOF('/subject') && indexOF('/episode') || indexOF('/subject') && indexOF('/tv_discuss')) {
  682. curSite = DBSite.douban_subject_episode;
  683. } else if(indexOF('/people') && indexOF('/collect')) { // 看过的电影
  684. curSite = DBSite.douban_people_collect;
  685. }},
  686. pager: {
  687. type: 1,
  688. nextL: 'css;a.next',
  689. pageE: 'css;#comments > .comment-item',
  690. replaceE: 'css;#paginator',
  691. scrollD: 1000
  692. }
  693. }, // 豆瓣 - 短评
  694. douban_subject_reviews: {
  695. pager: {
  696. type: 1,
  697. nextL: 'css;link[rel="next"]',
  698. pageE: 'css;.review-list > div',
  699. replaceE: 'css;.paginator',
  700. scrollD: 1000
  701. }
  702. }, // 豆瓣 - 影评
  703. douban_subject_episode: {
  704. pager: {
  705. type: 1,
  706. nextL: 'css;link[rel="next"]',
  707. pageE: 'css;#comments > div',
  708. replaceE: 'css;.paginator',
  709. scrollD: 1000
  710. }
  711. }, // 豆瓣 - 剧评
  712. douban_people_collect: {
  713. pager: {
  714. type: 1,
  715. nextL: 'css;link[rel="next"]',
  716. pageE: 'css;.grid-view > div',
  717. replaceE: 'css;.paginator',
  718. scrollD: 1000
  719. }
  720. }, // 豆瓣 - 看过的电影
  721. douban_group: {
  722. host: 'www.douban.com',
  723. functionS: function() {if (indexOF('/group/topic/')) {
  724. curSite = DBSite.douban_group_topic;
  725. } else if (indexOF('/group/explore')) {
  726. curSite = DBSite.douban_group_explore;
  727. } else if (indexOF('/group/') && indexOF('/discussion')) {
  728. curSite = DBSite.douban_group;
  729. }},
  730. pager: {
  731. type: 1,
  732. nextL: 'css;span.next > a',
  733. pageE: 'css;table.olt > tbody > tr:not(.th)',
  734. replaceE: 'css;.paginator',
  735. scrollD: 1000
  736. }
  737. }, // 豆瓣 - 小组
  738. douban_group_explore: {
  739. pager: {
  740. type: 1,
  741. nextL: 'css;span.next > a',
  742. pageE: 'css;#content .article > div > .channel-item',
  743. replaceE: 'css;.paginator',
  744. scrollD: 1000
  745. }
  746. }, // 豆瓣 - 小组讨论精选
  747. douban_group_topic: {
  748. pager: {
  749. type: 1,
  750. nextL: 'css;span.next > a',
  751. pageE: 'css;#comments > li',
  752. replaceE: 'css;.paginator',
  753. scrollD: 1000
  754. }
  755. }, // 豆瓣 - 小组帖子内
  756. zhihu: {
  757. host: 'www.zhihu.com',
  758. functionS: function() {locationC = true; if (indexOF(/\/people\/.+\/.+/) || indexOF('/collection/')) {curSite = DBSite.zhihu; if (self != top) insStyle('#ProfileHeader {display: none !important;}')}},
  759. forceTarget: true,
  760. history: true,
  761. iframe: true,
  762. pager: {
  763. type: 5,
  764. nextL: function() {
  765. let next = getCSS('.Pagination .PaginationButton--current+button:not(.PaginationButton-next)');
  766. if (next) return (location.origin + location.pathname + '?page=' + next.textContent)
  767. },
  768. scrollD: 2000
  769. }
  770. }, // 知乎 - 用户主页、收藏夹
  771. weibo_comment: {
  772. host: 'weibo.com',
  773. pager: {
  774. type: 2,
  775. nextL: 'css;a[action-type="click_more_comment"]',
  776. nextText: '查看更多c',
  777. scrollD: 1000
  778. }
  779. }, // 微博评论
  780. tianya: {
  781. host: 'bbs.tianya.cn',
  782. functionS: function() {if (indexOF('/list')) {
  783. curSite = DBSite.tianya;
  784. } else if (indexOF('/post')) {
  785. curSite = DBSite.tianya_post;
  786. }},
  787. pager: {
  788. type: 1,
  789. nextL: '//div[contains(@class, "pages")]/div[@class="links"]/a[text()="下一页"]',
  790. pageE: 'css;.tab-bbs-list > tbody:not(:first-of-type)',
  791. replaceE: '//div[contains(@class, "pages")]',
  792. scrollD: 1500
  793. }
  794. }, // 天涯社区
  795. tianya_post: {
  796. pager: {
  797. type: 1,
  798. nextL: 'css;a.js-keyboard-next',
  799. pageE: 'css;.atl-main > div[class="atl-item"]',
  800. replaceE: 'css;.atl-pages > form',
  801. scrollD: 2000
  802. }
  803. }, // 天涯社区 - 帖子内
  804. nga_thread: {
  805. host: ['bbs.nga.cn', 'ngabbs.com', 'nga.178.com', 'g.nga.cn'],
  806. iframe: true,
  807. functionS: function() {locationC = true;
  808. if (lp == '/thread.php') { // 帖子列表
  809. curSite = DBSite.nga_thread;
  810. } else if (lp == '/read.php') { // 帖子内
  811. curSite = DBSite.nga_read;
  812. }},
  813. pager: {
  814. type: 1,
  815. nextL: 'css;#pagebbtm a[title="下一页"]',
  816. pageE: 'css;#topicrows > tbody, #topicrows > script',
  817. insertP: ['css;#topicrows', 3],
  818. replaceE: 'css;div[name="pageball"]',
  819. scriptT: 2,
  820. scrollD: 1000
  821. },
  822. function: {
  823. aF: function() {document.body.appendChild(document.createElement('script')).textContent = 'commonui.topicArg.loadAll();';}
  824. }
  825. }, // NGA - 各版块帖子列表
  826. nga_read: {
  827. pager: {
  828. type: 1,
  829. nextL: 'css;#pagebbtm a[title*="下一页"]',
  830. pageE: 'id("m_posts_c")/table | id("m_posts_c")/script | //script[contains(text(), "commonui.userInfo.setAll")]',
  831. insertP: ['css;#m_posts_c', 3],
  832. replaceE: 'css;div[name="pageball"]',
  833. scriptT: 2,
  834. scrollD: 1000
  835. }
  836. }, // NGA - 帖子内
  837. v2ex_recent: {
  838. host: ['v2ex.com', 'www.v2ex.com'],
  839. functionS: function() {if (lp == '/') {
  840. v2ex_aF('#Main a.topic-link:not([target])');
  841. } else if (lp == '/recent') {
  842. curSite = DBSite.v2ex_recent;
  843. v2ex_aF('#Main a.topic-link:not([target])');
  844. } else if (lp == '/notifications') {
  845. curSite = DBSite.v2ex_notifications;
  846. v2ex_aF('#Main a[href^="/t/"]:not([target])');
  847. } else if (lp == '/balance') {
  848. curSite = DBSite.v2ex_balance;
  849. } else if (indexOF('/go/')) {
  850. curSite = DBSite.v2ex_go;
  851. v2ex_aF('#Main a.topic-link:not([target])');
  852. } else if (indexOF('/replies')) {
  853. curSite = DBSite.v2ex_replies;
  854. v2ex_aF('#Main a[href^="/t/"]:not([target])');
  855. }},
  856. pager: {
  857. type: 1,
  858. nextL: 'css;a.page_current+a.page_normal',
  859. pageE: 'css;.cell.item',
  860. replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table',
  861. scrollD: 1500
  862. },
  863. function: {
  864. aF: v2ex_aF,
  865. pF: '#Main a.topic-link:not([target])'
  866. }
  867. }, // V2EX - 最近主题页
  868. v2ex_notifications: {
  869. pager: {
  870. type: 1,
  871. nextL: 'css;a.page_current+a.page_normal',
  872. pageE: 'css;#notifications > div',
  873. replaceE: 'css;#Main > .box > .cell[style] > table',
  874. scrollD: 1500
  875. },
  876. function: {
  877. aF: v2ex_aF,
  878. pF: '#Main a[href^="/t/"]:not([target])'
  879. }
  880. }, // V2EX - 提醒消息页
  881. v2ex_replies: {
  882. pager: {
  883. type: 1,
  884. nextL: 'css;a.page_current+a.page_normal',
  885. 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]',
  886. insertP: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
  887. replaceE: 'css;#Main > .box > .cell[style] > table',
  888. scrollD: 1500
  889. },
  890. function: {
  891. aF: v2ex_aF,
  892. pF: '#Main a[href^="/t/"]:not([target])'
  893. }
  894. }, // V2EX - 用户回复页
  895. v2ex_go: {
  896. pager: {
  897. type: 1,
  898. nextL: 'css;a.page_current+a.page_normal',
  899. pageE: 'css;#TopicsNode > div',
  900. replaceE: 'css;#Main > .box > .cell[style] > table',
  901. scrollD: 1500
  902. },
  903. function: {
  904. aF: v2ex_aF,
  905. pF: '#Main a.topic-link:not([target])'
  906. }
  907. }, // V2EX - 分类主题页
  908. v2ex_balance: {
  909. pager: {
  910. type: 1,
  911. nextL: 'css;a.page_current+a.page_normal',
  912. pageE: 'css;#Main .box > div:not(.cell) > table > tbody > tr:not(:first-child)',
  913. replaceE: 'css;#Main > .box > .cell[style] > table',
  914. scrollD: 1000
  915. }
  916. }, // V2EX - 账户余额页
  917. jandan: {
  918. host: 'jandan.net',
  919. functionS: function() {if (lp == '/' || indexOF('/page/')) {
  920. curSite = DBSite.jandan;
  921. } else if (lp == '/dzh') {
  922. curSite = DBSite.jandan_dzh;
  923. } else {
  924. curSite = DBSite.jandan_comment;
  925. }},
  926. insStyle: '#nav_prev, #nav_next, .post.f:not(.list-post) {display: none !important;}',
  927. pager: {
  928. type: 1,
  929. nextL: '//div[@class="wp-pagenavi"]/a[contains(text(), "下一页") or contains(text(), "更多文章")]',
  930. pageE: 'css;#content > .list-post',
  931. replaceE: 'css;.wp-pagenavi',
  932. scrollD: 1500
  933. },
  934. function: {
  935. bF: src_bF,
  936. pF: [0, 'img[data-original]', 'data-original']
  937. }
  938. }, // 煎蛋网
  939. jandan_comment: {
  940. insStyle: '#nav_prev, #nav_next {display: none !important;}',
  941. pager: {
  942. type: 1,
  943. nextL: 'css;a.previous-comment-page',
  944. pageE: 'css;ol.commentlist > li[id^="comment-"], script[src^="//cdn.jandan.net/static/min/"]',
  945. insertP: ['css;ol.commentlist', 3],
  946. replaceE: 'css;.cp-pagenavi',
  947. scriptT: 2,
  948. scrollD: 1500
  949. }
  950. }, // 煎蛋网
  951. jandan_dzh: {
  952. pager: {
  953. type: 2,
  954. nextL: 'css;.show_more',
  955. interval: 1500,
  956. scrollD: 1500
  957. }
  958. }, // 煎蛋网 - 大杂烩
  959. qiushibaike: {
  960. host: 'www.qiushibaike.com',
  961. functionS: function() {insStyle('.qrcode-wrap, .qrcode-wrap-img, .index-side-left-AD1 {display: none !important;}');
  962. if (lp == '/') {
  963. curSite = DBSite.qiushibaike;
  964. } else if (!indexOF('/article/')) {
  965. curSite = DBSite.qiushibaike_;
  966. }},
  967. pager: {
  968. type: 1,
  969. nextL: '//ul[@class="pagination"]//a[./span[@class="next"]]',
  970. pageE: 'css;.recommend-article > ul > li',
  971. replaceE: 'css;ul.pagination',
  972. scrollD: 1500
  973. }
  974. }, // 糗事百科
  975. qiushibaike_: {
  976. pager: {
  977. type: 1,
  978. nextL: '//ul[@class="pagination"]//a[./span[@class="next"]]',
  979. pageE: 'css;[id^="qiushi_tag_"]',
  980. replaceE: 'css;ul.pagination',
  981. scrollD: 1500
  982. }
  983. }, // 糗事百科 - 分类页
  984. lkong: {
  985. host: 'www.lkong.com',
  986. functionS: function() {if (indexOF('/forum/')) {
  987. curSite = DBSite.lkong;
  988. } else if (indexOF('/thread/')) {
  989. curSite = DBSite.lkong_thread;
  990. }},
  991. pager: {
  992. type: 1,
  993. nextL: lkong_nextL,
  994. pageE: '//div[@class="main-title"]/parent::div/parent::div | //head/style[@data-emotion-css]',
  995. insertP: ['//div[@class="main-title"][1]/parent::div/parent::div/parent::div', 3],
  996. replaceE: 'css;ul.ant-pagination',
  997. interval: 500,
  998. scrollD: 1200
  999. }
  1000. }, // 龙的天空 - 各版块帖子列表
  1001. lkong_thread: {
  1002. pager: {
  1003. type: 1,
  1004. nextL: lkong_nextL,
  1005. pageE: '//div[@class="main-content"]/parent::div | //head/style[@data-emotion-css]',
  1006. insertP: ['//div[@class="main-content"][1]/parent::div/parent::div', 3],
  1007. replaceE: 'css;ul.ant-pagination',
  1008. interval: 500,
  1009. scrollD: 1200
  1010. }
  1011. }, // 龙的天空 - 帖子内
  1012. pediy_forum: {
  1013. host: 'bbs.pediy.com',
  1014. functionS: function() {if (indexOF('/forum-')) {
  1015. curSite = DBSite.pediy_forum;
  1016. } else if (indexOF('/thread-')) {
  1017. if (GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.pediy_thread;}
  1018. }},
  1019. pager: {
  1020. type: 1,
  1021. nextL: '//a[@class="page-link" and text()="▶"]',
  1022. pageE: 'css;table.threadlist > tbody > tr',
  1023. replaceE: 'css;ul.pagination',
  1024. scrollD: 1500
  1025. }
  1026. }, // 看雪论坛 - 各版块帖子列表
  1027. pediy_thread: {
  1028. pager: {
  1029. type: 1,
  1030. nextL: '//a[@class="page-link" and text()="▶"]',
  1031. pageE: 'css;table.postlist > tbody > tr[data-pid]',
  1032. replaceE: 'css;ul.pagination',
  1033. scrollD: 1500
  1034. }
  1035. }, // 看雪论坛 - 帖子内
  1036. bangumitv: {
  1037. host: 'bangumi.tv',
  1038. functionS: function() {
  1039. if (indexOF('/browser') || indexOF('/subject_search')) {
  1040. curSite = DBSite.bangumitv;
  1041. } else if (indexOF('/forum')) {
  1042. curSite = DBSite.bangumitv_forum;
  1043. }},
  1044. pager: {
  1045. type: 1,
  1046. nextL: '//div[@class="page_inner"]/a[text()="››"]',
  1047. pageE: 'css;ul#browserItemList > li',
  1048. replaceE: 'css;.page_inner',
  1049. scrollD: 1500
  1050. }
  1051. }, // 番组计划
  1052. bangumitv_forum: {
  1053. pager: {
  1054. type: 1,
  1055. nextL: '//div[@class="page_inner"]/a[text()="››"]',
  1056. pageE: 'css;.topic_list > tbody:last-of-type > tr.topic',
  1057. replaceE: 'css;.page_inner',
  1058. scrollD: 1500
  1059. }
  1060. }, // 番组计划 - 小组帖子列表
  1061. dongchedi: {
  1062. host: 'www.dongchedi.com',
  1063. functionS: function() {locationC = true;
  1064. if (indexOF('/community/')) {
  1065. curSite = DBSite.dongchedi;
  1066. }},
  1067. history: true,
  1068. pager: {
  1069. type: 1,
  1070. nextL: 'css;li.pagination-item.is-active+li > a',
  1071. pageE: 'css;.data-wrapper > section.community-card, style',
  1072. insertP: ['css;.data-wrapper', 3],
  1073. replaceE: '//ul[./li[contains(@class, "pagination-item")]]',
  1074. scrollD: 2000
  1075. },
  1076. function: {
  1077. bF: function(pageElems) {
  1078. pageElems.forEach(function (one) {
  1079. one.querySelectorAll('.g-load-img-wrap, .tw-absolute.tw-cursor-pointer, .avatar').forEach(function (now) {
  1080. getCSS('noscript+img', now).src = getCSS('noscript > img', now).src;
  1081. });
  1082. });
  1083. return pageElems
  1084. }
  1085. }
  1086. }, // 懂车帝论坛
  1087. kdslife: {
  1088. host: 'club.kdslife.com',
  1089. functionS: function() {
  1090. if (indexOF('/f_')) {
  1091. curSite = DBSite.kdslife;
  1092. } else if (indexOF('/t_')) {
  1093. curSite = DBSite.kdslife_t;
  1094. }},
  1095. pager: {
  1096. type: 1,
  1097. nextL: '//div[@class="fr i3_r"]/a[text()="后一页"]',
  1098. pageE: 'css;ul.main_List > li.i2:not(.h_bg)',
  1099. replaceE: 'css;ul.main_List > li.i3',
  1100. scrollD: 1000
  1101. }
  1102. }, // 宽带山论坛
  1103. kdslife_t: {
  1104. pager: {
  1105. type: 1,
  1106. nextL: '//div[@class="pages"]/a[text()=">>"]',
  1107. pageE: 'css;#reply_list_panel > *, script[src*="ui/js/kds.js"]',
  1108. insertP: ['css;#reply_list_panel', 3],
  1109. replaceE: 'css;.pages',
  1110. scriptT: 2,
  1111. scrollD: 1000
  1112. }
  1113. }, // 宽带山论坛 - 帖子内
  1114. libaclub: {
  1115. host: 'www.libaclub.com',
  1116. functionS: function() {
  1117. if (lp == '/' || indexOF('/date_')) {
  1118. curSite = DBSite.libaclub;
  1119. } else if (indexOF('/f_')) {
  1120. curSite = DBSite.libaclub_f;
  1121. } else if (indexOF('/t_') || indexOF('/reply_')) {
  1122. curSite = DBSite.libaclub_t;
  1123. } else if (indexOF('/prt_')) {
  1124. curSite = DBSite.libaclub_prt;
  1125. } else if (lp == '/facade.php') {
  1126. curSite = DBSite.libaclub_search;
  1127. }},
  1128. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1129. pager: {
  1130. type: 1,
  1131. nextL: '//div[@class="ui-crumbs-more"]/a[@class="fn-link"][1]',
  1132. pageE: 'css;ul.ui-list > li:not(.ui-list-item-head):not(.ui-list-merchant-ad)',
  1133. replaceE: 'css;div.ui-crumbs-more',
  1134. scrollD: 1200
  1135. }
  1136. }, // 篱笆网论坛
  1137. libaclub_f: {
  1138. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1139. pager: {
  1140. type: 1,
  1141. nextL: 'css;a.ui-paging-next',
  1142. pageE: 'css;ul.ui-list > li:not(.ui-list-item-head):not(.ui-list-merchant-ad)',
  1143. replaceE: 'css;div.ui-paging',
  1144. scrollD: 1200
  1145. }
  1146. }, // 篱笆网论坛 - 各版块帖子列表
  1147. libaclub_t: {
  1148. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1149. pager: {
  1150. type: 1,
  1151. nextL: 'css;a.ui-paging-next',
  1152. pageE: 'css;.ui-box-content > div.ui-topic, .ui-box-content > a[name]',
  1153. insertP: ['css;.ui-box-content', 3],
  1154. replaceE: 'css;div.ui-paging',
  1155. scrollD: 1500
  1156. }
  1157. }, // 篱笆网论坛 - 帖子内
  1158. libaclub_prt: {
  1159. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1160. pager: {
  1161. type: 1,
  1162. nextL: 'css;a.ui-paging-next',
  1163. pageE: 'css;ul.ui-list > li',
  1164. replaceE: 'css;div.ui-paging',
  1165. scrollD: 2000
  1166. }
  1167. }, // 篱笆网论坛 - 帖子内 - 打印版
  1168. libaclub_search: {
  1169. insStyle: 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}',
  1170. pager: {
  1171. type: 1,
  1172. nextL: '//div[@class="ui-page"]/a[contains(text(), "下一页")]',
  1173. pageE: 'css;.ui-box-main > ul.ui-list > li',
  1174. replaceE: 'css;div.ui-page',
  1175. scrollD: 1200
  1176. }
  1177. }, // 篱笆网论坛 - 搜索页
  1178. taoguba: {
  1179. host: 'www.taoguba.com.cn',
  1180. functionS: function() {insStyle('#joinTGB {display: none !important;}')
  1181. if (indexOF('/Article/')) {
  1182. curSite = DBSite.taoguba_t;
  1183. } else if (indexOF('/shenghuoba/')) {
  1184. curSite = DBSite.taoguba_;
  1185. } else if (indexOF(/\/bbs|zongban|dianzan|jinghua\//)) {
  1186. curSite = DBSite.taoguba;
  1187. }},
  1188. pager: {
  1189. type: 1,
  1190. nextL: function() {
  1191. let next = getXpath('//div[contains(@class, "t_page01")]/a[contains(text(), "下一页")]'), next_ = '/';
  1192. if (next) {
  1193. next = next.getAttribute('onclick').replace('gotoPage(','').replace(')','').split(',');
  1194. if (indexOF(/\/dianzan|jinghua\//)) next_ = '-';
  1195. if (parseInt(next[0]) <= parseInt(next[2])) {return (`${location.origin}/${location.pathname.split('/')[1]}/${next[0]}${next_}${next[1]}`)}
  1196. }
  1197. return '';
  1198. },
  1199. pageE: 'css;.p_list > .p_list01[class*="user_"]',
  1200. replaceE: 'css;.t_page',
  1201. scrollD: 1000
  1202. }
  1203. }, // 淘股吧论坛
  1204. taoguba_: {
  1205. pager: {
  1206. type: 1,
  1207. nextL: function() {
  1208. let next = getCSS('#N_go_pageBtn'), next_ = location.pathname.split('/')[2].split('-')[0];
  1209. if (next && (parseInt(next.dataset.now) + 1 <= parseInt(next.dataset.total))) {
  1210. if (!next_) next_ = 'H';
  1211. return (`${location.origin}/shenghuoba/${next_}-${parseInt(next.dataset.now) + 1}`)
  1212. }
  1213. return '';
  1214. },
  1215. pageE: 'css;.lifeContent-topicList-item',
  1216. replaceE: 'css;.N_sortPage ',
  1217. scrollD: 1000
  1218. }
  1219. }, // 淘股吧论坛 - 生活圈
  1220. taoguba_t: {
  1221. pager: {
  1222. type: 1,
  1223. nextL: function() {
  1224. let next = getXpath('//div[contains(@class, "t_page01")]/a[contains(text(), "下一页")]');
  1225. if (next) {
  1226. next = next.getAttribute('onclick').replace('gotoPageTopic(','').replace(')','').split(',');
  1227. if (parseInt(next[0]) <= parseInt(next[1])) {return (`${location.origin}/Article/${getCSS("#looktopicID").value}/${next[0]}`)}
  1228. }
  1229. return '';
  1230. },
  1231. pageE: 'css;div[id^="reply_"]',
  1232. replaceE: 'css;.t_page',
  1233. scrollD: 1000
  1234. },
  1235. function: {
  1236. bF: src_bF,
  1237. pF: [0, 'img[data-original]', 'data-original']
  1238. }
  1239. }, // 淘股吧论坛 - 帖子内
  1240. lowendtalk: {
  1241. host: 'lowendtalk.com',
  1242. pager: {
  1243. type: 1,
  1244. nextL: 'css;a.Next',
  1245. pageE: 'css;ul.DataList > li',
  1246. replaceE: 'css;.Pager',
  1247. scrollD: 1500
  1248. }
  1249. }, // LowEndTalk
  1250. lieyou: {
  1251. host: 'bbs.lieyou888.com',
  1252. functionS: function() {if (indexOF('/forum')) {curSite = DBSite.lieyou;}},
  1253. pager: {
  1254. type: 1,
  1255. nextL: '//div[contains(@class, "_pageNav")]/a[text()="下一页"]',
  1256. pageE: 'css;ul.gb-bbs-list > li',
  1257. replaceE: 'css;._pageNav',
  1258. scrollD: 1000
  1259. },
  1260. function: {
  1261. bF: src_bF,
  1262. pF: [0, 'img[original]', 'original']
  1263. }
  1264. }, // 芥子空间论坛
  1265. xcar_forumdisplay: {
  1266. host: 'www.xcar.com.cn',
  1267. functionS: function() {if (lp == '/bbs/forumdisplay.php') {curSite = DBSite.xcar_forumdisplay}},
  1268. pager: {
  1269. type: 1,
  1270. nextL: 'css;a.page_down',
  1271. pageE: 'css;.table-section > dl:not(.table_head)',
  1272. replaceE: 'css;.forumList_page',
  1273. scrollD: 2000
  1274. }
  1275. }, // 爱卡汽车网论坛 - 各版块帖子列表
  1276. flyert_forumdisplay: {
  1277. host: 'www.flyert.com',
  1278. functionS: function() {if (indexOF('/forum-') || indexOF('mod=forumdisplay', 's')) {
  1279. curSite = DBSite.flyert_forumdisplay;
  1280. } else if (indexOF('/forum') || indexOF('mod=viewthread', 's')) {
  1281. if (GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.flyert_viewthread;}
  1282. }},
  1283. pager: {
  1284. type: 1,
  1285. nextL: 'css;a.nxt:not([href*="javascript"])',
  1286. pageE: 'css;#threadlist table > tbody[id^="normalthread_"]',
  1287. replaceE: 'css;.pg',
  1288. scrollD: 2500
  1289. }
  1290. }, // 飞客网论坛 - 各版块帖子列表
  1291. flyert_viewthread: {
  1292. pager: {
  1293. type: 1,
  1294. nextL: 'css;a.nxt:not([href*="javascript"])',
  1295. pageE: 'css;#postlist > .comiis_viewbox',
  1296. replaceE: 'css;.comiis_pgs > .pg',
  1297. scrollD: 3000
  1298. }
  1299. }, // 飞客网论坛 - 帖子内
  1300. cnprint: {
  1301. host: 'www.cnprint.org',
  1302. functionS: function() {if (indexOF('/forum/')) {curSite = DBSite.cnprint;} else if (indexOF('/thread/') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.cnprint_thread;}},
  1303. pager: {
  1304. type: 1,
  1305. nextL: 'css;a[rel="next"]',
  1306. pageE: 'css;tbody[id*="threadbits_forum"] > tr',
  1307. replaceE: 'css;.pagenav',
  1308. scrollD: 2500
  1309. }
  1310. }, // CPC 中文印刷社区
  1311. cnprint_thread: {
  1312. pager: {
  1313. type: 1,
  1314. nextL: 'css;a[rel="next"]',
  1315. pageE: 'css;#posts > div:not([id])',
  1316. replaceE: 'css;.pagenav',
  1317. scrollD: 2000
  1318. }
  1319. }, // CPC 中文印刷社区 - 帖子内
  1320. adnmb3: {
  1321. host: ['adnmb3.com', 'www.tnmb.org'],
  1322. functionS: function() {
  1323. if (indexOF('/m/f/')) {
  1324. curSite = DBSite.adnmb3_mf;
  1325. } else if (indexOF('/m/t/')) {
  1326. curSite = DBSite.adnmb3_mt;
  1327. } else if (indexOF(/\/(f|Forum)\//)) {
  1328. curSite = DBSite.adnmb3;
  1329. } else if (indexOF('/t/')) {
  1330. curSite = DBSite.adnmb3_t;
  1331. }},
  1332. pager: {
  1333. type: 1,
  1334. nextL: '//ul[contains(@class, "pagination")]//a[text()="下一页"]',
  1335. pageE: 'css;.h-threads-list > *, script[src$="/h.desktop.js"]',
  1336. insertP: ['css;.h-threads-list', 3],
  1337. replaceE: '//ul[contains(@class, "pagination")]',
  1338. scriptT: 2,
  1339. scrollD: 2500
  1340. }
  1341. }, // A 岛
  1342. adnmb3_t: {
  1343. pager: {
  1344. type: 1,
  1345. nextL: '//ul[contains(@class, "pagination")]//a[text()="下一页"]',
  1346. pageE: 'css;.h-threads-list > .h-threads-item > .h-threads-item-replys, script[src$="/h.desktop.js"]',
  1347. insertP: ['css;.h-threads-list > .h-threads-item', 3],
  1348. replaceE: '//ul[contains(@class, "pagination")]',
  1349. scriptT: 2,
  1350. scrollD: 2500
  1351. }
  1352. }, // A 岛 - 帖子内
  1353. adnmb3_mf: {
  1354. pager: {
  1355. type: 1,
  1356. nextL: '//li[contains(@class, "pagination-next")]//a[text()="下一页"]',
  1357. 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"]',
  1358. insertP: ['css;#h-threads-pagination', 1],
  1359. replaceE: 'css;#h-threads-pagination',
  1360. scriptT: 2,
  1361. scrollD: 2500
  1362. }
  1363. }, // A 岛 - 帖子列表(手机版)
  1364. adnmb3_mt: {
  1365. pager: {
  1366. type: 1,
  1367. nextL: '//li[contains(@class, "pagination-next")]//a[text()="下一页"]',
  1368. pageE: 'css;.h-threads-replylist > div, script[src$="/h.mobile.js"]',
  1369. insertP: ['css;.h-threads-replylist', 3],
  1370. replaceE: 'css;#h-threads-pagination',
  1371. scriptT: 2,
  1372. scrollD: 2500
  1373. }
  1374. }, // A 岛 - 帖子内(手机版)
  1375. pixiv: {
  1376. host: 'www.pixiv.net',
  1377. functionS: function() {locationC = true;
  1378. if (lp == '/') {
  1379. forceTarget();
  1380. } else if (indexOF('/tags/')/* && self == top*/) {
  1381. curSite = DBSite.pixiv;
  1382. } else if (indexOF('/users/') && indexOF(/\/(artworks|illustrations|manga)/)) {
  1383. curSite = DBSite.pixiv_user;
  1384. } else if (indexOF('/artworks/')) {
  1385. setTimeout(function(){getXpath('//button[contains(string(), "查看全部") or contains(string(), "See all") or contains(string(), "すべて見る") or contains(string(), "모두 보기")]').click();}, 1000)
  1386. }
  1387. },
  1388. forceTarget: true,
  1389. 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;}',
  1390. history: true,
  1391. iframe: true,
  1392. pager: {
  1393. type: 5,
  1394. nextL: 'css;a[aria-disabled="false"][class*="filterProps-Styled-Component"][href]:last-child',
  1395. /*pageE: '//ul[contains(@class, "-1 ")]/li',
  1396. insertP: ['//ul[contains(@class, "-1 ")]', 3],
  1397. replaceE: '//nav[./a[@aria-disabled="false"][contains(@class, "filterProps-Styled-Component")]]',*/
  1398. scrollD: 2000
  1399. }
  1400. }, // Pixiv - 分类页
  1401. pixiv_user: {
  1402. forceTarget: true,
  1403. 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;}',
  1404. history: true,
  1405. pager: {
  1406. type: 5,
  1407. nextL: 'css;a[aria-disabled="false"][class*="filterProps-Styled-Component"][href]:last-child',
  1408. /*pageE: '//ul[contains(@class, "-1 ")]/li',
  1409. insertP: ['//ul[contains(@class, "-1 ")]', 3],
  1410. replaceE: '//nav[./a[@aria-disabled="false"][contains(@class, "filterProps-Styled-Component")]]',*/
  1411. scrollD: 2000
  1412. }
  1413. }, // Pixiv - 用户作品页
  1414. vilipix: {
  1415. host: 'www.vilipix.com',
  1416. functionS: function() {locationC = true; if (lp == '/') {forceTarget();} else if (indexOF(/\/(tags|user|new|ranking)/)) {curSite = DBSite.vilipix;}},
  1417. forceTarget: true,
  1418. history: true,
  1419. pager: {
  1420. type: 6,
  1421. nextL: function() {let next = getCSS('li.number.active+li.number'); if (next) return (location.origin + location.pathname + '?p=' + next.textContent)},
  1422. pageE: 'css;ul.illust-content > li',
  1423. replaceE: 'css;ul.el-pager',
  1424. loadTime: 800,
  1425. scrollD: 2000
  1426. }
  1427. }, // Vilipix
  1428. pixivision: {
  1429. host: 'www.pixivision.net',
  1430. functionS: function() {if (!indexOF('/a/')) curSite = DBSite.pixivision;},
  1431. pager: {
  1432. type: 1,
  1433. nextL: 'css;a.next',
  1434. pageE: 'css;li.article-card-container',
  1435. replaceE: 'css;._pager',
  1436. scrollD: 2000
  1437. }
  1438. }, // Pixivision
  1439. _58pic: {
  1440. host: 'www.58pic.com',
  1441. functionS: function() {insStyle('.qt-model-t.login-model {display: none !important;}');
  1442. if (indexOF(/\/(tupian|piccate)\//)) {
  1443. curSite = DBSite._58pic;
  1444. 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;}')
  1445. } else if (indexOF('/c/')) {
  1446. curSite = DBSite._58pic_c;
  1447. }},
  1448. insStyle: '.qtw-card.place-box, .card-lazy, .is-line .is-back {display: none !important;}',
  1449. pager: {
  1450. type: 1,
  1451. nextL: '//div[contains(@class,"page-box")]//a[text()="下一页"]',
  1452. pageE: 'css;.card-grid-box:not(.favorites-box) > div',
  1453. replaceE: 'css;.page-box',
  1454. scrollD: 2500
  1455. },
  1456. function: {
  1457. bF: src_bF,
  1458. pF: [0, 'img[data-original]', 'data-original']
  1459. }
  1460. }, // 千图网 - 分类/搜索页
  1461. _58pic_c: {
  1462. pager: {
  1463. type: 1,
  1464. nextL: '//div[contains(@class,"page-box")]//a[text()="下一页"]',
  1465. pageE: 'css;.list-box > .qtw-card',
  1466. replaceE: 'css;.page-box',
  1467. scrollD: 4000
  1468. },
  1469. function: {
  1470. bF: src_bF,
  1471. pF: [0, 'img[data-original]', 'data-original']
  1472. }
  1473. }, // 千图网 - 专题/收藏夹
  1474. _588ku: {
  1475. host: '588ku.com',
  1476. insStyle: '.listlogin-box.listloginBox, .CLdialogV1, .editIndexEntry, .globalRSideB {display: none !important;}',
  1477. pager: {
  1478. type: 1,
  1479. nextL: '//ul[contains(@class, "page-list")]//a[text()="下一页"]',
  1480. pageE: 'css;.data-box .dataList, .data-box .data-list',
  1481. insertP: ['css;.data-box .dataList, .data-box .data-list', 3],
  1482. replaceE: 'css;ul.page-list',
  1483. scrollD: 2000
  1484. },
  1485. function: {
  1486. bF: src_bF,
  1487. pF: [0, 'img[data-original]', 'data-original']
  1488. }
  1489. }, // 千库网
  1490. nipic: {
  1491. host: ['www.nipic.com', 'soso.nipic.com'],
  1492. insStyle: 'li.search-works-item {display: none !important;}',
  1493. pager: {
  1494. type: 1,
  1495. nextL: '//a[@title="下一页" or text()="下一页"][not(contains(@class, "search-works-nextpage"))]',
  1496. pageE: 'css;ul#img-list-outer > li',
  1497. replaceE: 'css;.common-page-box, .common-seo-page-box',
  1498. scrollD: 2000
  1499. },
  1500. function: {
  1501. bF: src_bF,
  1502. pF: [0, 'img[data-original]', 'data-original']
  1503. }
  1504. }, // 昵图网
  1505. ztupic: {
  1506. host: 'www.ztupic.com',
  1507. functionS: function() {if (lp != '/' && !indexOF('/sucai/')) {curSite = DBSite.ztupic;}},
  1508. pager: {
  1509. type: 1,
  1510. nextL: 'css;a.page-link[rel="next"]',
  1511. pageE: 'css;.floor_item',
  1512. replaceE: 'css;ul.pagination',
  1513. scrollD: 2000
  1514. },
  1515. function: {
  1516. bF: src_bF,
  1517. pF: [0, 'img[data-src]', 'data-src']
  1518. }
  1519. }, // 众图网
  1520. pixabay: {
  1521. host: 'pixabay.com',
  1522. pager: {
  1523. type: 1,
  1524. nextL: '//a[text()="›"]',
  1525. pageE: 'css;[class^="results"] > [class^="container"] > div',
  1526. replaceE: '//a[text()="›"]',
  1527. scrollD: 2000
  1528. },
  1529. function: {
  1530. bF: src_bF,
  1531. pF: [0, 'img[data-lazy-src]', 'data-lazy-src']
  1532. }
  1533. }, // Pixabay
  1534. logosc: {
  1535. host: 'www.logosc.cn',
  1536. functionS: function() {if (indexOF('/so/')) {curSite = DBSite.logosc;}},
  1537. pager: {
  1538. type: 2,
  1539. nextL: 'css;button.so-pablo-button',
  1540. interval: 1500,
  1541. scrollD: 1500
  1542. }
  1543. }, // 搜图神器 (免费无版权)
  1544. sccnn: {
  1545. host: 'www.sccnn.com',
  1546. pager: {
  1547. type: 1,
  1548. nextL: '//ul[@class="listpage"]//a[text()=">"]',
  1549. pageE: 'css;td[valign="TOP"]:not([width]) tr[valign="Middle"]',
  1550. replaceE: 'css;ul.listpage',
  1551. scrollD: 1000
  1552. }
  1553. }, // 素材中国
  1554. sccnn_so: {
  1555. host: 'so.sccnn.com',
  1556. pager: {
  1557. type: 1,
  1558. nextL: 'css;font[color="Red"]+a.F16',
  1559. pageE: '//tr[@valign="Top"][1]/preceding-sibling::tr',
  1560. replaceE: '//tr[@valign="Top"][last()]',
  1561. scrollD: 1000
  1562. }
  1563. }, // 素材中国 - 搜索页
  1564. iconfont: {
  1565. host: 'www.iconfont.cn',
  1566. functionS: function() {locationC = true; if (indexOF('/search/')) curSite = DBSite.iconfont;},
  1567. forceTarget: true,
  1568. insStyle: '.footer, header .bind-tips, .block-pagination-wrap {display: none !important;}',
  1569. history: true,
  1570. iframe: true,
  1571. pager: {
  1572. type: 5,
  1573. nextL: () => getNextP('css;li.active+li:not(.disabled) > a', 'page=', /page=\d+/),
  1574. scrollD: 1000
  1575. }
  1576. }, // iconfont
  1577. iconarchive: {
  1578. host: 'iconarchive.com',
  1579. functionS: function() {if (indexOF(/\/(tag|search|category)/)) curSite = DBSite.iconarchive;},
  1580. history: true,
  1581. pager: {
  1582. type: 1,
  1583. nextL: 'css;a.next',
  1584. pageE: 'css;.icondetail',
  1585. replaceE: 'css;.pagination',
  1586. scrollD: 2000
  1587. }
  1588. }, // IconArchive
  1589. puxiang: {
  1590. host: 'www.puxiang.com',
  1591. functionS: function() {if (lp == '/search/favorite') {
  1592. curSite = DBSite.puxiang_collect;
  1593. } else if (lp == '/search/puxiang' || lp == '/list' || lp == '/galleries' || lp == '/articles') {
  1594. curSite = DBSite.puxiang;
  1595. } else if (lp == '/') {
  1596. curSite = DBSite.puxiang; curSite.pager.scrollD = 4000;
  1597. }},
  1598. pager: {
  1599. type: 1,
  1600. nextL: 'css;li.next > a',
  1601. pageE: 'css;.work-list > div',
  1602. replaceE: 'css;.pagerbar',
  1603. scrollD: 1500
  1604. }
  1605. }, // 普象网 - 作品集/搜索页
  1606. puxiang_collect: {
  1607. pager: {
  1608. type: 1,
  1609. nextL: 'css;li.next > a',
  1610. pageE: 'css;.collect-list > div',
  1611. replaceE: 'css;.pagerbar',
  1612. scrollD: 1500
  1613. }
  1614. }, // 普象网 - 收藏夹
  1615. xuexiniu: {
  1616. host: ['www.xuexiniu.com', 'bbs.xuexiniu.com'],
  1617. functionS: function() {
  1618. if (getCSS('body#nv_forum.pg_forumdisplay')) {
  1619. if (getCSS('ul.waterfall')) {
  1620. curSite = DBSite.xuexiniu_forum;
  1621. } else {
  1622. curSite = DBSite.discuz_guide
  1623. }
  1624. } else if (getCSS('body#nv_forum.pg_viewthread') && GM_getValue('menu_discuz_thread_page')) {
  1625. curSite = DBSite.xuexiniu_thread;
  1626. } else if (indexOF('/search.php')) {
  1627. curSite = DBSite.xuexiniu_search;
  1628. } else {
  1629. curSite = DBSite.xuexiniu;
  1630. }
  1631. },
  1632. pager: {
  1633. type: 1,
  1634. nextL: '//a[@class="page-link" and contains(text(), "下一页")]',
  1635. pageE: 'css;.row > .col-sm-6',
  1636. replaceE: 'css;ul.pagination',
  1637. scrollD: 1000
  1638. }
  1639. }, // 学犀牛 - 分类页
  1640. xuexiniu_forum: {
  1641. pager: {
  1642. type: 1,
  1643. nextL: 'css;a.nxt:not([href*="javascript"])',
  1644. pageE: 'css;.waterfall > li',
  1645. replaceE: 'css;.pg',
  1646. scrollD: 1500
  1647. }
  1648. }, // 学犀牛 - 各板块帖子列表
  1649. xuexiniu_thread: {
  1650. pager: {
  1651. type: 1,
  1652. nextL: 'css;a.nxt:not([href*="javascript"])',
  1653. pageE: 'css;#zhanzhuai_primary > .box',
  1654. replaceE: 'css;.pg',
  1655. scrollD: 1500
  1656. }
  1657. }, // 学犀牛 - 帖子内
  1658. xuexiniu_search: {
  1659. pager: {
  1660. type: 1,
  1661. nextL: 'css;a.nxt:not([href*="javascript"])',
  1662. pageE: 'css;.yangshi.yangshi2',
  1663. insertP: ['css;.page', 1],
  1664. replaceE: 'css;.page',
  1665. scrollD: 1500
  1666. }
  1667. }, // 学犀牛 - 搜索页
  1668. om: {
  1669. host: 'www.om.cn',
  1670. functionS: function() {if (location.pathname != '/') {curSite = DBSite.om;}},
  1671. pager: {
  1672. type: 1,
  1673. nextL: 'css;li.next > a',
  1674. pageE: 'css;.main_content > ul > li',
  1675. replaceE: 'css;ul.pagination',
  1676. scrollD: 1500
  1677. }
  1678. }, // 欧模网
  1679. xiadele: {
  1680. host: ['www.xiadele.com', 'search.xiadele.com'],
  1681. functionS: function() {if (location.pathname != '/') {curSite = DBSite.xiadele;}},
  1682. insStyle: '.last-li-carousel-img {display: none !important;}',
  1683. pager: {
  1684. type: 1,
  1685. nextL: 'css;li.next_page a[rel="next"]',
  1686. pageE: 'css;ul.list-page-ul > li',
  1687. replaceE: 'css;ul.pagination',
  1688. scrollD: 2000
  1689. }
  1690. }, // 下得乐
  1691. Mixkit: {
  1692. host: 'mixkit.co',
  1693. functionS: function() {if (location.pathname != '/') {curSite = DBSite.Mixkit;}},
  1694. pager: {
  1695. type: 1,
  1696. nextL: 'css;a.pagination__link--next',
  1697. pageE: 'css;.item-grid-item',
  1698. replaceE: 'css;.pagination__wrapper',
  1699. scrollD: 2000
  1700. }
  1701. }, // Mixkit
  1702. _3dmgame: {
  1703. host: 'www.3dmgame.com',
  1704. functionS: function() {
  1705. if (getCSS('.Llist_b > div.lis')) {
  1706. curSite = DBSite._3dmgame_list;
  1707. } else if (getCSS('.newsleft > ul')) {
  1708. curSite = DBSite._3dmgame_list2;
  1709. } else if (indexOF('/resource')) {
  1710. curSite = DBSite._3dmgame_list3;
  1711. } else {
  1712. curSite = DBSite._3dmgame;
  1713. }},
  1714. history: true,
  1715. pager: {
  1716. type: 3,
  1717. nextL: 'css;li.next > a',
  1718. pageE: 'css;script[src*="common.js"], .news_warp_center > *',
  1719. insertP: ['css;.news_warp_center', 3],
  1720. replaceE: 'css;.pagewrap',
  1721. scrollE: 'css;.pagewrap',
  1722. scriptT: 2,
  1723. scrollD: 1000
  1724. }
  1725. }, // 3DM
  1726. _3dmgame_list: {
  1727. pager: {
  1728. type: 1,
  1729. nextL: 'css;li.next > a',
  1730. pageE: 'css;.Llist_b > div.lis',
  1731. replaceE: 'css;.pagewrap',
  1732. scrollD: 1000
  1733. },
  1734. function: {
  1735. bF: src_bF,
  1736. pF: [0, 'img[data-original]', 'data-original']
  1737. }
  1738. }, // 3DM - 分类页
  1739. _3dmgame_list2: {
  1740. pager: {
  1741. type: 1,
  1742. nextL: 'css;li.next > a',
  1743. pageE: 'css;.newsleft > ul > li',
  1744. replaceE: 'css;.pagewrap',
  1745. scrollD: 1000
  1746. },
  1747. function: {
  1748. bF: src_bF,
  1749. pF: [0, 'img[data-original]', 'data-original']
  1750. }
  1751. }, // 3DM - 游戏专区 - 分类页
  1752. _3dmgame_list3: {
  1753. pager: {
  1754. type: 1,
  1755. nextL: 'css;li.next > a',
  1756. pageE: 'css;.item > ul',
  1757. insertP: ['css;.item > ul:last-child', 1],
  1758. replaceE: 'css;.pagewrap',
  1759. scrollD: 800
  1760. }
  1761. }, // 3DM - 游戏专区 - 资源页
  1762. _3dmgame_mod: {
  1763. host: 'mod.3dmgame.com',
  1764. history: true,
  1765. pager: {
  1766. type: 1,
  1767. nextL: () => getNextP('//li[@class="page-list active"]/following-sibling::li[contains(@class, "page-list")]/a', 'Page=', /Page=\d+/),
  1768. 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")]',
  1769. insertP: ['//div[contains(@class, "game-mod-wrap") or contains(@class, "search-mod ")]', 3],
  1770. scriptT: 2,
  1771. scrollD: 1200
  1772. }
  1773. }, // 3DM MOD站
  1774. ali213_www: {
  1775. host: 'www.ali213.net',
  1776. pager: {
  1777. type: 3,
  1778. nextL: 'css;#after_this_page',
  1779. pageE: 'css;#Content >*:not(.news_ding):not(.page_fenye)',
  1780. insertP: ['css;.page_fenye', 1],
  1781. replaceE: 'css;.page_fenye',
  1782. scrollE: 'css;.page_fenye',
  1783. scrollD: 1000
  1784. }
  1785. }, // 游侠网
  1786. ali213_list: {
  1787. host: 'down.ali213.net',
  1788. functionS: function() {if (getCSS('.famous-ul > .famous-li')) {curSite = DBSite.ali213_list;}},
  1789. pager: {
  1790. type: 1,
  1791. nextL: 'css;a.page-next',
  1792. pageE: 'css;.famous-ul > .famous-li',
  1793. replaceE: 'css;.page-container',
  1794. scrollD: 1000
  1795. },
  1796. function: {
  1797. bF: src_bF,
  1798. pF: [0, 'img[data-original]', 'data-original']
  1799. }
  1800. }, // 游侠网 - 分类页
  1801. ali213_gl: {
  1802. host: 'gl.ali213.net',
  1803. insStyle: '.n_show_b {display: none !important;}',
  1804. history: true,
  1805. pager: {
  1806. type: 3,
  1807. nextL: 'css;a.next',
  1808. pageE: 'css;.c-detail >*',
  1809. insertP: ['css;.c-detail', 3],
  1810. replaceE: 'css;.page_fenye',
  1811. scrollE: 'css;.page_fenye',
  1812. scrollD: 1000
  1813. }
  1814. }, // 游侠网 - 攻略
  1815. ali213_pic: {
  1816. host: 'pic.ali213.net',
  1817. insStyle: 'a.prev, a.next {display: none !important;}',
  1818. pager: {
  1819. type: 1,
  1820. nextL: 'css;a.next',
  1821. pageE: 'css;#image-show > img',
  1822. replaceE: 'css;#image-show > a',
  1823. scrollD: 1200
  1824. }
  1825. }, // 游侠网 - 图库
  1826. gamersky_ent: {
  1827. host: 'www.gamersky.com',
  1828. functionS: function() {if (indexOF('/ent/')) {curSite = DBSite.gamersky_ent;} else {curSite = DBSite.gamersky_gl;}},
  1829. pager: {
  1830. type: 3,
  1831. nextL: '//div[@class="page_css"]/a[text()="下一页"]',
  1832. pageE: 'css;.Mid2L_con > *:not(.gs_nc_editor):not(.pagecss):not(.page_css):not(.gs_ccs_solve):not(.post_ding)',
  1833. insertP: ['css;.page_css', 1],
  1834. replaceE: 'css;.page_css',
  1835. scrollE: 'css;.page_css',
  1836. scrollD: 1000
  1837. }
  1838. }, // 游民星空
  1839. gamersky_gl: {
  1840. history: true,
  1841. pager: {
  1842. type: 3,
  1843. nextL: '//div[@class="page_css"]/a[text()="下一页"]',
  1844. pageE: 'css;.Mid2L_con > *:not(.gs_nc_editor):not(.pagecss):not(.gs_ccs_solve):not(.post_ding)',
  1845. insertP: ['css;.gs_nc_editor', 1],
  1846. replaceE: 'css;.page_css',
  1847. scrollE: 'css;.page_css',
  1848. forceHTTPS: true,
  1849. scrollD: 1000
  1850. },
  1851. function: {
  1852. bF: gamersky_gl_bF
  1853. }
  1854. }, // 游民星空 - 攻略
  1855. nexusmods: {
  1856. host: 'www.nexusmods.com',
  1857. pager: {
  1858. type: 1,
  1859. nextL: nexusmods_nextL,
  1860. pageE: 'css;ul.tiles > li',
  1861. replaceE: 'css;.pagination',
  1862. scrollD: 4000
  1863. },
  1864. function: {
  1865. bF: nexusmods_bF
  1866. }
  1867. }, // NexusMods
  1868. curseforge: {
  1869. host: 'www.curseforge.com',
  1870. pager: {
  1871. type: 1,
  1872. nextL: 'css;.pagination-next > a',
  1873. pageE: 'css;div.my-2',
  1874. replaceE: 'css;.pagination',
  1875. scrollD: 2500
  1876. }
  1877. }, // CurseForge
  1878. steamcommunity: {
  1879. host: 'steamcommunity.com',
  1880. functionS: function() {if (indexOF('/workshop/browse')) {curSite = DBSite.steamcommunity;}},
  1881. pager: {
  1882. type: 1,
  1883. nextL: '//a[@class="pagebtn"][last()]',
  1884. pageE: 'css;.workshopBrowseItems > *',
  1885. replaceE: 'css;.workshopBrowsePaging',
  1886. scriptT: 2,
  1887. scrollD: 1500
  1888. }
  1889. }, // Steam 创意工坊 - 项目列表
  1890. yikm: {
  1891. host: 'www.yikm.net',
  1892. pager: {
  1893. type: 1,
  1894. nextL: '//ul[@class="pager"]//a[text()="下一页"]',
  1895. pageE: '//h2[contains(text(), "所有游戏") or contains(text(), "搜索结果")]/following-sibling::div[1]/div',
  1896. replaceE: 'css;ul.pager',
  1897. scrollD: 1500
  1898. }
  1899. }, // 小霸王其乐无穷
  1900. cs_rin_ru: {
  1901. host: 'cs.rin.ru',
  1902. functionS: function() {if (lp == '/forum/viewforum.php') { // 版块帖子列表
  1903. curSite = DBSite.cs_rin_ru;
  1904. } else if (lp == '/forum/viewtopic.php') { // 帖子内
  1905. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.cs_rin_ru_list;
  1906. } else if (lp == '/forum/search.php') { // 搜索结果
  1907. curSite = DBSite.cs_rin_ru_search;
  1908. }},
  1909. pager: {
  1910. type: 1,
  1911. nextL: '//td[@class="gensmall"][@align="right"]//a[text()="Next"]',
  1912. pageE: 'css;#pagecontent > table.tablebg > tbody > tr:not([align])',
  1913. replaceE: 'css;#pagecontent > table:first-child',
  1914. scrollD: 1500
  1915. },
  1916. function: {
  1917. bF: cs_rin_ru_bF
  1918. }
  1919. }, // cs.rin.ru - 各版块帖子列表
  1920. cs_rin_ru_list: {
  1921. pager: {
  1922. type: 1,
  1923. nextL: 'id("pageheader")/p[@class="gensmall"]//a[text()="Next"]',
  1924. pageE: 'css;#pagecontent > table.tablebg:not(:nth-last-child(2)):not(:nth-child(2))',
  1925. replaceE: 'css;#pagecontent >table:not(.tablebg), #pageheader p.gensmall',
  1926. scrollD: 2000
  1927. }
  1928. }, // cs.rin.ru - 帖子内
  1929. cs_rin_ru_search: {
  1930. pager: {
  1931. type: 1,
  1932. nextL: 'id("wrapcentre")/div[@class="nav"]//a[text()="Next"]',
  1933. pageE: 'css;#wrapcentre > form > table.tablebg > tbody > tr[valign]',
  1934. replaceE: 'css;#wrapcentre > div',
  1935. scrollD: 1500
  1936. }
  1937. }, // cs.rin.ru - 搜索页
  1938. crackhub: {
  1939. host: 'crackhub.site',
  1940. insStyle: 'html.wp-dark-mode-active .inside-article {background-color: var(--wp-dark-mode-bg);}',
  1941. pager: {
  1942. type: 1,
  1943. nextL: 'css;a.next.page-numbers',
  1944. pageE: 'css;article[id^="post-"]',
  1945. replaceE: 'css;nav.paging-navigation',
  1946. scrollD: 2000
  1947. }
  1948. }, // Crackhub213
  1949. fitgirl: {
  1950. host: 'fitgirl-repacks.site',
  1951. pager: {
  1952. type: 1,
  1953. nextL: 'css;a.next.page-numbers',
  1954. pageE: 'css;article[id^="post-"]',
  1955. replaceE: 'css;nav.paging-navigation',
  1956. scrollD: 2500
  1957. }
  1958. }, // FitGirl Repacks
  1959. bilibili_search: {
  1960. host: 'search.bilibili.com',
  1961. functionS: function() {locationC = true; curSite = DBSite.bilibili_search;},
  1962. history: true,
  1963. retry: 100,
  1964. pager: {
  1965. type: 1,
  1966. nextL: bilibili_search_nextL,
  1967. pageE: '//ul[contains(@class, "video-list")]/li | //script[contains(text(), "window.__INITIAL_STATE__")]',
  1968. insertP: ['css;ul.video-list', 3],
  1969. replaceE: 'css;ul.pages',
  1970. scriptT: 2,
  1971. scrollD: 1000
  1972. },
  1973. function: {
  1974. aF: bilibili_search_aF
  1975. }
  1976. }, // B 站(Bilibili) - 搜索页
  1977. pianku: {
  1978. host: /pianku/,
  1979. functionS: function() {if (location.pathname != '/') {curSite = DBSite.pianku;}},
  1980. pager: {
  1981. type: 1,
  1982. nextL: 'css;a.a1',
  1983. pageE: 'css;.content-list > li',
  1984. replaceE: 'css;.pages',
  1985. scrollD: 1500
  1986. },
  1987. function: {
  1988. bF: src_bF,
  1989. pF: [0, 'img[data-src]', 'data-src']
  1990. }
  1991. }, // 片库
  1992. cupfox: {
  1993. host: 'www.cupfox.com',
  1994. pager: {
  1995. type: 2,
  1996. nextL: 'css;.load-more',
  1997. nextText: '点击加载更多',
  1998. scrollD: 700
  1999. }
  2000. }, // 茶杯狐
  2001. novipnoad: {
  2002. host: 'www.novipnoad.com',
  2003. functionS: function() {if (location.pathname != '/' && !indexOF('.html')) {curSite = DBSite.novipnoad;}},
  2004. pager: {
  2005. type: 1,
  2006. nextL: 'css;a.nextpostslink',
  2007. pageE: 'css;.video-listing-content .row > div',
  2008. replaceE: 'css;.wp-pagenavi',
  2009. scrollD: 1500
  2010. },
  2011. function: {
  2012. bF: src_bF,
  2013. pF: [0, 'img[data-original]', 'data-original']
  2014. }
  2015. }, // NO视频
  2016. ddrk: {
  2017. host: ['ddrk.me', 'ddys.tv'],
  2018. functionS: function() {if (lp == '/' || indexOF(/\/(category|tag)\//)) {curSite = DBSite.ddrk;}},
  2019. pager: {
  2020. type: 1,
  2021. nextL: 'css;a.next',
  2022. pageE: 'css;.post-box-list > article',
  2023. replaceE: 'css;.pagination_wrap',
  2024. scrollD: 1500
  2025. }
  2026. }, // 低端影视
  2027. nfmovies: {
  2028. host: 'www.nfmovies.com',
  2029. functionS: function() {if (lp == '/search.php' || indexOF('/list/')) {curSite = DBSite.nfmovies;}},
  2030. pager: {
  2031. type: 1,
  2032. nextL: '//ul[contains(@class, "myui-page")]/li/a[text()="下一页"]',
  2033. pageE: 'css;ul.myui-vodlist > li',
  2034. replaceE: 'css;ul.myui-page',
  2035. scrollD: 1500
  2036. },
  2037. function: {
  2038. bF: src_bF,
  2039. pF: [1, 'a[data-original]', 'data-original']
  2040. }
  2041. }, // 奈菲影视
  2042. zxzj: {
  2043. host: ['www.zxzj.me', 'www.zxzj.fun'],
  2044. functionS: function() {if (location.pathname != '/' && !indexOF('/detail/') && !indexOF('/video/')) {curSite = DBSite.zxzj;}},
  2045. insStyle: 'div.stui-page__all {display: none !important;}',
  2046. pager: {
  2047. type: 1,
  2048. nextL: '//ul[contains(@class, "stui-page__item")]//a[text()="下一页"]',
  2049. pageE: 'css;ul.stui-vodlist > li',
  2050. replaceE: 'css;ul.stui-page__item',
  2051. scrollD: 1000
  2052. },
  2053. function: {
  2054. bF: src_bF,
  2055. pF: [1, 'a[data-original]', 'data-original']
  2056. }
  2057. }, // 在线之家
  2058. enlienli: {
  2059. host: 'enlienli.com',
  2060. functionS: function() {if (indexOF('/show/') || indexOF('/search')) {curSite = DBSite.enlienli;}},
  2061. pager: {
  2062. type: 1,
  2063. nextL: 'css;a.page-number.page-next',
  2064. pageE: 'css;.module-items > *',
  2065. replaceE: 'css;#page',
  2066. scrollD: 1000
  2067. },
  2068. function: {
  2069. bF: src_bF,
  2070. pF: [0, 'img[data-src]', 'data-src']
  2071. }
  2072. }, // 嗯哩嗯哩
  2073. _91mjw: {
  2074. host: '91mjw.com',
  2075. functionS: function() {if (!indexOF('/video/') || !indexOF('/vplay/')) {curSite = DBSite._91mjw;}},
  2076. pager: {
  2077. type: 1,
  2078. nextL: 'css;.next-page > a',
  2079. pageE: 'css;.m-movies > article',
  2080. replaceE: 'css;.pagination',
  2081. scrollD: 1500
  2082. },
  2083. function: {
  2084. bF: src_bF,
  2085. pF: [0, 'img[data-original]', 'data-original']
  2086. }
  2087. }, // 91 美剧网
  2088. zhenbuka: {
  2089. host: ['www.zhenbuka3.com', 'www.zhenbuka5.com'],
  2090. functionS: function() {if (indexOF('/vodtype/')) {curSite = DBSite.zhenbuka;}},
  2091. pager: {
  2092. type: 1,
  2093. nextL: '//ul[contains(@class, "stui-page")]/li/a[text()="下一页"]',
  2094. pageE: 'css;ul.stui-vodlist > li',
  2095. replaceE: 'css;ul.stui-page',
  2096. scrollD: 1500
  2097. },
  2098. function: {
  2099. bF: src_bF,
  2100. pF: [1, 'a[data-original]', 'data-original']
  2101. }
  2102. }, // 真不卡影院
  2103. zzzfun: {
  2104. host: 'www.zzzfun.com',
  2105. functionS: function() {
  2106. if (indexOF('/vod_type') || indexOF('/vod_show')) {
  2107. curSite = DBSite.zzzfun;
  2108. } else if (indexOF('/vod_search')) {
  2109. curSite = DBSite.zzzfun_search;
  2110. }},
  2111. pager: {
  2112. type: 1,
  2113. nextL: 'css;#page a[title="下一页"]',
  2114. pageE: 'css;ul.search-result > a',
  2115. replaceE: 'css;#page',
  2116. scrollD: 1000
  2117. },
  2118. function: {
  2119. bF: src_bF,
  2120. pF: [0, 'img[data-original]', 'data-original']
  2121. }
  2122. }, // ZzzFun 动漫
  2123. zzzfun_search: {
  2124. pager: {
  2125. type: 1,
  2126. nextL: 'css;#page a[title="下一页"]',
  2127. pageE: 'css;ul.show-list > li',
  2128. replaceE: 'css;#page',
  2129. scrollD: 1000
  2130. },
  2131. function: {
  2132. bF: src_bF,
  2133. pF: [0, 'img[data-original]', 'data-original']
  2134. }
  2135. }, // ZzzFun 动漫 - 搜索页
  2136. tucao: {
  2137. host: 'www.tucao.one',
  2138. functionS: function() {if (indexOF('/list/')) {
  2139. curSite = DBSite.tucao;
  2140. } else if (indexOF('search', 's')) {
  2141. curSite = DBSite.tucao_search;
  2142. }},
  2143. pager: {
  2144. type: 1,
  2145. nextL: 'css;.pagego a',
  2146. pageE: 'css;.list > ul > li',
  2147. replaceE: 'css;.newpages, .pagego, #float_show',
  2148. scrollD: 1000
  2149. }
  2150. }, // 吐槽弹幕网
  2151. tucao_search: {
  2152. pager: {
  2153. type: 1,
  2154. nextL: '//a[@class="a1"][contains(text(), "下一页")]',
  2155. pageE: 'css;.search_list > *',
  2156. replaceE: 'css;.pages',
  2157. scrollD: 1000
  2158. }
  2159. }, // 吐槽弹幕网 - 搜索页
  2160. mandao: {
  2161. host: 'www.mandao.tv',
  2162. functionS: function() {if (location.pathname != '/' && !indexOF('/man')) {
  2163. curSite = DBSite.mandao;
  2164. }},
  2165. pager: {
  2166. type: 1,
  2167. nextL: '//div[contains(@class, "page")]/a[text()=">"]',
  2168. pageE: 'css;.index-tj > ul > li',
  2169. replaceE: 'css;.page',
  2170. scrollD: 1000
  2171. },
  2172. function: {
  2173. bF: src_bF,
  2174. pF: [0, 'img[data-original]', 'data-original']
  2175. }
  2176. }, // 漫岛动漫
  2177. yxdm: {
  2178. host: 'www.yxdm.li',
  2179. functionS: function() {if (indexOF('/search') || indexOF('/category') || indexOF('/resource')) {curSite = DBSite.yxdm;}},
  2180. pager: {
  2181. type: 1,
  2182. nextL: '//a[@class="nextPage" or text()="下一页"]',
  2183. pageE: 'css;.dhnew > ul > li',
  2184. replaceE: 'css;.pagelist',
  2185. scrollD: 2000
  2186. }
  2187. }, // 怡萱动漫
  2188. nicotv: {
  2189. host: 'www.nicotv.me',
  2190. functionS: function() {if (indexOF('/search') || indexOF('/type')) {curSite = DBSite.nicotv;}},
  2191. pager: {
  2192. type: 1,
  2193. nextL: '//ul[contains(@class, "pagination ")]//a[text()="»"]',
  2194. pageE: 'css;ul.list-unstyled > li',
  2195. replaceE: 'css;ul.pagination ',
  2196. scrollD: 1000
  2197. },
  2198. function: {
  2199. bF: src_bF,
  2200. pF: [0, 'img[data-original]', 'data-original']
  2201. }
  2202. }, // 妮可动漫
  2203. yhdm: {
  2204. host: ['www.imomoe.la', 'www.imomoe.live'],
  2205. functionS: function() {if (indexOF('/list/')) {
  2206. curSite = DBSite.yhdm;
  2207. } else if (lp == '/so.asp' || lp == '/search.asp') {
  2208. curSite = DBSite.yhdm_;
  2209. }},
  2210. pager: {
  2211. type: 1,
  2212. nextL: '//div[@class="pages"]/a[text()="下一页"]',
  2213. pageE: 'css;#contrainer > .img> ul > li',
  2214. replaceE: 'css;.pages',
  2215. scrollD: 1000
  2216. }
  2217. }, // 樱花动漫
  2218. yhdm_: {
  2219. pager: {
  2220. type: 1,
  2221. nextL: '//div[@class="pages"]/a[text()="下一页"]',
  2222. pageE: 'css;#contrainer .fire .pics > ul > li',
  2223. replaceE: 'css;.pages',
  2224. scrollD: 1000
  2225. }
  2226. }, // 樱花动漫 - 搜索页等
  2227. agefans: {
  2228. host: 'www.agefans.cc',
  2229. functionS: function() {if (indexOF('/catalog/') || lp == '/search') {
  2230. curSite = DBSite.agefans;
  2231. } else if (lp == '/recommend' || lp == '/update') {
  2232. curSite = DBSite.agefans_;
  2233. } else if (lp == '/rank') {
  2234. curSite = DBSite.agefans_rank;
  2235. }},
  2236. pager: {
  2237. type: 1,
  2238. nextL: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[contains(text(), "下一页")]',
  2239. pageE: 'css;#container .blockcontent1 > div',
  2240. replaceE: 'css;#container .blockcontent > div[style]:not([class])',
  2241. scrollD: 1000
  2242. }
  2243. }, // AGE 动漫 - 全部/搜索
  2244. agefans_: {
  2245. pager: {
  2246. type: 1,
  2247. nextL: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[contains(text(), "下一页")]',
  2248. pageE: 'css;#container .blockcontent > ul > li',
  2249. replaceE: 'css;#container .blockcontent > div[style]:not([class])',
  2250. scrollD: 1000
  2251. }
  2252. }, // AGE 动漫 - 其他页
  2253. agefans_rank: {
  2254. pager: {
  2255. type: 1,
  2256. nextL: 'id("container")/ul[@style][not(@class)]/li/a[contains(text(), "下一页")]',
  2257. pageE: 'css;#container > .div_right .blockcontent.div_right_r_3 > ul',
  2258. replaceE: 'css;#container > ul[style]:not([class])',
  2259. scrollD: 1000
  2260. }
  2261. }, // AGE 动漫 - 排行榜
  2262. dm233: {
  2263. host: 'www.dm233.cc',
  2264. functionS: function() {if (indexOF('/catalog/') || lp == '/recommend/' || lp == '/search') {
  2265. curSite = DBSite.dm233;
  2266. } else if (lp == '/article/') {
  2267. curSite = DBSite.dm233_article;
  2268. } else if (lp == '/rank/') {
  2269. curSite = DBSite.dm233_rank;
  2270. }},
  2271. pager: {
  2272. type: 1,
  2273. nextL: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
  2274. pageE: 'css;.dhnew ul > li',
  2275. replaceE: 'css;.pagelist',
  2276. scrollD: 1000
  2277. }
  2278. }, // 233 动漫
  2279. dm233_article: {
  2280. pager: {
  2281. type: 1,
  2282. nextL: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
  2283. pageE: 'css;.xgyd ul > li',
  2284. replaceE: 'css;.pagelist',
  2285. scrollD: 1000
  2286. }
  2287. }, // 233 动漫 - 动漫情报/资讯
  2288. dm233_rank: {
  2289. pager: {
  2290. type: 1,
  2291. nextL: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
  2292. pageE: 'css;.side-update.normal-wai > .normal-nei',
  2293. replaceE: 'css;.pagelist',
  2294. scrollD: 1000
  2295. }
  2296. }, // 233 动漫 - 排行榜
  2297. anime1: {
  2298. host: 'anime1.me',
  2299. functionS: function() {if (indexOF('s=', 's')) {
  2300. curSite = DBSite.anime1_search;
  2301. } else if (lp == '/') {
  2302. curSite = DBSite.anime1;
  2303. }},
  2304. pager: {
  2305. type: 4,
  2306. nextL: anime1_nextL,
  2307. interval: 500,
  2308. scrollD: 800
  2309. }
  2310. }, // Anime1
  2311. anime1_search: {
  2312. pager: {
  2313. type: 1,
  2314. nextL: 'css;.nav-previous > a',
  2315. pageE: 'css;#main > article',
  2316. replaceE: 'css;nav.navigation',
  2317. scrollD: 1200
  2318. }
  2319. }, // Anime1 - 搜索页
  2320. yinfans: {
  2321. host: 'www.yinfans.net',
  2322. insStyle: '#post_container {height: auto !important;} #post_container > li {position: static !important; float: left !important; height: 620px !important;}',
  2323. pager: {
  2324. type: 1,
  2325. nextL: 'css;a.next',
  2326. pageE: 'css;#post_container > li',
  2327. replaceE: 'css;.pagination',
  2328. scrollD: 1500
  2329. }
  2330. }, // 音范丝
  2331. btbtt: {
  2332. host: /btbtt/,
  2333. pager: {
  2334. type: 1,
  2335. nextL: '//div[@class="page"]/a[contains(text(), "▶") or contains(text(), "下一页")]',
  2336. pageE: 'css;#threadlist > *',
  2337. replaceE: 'css;.page',
  2338. scrollD: 2000
  2339. }
  2340. }, // BT 之家
  2341. bdys: {
  2342. host: 'www.bd2020.com',
  2343. functionS: function() {if (location.pathname != '/' && !indexOF(/\/\d+\.htm/)) {curSite = DBSite.bdys;}},
  2344. pager: {
  2345. type: 2,
  2346. nextL: 'css;div.layui-flow-more > a',
  2347. nextText: '加载更多',
  2348. scrollD: 1000
  2349. }
  2350. }, // BD 影视
  2351. gaoqing_fm: {
  2352. host: 'gaoqing.fm',
  2353. pager: {
  2354. type: 2,
  2355. nextL: 'css;.col-md-12 > a, #loadmore > a',
  2356. interval: 1500,
  2357. scrollD: 1000
  2358. }
  2359. }, // 高清电台
  2360. yyds: {
  2361. host: 'yyds.fans',
  2362. functionS: function() {if (location.search != '' && !indexOF('p=', 's')) {curSite = DBSite.yyds;}},
  2363. pager: {
  2364. type: 1,
  2365. nextL: 'css;a.next.page-numbers',
  2366. pageE: 'css;.list-grouped > div',
  2367. replaceE: 'css;nav.pagination',
  2368. scrollD: 1100
  2369. }
  2370. }, // YYDS 电影
  2371. kisssub: {
  2372. host: ['www.kisssub.org','www.comicat.org'],
  2373. pager: {
  2374. type: 1,
  2375. nextL: 'css;a.nextprev',
  2376. pageE: 'css;#data_list > tr',
  2377. replaceE: 'css;.pages',
  2378. scrollD: 2500
  2379. }
  2380. }, // 爱恋动漫
  2381. dmhy: {
  2382. host: ['share.dmhy.org', 'dmhy.anoneko.com'],
  2383. pager: {
  2384. type: 1,
  2385. nextL: '//div[@class="nav_title"]/a[contains(text(), "下一")]',
  2386. pageE: 'css;#topic_list > tbody > tr',
  2387. replaceE: 'css;.nav_title',
  2388. scrollD: 1500
  2389. },
  2390. function: {
  2391. 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');`;}
  2392. }
  2393. }, // 动漫花园
  2394. hacg: {
  2395. host: 'www.hacg.cat',
  2396. functionS: function() {if (indexOF('/wp/') && !indexOF(/\d+\.html/)) curSite = DBSite.hacg},
  2397. pager: {
  2398. type: 1,
  2399. nextL: 'css;a.nextpostslink',
  2400. pageE: 'css;article[id^="post-"]',
  2401. replaceE: 'css;.wp-pagenavi',
  2402. scrollD: 1500
  2403. }
  2404. }, // 琉璃神社
  2405. futaacg: {
  2406. host: 'futaacg.com',
  2407. pager: {
  2408. type: 1,
  2409. nextL: 'css;ul.pagination a[rel="next"]',
  2410. pageE: 'css;.topic-list > div',
  2411. replaceE: 'css;ul.pagination',
  2412. scrollD: 1500
  2413. }
  2414. }, // 扶她动漫
  2415. bangumi: {
  2416. host: 'bangumi.moe',
  2417. pager: {
  2418. type: 2,
  2419. nextL: 'css;[torrent-list="lattorrents"] button[ng-click="loadMore()"] ,[torrent-list="torrents"] button[ng-click="loadMore()"]',
  2420. interval: 1000,
  2421. scrollD: 1500
  2422. }
  2423. }, // 萌番组
  2424. miobt: {
  2425. host: ['miobt.com', 'www.36dm.club'],
  2426. functionS: function() {curSite = DBSite.miobt; if (location.hostname === 'www.36dm.club') {curSite.pager.scrollD = 1000;}},
  2427. pager: {
  2428. type: 1,
  2429. nextL: '//a[@class="nextprev"][contains(text(), "〉") or contains(text(), "下一页") or contains(text(), "»")]',
  2430. pageE: 'css;#data_list > tr',
  2431. replaceE: 'css;.pages',
  2432. scrollD: 2000
  2433. }
  2434. }, // MioBT + 简单动漫
  2435. nyaa: {
  2436. host: /nyaa\.si/,
  2437. pager: {
  2438. type: 1,
  2439. nextL: 'css;a[rel="next"], li.next > a',
  2440. pageE: 'css;table.torrent-list > tbody > tr',
  2441. replaceE: 'css;ul.pagination',
  2442. scrollD: 2000
  2443. }
  2444. }, // Nyaa
  2445. skrbt: {
  2446. host: /skrbt/,
  2447. functionS: function() {if (lp == '/search') curSite = DBSite.skrbt;},
  2448. pager: {
  2449. type: 1,
  2450. nextL: skrbt_nextL,
  2451. pageE: 'css;div[class="row"] > .col-md-6 > ul',
  2452. insertP: ['css;nav[aria-label*="Page"]', 1],
  2453. replaceE: 'css;ul.pagination',
  2454. scrollD: 900
  2455. }
  2456. }, // SkrBT
  2457. rarbg: {
  2458. host: /rarbg/,
  2459. functionS: function() {if (lp == '/torrents.php') {curSite = DBSite.rarbg; rarbg_bF(getAllCSS('table.lista2t tr.lista2'));}},
  2460. insStyle: 'html::-webkit-scrollbar {height: 0 !important;}',
  2461. pager: {
  2462. type: 1,
  2463. nextL: 'css;#pager_links > a[title="next page"]',
  2464. pageE: 'css;table.lista2t tr.lista2',
  2465. replaceE: 'css;#pager_links',
  2466. scrollD: 1000
  2467. },
  2468. function: {
  2469. bF: rarbg_bF
  2470. }
  2471. }, // RARBG
  2472. subdh: {
  2473. host: 'subdh.com',
  2474. functionS: function() {if (lp == '/' || indexOF('/list/new')) {curSite = DBSite.subdh;} else if (indexOF('/search')) {curSite = DBSite.subdh_search;}},
  2475. pager: {
  2476. type: 1,
  2477. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  2478. pageE: 'css;.col-lg-9 .bg-white.shadow-sm.rounded-3 > .row.gx-0',
  2479. replaceE: 'css;ul.pagination',
  2480. scrollD: 1000
  2481. }
  2482. }, // SubDH
  2483. subdh_search: {
  2484. pager: {
  2485. type: 1,
  2486. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  2487. pageE: 'css;.col-lg-9 .bg-white.shadow-sm.rounded-3',
  2488. insertP: ['css;nav[aria-label="pagination"]', 1],
  2489. replaceE: 'css;ul.pagination',
  2490. scrollD: 1000
  2491. }
  2492. }, // SubDH - 搜索页
  2493. mini4k: {
  2494. host: 'www.mini4k.com',
  2495. functionS: function() {if (location.pathname != '/' && !indexOF(/\/\d{3,}/)) {curSite = DBSite.mini4k;};},
  2496. pager: {
  2497. type: 1,
  2498. nextL: 'css;a.pager__item--next',
  2499. pageE: 'css;div[class*="-item-list"] > ul > li',
  2500. replaceE: 'css;.pagination',
  2501. scrollD: 2000
  2502. }
  2503. }, // MINI4K
  2504. bthaha: {
  2505. host: /bthaha/,
  2506. functionS: function() {if (indexOF('/search/')) {
  2507. curSite = DBSite.bthaha;
  2508. getAllCSS('[id^="list_top"], [id^="list_bottom"]').forEach(function (one) {one.parentElement.parentElement.hidden = true;});
  2509. }},
  2510. insStyle: '[id^="list_top"], [id^="list_bottom"] {display: none !important;}',
  2511. pager: {
  2512. type: 1,
  2513. nextL: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]',
  2514. pageE: 'css;table.table > tbody > tr',
  2515. replaceE: 'css;ul.pagination',
  2516. scrollD: 1000
  2517. },
  2518. function: {
  2519. bF: bthaha_bF
  2520. }
  2521. }, // BTHaha
  2522. a4k: {
  2523. host: 'www.a4k.net',
  2524. functionS: function() {if (!indexOF('/subtitle/')) {curSite = DBSite.a4k;};},
  2525. pager: {
  2526. type: 1,
  2527. nextL: 'css;a.pager__item--next',
  2528. pageE: 'css;ul.list > li',
  2529. replaceE: 'css;.pagination',
  2530. scrollD: 1000
  2531. }
  2532. }, // A4k 字幕网(字幕)
  2533. assrt: {
  2534. host: 'assrt.net',
  2535. functionS: function() {if (location.pathname != '/') {curSite = DBSite.assrt;};},
  2536. history: true,
  2537. pager: {
  2538. type: 1,
  2539. nextL: () => getNextP('css;#pl-current+a', 'page=', /page=\d+/),
  2540. pageE: 'css;.resultcard > div:not(#top-banner):not(#bottom-banner):not(.pagelinkcard)',
  2541. insertP: ['css;.pagelinkcard', 1],
  2542. replaceE: 'css;.pagelinkcard',
  2543. scrollD: 1000
  2544. }
  2545. }, // 射手网(字幕)
  2546. subhd: {
  2547. host: 'subhd.tv',
  2548. functionS: function() {if (lp == '/forum/forum') {
  2549. curSite = DBSite.subhd_forum;
  2550. } else if (location.pathname != '/' && location.pathname != '/zu' && !indexOF('/a/') && !indexOF('/d/') && !indexOF('/forum/')) {
  2551. curSite = DBSite.subhd;
  2552. }},
  2553. pager: {
  2554. type: 1,
  2555. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  2556. pageE: 'css;.bg-white.shadow-sm.rounded-3',
  2557. insertP: ['css;nav.clearfix', 1],
  2558. replaceE: 'css;nav.clearfix',
  2559. scrollD: 1000
  2560. }
  2561. }, // SubHD(字幕)
  2562. subhd_forum: {
  2563. pager: {
  2564. type: 1,
  2565. nextL: '//a[@class="page-link"][contains(text(), "下一页")]',
  2566. pageE: 'css;.bg-white.shadow-sm.rounded-3 > div',
  2567. replaceE: 'css;nav.clearfix',
  2568. scrollD: 800
  2569. }
  2570. }, // SubHD - forum(字幕)
  2571. manben: {
  2572. host: 'www.manben.com',
  2573. functionS: function() {if (indexOF(/\/m\d+/)) {
  2574. if (getCookie('showtype') != '2') {
  2575. document.cookie='showtype=2; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 开启 [垂直阅读] 模式
  2576. location.reload(); // 刷新网页
  2577. }
  2578. curSite = DBSite.mhxqiu;
  2579. }}
  2580. }, // 漫本
  2581. haoman: {
  2582. host: 'www.haoman6.com',
  2583. functionS: function() {
  2584. if (indexOF('/chapter/')) {
  2585. curSite = DBSite.haoman;
  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: 'gf.qytechs.cn',
  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. ruyile_xuexiao: {
  4685. host: 'www.ruyile.com',
  4686. functionS: function() {
  4687. if (lp == '/xuexiao/') {
  4688. curSite = DBSite.ruyile_xuexiao;
  4689. } else if (lp == '/data/') {
  4690. curSite = DBSite.ruyile_data;
  4691. } else if (lp == '/shijuan/') {
  4692. curSite = DBSite.ruyile_shijuan;
  4693. }},
  4694. pager: {
  4695. type: 1,
  4696. nextL: '//div[@class="fy"]/a[contains(text(), "下一页")]',
  4697. pageE: 'css;.xxlb > .sk',
  4698. insertP: ['css;.xxlb', 3],
  4699. replaceE: 'css;.fy',
  4700. scrollD: 1000
  4701. }
  4702. }, // 如意了教育 - 学校
  4703. ruyile_data: {
  4704. pager: {
  4705. type: 1,
  4706. nextL: '//div[@class="fy"]/a[contains(text(), "下一页")]',
  4707. pageE: 'css;.m1_z > .lbk',
  4708. insertP: ['css;.page', 1],
  4709. replaceE: 'css;.fy',
  4710. scrollD: 1000
  4711. }
  4712. }, // 如意了教育 - 数据
  4713. ruyile_shijuan: {
  4714. pager: {
  4715. type: 1,
  4716. nextL: '//div[@class="fy"]/a[contains(text(), "下一页")]',
  4717. pageE: 'css;.m1_z > .m2_lb',
  4718. insertP: ['css;.page', 1],
  4719. replaceE: 'css;.fy',
  4720. scrollD: 1000
  4721. }
  4722. }, // 如意了教育 - 试卷
  4723. che168: {
  4724. host: 'www.che168.com',
  4725. functionS: function() {
  4726. if (location.pathname != '/' && !indexOF('/dealer/')) {
  4727. curSite = DBSite.che168;
  4728. }},
  4729. pager: {
  4730. type: 1,
  4731. nextL: 'css;a.page-item-next',
  4732. pageE: 'css;ul.viewlist_ul > li',
  4733. replaceE: 'css;.page',
  4734. scrollD: 2000
  4735. }
  4736. }, // 二手车之家
  4737. jiligamefun: {
  4738. host: 'www.jiligamefun.com',
  4739. functionS: function() {if (indexOF('/category/')) {curSite = DBSite.jiligamefun;}},
  4740. pager: {
  4741. type: 1,
  4742. nextL: 'css;a.poi-pager__item.poi-pager__item_next',
  4743. pageE: 'css;.inn-archive__container > article',
  4744. replaceE: 'css;.poi-pager',
  4745. scrollD: 1800
  4746. }
  4747. }, // 叽哩叽哩日报
  4748. wendangku: {
  4749. host: 'www.wendangku.net',
  4750. functionS: function() {if (indexOF('/doc/')) {curSite = DBSite.wendangku;}},
  4751. pager: {
  4752. type: 1,
  4753. nextL: 'css;a.next',
  4754. pageE: 'css;#contents > *:not(.pages)',
  4755. replaceE: 'css;.pages',
  4756. scrollD: 1800
  4757. }
  4758. }, // 文档库
  4759. getquicker: {
  4760. host: 'getquicker.net',
  4761. functionS: function() {if (indexOF('/Share/')) {curSite = DBSite.getquicker;}},
  4762. pager: {
  4763. type: 1,
  4764. nextL: '//a[@class="page-link" and text()="下一页"]',
  4765. pageE: 'css;table.table > tbody > tr:not(:first-child), script[src^="/js/site.js"]',
  4766. insertP: ['css;table.table > tbody', 3],
  4767. replaceE: 'css;ul.pagination',
  4768. scriptT: 2,
  4769. scrollD: 1000
  4770. }
  4771. }, // Quicker
  4772. netbian: {
  4773. host: 'pic.netbian.com',
  4774. insStyle: 'li.nextpage {display: none !important;}',
  4775. pager: {
  4776. type: 1,
  4777. nextL: '//div[@class="page"]/a[contains(text(),"下一页")]',
  4778. pageE: 'css;.slist ul > li:not(.nextpage)',
  4779. replaceE: 'css;.page',
  4780. scrollD: 1000
  4781. }
  4782. }, // 彼岸图网
  4783. ioliu: {
  4784. host: 'bing.ioliu.cn',
  4785. functionS: function() {if (!indexOF('/photo/') && !indexOF('.html')) {curSite = DBSite.ioliu; document.head.appendChild(document.createElement('base')).target = '_blank';}},
  4786. insStyle: '.progressive--not-loaded {filter: none !important;}',
  4787. pager: {
  4788. type: 1,
  4789. nextL: '//div[@class="page"]/a[contains(text(), "下一页")]',
  4790. pageE: 'css;body > .container > div.item',
  4791. replaceE: 'css;.page',
  4792. scrollD: 1000
  4793. }
  4794. }, // 必应壁纸
  4795. konachan: {
  4796. host: 'konachan.net',
  4797. functionS: function() {if (indexOF('/post')) {curSite = DBSite.konachan; document.head.appendChild(document.createElement('base')).target = '_blank';}},
  4798. 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;}',
  4799. history: true,
  4800. pager: {
  4801. type: 1,
  4802. nextL: 'css;a.next_page',
  4803. pageE: 'css;ul#post-list-posts > li',
  4804. replaceE: 'css;#paginator',
  4805. scrollD: 1000
  4806. }
  4807. }, // 动漫壁纸
  4808. nastol: {
  4809. host: 'www.nastol.com.ua',
  4810. pager: {
  4811. type: 1,
  4812. nextL: '//a[./span[@class="nav-next"]]',
  4813. pageE: 'css;#dle-content > div',
  4814. replaceE: 'css;.navigation',
  4815. scrollD: 1000
  4816. }
  4817. }, // 壁纸
  4818. hdqwalls: {
  4819. host: 'hdqwalls.com',
  4820. pager: {
  4821. type: 1,
  4822. nextL: 'css;a#next',
  4823. pageE: 'css;.wallpapers_container > div.wall-resp',
  4824. replaceE: 'css;ul.pagination',
  4825. scrollD: 1000
  4826. }
  4827. }, // 壁纸
  4828. xinpianchang: {
  4829. host: 'www.xinpianchang.com',
  4830. insStyle: '.lazy-img {opacity: 1 !important;}',
  4831. pager: {
  4832. type: 1,
  4833. nextL: 'css;.page > a[title="下一页"]',
  4834. pageE: 'css;div[class*="-container"] div[class*="-con"] > ul > li, div[class*="-container"] div[class*="-con"] > div[class*="-wrap"] > ul > li',
  4835. insertP: ['css;div[class*="-container"] div[class*="-con"] > ul, div[class*="-container"] div[class*="-con"] > div[class*="-wrap"] > ul', 3],
  4836. replaceE: 'css;.page',
  4837. scrollD: 2000
  4838. },
  4839. function: {
  4840. bF: src_bF,
  4841. pF: [0, 'img[_src]', '_src']
  4842. }
  4843. }, // 新片场
  4844. tujigu: {
  4845. host: 'www.tujigu.net',
  4846. functionS: function() {
  4847. if (indexOF('/a/')) {
  4848. curSite = DBSite.tujigu;
  4849. } else if (location.pathname != '/' && !indexOF('/search/')) {
  4850. curSite = DBSite.tujigu_list;
  4851. }},
  4852. insStyle: '.content img {display: block !important;}',
  4853. pager: {
  4854. type: 1,
  4855. nextL: 'id("pages")/a[contains(text(), "下一页")]',
  4856. pageE: 'css;.content > img',
  4857. replaceE: 'css;#pages',
  4858. scrollD: 2000
  4859. },
  4860. function: {
  4861. bF: src_bF,
  4862. pF: [0, 'img[original]', 'original']
  4863. }
  4864. }, // 图集谷 - 图片页
  4865. tujigu_list: {
  4866. pager: {
  4867. type: 1,
  4868. nextL: 'id("pages")/a[contains(text(), "下一页")]',
  4869. pageE: 'css;.hezi > ul > li',
  4870. insertP: ['//div[@class="hezi"][last()]/ul', 3],
  4871. replaceE: 'css;#pages',
  4872. scrollD: 1000
  4873. }
  4874. }, // 图集谷 - 分类页
  4875. mvtui: {
  4876. host: 'mvtui.com',
  4877. functionS: function() {if (indexOF('.html')) {curSite = DBSite.mvtui;} else {curSite = DBSite.mvtui_list;}},
  4878. pager: {
  4879. type: 1,
  4880. nextL: 'css;.article-paging span.current+a',
  4881. pageE: 'css;.article-content > p',
  4882. replaceE: 'css;.article-paging',
  4883. scrollD: 3000
  4884. }
  4885. }, // 美女推 - 图片页
  4886. mvtui_list: {
  4887. pager: {
  4888. type: 1,
  4889. nextL: 'css;li.next-page a',
  4890. pageE: 'css;#posts > div',
  4891. replaceE: 'css;.pagination',
  4892. scrollD: 1500
  4893. },
  4894. function: {
  4895. bF: src_bF,
  4896. pF: [0, 'img[data-src]', 'data-src']
  4897. }
  4898. }, // 美女推 - 分类页
  4899. mzitu: {
  4900. host: 'www.mzitu.com',
  4901. functionS: function() {if (indexOF(/\/\d+/)) {curSite = DBSite.mzitu;getCSS('.main-image a[href]').href = 'javascript:void(0);'} else {curSite = DBSite.mzitu_list;}},
  4902. pager: {
  4903. type: 1,
  4904. nextL: '//div[@class="pagenavi"]/a[contains(string(), "下一页")]',
  4905. pageE: 'css;.main-image img',
  4906. replaceE: 'css;.pagenavi',
  4907. scrollD: 1500
  4908. }
  4909. }, // 妹子图 - 图片页
  4910. mzitu_list: {
  4911. pager: {
  4912. type: 1,
  4913. nextL: 'css;.next.page-numbers',
  4914. pageE: 'css;.postlist > ul > li',
  4915. replaceE: 'css;.pagination',
  4916. scrollD: 1000
  4917. },
  4918. function: {
  4919. bF: src_bF,
  4920. pF: [0, 'img[data-original]', 'data-original']
  4921. }
  4922. }, // 妹子图 - 分类/搜索页
  4923. xiurenji: {
  4924. host: /\.xiurenji\./,
  4925. functionS: function() {insStyle('img[src$=".gif"]:not([src*="logo"]) {display: none !important;}');
  4926. if (indexOF('.html') && !indexOF('/index')) {
  4927. curSite = DBSite.xiurenji;
  4928. } else if (indexOF('search')) {
  4929. curSite = DBSite.xiurenji_search;
  4930. } else {
  4931. curSite = DBSite.xiurenji_list;
  4932. }},
  4933. pager: {
  4934. type: 1,
  4935. nextL: '//div[@class="page"]/a[contains(text(), "后")]',
  4936. pageE: 'css;div.img > p > *',
  4937. replaceE: 'css;.page',
  4938. scrollD: 2000
  4939. }
  4940. }, // 秀人集 - 图片页
  4941. xiurenji_list: {
  4942. pager: {
  4943. type: 1,
  4944. nextL: '//div[@class="page"]/a[contains(text(), "下页")]',
  4945. pageE: 'css;td >.tp2 > *',
  4946. replaceE: 'css;.page',
  4947. scrollD: 1000
  4948. }
  4949. }, // 秀人集 - 分类页
  4950. xiurenji_search: {
  4951. pager: {
  4952. type: 1,
  4953. nextL: 'css;.page > a.current+a',
  4954. pageE: 'css;.node > *',
  4955. replaceE: 'css;.page',
  4956. scrollD: 1000
  4957. }
  4958. }, // 秀人集 - 搜索页
  4959. mm131: {
  4960. host: ['www.mm131.net', 'www.mmm131.com'],
  4961. functionS: function() {if (indexOF('.html')) {curSite = DBSite.mm131;} else {curSite = DBSite.mm131_list;}},
  4962. history: true,
  4963. retry: 300,
  4964. pager: {
  4965. type: 1,
  4966. nextL: '//div[@class="content-page"]/a[contains(text(), "下一页")]',
  4967. pageE: 'css;.content-pic img',
  4968. replaceE: 'css;.content-page',
  4969. scrollD: 2000
  4970. }
  4971. }, // MM131 - 图片页
  4972. mm131_list: {
  4973. pager: {
  4974. type: 1,
  4975. nextL: '//dd[@class="page"]/a[contains(text(), "下一页")]',
  4976. pageE: 'css;dl.list-left > dd:not([class="page"])',
  4977. replaceE: 'css;.page',
  4978. scrollD: 1000
  4979. }
  4980. }, // MM131 - 分类页
  4981. mm131_m: {
  4982. host: 'm.mmm131.com',
  4983. 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;}},
  4984. history: true,
  4985. retry: true,
  4986. pager: {
  4987. type: 1,
  4988. nextL: '//div[@class="paging"]/a[text()="下一张" or text()="下一页"]',
  4989. pageE: 'css;.post-content img',
  4990. replaceE: 'css;.paging',
  4991. scrollD: 2000
  4992. }
  4993. }, // MM131 - 手机版 - 图片页
  4994. mm131_m_list: {
  4995. pager: {
  4996. type: 1,
  4997. nextL: 'css;#xbtn',
  4998. pageE: 'css;#content > article',
  4999. replaceE: 'css;#webpage',
  5000. scrollD: 2000
  5001. },
  5002. function: {
  5003. bF: src_bF,
  5004. pF: [0, 'img[data-img]', 'data-img']
  5005. }
  5006. }, // MM131 - 手机版 - 分类页
  5007. mm131_m_: {
  5008. pager: {
  5009. type: 2,
  5010. nextL: 'css;#webpage>span[onclick]',
  5011. isHidden: true,
  5012. interval: 500,
  5013. scrollD: 2000
  5014. }
  5015. }, // MM131 - 手机版 - 首页
  5016. mrcong: {
  5017. host: 'mrcong.com',
  5018. functionS: function() {if (lp == '/' || indexOF('/tag/')) {curSite = DBSite.mrcong_list;} else {curSite = DBSite.mrcong;}},
  5019. pager: {
  5020. type: 1,
  5021. nextL: 'css;.post-page-numbers.current+a.post-page-numbers',
  5022. pageE: 'css;#fukie2 > p > img',
  5023. replaceE: 'css;.page-link',
  5024. scrollD: 3000
  5025. }
  5026. }, // MrCong - 图片页
  5027. mrcong_list: {
  5028. pager: {
  5029. type: 3,
  5030. nextL: 'css;.current+a.page',
  5031. pageE: 'css;article.item-list',
  5032. scrollE: 'css;.pagination',
  5033. replaceE: 'css;.pagination',
  5034. scrollD: 2000
  5035. }
  5036. }, // MrCong - 分类页
  5037. buondua: {
  5038. host: 'buondua.com',
  5039. functionS: function() {if (indexOF(/-photos-\d+/)) {curSite = DBSite.buondua;} else {curSite = DBSite.buondua_list;}},
  5040. pager: {
  5041. type: 3,
  5042. nextL: '//nav[@class="pagination"]//span[./a[contains(@class, "is-current")]]/following-sibling::span[1]/a',
  5043. pageE: 'css;.article-fulltext > p',
  5044. scrollE: 'css;nav.pagination',
  5045. replaceE: 'css;nav.pagination',
  5046. scrollD: 1500
  5047. },
  5048. function: {
  5049. bF: src_bF,
  5050. pF: [0, 'img[data-src]', 'data-src']
  5051. }
  5052. }, // Buon Dua - 图片页
  5053. buondua_list: {
  5054. pager: {
  5055. type: 3,
  5056. nextL: 'css;.pagination-next',
  5057. pageE: 'css;.items-row.column, .collection-item.column',
  5058. scrollE: 'css;nav.pagination',
  5059. replaceE: 'css;nav.pagination',
  5060. scrollD: 1200
  5061. },
  5062. function: {
  5063. bF: src_bF,
  5064. pF: [0, 'img[data-src]', 'data-src']
  5065. }
  5066. }, // Buon Dua - 分类页
  5067. fnvshen: {
  5068. host: 'www.fnvshen.com',
  5069. functionS: function() {
  5070. if (indexOF('/gallery/') || indexOF('/tag/')) {
  5071. curSite = DBSite.fnvshen_list;
  5072. } else if (indexOF('/g/')) {
  5073. curSite = DBSite.fnvshen;
  5074. } else if (indexOF(/\/article\/\d+\//)) {
  5075. curSite = DBSite.fnvshen_article;
  5076. } else if (indexOF('/article/')) {
  5077. curSite = DBSite.fnvshen_article_list;
  5078. }},
  5079. pager: {
  5080. type: 1,
  5081. nextL: 'id("pages")/a[contains(text(), "下一页")]',
  5082. pageE: 'css;#hgallery > img',
  5083. replaceE: 'css;#pages',
  5084. scrollD: 1000
  5085. }
  5086. }, // 宅男女神 - 图片页
  5087. fnvshen_list: {
  5088. insStyle: '.yalayi_box {display: none !important; margin: -4px 0 !important;}',
  5089. pager: {
  5090. type: 1,
  5091. nextL: '//div[@class="pagesYY"]//a[contains(text(), "下一页")]',
  5092. pageE: 'css;#listdiv > ul > li',
  5093. replaceE: 'css;.pagesYY',
  5094. scrollD: 1000
  5095. },
  5096. function: {
  5097. bF: src_bF,
  5098. pF: [0, 'img[data-original]', 'data-original']
  5099. }
  5100. }, // 宅男女神 - 分类页
  5101. fnvshen_article_list: {
  5102. pager: {
  5103. type: 1,
  5104. nextL: '//div[@class="pagesYY"]//a[contains(text(), "下一页")]',
  5105. pageE: 'css;li.other_girlli',
  5106. replaceE: 'css;.pagesYY',
  5107. scrollD: 1000
  5108. }
  5109. }, //宅男女神 - 文章列表
  5110. fnvshen_article: {
  5111. pager: {
  5112. type: 1,
  5113. nextL: 'css;.pagesYY a.cur+a',
  5114. pageE: 'css;#articleDiv',
  5115. insertP: ['css;#articleDiv', 6],
  5116. replaceE: 'css;.pagesYY',
  5117. scrollD: 1000
  5118. }
  5119. }, // 宅男女神 - 文章内
  5120. xrmn5: {
  5121. host: 'www.xrmn5.cc',
  5122. functionS: function() {if (indexOF(/\d+\.html/)) {
  5123. curSite = DBSite.xrmn5;
  5124. } else if (indexOF('/search')) {
  5125. curSite = DBSite.xrmn5_search;
  5126. } else {
  5127. curSite = DBSite.xrmn5_list;
  5128. }},
  5129. pager: {
  5130. type: 1,
  5131. nextL: '//div[contains(@class, "page")]//a[contains(text(), "下页")]',
  5132. pageE: 'css;.content_left > p > img',
  5133. replaceE: 'css;.page',
  5134. scrollD: 3000
  5135. }
  5136. }, // 秀人美女 - 图片页
  5137. xrmn5_list: {
  5138. pager: {
  5139. type: 1,
  5140. nextL: '//div[contains(@class, "page")]//a[contains(text(), "下页")]',
  5141. pageE: 'css;ul.update_area_lists > li',
  5142. replaceE: 'css;.page',
  5143. scrollD: 2000
  5144. }
  5145. }, // 秀人美女 - 分类页
  5146. xrmn5_search: {
  5147. pager: {
  5148. type: 1,
  5149. nextL: 'css;.page a.current+a',
  5150. pageE: 'css;div.sousuo',
  5151. replaceE: 'css;.page',
  5152. scrollD: 2000
  5153. }
  5154. }, // 秀人美女 - 搜索页
  5155. jpmn8: {
  5156. host: 'www.jpmn8.com',
  5157. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.jpmn8;} else if (location.pathname != '/') {curSite = DBSite.jpmn8_list;}},
  5158. insStyle: 'img[onload] {min-height: 500px;}',
  5159. pager: {
  5160. type: 1,
  5161. nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
  5162. pageE: 'css;img[onload]',
  5163. replaceE: 'css;.pagination1',
  5164. scrollD: 3000
  5165. }
  5166. }, // 精品美女 - 图片页
  5167. jpmn8_list: {
  5168. pager: {
  5169. type: 1,
  5170. nextL: '//div[@class="pagination1"]//a[text()="下一页"]',
  5171. pageE: 'css;article.excerpt',
  5172. replaceE: 'css;.pagination1',
  5173. scrollD: 1500
  5174. }
  5175. }, // 精品美女 - 分类页
  5176. ku137: {
  5177. host: 'www.ku137.net',
  5178. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.ku137;} else if (location.pathname != '/') {curSite = DBSite.ku137_list;}},
  5179. insStyle: '.Title9, .dibu1, .dibu2 {display: none !important;} .content img {min-height: 500px;}',
  5180. pager: {
  5181. type: 1,
  5182. nextL: '//div[@class="page"]/a[text()="下一页"]',
  5183. pageE: 'css;.content > img',
  5184. replaceE: 'css;.page',
  5185. scrollD: 3000
  5186. }
  5187. }, // 美女写真 - 图片页
  5188. ku137_list: {
  5189. pager: {
  5190. type: 1,
  5191. nextL: '//div[@class="page"]/a[text()="下一页"]',
  5192. pageE: 'css;.m-list > ul > li',
  5193. replaceE: 'css;.page',
  5194. scrollD: 1500
  5195. }
  5196. }, // 美女写真 - 分类页
  5197. ku137_m: {
  5198. host: 'm.ku137.net',
  5199. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.ku137_m;} else if (location.pathname != '/') {curSite = DBSite.ku137_m_list;}},
  5200. insStyle: '.ArticleImageBox img {min-height: 300px;}',
  5201. pager: {
  5202. type: 1,
  5203. nextL: '//div[@class="article_page"]//a[text()="下一页"]',
  5204. pageE: 'css;.ArticleImageBox > *',
  5205. replaceE: 'css;.article_page',
  5206. scrollD: 3000
  5207. }
  5208. }, // 美女写真 - 手机版 - 图片页
  5209. ku137_m_list: {
  5210. pager: {
  5211. type: 1,
  5212. nextL: '//div[@class="article_page"]//a[text()="下一页"]',
  5213. pageE: 'css;.PictureList > ul > li',
  5214. replaceE: 'css;.article_page',
  5215. scrollD: 1500
  5216. }
  5217. }, // 美女写真 - 手机版 - 分类页
  5218. mnttz: {
  5219. host: 'www.mnttz.com',
  5220. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.mnttz;} else {curSite = DBSite.mnttz_list;}},
  5221. insStyle: 'img.content_img {min-height: 500px;}',
  5222. pager: {
  5223. type: 1,
  5224. nextL: 'css;.article-paging > span+a',
  5225. pageE: 'css;img.content_img',
  5226. replaceE: 'css;.article-paging',
  5227. scrollD: 3000
  5228. }
  5229. }, // 美女套图 - 图片页
  5230. mnttz_list: {
  5231. pager: {
  5232. type: 1,
  5233. nextL: 'css;li.next-page > a',
  5234. pageE: 'css;article.excerpt',
  5235. replaceE: 'css;.pagination',
  5236. scrollD: 1500
  5237. },
  5238. function: {
  5239. bF: src_bF,
  5240. pF: [0, 'img[data-src]', 'data-src']
  5241. }
  5242. }, // 美女套图 - 分类页
  5243. kingdom: {
  5244. host: ['kingdom-en.com', 'www.kingdom-en.com', 'm.kingdom-en.com'],
  5245. functionS: function() {if (indexOF(/\/\d+\.html/)) {curSite = DBSite.kingdom;} else {curSite = DBSite.kingdom_list;}},
  5246. insStyle: '.pic_center img {min-height: 300px;} .arcmain > .title, .footer, .index-list-title, .listmain_st {display: none !important;}',
  5247. pager: {
  5248. type: 1,
  5249. nextL: '//a[@class="page_next"] | //div[@class="article_page"]//a[text()="下一页"]',
  5250. pageE: 'css;.pic_center img',
  5251. replaceE: '//div[@class="pages2" or @class="article_page"]',
  5252. scrollD: 4000
  5253. }
  5254. }, // King爱模 - 图片页
  5255. kingdom_list: {
  5256. pager: {
  5257. type: 1,
  5258. nextL: () => getCSS('a.page_next').href.replace(/(www.)?ermo.net/, location.hostname).replace(/http(s)?:/, location.protocol),
  5259. pageE: 'css;.channel_list3 > ul > li, ul#container > li',
  5260. replaceE: 'css;.pages, .list_page',
  5261. scrollD: 1000
  5262. }
  5263. }, // King爱模 - 分类页
  5264. cadtutor: {
  5265. host: 'www.cadtutor.net',
  5266. functionS: function() {
  5267. if (indexOF('/forum/forum/')) {
  5268. curSite = DBSite.cadtutor;
  5269. } else if (indexOF('/forum/topic/') && GM_getValue('menu_discuz_thread_page')) {
  5270. curSite = DBSite.cadtutor_post;
  5271. } else if (indexOF('/forum/search/')) {
  5272. curSite = DBSite.cadtutor_search;
  5273. }},
  5274. pager: {
  5275. type: 1,
  5276. nextL: 'css;a[rel="next"]',
  5277. pageE: 'css;ol.ipsDataList > li:not([data-rowid])~li',
  5278. replaceE: 'css;ul.ipsPagination',
  5279. scrollD: 2000
  5280. }
  5281. }, // CADTutor - 列表页
  5282. cadtutor_post: {
  5283. pager: {
  5284. type: 1,
  5285. nextL: 'css;a[rel="next"]',
  5286. pageE: 'css;#elPostFeed > form > *:not(input):not(.after-first-post)',
  5287. replaceE: 'css;ul.ipsPagination',
  5288. scrollD: 2000
  5289. }
  5290. }, // CADTutor - 帖子内
  5291. cadtutor_search: {
  5292. pager: {
  5293. type: 1,
  5294. nextL: 'css;a[rel="next"]',
  5295. pageE: 'css;ol.ipsStream > li',
  5296. replaceE: 'css;ul.ipsPagination',
  5297. scrollD: 2000
  5298. }
  5299. }, // CADTutor - 搜索页
  5300. theswamp: {
  5301. host: 'www.theswamp.org',
  5302. functionS: function() {
  5303. if (!location.search) return
  5304. if (indexOF('board=', 's')) {
  5305. curSite = DBSite.theswamp;
  5306. } else if (indexOF('topic=', 's') && GM_getValue('menu_discuz_thread_page')) {
  5307. curSite = DBSite.theswamp_post;
  5308. }},
  5309. pager: {
  5310. type: 1,
  5311. nextL: 'css;.pagelinks > strong+a',
  5312. pageE: 'css;#messageindex tbody > tr:not([class])',
  5313. replaceE: 'css;.pagelinks',
  5314. scrollD: 2000
  5315. }
  5316. }, // TheSwamp - 列表页
  5317. theswamp_post: {
  5318. pager: {
  5319. type: 1,
  5320. nextL: 'css;.pagelinks > strong+a',
  5321. pageE: 'css;#forumposts form > *',
  5322. replaceE: 'css;.pagelinks',
  5323. scrollD: 2000
  5324. }
  5325. } // TheSwamp - 帖子内
  5326. };
  5327. // 生成 SiteTypeID
  5328. setSiteTypeID();
  5329. // 用于脚本判断(针对部分特殊的网站)
  5330. SiteType = {
  5331. BAIDU_TIEBA: DBSite.baidu_tieba.SiteTypeID
  5332. };
  5333. }
  5334.  
  5335.  
  5336. if (webType != 1) {
  5337. switch (webType) {
  5338. case 2: // < 所有 Discuz!论坛 >
  5339. discuz_(); break;
  5340. case 3: // < 所有 Flarum 论坛 >
  5341. DBSite.flarum.functionS(); break;
  5342. case 4: // < 所有 phpBB 论坛 >
  5343. DBSite.phpbb.functionS(); break;
  5344. case 5: // < 所有 Xiuno 论坛 >
  5345. DBSite.xiuno.functionS(); break;
  5346. case 6: // < 所有 XenForo 论坛 >
  5347. DBSite.xenforo.functionS(); break;
  5348. case 100: // < 所有使用 WordPress DUX 主题的网站 >
  5349. DBSite.dux.functionS(); if (location.hostname === 'apphot.cc') {curSite.pager.scrollD = 2500;}; break;
  5350. case 101: // < 所有使用 WordPress XIU 主题的网站 >
  5351. DBSite.dux.functionS(); curSite.function = {bF: src_bF, pF: [0, 'img.thumb[data-original]', 'data-original']}; break;
  5352. case 102: // < 所有使用 WordPress D8 主题的网站 >
  5353. DBSite.dux.functionS(); delete curSite.function; break;
  5354. case 103: // < 所有使用 WordPress Begin 主题的网站 >
  5355. DBSite.begin.functionS(); break;
  5356. case 200: // < 所有使用 笔趣阁 模板的小说网站 >
  5357. DBSite.biquge.functionS(); break;
  5358. case 201: // < 所有使用 笔趣阁 - 手机版 模板的小说网站 >
  5359. DBSite.biquge_m.functionS(); break;
  5360. }
  5361. }
  5362.  
  5363. // 显示页码
  5364. if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');}
  5365. // 左键双击网页空白处暂停翻页
  5366. pausePageEvent();
  5367. // 强制新标签页打开链接(翻页模式 5/6)
  5368. if (curSite.forceTarget) forceTarget();
  5369.  
  5370. // 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则
  5371. if (locationC) {
  5372. nowLocation = location.href
  5373. addLocationchange(); // 自定义 locationChange 事件
  5374. if (webType === 1) {
  5375. window.addEventListener('locationChange', function(){
  5376. lp = location.pathname;
  5377. //console.log(nowLocation, location.href)
  5378. if (curSite.history && window.top.document.xiu_nowUrl === location.href) {nowLocation = location.href; return}
  5379. if (nowLocation == location.href) return
  5380. if (curSite.pager && curSite.pager.type == 5) {
  5381. if (self != top) {window.top.location.href = location.href;} else {if (getCSS('iframe#xiu_iframe')) {getCSS('iframe#xiu_iframe').remove();}}
  5382. pausePage = true;
  5383. } // 对于翻页模式 5,如果是 iframe 框架内 URL 变动,则升级为顶级页面,如果是顶级页面的 URL 变动,则清理 iframe 框架
  5384. nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码
  5385. registerMenuCommand(); // 重新判断规则
  5386. //console.log(curSite);
  5387. if (curSite.insStyle) {insStyle(curSite.insStyle)} // 插入 Style CSS 样式
  5388. curSite.pageUrl = ''; // 下一页URL
  5389. pageLoading(); // 自动无缝翻页
  5390.  
  5391. if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');} // 显示页码
  5392. pausePageEvent(); // 左键双击网页空白处暂停翻页
  5393. })
  5394. } else if (webType === 3) {
  5395. window.addEventListener('locationChange', function(){
  5396. lp = location.pathname;
  5397. if (nowLocation == location.href) return
  5398. nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码
  5399. DBSite.flarum.functionS(); // 重新判断规则
  5400. if (curSite.insStyle) {insStyle(curSite.insStyle)} // 插入 Style CSS 样式
  5401. pageLoading(); // 自动无缝翻页
  5402.  
  5403. if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');} // 显示页码
  5404. pausePageEvent(); // 左键双击网页空白处暂停翻页
  5405. })
  5406. }
  5407. }
  5408. // 插入 Style CSS 样式
  5409. if (curSite.insStyle) insStyle(curSite.insStyle)
  5410.  
  5411. // 对翻页模式 5 的子 iframe 添加一个跟随滚动的事件
  5412. if (curSite.pager && curSite.pager.type === 5 && self != top) {
  5413. var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop
  5414. window.addEventListener('scroll', function (e) {
  5415. let scrollTop = window.parent.document.documentElement.scrollTop || window.parent.document.body.scrollTop,
  5416. clientHeight = window.parent.document.documentElement.clientHeight || window.parent.document.body.clientHeight,
  5417. scrollHeight = window.parent.document.documentElement.scrollHeight || window.parent.document.body.scrollHeight,
  5418. afterScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  5419. delta = afterScrollTop - beforeScrollTop;
  5420. if (delta == 0) return false;
  5421. beforeScrollTop = afterScrollTop;
  5422. //console.log(delta, scrollHeight - (scrollTop + clientHeight), '2222')
  5423. if (delta > 0 && scrollTop + clientHeight < scrollHeight) {
  5424. window.parent.scrollBy(0, delta*2);
  5425. }
  5426. }, false);
  5427. }
  5428.  
  5429. curSite.pageUrl = ''; // 下一页URL
  5430. //console.log(curSite);
  5431. pageLoading(); // 自动无缝翻页
  5432.  
  5433.  
  5434. // --------------------------------------------------------
  5435.  
  5436.  
  5437. // [Discuz! 论坛] 判断各版块帖子列表类型
  5438. function discuzForum() {
  5439. if (getCSS('#autopbn')) { // 判断是否有 [下一页] 按钮
  5440. curSite = DBSite.discuz_forum;
  5441. } else if (getCSS('#waterfall')) { // 判断是否为图片模式
  5442. if (!getCSS('#pgbtn, .pgbtn')) { // 如果各版块帖子列表已存在这个元素,说明自带了无缝翻页
  5443. curSite = DBSite.discuz_waterfall; waterfallStyle(); // 图片模式列表样式预处理
  5444. }
  5445. } else {
  5446. curSite = DBSite.discuz_guide;
  5447. }
  5448. }
  5449. function discuz_() {
  5450. if (getCSS('body[id="nv_forum"][class^="pg_"][onkeydown*="27"]')) {
  5451. switch (getCSS('body[id="nv_forum"][class^="pg_"][onkeydown*="27"]').className) {
  5452. case 'pg_forumdisplay': // < 各版块帖子列表 >
  5453. discuzForum(); break;
  5454. case 'pg_viewthread': // < 帖子内 >
  5455. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread; break;
  5456. case 'pg_guide': // < 导读帖子列表等 >
  5457. curSite = DBSite.discuz_guide; break;
  5458. case 'pg_collection': // < 淘贴列表 >
  5459. curSite = DBSite.discuz_collection; break;
  5460. }
  5461. }
  5462. // 如果上面没有匹配的则继续 < 搜索结果 >
  5463. if (curSite.SiteTypeID === 0) {
  5464. if (indexOF('search') || getCSS('body[id="nv_search"][onkeydown*="27"]')) {
  5465. curSite = DBSite.discuz_search;
  5466. }
  5467. }
  5468. // 如果上面没有匹配的则继续
  5469. if (curSite.SiteTypeID === 0) {
  5470. if (indexOF('.html')) { // 判断是不是静态网页(.html 结尾)
  5471. if (indexOF('/forum-')) { // < 各版块帖子列表 >
  5472. discuzForum();
  5473. } else if (indexOF('/thread-')) { // < 帖子内 >
  5474. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread;
  5475. }
  5476. }
  5477. }
  5478. // 如果上面没有匹配的则继续
  5479. if (curSite.SiteTypeID === 0) {
  5480. if (indexOF('mod=forumdisplay', 's') || indexOF('forumdisplay.php')) { // < 各版块帖子列表 >
  5481. discuzForum();
  5482. } else if (indexOF('mod=viewthread', 's') || indexOF('viewthread.php')) { // < 帖子内 >
  5483. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread;
  5484. } else if (indexOF('mod=guide', 's')) { // < 导读帖子列表 >
  5485. curSite = DBSite.discuz_guide;
  5486. } else if(indexOF('mod=space', 's') && indexOF('do=thread', 's')) { // 别人的主题/回复
  5487. curSite = DBSite.discuz_youspace;
  5488. } else if (indexOF('mod=collection', 's')) { // < 淘贴列表 >
  5489. curSite = DBSite.discuz_collection;
  5490. } else if (getCSS('#threadlist')) { // < 部分论坛的各板块 URL 是自定义的 >
  5491. discuzForum();
  5492. } else if (getCSS('#postlist')) { // < 部分论坛的帖子内 URL 是自定义的 >
  5493. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.discuz_thread;
  5494. }
  5495. }
  5496. }
  5497. // [Discuz! 论坛] 图片模式列表样式预处理
  5498. function waterfallStyle() {
  5499. let width = getCSS('#waterfall > li:first-child').style.width;
  5500. 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;}`);
  5501. }
  5502.  
  5503.  
  5504. // [谷歌搜索] 的插入前函数(加载视频图片)
  5505. function google_bF(pageElems) {
  5506. if (!indexOF('tbm=nws', 's')){
  5507. pageElems.forEach(function (one) {
  5508. getAllCSS('a[aria-label][href*="https://www.youtube.com/watch?v="]').forEach(function (one1) {
  5509. let img = getCSS('img', one1)
  5510. if (img) img.src = `https://i.ytimg.com/vi/${one1.href.split('?v=')[1]}/mqdefault.jpg`
  5511. })
  5512. });
  5513. }
  5514. return pageElems
  5515. }
  5516.  
  5517.  
  5518. // [必应搜索] 的插入前函数(加载网站图标)
  5519. function bing_bF(pageElems) {
  5520. pageElems.forEach(function (one) {
  5521. getAllCSS('div.rms_iac[data-src]').forEach(function (one1) {
  5522. one1.outerHTML = `<img src="${one1.dataset.src}" height="16" width="16" alt="全球 Web 图标" role="presentation" class="rms_img">`;
  5523. })
  5524. });
  5525. return pageElems
  5526. }
  5527.  
  5528.  
  5529. // [头条搜索] 的插入前函数(过滤相关搜索)
  5530. function toutiao_bF(pageElems) {
  5531. if (getXpath('//div[contains(@class,"-header") and string()="相关搜索"]', pageElems[pageElems.length - 1])) pageElems[pageElems.length - 1].style.display = 'none';
  5532. return pageElems
  5533. }
  5534.  
  5535.  
  5536. // [Startpage] 获取下一页地址
  5537. function startpage_nextL() {
  5538. let form = getXpath('//div[contains(@class, "pagination ")]/form[./button[@class="pagination__next-prev-button next"]]'), value;
  5539. if (form) {
  5540. form.querySelectorAll('input[name]').forEach(function(input) {value += input.name + '=' + input.value + '&';}) // 生成表单参数
  5541. value = encodeURI(value.replace(/&$/,'')); // 清理最后一个 & 符号
  5542. if (form.action && value) return (form.action + '?' + value)
  5543. }
  5544. return '';
  5545. }
  5546.  
  5547.  
  5548. // [F 搜] 的插入前函数(移除旧页码)
  5549. function fsou_bF(pageElems) {
  5550. let old = getCSS('.bottom-pagination')
  5551. if (old) old.remove();
  5552. return pageElems
  5553. }
  5554.  
  5555.  
  5556. // [SkrBT] 获取下一页地址
  5557. function skrbt_nextL() {
  5558. let page = getCSS('a[onclick][aria-label="Next"]');
  5559. if (page) {page = /(?<=\()\d+(?=\))/.exec(page.onclick)[0];} else {return '';} // 获取下一页页码
  5560. if (page) {
  5561. let action = getCSS('#search-form').action, value = ''; // 获取提交表单 URL
  5562. getAllCSS('#search-form input[name]').forEach(function(input) {value += input.name + '=' + input.value + '&';}) // 生成表单参数
  5563. value = encodeURI(value.replace(/&$/,'').replace(/p=\d+/,'p=' + page)); // 清理最后一个 & 符号,并替换页码
  5564. if (action && value) return (action + '?' + value)
  5565. }
  5566. return '';
  5567. }
  5568.  
  5569.  
  5570. // [百度贴吧](发帖按钮点击事件)
  5571. function baidu_tieba_1() {
  5572. let button = getCSS('.tbui_aside_fbar_button.tbui_fbar_post > a');
  5573. if (button) {
  5574. button.remove();
  5575. 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>')
  5576. button = getCSS('.tbui_aside_fbar_button.tbui_fbar_post > a');
  5577. if (button) {
  5578. button.onclick = function(){
  5579. let button2 = getCSS('div.edui-btn.edui-btn-fullscreen.edui-btn-name-portrait');
  5580. if (button2) {button2.click();} else {alert('提示:登录(不可用)后才能发帖!');}
  5581. return false;
  5582. }
  5583. }
  5584. }
  5585. }
  5586. // [百度贴吧] 插入数据
  5587. function baidu_tieba_insertE(pageElems, type) {
  5588. if (!pageElems) return
  5589. // 获取 <script> 内容
  5590. const scriptElems = getXpath(`//script[contains(text(), 'Bigpipe.register("frs-list/pagelet/thread_list", ')]`, pageElems, pageElems);
  5591. if (scriptElems) {
  5592. // 从 <script> 中提取帖子列表字符串
  5593. let scriptText = scriptElems.textContent.replace('Bigpipe.register("frs-list/pagelet/thread_list", ','');
  5594. scriptText = scriptText.slice(0, scriptText.indexOf(').'));
  5595. // 字符串转 Element 元素
  5596. let temp_baidu_tieba = document.createElement('div'); temp_baidu_tieba.innerHTML = JSON.parse(scriptText).content;
  5597. processElems(temp_baidu_tieba);
  5598. }
  5599. }
  5600.  
  5601.  
  5602. // [V2EX] 的插入后函数(新标签页打开链接)
  5603. function v2ex_aF(css) {
  5604. let links = getAllCSS(css);if (!links) return
  5605. links.forEach(function (_this) {_this.target = '_blank';});
  5606. }
  5607.  
  5608.  
  5609. // [龙的天空] 获取下一页地址
  5610. function lkong_nextL() {
  5611. let next = getCSS('li.ant-pagination-next'), page;
  5612. if (next && next.getAttribute('aria-disabled') === 'false') {
  5613. page = getCSS('li.ant-pagination-item-active[title]');
  5614. if (page && page.title) {
  5615. return (location.origin + location.pathname + '?page=' + ++page.title);
  5616. }
  5617. }
  5618. return '';
  5619. }
  5620.  
  5621.  
  5622. // [游民星空-攻略] 的插入前函数(移除下一页底部的 "更多相关内容请关注:xxx" 文字)
  5623. function gamersky_gl_bF(pageElems) {
  5624. pageElems.forEach(function (one) {if (one.tagName === 'P' && one.textContent.indexOf('更多相关内容请关注') > -1) {one.style.display = 'none';}});
  5625. return pageElems
  5626. }
  5627.  
  5628.  
  5629. // [NexusMods] 获取下一页地址
  5630. function nexusmods_nextL() {
  5631. if (getCSS('.nexus-ui-blocker')) return
  5632. let modList;
  5633. if (indexOF('/news')) {modList = RH_NewsTabContent;} else {modList = RH_ModList;}
  5634. let out_items = JSON.stringify(modList.out_items).replace(/{|}|"/g,''),
  5635. nextNum = getXpath('//div[contains(@class, "pagenav")][1]//a[contains(@class, "page-selected")]/parent::li/following-sibling::li/a'),
  5636. categories = modList.out_items.categories, categoriesUrl = '';
  5637. var url = '';
  5638. if (nextNum && nextNum.innerText) {
  5639. nextNum = nextNum.innerText;
  5640. if (out_items.indexOf('page:') > -1) {
  5641. out_items = out_items.replace(/page:\d+/, `page:${nextNum}`)
  5642. } else {
  5643. out_items += `,page:${nextNum}`;
  5644. }
  5645. if (categories && categories != []) {
  5646. for (let i = 0; i < categories.length; i++) {
  5647. categoriesUrl += `,categories[]:${categories[i]}`
  5648. }
  5649. categoriesUrl = categoriesUrl.replace(/,/,'');
  5650. if (out_items.indexOf('categories:') > -1) {
  5651. out_items = out_items.replace(/categories:\[.*\]/, categoriesUrl)
  5652. }
  5653. }
  5654. return `https://www.nexusmods.com${modList.uri}?RH_${modList.id}=${out_items}`
  5655. }
  5656. return ''
  5657. }
  5658. // [NexusMods] 的插入前函数(隐藏底部元素)
  5659. function nexusmods_bF(pageElems) {
  5660. pageElems.forEach(function (one) {
  5661. let now = one.querySelector('.mod-tile-left');
  5662. if (now) {
  5663. let downloadCount = now.querySelector('.downloadcount > span.flex-label');
  5664. if (downloadCount) {
  5665. if (GlobalModStats[now.dataset.gameId] && GlobalModStats[now.dataset.gameId][now.dataset.modId]) {
  5666. downloadCount.textContent = shortFormat(parseInt(GlobalModStats[now.dataset.gameId][now.dataset.modId].total));
  5667. }
  5668. }
  5669. }
  5670. });
  5671. return pageElems
  5672. }
  5673.  
  5674.  
  5675. // [cs_rin_ru] 各版块帖子列表的插入前函数(过滤置顶帖子)
  5676. function cs_rin_ru_bF(pageElems) {
  5677. for (let i = 0; i < pageElems.length; i++) {
  5678. if (pageElems[i].textContent.replace(/\n| /g,'') === 'Topics') {
  5679. pageElems.splice(0,i+1);
  5680. break;
  5681. }
  5682. }
  5683. return pageElems
  5684. }
  5685.  
  5686.  
  5687. // [bilibili_search] 获取下一页地址
  5688. function bilibili_search_nextL() {
  5689. if (!location.search) return
  5690. let pageActive = 1, pageLast = parseInt(getXpath('//ul[@class="pages"]/li[contains(@class, "page-item")][not(contains(@class, "next") or contains(@class, "prev"))][last()]').innerText);
  5691. if (!pageLast) return
  5692. if (indexOF(/page=\d+/, 's')) {
  5693. pageActive = parseInt(/page=\d+/.exec(location.search)[0].replace('page=',''))
  5694. }
  5695. if (pageActive < pageLast) {
  5696. if (indexOF(/page=\d+/, 's')) {
  5697. return (location.origin + location.pathname + location.search.replace(/page=\d+/,`page=${pageActive+1}`))
  5698. } else {
  5699. return (location.origin + location.pathname + location.search + `&page=${pageActive+1}`)
  5700. }
  5701. }
  5702. }
  5703. // [bilibili_search] 插入后函数(加载图片)
  5704. function bilibili_search_aF() {
  5705. let result = __INITIAL_STATE__.flow[__INITIAL_STATE__.flow.fields[0]].result;
  5706. if (result.length > 0) {
  5707. let imgArr = getAllCSS('.img > .lazy-img > img[src=""]');
  5708. if (imgArr.length > 0) {
  5709. for (let i = 0; i < imgArr.length; i++) {
  5710. imgArr[i].src = result[i].pic;
  5711. }
  5712. }
  5713. }
  5714. }
  5715.  
  5716.  
  5717. // [Anime1] 获取下一页内容(叠加)
  5718. function anime1_nextL() {
  5719. let next = getCSS('#tablepress-1_next');
  5720. if (next && next.className.indexOf('disabled') === -1) {
  5721. let oldList = getCSS('tbody.row-hover').innerHTML;
  5722. if (oldList) {
  5723. next.click();
  5724. pageNum.now = pageNum._now + 1;
  5725. getCSS('tbody.row-hover').insertAdjacentHTML('afterbegin', oldList); // 插入到列表头部
  5726. }
  5727. }
  5728. }
  5729.  
  5730.  
  5731. // [BTHaha] 的插入前函数(隐藏底部元素)
  5732. function bthaha_bF(pageElems) {
  5733. pageElems.forEach(function (one) {
  5734. let now = one.querySelector('[id^="list_top"], [id^="list_bottom"]')
  5735. if (now) {one.hidden = true;}
  5736. });
  5737. return pageElems
  5738. }
  5739.  
  5740.  
  5741. // [RARBG] 的插入前函数(鼠标指向显示封面)
  5742. function rarbg_bF(pageElems) {
  5743. pageElems.forEach(function (one) {
  5744. one.querySelectorAll('td > a[onmouseover][onmouseout]').forEach(function (now) {
  5745. now.parentElement.parentElement.setAttribute('onmouseover', now.getAttribute('onmouseover')); now.removeAttribute('onmouseover');
  5746. now.parentElement.parentElement.setAttribute('onmouseout', now.getAttribute('onmouseout')); now.removeAttribute('onmouseout');
  5747. });
  5748. });
  5749. return pageElems
  5750. }
  5751.  
  5752.  
  5753. // [LRepacks] 的插入前函数(调整 class)
  5754. function lrepacks_bF(pageElems) {
  5755. pageElems.forEach(function (one) {
  5756. let now = one.querySelector('.slideUp, .elementFade')
  5757. if (now) {
  5758. now.className = now.className.replace('slideUp','slideUpRun').replace('elementFade','elementFadeRun');
  5759. }
  5760. });
  5761. return pageElems
  5762. }
  5763.  
  5764.  
  5765. // [漫画狂] 获取下一页地址
  5766. function cartoonmad_nextL() {
  5767. let url = getXpath('//a[@class="pages"][contains(text(),"下一頁")]');
  5768. if (url) {
  5769. if (url.getAttribute('href') === 'thend.asp') {
  5770. url = getXpath('//a[@class="pages"][contains(string(),"下一話")]')
  5771. if (url) return url.href;
  5772. pausePage = false;
  5773. GM_notification({text: `注意:该网站早期漫画(如海贼王、柯南)因为网站自身问题而无法翻至下一话(仅限于显示为 [第 X 卷]/[下一卷] 的)。\n因此需要手动去 [目录页] 进入下一卷!`, timeout: 10000});
  5774. } else {
  5775. return url.href;
  5776. }
  5777. }
  5778. return '';
  5779. }
  5780.  
  5781.  
  5782. // [漫画猫] 初始化(显示本话所以图片)
  5783. function manhuacat_init() {
  5784. let _img = '';
  5785. for (let now of img_data_arr) {_img += `<img src="${asset_domain}${img_pre}${now}">`;}
  5786. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  5787.  
  5788. }
  5789. // [漫画猫] 获取下一页地址
  5790. function manhuacat_nextL(pageElems, type) {
  5791. if (type === 'url') {
  5792. if(pageElems.code == '0000') {
  5793. if (pageElems.url === curSite.pageUrl) return
  5794. curSite.pageUrl = pageElems.url;
  5795. getPageElems_(curSite.pageUrl); // 真正的下一页链接
  5796. }
  5797. } else {
  5798. let vg_r_data = getCSS('.vg-r-data');
  5799. if (vg_r_data) {
  5800. getPageElems_(`${location.origin}/chapter_num?chapter_id=${vg_r_data.dataset.chapter_num}&ctype=1&type=${vg_r_data.dataset.chapterType};`, 'json', 'GET', '', 'url');
  5801. }
  5802. }
  5803. }
  5804. // [漫画猫] 插入数据
  5805. function manhuacat_insertE(pageElems, type) {
  5806. if (!pageElems) return
  5807. if (type === 'url') { // 获取下一页链接
  5808. manhuacat_nextL(pageElems, type); return
  5809. }
  5810. addHistory(pageElems);
  5811. replaceElems(pageElems);
  5812.  
  5813. // 插入图片
  5814. 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');;
  5815. for (let now of _img_arr) {_img += `<img src="${vg_r_data.dataset.chapterDomain}${img_pre}${now}">`;}
  5816. if (_img) {
  5817. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5818. pageNum.now = pageNum._now + 1
  5819. }
  5820. }
  5821.  
  5822.  
  5823. // [漫画柜] 初始化(将本话其余图片插入网页中)
  5824. function manhuagui_init() {
  5825. // hook imgDate 代码
  5826. SMH.imgData = function(n) {window['imgDate'] = n;return{preInit:function(){}}}
  5827. // 重新执行本页的 imgDate 代码
  5828. insScript(curSite.pager.pageE);
  5829. let _img = '', imgPath = `${location.protocol}//i.hamreus.com${window['imgDate'].path}`;
  5830. //console.log(imgPath, window['imgDate'])
  5831. if (!(window['imgDate']) || !(imgPath)) return
  5832. // 遍历图片文件名数组,组合为 img 标签
  5833. 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}">`;}
  5834. // 插入并覆盖原来的一个图片
  5835. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  5836. pausePage = true;
  5837. }
  5838. // [漫画柜] 获取下一页地址
  5839. function manhuagui_nextL() {
  5840. if (window['imgDate'].nextId == 0) return
  5841. var url = location.origin + location.pathname.replace(window['imgDate'].cid.toString(), window['imgDate'].nextId.toString())
  5842. if (url === curSite.pageUrl) return
  5843. curSite.pageUrl = url
  5844. getPageElems_(curSite.pageUrl);
  5845. }
  5846. // [漫画柜] 插入数据
  5847. function manhuagui_insertE(pageElems, type) {
  5848. if (!pageElems) return
  5849. // 重新执行本页的 imgDate 代码
  5850. insScript(curSite.pager.pageE, document.body, pageElems);
  5851. let _img = '', imgPath = `${location.protocol}//i.hamreus.com${window['imgDate'].path}`;
  5852. //console.log(imgPath, window['imgDate'])
  5853. if (!(window['imgDate']) || !(imgPath)) return
  5854. // 遍历图片文件名数组,组合为 img 标签
  5855. 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}">`;}
  5856. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
  5857. addHistory(pageElems);
  5858. pageNum.now = pageNum._now + 1
  5859. }
  5860.  
  5861.  
  5862. // [漫画 DB] 初始化(将本话其余图片插入网页中)
  5863. function manhuadb_init() {
  5864. let _img = '', data = getCSS('.vg-r-data'), imgDate;
  5865. if (!data) return
  5866. getAllCSS(curSite.pager.pageE.replace('css;', '')).forEach(function (one) {
  5867. if (one.tagName === 'SCRIPT' && one.textContent.indexOf('var img_data =') > -1) {
  5868. let json = JSON.parse(window.atob(one.textContent.split("'")[1]));
  5869. if (json) {
  5870. let _img = '';
  5871. 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}">`;}
  5872. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5873. }
  5874. }
  5875. })
  5876. }
  5877. // [漫画 DB] 获取下一页地址
  5878. function manhuadb_nextL() {
  5879. let nextArr = getAllCSS('a.fixed-a-es'), next;
  5880. var url = '';
  5881. if (nextArr.length == 0) return
  5882. for (let i = 0; i < nextArr.length; i++) {
  5883. if (nextArr[i].className.indexOf('active') > -1) {
  5884. if (nextArr[i+1]) url = nextArr[i+1].href;
  5885. break;
  5886. }
  5887. }
  5888. if (url === curSite.pageUrl) return
  5889. curSite.pageUrl = url
  5890. getPageElems_(curSite.pageUrl);
  5891. }
  5892. // [漫画 DB] 插入数据
  5893. function manhuadb_insertE(pageElems, type) {
  5894. if (!pageElems) return
  5895. if (replaceElems(pageElems, curSite.pager.pageE, curSite.pager.pageE)) {
  5896. addHistory(pageElems);
  5897. pageNum.now = pageNum._now + 1
  5898. manhuadb_init(); // 将刚刚替换的图片插入网页中
  5899. }
  5900. }
  5901.  
  5902.  
  5903. // [HiComic(嗨漫画)] 初始化(将本话其余图片插入网页中)
  5904. function hicomic_init() {
  5905. let _img = '';
  5906. getAllCSS('.chapter > section:not(:first-child) > section[val]').forEach(function (one) {
  5907. let src = one.getAttribute('val');
  5908. if (src.indexOf('!p_c_c_') === -1) src += '!p_c_c_h'
  5909. _img += `<img src="${src}">`
  5910. })
  5911. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5912. window.document.title = window.document.title.replace(/(\(第.+\))? - HiComic/, `(${getCSS('.chapter_name').textContent}) - HiComic`); // 修改网页标题(加上 第 X 话)
  5913. }
  5914. // [HiComic(嗨漫画)] 获取下一页地址
  5915. function hicomic_nextL() {
  5916. let nextId;
  5917. nextId = getCSS('.next_chapter:not(.end)')
  5918. if (nextId && nextId.id && nextId.id != 'None') {
  5919. curSite.pageUrl = location.href;
  5920. getPageElems_(`https://www.hicomic.net/api/web/chapter/${nextId.id}/contents`, 'json');
  5921. }
  5922. }
  5923. // [HiComic(嗨漫画)] 插入数据
  5924. function hicomic_insertE(pageElems, type) {
  5925. if (!pageElems || pageElems.code != 200) return
  5926. if (pageElems.results.chapter.next) { // 写入下一页的 UUID
  5927. getCSS('.next_chapter').id = pageElems.results.chapter.next;
  5928. } else {
  5929. getCSS('.next_chapter').id = 'None';
  5930. getCSS('.next_chapter').classList.add('end');
  5931. }
  5932. curSite.pageUrl =`https://www.hicomic.net/chapters/${pageElems.results.chapter.uuid}/contents`
  5933. getCSS('.chapter_name').textContent = pageElems.results.chapter.name; // 修改漫画标题
  5934. addHistory(pageElems, window.document.title.replace(/(\(第.+\))? - HiComic/, `(${pageElems.results.chapter.name}) - HiComic`));
  5935. let _img = '';
  5936. for (let i = 0; i < pageElems.results.chapter.contents.length; i++) { // 遍历图片文件名数组,组合为 img 标签
  5937. let src = pageElems.results.chapter.contents[i].url;
  5938. if (src.indexOf('!p_c_c_') === -1) src += '!p_c_c_h';
  5939. _img += `<img src="${src}">`
  5940. }
  5941. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5942. pageNum.now = pageNum._now + 1
  5943. }
  5944.  
  5945.  
  5946. // [动漫之家] 初始化(调整本话其余图片)
  5947. function dmzj_init(css) {
  5948. let _img = '';
  5949. getAllCSS(css).forEach(function (one) {_img += `<img src="${one.dataset.original}">`;})
  5950. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  5951. }
  5952. // [动漫之家] 插入数据
  5953. function dmzj_insertE(pageElems, type) {
  5954. if (!pageElems) return
  5955. // 插入并运行 <script>
  5956. insScript('css;head > script[type]:not([src])', document.body, pageElems);
  5957.  
  5958. // 插入图片
  5959. let _img = '', _img_arr;
  5960. if (pages.indexOf('|') === -1) {
  5961. _img_arr = JSON.parse(pages.replace(/\r\n/g,'|')).page_url.split('|');
  5962. } else {
  5963. _img_arr = JSON.parse(pages).page_url.split('|');
  5964. }
  5965. for (let now of _img_arr) {
  5966. _img += `<img src="${img_prefix}${now}">`;
  5967. }
  5968. if (_img) {
  5969. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5970. addHistory(pageElems);
  5971. if (replaceElems(pageElems)) pageNum.now = pageNum._now + 1
  5972. }
  5973. }
  5974. // [动漫之家-漫画] 插入数据
  5975. function dmzj_manhua_insertE(pageElems, type) {
  5976. if (!pageElems) return
  5977. // 插入并运行 <script>
  5978. insScript('css;head > script[type]:not([src])', document.body, pageElems);
  5979.  
  5980. // 插入图片
  5981. let _img = '';
  5982. for (let now of arr_pages) {
  5983. _img += `<img src="${img_prefix}${now}">`;
  5984. }
  5985. if (_img) {
  5986. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  5987. addHistory(pageElems);
  5988. if (replaceElems(pageElems)) pageNum.now = pageNum._now + 1
  5989. }
  5990. }
  5991.  
  5992.  
  5993. // [动漫戏说] 插入后函数(加载图片)
  5994. function acgn_aF() {
  5995. let old = getAllCSS('.pic[_src][id]'), _img = '';
  5996. if (old.length > 0) {
  5997. for (let now of old) {now.outerHTML = `<div class="pic" _src="${now.getAttribute('_src')}"><img src="${now.getAttribute('_src')}" class="img1"></div>`;}
  5998. }
  5999. }
  6000.  
  6001.  
  6002. // [漫画星球] 插入数据
  6003. function mhxqiu_insertE(pageElems, type) {
  6004. if (!pageElems) return
  6005. // 插入并运行 <script>
  6006. insScript('//script[contains(text(), "eval") and contains(text(), "newImgs")]', document.body, pageElems);
  6007.  
  6008. // 插入图片
  6009. let _img = '';
  6010. 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>`;}
  6011. if (_img) {
  6012. // 将 img 标签插入到网页中
  6013. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
  6014. addHistory(pageElems);
  6015. pageNum.now = pageNum._now + 1
  6016. replaceElems(pageElems)
  6017. }
  6018. }
  6019.  
  6020.  
  6021. // [风之动漫] 插入数据
  6022. function fffdm_insertE(pageElems, type) {
  6023. if (!pageElems) return
  6024. // 插入并运行 <script>
  6025. let scriptElems = getXpath('id("main")/script[contains(text(), "mhpicurl")][1]', pageElems, pageElems);
  6026. if (scriptElems) {
  6027. document.body.appendChild(document.createElement('script')).textContent = scriptElems.textContent.replace(/document\.write.+/, '');
  6028.  
  6029. // 插入图片
  6030. setTimeout(function() {
  6031. getOne(curSite.pager.insertP[0]).appendChild(document.createElement('img')).src = mhpicurl;
  6032. addHistory(pageElems);
  6033. pageNum.now = pageNum._now + 1
  6034. replaceElems(pageElems)
  6035. }, 100)
  6036. }
  6037. }
  6038.  
  6039.  
  6040. // [乐语漫画] 初始化(调整本话其余图片)
  6041. function leyuman_init() {
  6042. let _img = '';
  6043. for (let one of JSON.parse(z_img)) {
  6044. if (one.slice(0,4) === 'http') {
  6045. _img += `<img src="${one}">`;
  6046. } else {
  6047. _img += `<img src="https://img.shishi-life.com/${one}">`;
  6048. }
  6049. }
  6050. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  6051.  
  6052. }
  6053. // [乐语漫画] 插入数据
  6054. function leyuman_insertE(pageElems, type) {
  6055. if (!pageElems) return
  6056. // 插入并运行 <script>
  6057. insScript('//body//script[not(@src)][contains(text(), "z_img=")]', document.body, pageElems);
  6058.  
  6059. // 插入图片
  6060. let _img = '';
  6061. for (let one of JSON.parse(z_img)) {
  6062. if (one.slice(0,4) === 'http') {
  6063. _img += `<img src="${one}">`;
  6064. } else {
  6065. _img += `<img src="https://img.shishi-life.com/${one}">`;
  6066. }
  6067. }
  6068. if (_img) {
  6069. // 将 img 标签插入到网页中
  6070. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
  6071. addHistory(pageElems);
  6072. pageNum.now = pageNum._now + 1
  6073. replaceElems(pageElems)
  6074. }
  6075. }
  6076.  
  6077.  
  6078. // [新新漫画] 初始化(调整本话其余图片)
  6079. function _77mh_init() {
  6080. let _img = '';
  6081. for (let one of arr) {_img += `<img src="${img_qianz}${one}">`;}
  6082. getOne(curSite.pager.insertP[0]).innerHTML = _img;
  6083. }
  6084. // [新新漫画] 获取下一页地址
  6085. function _77mh_nextL() {
  6086. let next = nextLink_b
  6087. if (next && next != curSite.pageUrl) {
  6088. curSite.pageUrl = next;
  6089. getPageElems_(curSite.pageUrl);
  6090. }
  6091. }
  6092. // [新新漫画] 插入数据
  6093. function _77mh_insertE(pageElems, type) {
  6094. if (!pageElems) return
  6095. // 插入并运行 <script>
  6096. insScript('//script[not(@src)][contains(text(), "eval(")]', document.body, pageElems);
  6097.  
  6098. // 插入图片
  6099. let _img = '';
  6100. for (let one of msg.split('|')) {_img += `<img src="${img_qianz}${one}.webp">`;}
  6101. if (_img) {
  6102. // 将 img 标签插入到网页中
  6103. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img);
  6104. addHistory(pageElems);
  6105. pageNum.now = pageNum._now + 1
  6106. }
  6107. }
  6108.  
  6109.  
  6110. // [古风漫画网] 获取下一页地址
  6111. function gufengmh_nextL() {
  6112. let pageElems = getOne(curSite.pager.pageE); // 寻找数据所在元素
  6113. if (pageElems) {
  6114. let comicUrl, nextId;
  6115. var url = '';
  6116. pageElems.textContent.split(';').forEach(function (one){ // 分号 ; 分割为数组并遍历
  6117. //console.log(one)
  6118. if (one.indexOf('comicUrl') > -1) { // 下一页 URL 前半部分
  6119. comicUrl = one.split('"')[1];
  6120. } else if (one.indexOf('nextChapterData') > -1) { // 下一页 URL 的后半部分 ID
  6121. nextId = one.split('"id":')[1].split(',')[0];
  6122. }
  6123. })
  6124. if (comicUrl && nextId && nextId != 'null') { // 组合到一起就是下一页 URL
  6125. url = comicUrl + nextId + '.html'
  6126. if (url === curSite.pageUrl) return
  6127. curSite.pageUrl = url
  6128. getPageElems_(curSite.pageUrl); // 访问下一页 URL 获取
  6129. }
  6130. }
  6131. }
  6132. // [古风漫画网] 插入数据
  6133. function gufengmh_insertE(pageElems, type) {
  6134. if (pageElems) {
  6135. let url = curSite.pageUrl;
  6136. pageElems = getOne(curSite.pager.pageE, pageElems, pageElems);
  6137. let chapterImages, chapterPath;
  6138. getOne(curSite.pager.pageE).innerText = pageElems.textContent; // 将当前网页内的数据所在元素内容改为刚刚获取的下一页数据内容,以便循环获取下一页 URL
  6139. pageElems.textContent.split(';').forEach(function (one){ // 分号 ; 分割为数组并遍历
  6140. //console.log(one)
  6141. if (one.indexOf('chapterImages') > -1) { // 图片文件名数组
  6142. chapterImages = one.replace(/^.+\[/, '').replace(']', '').replaceAll('"', '').split(',')
  6143. } else if (one.indexOf('chapterPath') > -1) { // 图片文件路径
  6144. chapterPath = one.split('"')[1];
  6145. } else if (one.indexOf('pageTitle') > -1) { // 网页标题
  6146. addHistory(pageElems, one.split('"')[1]);
  6147. }
  6148. })
  6149. if (chapterImages && chapterPath) {
  6150. let _img = '';
  6151. chapterImages.forEach(function (one2){_img += '<img src="https://res.xiaoqinre.com/' + chapterPath + one2 + '" data-index="0" style="display: inline-block;">';})
  6152. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6153. pageNum.now = pageNum._now + 1
  6154. }
  6155. }
  6156. }
  6157.  
  6158.  
  6159. // [Mangabz 漫画] 初始化(调整本话图片)
  6160. function mangabz_init() {
  6161. let showimage = getCSS('#showimage'),
  6162. cp_img = getCSS('#cp_img'),
  6163. cp_image = getCSS('#cp_image');
  6164. if (showimage) {showimage.removeAttribute('oncontextmenu');}
  6165. if (cp_img) {cp_img.removeAttribute('oncontextmenu');}
  6166. if (cp_image) {
  6167. cp_image.removeAttribute('oncontextmenu');
  6168. cp_image.removeAttribute('id');
  6169. cp_image.removeAttribute('style');
  6170. }
  6171. }
  6172. // [Mangabz 漫画] 获取下一页地址
  6173. function mangabz_nextL() {
  6174. var url = '';
  6175. if (MANGABZ_PAGE === MANGABZ_IMAGE_COUNT) { // 下一话
  6176. if (getNextE('//a[./img[contains(@src, "icon_xiayizhang")]]')) getPageElems_(curSite.pageUrl); // 访问下一话 URL 获取
  6177. } else { // 下一页
  6178. if (!mkey) var mkey = '';
  6179. 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}`
  6180. if (url === curSite.pageUrl) return
  6181. curSite.pageUrl = url
  6182. //console.log(curSite.pageUrl)
  6183. getPageElems_(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取
  6184. }
  6185. }
  6186. // [Mangabz 漫画] 插入数据
  6187. function mangabz_insertE(pageElems, type) {
  6188. if (pageElems) {
  6189. if (type === 'Next') { // 下一页
  6190. let imgArr = eval(pageElems),
  6191. _img = '';
  6192. for (let now of imgArr) {_img += `<img src="${now}">`;}
  6193. if (_img) {
  6194. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6195. MANGABZ_PAGE += imgArr.length;
  6196. addHistory(pageElems, document.title, location.origin + MANGABZ_CURL.substring(0, MANGABZ_CURL.length - 1) + '-p' + MANGABZ_PAGE + '/');
  6197. }
  6198. } else { // 下一话
  6199. // 插入 <script> 标签
  6200. insScript('css;html:not([dir]) > head > script:not([src])', document.body, pageElems);
  6201. addHistory(pageElems);
  6202. pageNum.now = pageNum._now + 1
  6203. replaceElems(pageElems)
  6204. MANGABZ_PAGE = 0;
  6205. mangabz_nextL();
  6206. }
  6207. }
  6208. }
  6209.  
  6210.  
  6211. // [Xmanhua 漫画] 获取下一页地址
  6212. function xmanhua_nextL() {
  6213. var url = '';
  6214. if (XMANHUA_PAGE === XMANHUA_IMAGE_COUNT) { // 下一话
  6215. if (getNextE('//a[./img[contains(@src, "reader-bottom-right-2.png")]]')) getPageElems_(curSite.pageUrl); // 访问下一话 URL 获取
  6216. } else { // 下一页
  6217. if (!mkey) var mkey = '';
  6218. 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}`
  6219. if (url === curSite.pageUrl) return
  6220. curSite.pageUrl = url
  6221. //console.log(curSite.pageUrl)
  6222. getPageElems_(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取
  6223. }
  6224. }
  6225. // [Xmanhua 漫画] 插入数据
  6226. function xmanhua_insertE(pageElems, type) {
  6227. if (pageElems) {
  6228. if (type === 'Next') { // 下一页
  6229. let imgArr = eval(pageElems),
  6230. _img = '';
  6231. for (let now of imgArr) {_img += `<img src="${now}">`;}
  6232. if (_img) {
  6233. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6234. XMANHUA_PAGE += imgArr.length;
  6235. addHistory(pageElems, document.title, location.origin + XMANHUA_CURL.substring(0, XMANHUA_CURL.length - 1) + '-p' + XMANHUA_PAGE + '/');
  6236. }
  6237. } else { // 下一话
  6238. // 插入 <script> 标签
  6239. insScript('css;html:not([dir]) > head > script:not([src])', document.body, pageElems);
  6240. addHistory(pageElems);
  6241. pageNum.now = pageNum._now + 1
  6242. replaceElems(pageElems)
  6243. XMANHUA_PAGE = 0;
  6244. xmanhua_nextL();
  6245. }
  6246. }
  6247. }
  6248.  
  6249.  
  6250. // [COCOMANGA 漫画] 初始化(调整本话图片)
  6251. function cocomanga_init() {
  6252. let last = getCSS('.mh_comicpic:last-of-type');
  6253. if (last && last.getAttribute('p')) {
  6254. getOne(curSite.pager.insertP[0]).innerHTML = ''; // 删除旧图片元素
  6255. cocomanga_img(parseInt(last.getAttribute('p'))) // 插入新图片元素
  6256. }
  6257. }
  6258. // [COCOMANGA 漫画] 生成图片元素并插入网页
  6259. function cocomanga_img(totalImageCount) {
  6260. if (totalImageCount < 1) return
  6261. let _img = '';
  6262. for (let i=1; i<=totalImageCount; i++) {_img += `<div class="mh_comicpic" p="${i}"><img src="${__cr.getPicUrl(i)}"></div>`;}
  6263. getOne(curSite.pager.insertP[0]).insertAdjacentHTML(getAddTo(curSite.pager.insertP[1]), _img); // 将 img 标签插入到网页中
  6264. }
  6265. // [COCOMANGA 漫画] 插入数据
  6266. function cocomanga_insertE(pageElems, type) {
  6267. if (pageElems) {
  6268. // 插入 <script> 标签
  6269. insScript('css;head > script:not([src]), script[src*="custom.js"], script[src*="dynamicjs.js"]', document.body, pageElems);
  6270.  
  6271. // 插入新图片元素
  6272. setTimeout(function() {
  6273. let totalImageCount = __cdecrypt('fw122587mkertyui', CryptoJS.enc.Base64.parse(mh_info.enc_code1).toString(CryptoJS.enc.Utf8));
  6274. if (!totalImageCount) totalImageCount = __cdecrypt('fw12558899ertyui', CryptoJS.enc.Base64.parse(mh_info.enc_code1).toString(CryptoJS.enc.Utf8));
  6275. cocomanga_img(parseInt(totalImageCount));
  6276. }, 100)
  6277. addHistory(pageElems);
  6278. pageNum.now = pageNum._now + 1
  6279. replaceElems(pageElems)
  6280. }
  6281. }
  6282.  
  6283.  
  6284. // [国家自然科学基金] 获取下一页地址
  6285. function nsfc_nextL() {
  6286. let id = decodeURIComponent(document.location.href.split('/')[document.location.href.split('/').length - 1]), data
  6287. if (!document.nowPageNum) document.nowPageNum = 2
  6288. data = `id=${id}&index=${document.nowPageNum}`
  6289. if (data === curSite.pageUrl) return
  6290. curSite.pageUrl = data
  6291. getPageElems_(location.origin + '/baseQuery/data/completeProjectReport', 'json', 'POST', data); // 访问下一页 URL 获取
  6292. }
  6293. // [国家自然科学基金] 插入数据
  6294. function nsfc_insertE(pageElems, type) {
  6295. if (!pageElems || pageElems.code != 200) {curSite.SiteTypeID = 0; return}
  6296. if (!pageElems.data.hasnext) {curSite.SiteTypeID = 0} else {document.nowPageNum++}
  6297. pageNum.now = pageNum._now + 1
  6298. 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}">`);
  6299. }
  6300.  
  6301.  
  6302.  
  6303. // [酷科研] 获取下一页地址
  6304. function coolkeyan_nextL() {
  6305. if (!getCSS('.q-img__image')) return
  6306. let id = getCSS('.q-breadcrumbs--last > span.q-breadcrumbs__el'), data
  6307. if (id && id.textContent) {id=parseInt(id.textContent)} else {return}
  6308. if (!document.nowPageNum) document.nowPageNum = 2
  6309. data = `ratify_no=${id}&index=${document.nowPageNum}`
  6310. if (data === curSite.pageUrl) return
  6311. curSite.pageUrl = data
  6312. getPageElems_(location.origin + '/api/funds/nsfc/creport?' + data, 'json', 'GET'); // 访问下一页 URL 获取
  6313. }
  6314. // [酷科研] 插入数据
  6315. function coolkeyan_insertE(pageElems, type) {
  6316. if (!pageElems || pageElems == {}) {curSite.SiteTypeID = 0; return}
  6317. if (!pageElems.url) {curSite.SiteTypeID = 0; return} else {document.nowPageNum++}
  6318. pageNum.now = pageNum._now + 1
  6319. getCSS('.q-img>div[style*="padding-bottom"]').style.paddingBottom = `${(document.nowPageNum * 1000) - 1000}px`
  6320. 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>`);
  6321. }
  6322.  
  6323.  
  6324. // --------------------------------------------------------
  6325.  
  6326.  
  6327. // 自动无缝翻页
  6328. function pageLoading() {
  6329. if (curSite.SiteTypeID == 0) return
  6330. windowScroll(function (direction, e) {
  6331. // 下滑 且 未暂停翻页 且 SiteTypeID > 0 时,才准备翻页
  6332. if (direction != 'down' || !pausePage || curSite.SiteTypeID == 0) return
  6333. // 翻页模式 5 且为框架内时,要判断顶层是否通过页码暂停翻页了
  6334. if (curSite.pager.type == 5 && self != top && window.top.document.xiu_pausePage == false) return
  6335.  
  6336. let scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop,
  6337. scrollHeight = window.innerHeight || document.documentElement.clientHeight,
  6338. scrollD = curSite.pager.scrollD;
  6339.  
  6340. // <<<<< 翻页类型 3(依靠 [基准元素] 与 [浏览器可视区域底部] 之间的距离缩小来触发翻页)>>>>>
  6341. if (curSite.pager.type === 3) {
  6342. let scrollE = getOne(curSite.pager.scrollE);
  6343. //console.log(scrollE.offsetTop, scrollE.offsetTop - (scrollTop + scrollHeight), scrollD, scrollTop + scrollHeight, curSite.SiteTypeID)
  6344. if (scrollE.offsetTop - (scrollTop + scrollHeight) <= scrollD) {intervalPause(); checkURL(getPageElems);}
  6345.  
  6346. } else {
  6347. if (document.documentElement.scrollHeight <= scrollHeight + scrollTop + scrollD) {
  6348. // <<<<< 翻页类型 1(由脚本实现自动无缝翻页)>>>>>
  6349. if (curSite.pager.type === 1) {
  6350. intervalPause(); checkURL(getPageElems);
  6351.  
  6352. // <<<<< 翻页类型 2(网站自带了自动无缝翻页功能,只需要点击下一页按钮即可)>>>>>
  6353. } else if (curSite.pager.type === 2) {
  6354. let autopbn = getOne(curSite.pager.nextL);
  6355. if (!autopbn) return
  6356. if (curSite.pager.isHidden && isHidden(autopbn)) return // 如果 isHidden = true,那么需要判断元素是否隐藏
  6357. if (curSite.pager.nextText) {
  6358. // 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页
  6359. if (autopbn.innerText === curSite.pager.nextText) {autopbn.click(); pageNum.now = pageNum._now + 1;}
  6360. } else if (curSite.pager.nextTextOf) {
  6361. // 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页
  6362. if (autopbn.innerText.indexOf(curSite.pager.nextTextOf) > -1) {autopbn.click(); pageNum.now = pageNum._now + 1;}
  6363. } else if (curSite.pager.nextHTML) {
  6364. // 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页
  6365. if (autopbn.innerHTML === curSite.pager.nextHTML) {autopbn.click(); pageNum.now = pageNum._now + 1;}
  6366. } else {
  6367. // 对于没有按钮文字变化的按钮,可以指定间隔时间(默认 300ms)
  6368. if (!curSite.pager.interval) curSite.pager.interval = 300;
  6369. intervalPause();
  6370. // 如果没有指定按钮文字就直接点击
  6371. autopbn.click(); pageNum.now = pageNum._now + 1;
  6372. }
  6373.  
  6374. // <<<<< 翻页类型 4(部分简单的动态加载类网站)>>>>>
  6375. } else if (curSite.pager.type === 4) {
  6376. // 为百度贴吧的发帖考虑,预留底部一小部分...
  6377. if (!(curSite.SiteTypeID === SiteType.BAIDU_TIEBA && document.documentElement.scrollHeight <= scrollHeight + scrollTop + 200)) {
  6378. intervalPause(); if (typeof curSite.pager.nextL == 'function') {curSite.pager.nextL();} else if (getNextE(curSite.pager.nextL)) {getPageElems_(curSite.pageUrl);}
  6379. }
  6380.  
  6381. // <<<<< 翻页类型 5(插入 iframe 方式来加载下一页)>>>>>
  6382. } else if (curSite.pager.type === 5) {checkURL(insIframe);
  6383.  
  6384. // <<<<< 翻页类型 6(通过 iframe 获取下一页动态加载内容)>>>>>
  6385. } else if (curSite.pager.type === 6) {checkURL(insIframe_);}
  6386. }
  6387. }
  6388. });
  6389.  
  6390. function intervalPause() {
  6391. if (curSite.pager.interval) {
  6392. pausePage = false
  6393. setTimeout(function(){pausePage = true;}, curSite.pager.interval)
  6394. }
  6395. }
  6396. }
  6397. // 判断是支持
  6398. function doesItSupport() {
  6399. setDBSite(); // 配置 DBSite 变量对象
  6400.  
  6401. // 遍历判断是否是某个已支持的网站,顺便直接赋值
  6402. let support = false;
  6403. for (let now in DBSite) { // 遍历对象
  6404. if (!DBSite[now].host) continue; // 如果不存在则继续下一个循环
  6405. if (Array.isArray(DBSite[now].host)) { // 如果是数组
  6406. for (let i of DBSite[now].host) { // 遍历数组
  6407. if (i === location.hostname) {
  6408. if (DBSite[now].functionS) {
  6409. DBSite[now].functionS();
  6410. } else {
  6411. curSite = DBSite[now];
  6412. }
  6413. support = true; break; // 如果找到了就退出循环
  6414. }
  6415. }
  6416. } else if (DBSite[now].host instanceof RegExp) {
  6417. if (DBSite[now].host.test(location.hostname)) {
  6418. if (self != top) {if (!DBSite[now].iframe) break;} // 如果当前位于 iframe 框架下,就需要判断是否需要执行
  6419. if (DBSite[now].functionS) {
  6420. DBSite[now].functionS();
  6421. } else {
  6422. curSite = DBSite[now];
  6423. }
  6424. support = true; break; // 如果找到了就退出循环
  6425. }
  6426. } else if (DBSite[now].host === location.hostname) {
  6427. if (self != top) {if (!DBSite[now].iframe) break;} // 如果当前位于 iframe 框架下,就需要判断是否需要执行
  6428. if (DBSite[now].functionS) {
  6429. DBSite[now].functionS();
  6430. } else {
  6431. curSite = DBSite[now];
  6432. }
  6433. support = true; break; // 如果找到了就退出循环
  6434. }
  6435. }
  6436.  
  6437. if (support) {
  6438. console.info('[自动无缝翻页] - 独立规则 网站'); return 1;
  6439. } 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)) {
  6440. console.info('[自动无缝翻页] - <Discuz!> 论坛'); return 2;
  6441. } else if (getCSS('#flarum-loading')) {
  6442. console.info('[自动无缝翻页] - <Flarum> 论坛'); return 3;
  6443. } else if (getCSS('body#phpbb')) {
  6444. console.info('[自动无缝翻页] - <phpBB> 论坛'); return 4;
  6445. } else if (getXpath('//footer//a[contains(string(), "Xiuno")] | //link[contains(@href, "xiuno")] | //script[contains(@src, "xiuno")]')) {
  6446. console.info('[自动无缝翻页] - <Xiuno> 论坛'); return 5;
  6447. } else if (typeof XF != 'undefined') {
  6448. console.info('[自动无缝翻页] - <XenForo> 论坛'); return 6;
  6449. } else if (getCSS('link[href*="themes/dux" i], script[src*="themes/dux" i]')) {
  6450. console.info('[自动无缝翻页] - 使用 WordPress <DUX> 主题的网站'); return 100;
  6451. } else if (getCSS('link[href*="themes/xiu" i], script[src*="themes/xiu" i]')) {
  6452. console.info('[自动无缝翻页] - 使用 WordPress <XIU> 主题的网站'); return 101;
  6453. } else if (getCSS('link[href*="themes/d8" i], script[src*="themes/d8" i]')) {
  6454. console.info('[自动无缝翻页] - 使用 WordPress <D8> 主题的网站'); return 102;
  6455. } else if (getCSS('link[href*="themes/begin" i], script[src*="themes/begin" i], img[src*="themes/begin" i]')) {
  6456. console.info('[自动无缝翻页] - 使用 WordPress <Begin> 主题的网站'); return 103;
  6457. } else if (getCSS('meta[name="description"][content*="小说"], meta[name="description"][content*="章节"], meta[name="description"][content*="阅读"]') && getCSS('#content') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
  6458. console.info('[自动无缝翻页] - <笔趣阁> 模板的小说网站'); return 200;
  6459. } else if (getCSS('meta[name="description"][content*="小说"], meta[name="description"][content*="章节"], meta[name="description"][content*="阅读"]') && getCSS('#chaptercontent, .chaptercontent, #BookText') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
  6460. console.info('[自动无缝翻页] - <笔趣阁 - 手机版> 模板的小说网站'); return 201;
  6461. } else if (self != top) {
  6462. return -1;
  6463. }
  6464. return 0;
  6465. }
  6466.  
  6467.  
  6468. // 翻页类型 1/3
  6469. function getPageElems(url) {
  6470. GM_xmlhttpRequest({
  6471. url: url,
  6472. method: 'GET',
  6473. overrideMimeType: 'text/html; charset=' + document.charset,
  6474. headers: {
  6475. 'Referer': location.href
  6476. },
  6477. timeout: 10000,
  6478. onload: function (response) {
  6479. try {
  6480. //console.log('最终 URL:' + response.finalUrl, '返回内容:' + response.responseText)
  6481. processElems(createDocumentByString(response.responseText));
  6482. } catch (e) {
  6483. console.log(e);
  6484. }
  6485. }
  6486. });
  6487. }
  6488. // 翻页类型 4
  6489. function getPageElems_(url, type = '', method = 'GET', data = '', type2) {
  6490. let mimeType;
  6491. switch (type) {
  6492. case 'json':
  6493. mimeType = 'application/json; charset=' + document.charset; break;
  6494. case 'text':
  6495. mimeType = 'text/plain; charset=' + document.charset; break;
  6496. default:
  6497. mimeType = 'text/html; charset=' + document.charset;
  6498. }
  6499.  
  6500. GM_xmlhttpRequest({
  6501. url: url,
  6502. method: method,
  6503. data: data,
  6504. responseType: type,
  6505. overrideMimeType: mimeType,
  6506. headers: {
  6507. 'Referer': location.href,
  6508. 'Content-Type': (method === 'POST') ? 'application/x-www-form-urlencoded':''
  6509. },
  6510. timeout: 10000,
  6511. onload: function (response) {
  6512. try {
  6513. //console.log('最终 URL:' + response.finalUrl, '返回内容:' + response.responseText)
  6514. switch (type) {
  6515. case 'json':
  6516. curSite.pager.insertE(response.response, type2);
  6517. break;
  6518. case 'text':
  6519. curSite.pager.insertE(response.responseText, type2)
  6520. break;
  6521. default:
  6522. curSite.pager.insertE(createDocumentByString(response.responseText), type2)
  6523. }
  6524. } catch (e) {
  6525. console.log(e);
  6526. }
  6527. }
  6528. });
  6529. }
  6530. // 翻页类型 5(插入 iframe 方式加载下一页)
  6531. function insIframe(src) {
  6532. // 停用当前页面翻页
  6533. if (curSite.SiteTypeID == 0) return
  6534. curSite.SiteTypeID = 0;
  6535.  
  6536. var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop
  6537. // 当滚动条到底部时(即完全显示 iframe 框架),隐藏当前页面的滚动条
  6538. window.addEventListener('scroll', function () {
  6539. let scrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  6540. clientHeight = document.documentElement.clientHeight || document.body.clientHeight,
  6541. scrollHeight = document.documentElement.scrollHeight || document.body.scrollHeight,
  6542. afterScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  6543. delta = afterScrollTop - beforeScrollTop;
  6544. if (delta == 0) return false;
  6545. beforeScrollTop = afterScrollTop;
  6546.  
  6547. //console.log(delta, scrollHeight - (scrollTop + clientHeight + 10), '1111')
  6548. if (delta > 0 && scrollTop + clientHeight + 10 >= scrollHeight && !getCSS('#xiu-scroll')) {
  6549. let newStyle = document.createElement('style'); newStyle.id = 'xiu-scroll';
  6550. newStyle.textContent = 'html::-webkit-scrollbar, body::-webkit-scrollbar {width: 0 !important;height: 0 !important;} html, body {scrollbar-width: none !important;}';
  6551. if (curSite.pager.insStyle) newStyle.textContent += curSite.pager.insStyle;
  6552. document.documentElement.appendChild(newStyle);
  6553. } else if (delta < 0 && getCSS('#xiu-scroll')) {
  6554. getCSS('#xiu-scroll').remove();
  6555. }
  6556. }, false);
  6557.  
  6558. // 创建 iframe
  6559. let iframe = document.createElement('iframe');
  6560. iframe.style = 'position: absolute; width: 100%; height: 100%; border: none;';
  6561. iframe.id = 'xiu_iframe';
  6562. iframe.src = src;
  6563.  
  6564. // 加载完成后才继续
  6565. iframe.onload = function() {
  6566. // 添加历史记录
  6567. if (curSite.history) addHistory(iframe.contentWindow.document, iframe.contentWindow.document.title);
  6568. // 当前页码 + 1
  6569. if (!curSite.hiddenPN) {
  6570. let autopageNumber = getCSS('#Autopage_number', window.top.document)
  6571. if (autopageNumber) {autopageNumber.textContent = parseInt(autopageNumber.textContent) + 1;}
  6572. }
  6573. }
  6574.  
  6575. // 插入 iframe
  6576. document.documentElement.appendChild(iframe);
  6577. }
  6578. // 翻页类型 6(通过 iframe 获取下一页动态加载内容)
  6579. function insIframe_(src) {
  6580. // 暂停翻页
  6581. if (!pausePage) return
  6582. pausePage = false
  6583. console.log(src)
  6584. // 如果不存在,则创建一个 iframe
  6585. let iframe = document.getElementById('xiu_iframe');
  6586. if (!iframe) {
  6587. iframe = document.createElement('iframe');
  6588. iframe.style = 'position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; border: none; z-index: -999; /*visibility: hidden;*/';
  6589. iframe.id = 'xiu_iframe';
  6590. iframe.src = src;
  6591. }
  6592.  
  6593. // 加载完成后才继续
  6594. iframe.onload = function() {
  6595. //iframe.contentWindow.scrollTo(0, 999999); // 滚动到底部,以触发网页的滚动条相关加载事件
  6596. //iframe.contentWindow.scrollTo({top: 9999999, behavior: 'smooth'});
  6597. if (!curSite.pager.loadTime) curSite.pager.loadTime = 100; // 默认 100ms
  6598. //console.log(curSite.pager.loadTime, curSite.pager.loadTime/30)
  6599. //console.time('sort');
  6600. let time1 = 0 ,time2 = setInterval(function(){
  6601. let scrollHeight = (iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)/10
  6602. iframe.contentWindow.scrollTo(0, 999999);
  6603. iframe.contentWindow.scrollTo(0, scrollHeight*time1);
  6604. //console.log(time1, iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)
  6605. if (++time1 == 10) {
  6606. //console.timeEnd('sort');
  6607. clearInterval(time2);
  6608. processElems(iframe.contentWindow.document); // 插入/替换元素等
  6609. //console.log(iframe.contentWindow.document.documentElement.scrollHeight || iframe.contentWindow.document.body.scrollHeight)
  6610. pausePage = true; // 恢复翻页
  6611. }
  6612. }, curSite.pager.loadTime/10)
  6613. }
  6614.  
  6615. // 插入 iframe(如果已存在则直接改 src)
  6616. if (document.getElementById('xiu_iframe')) {
  6617. iframe.src = src;
  6618. } else {
  6619. document.documentElement.appendChild(iframe);
  6620. }
  6621. }
  6622.  
  6623.  
  6624. // XHR 后处理结果,插入、替换元素等(适用于翻页类型 1/3/6)
  6625. function processElems(response) {
  6626. if (!curSite.pager.insertP) {curSite.pager.insertP = [curSite.pager.pageE, 5]}
  6627. let pageElems = getAll(curSite.pager.pageE, response, response), toElement;
  6628. if (curSite.pager.insertP[1] === 5) { // 插入 pageE 列表最后一个元素的后面
  6629. toElement = getAll(curSite.pager.insertP[0]).pop();
  6630. } else {
  6631. toElement = getOne(curSite.pager.insertP[0]);
  6632. }
  6633. //console.log(curSite.pager.pageE, pageElems, curSite.pager.insertP, toElement)
  6634.  
  6635. if (pageElems.length > 0 && toElement) {
  6636. // 如果有插入前函数就执行函数
  6637. if (curSite.function && curSite.function.bF) {
  6638. if (curSite.function.pF) { // 如果指定了参数
  6639. pageElems = curSite.function.bF(pageElems, curSite.function.pF);
  6640. } else {
  6641. pageElems = curSite.function.bF(pageElems);
  6642. }
  6643. }
  6644.  
  6645. // 插入位置
  6646. let addTo = getAddTo(curSite.pager.insertP[1]);
  6647.  
  6648. // 插入新页面元素
  6649. if (curSite.pager.insertP[1] === 6) { // 插入到目标内部末尾(针对文本,比如小说网页)
  6650. let afterend = '';
  6651. pageElems.forEach(function (one) {afterend += one.innerHTML;});
  6652. toElement.insertAdjacentHTML(addTo, afterend);
  6653. } else {
  6654. if (curSite.pager.insertP[1] === 2 || curSite.pager.insertP[1] === 4 || curSite.pager.insertP[1] === 5) pageElems.reverse(); // 插入到 [元素内头部]、[目标本身后面] 时,需要反转顺序
  6655. pageElems.forEach(function (one) {toElement.insertAdjacentElement(addTo, one);});
  6656. }
  6657.  
  6658. // 当前页码 + 1
  6659. pageNum.now = pageNum._now + 1
  6660.  
  6661. // 插入 <script> 标签
  6662. if (curSite.pager.scriptT || curSite.pager.scriptT == 0) {
  6663. switch (curSite.pager.scriptT) {
  6664. case 0: // 下一页的所有 <script> 标签
  6665. insScript('css;script', toElement, response); break;
  6666. case 1: // 下一页的所有 <script> 标签(不包括 src 链接)
  6667. insScript('css;script:not([src])', toElement, response); break;
  6668. case 2: // 下一页主体元素 (pageE) 的同级 <script> 标签
  6669. insScript(null, toElement, pageElems); break;
  6670. case 3: // 下一页主体元素 (pageE) 的子元素 <script> 标签
  6671. insScript('css;script:not([src])', toElement, pageElems); break;
  6672. }
  6673. }
  6674.  
  6675. // 添加历史记录
  6676. if (curSite.history) addHistory(response);
  6677.  
  6678. // 替换待替换元素
  6679. if (curSite.pager.replaceE) replaceElems(response);
  6680.  
  6681. // 如果有插入后函数就执行函数
  6682. if (curSite.function && curSite.function.aF) {
  6683. if (curSite.function.pF) { // 如果指定了参数
  6684. curSite.function.aF(curSite.function.pF);
  6685. } else {
  6686. curSite.function.aF();
  6687. }
  6688. }
  6689. } else { // 获取主体元素失败后,尝试重新获取
  6690. if (curSite.retry) {
  6691. setTimeout(function(){curSite.pageUrl = '';}, curSite.retry)
  6692. } else { // 尝试替换元素看能不能继续翻页下去
  6693. if (curSite.pager.replaceE) {
  6694. if (replaceElems(response)) { // 如果替换成功
  6695. pageNum.now = pageNum._now + 1; // 当前页码 + 1
  6696. if (curSite.history) addHistory(response); // 添加历史记录
  6697. }
  6698. }
  6699. }
  6700. }
  6701. }
  6702. // 通用型插入前函数(加载图片)
  6703. function src_bF(pageElems, css) {
  6704. pageElems.forEach(function (one) {
  6705. if (css[0] == 0) { // src 图片
  6706. one.querySelectorAll(css[1]).forEach(function (now) {
  6707. now.src = now.getAttribute(css[2]);
  6708. });
  6709. } else if (css[0] == 1) { // 背景图片
  6710. one.querySelectorAll(css[1]).forEach(function (now) {
  6711. now.style.backgroundImage = 'url("' + now.getAttribute(css[2]) + '")';
  6712. });
  6713. }
  6714. });
  6715. return pageElems
  6716. }
  6717. // 通用型获取下一页地址(URL 替换 page= 参数)
  6718. function getNextP(css, pf, reg) {
  6719. let nextNum = getOne(css);
  6720. var url = '';
  6721. if (nextNum && nextNum.textContent) {
  6722. nextNum = nextNum.textContent.replaceAll(' ','');
  6723. if (location.search) {
  6724. if (indexOF(pf, 's')) {
  6725. url = location.search.replace(reg, pf + nextNum);
  6726. } else {
  6727. url = location.search + '&' + pf + nextNum;
  6728. }
  6729. } else {
  6730. url = '?' + pf + nextNum;
  6731. }
  6732. url = location.origin + location.pathname + url;
  6733. }
  6734. return url
  6735. }
  6736. // 通用型获取下一页地址(直接从元素获取)
  6737. function getNextE(css) {
  6738. if (!css) css = curSite.pager.nextL;
  6739. let next = getOne(css)
  6740. if (next && next.nodeType === 1 && next.href && next.href.slice(0,4) === 'http' && next.href != curSite.pageUrl) {
  6741. if (curSite.pager.forceHTTPS && location.protocol === 'https:') {
  6742. curSite.pageUrl = next.href.replace(/^http:/,'https:');
  6743. } else {
  6744. curSite.pageUrl = next.href;
  6745. }
  6746. //console.log(curSite.pageUrl)
  6747. return true
  6748. }
  6749. return false
  6750. }
  6751. // 检查 URL
  6752. function checkURL(func) {
  6753. if (typeof curSite.pager.nextL == 'function') {
  6754. let tempUrl = curSite.pager.nextL();
  6755. if (!tempUrl || (tempUrl && tempUrl.slice(0,4) != 'http') || tempUrl === curSite.pageUrl ) return;
  6756. curSite.pageUrl = tempUrl;
  6757. func(curSite.pageUrl);
  6758. } else if (getNextE()) {
  6759. func(curSite.pageUrl);
  6760. }
  6761. //console.log(curSite.pageUrl);
  6762. }
  6763. // 替换元素
  6764. function replaceElems(pageElems, o = curSite.pager.replaceE, r = curSite.pager.replaceE) {
  6765. let oriE = getAll(o),
  6766. repE = getAll(r, pageElems, pageElems);
  6767. //console.log(oriE, repE)
  6768. if (oriE.length != 0 && repE.length != 0 && oriE.length === repE.length) {
  6769. for (let i = 0; i < oriE.length; i++) {
  6770. oriE[i].outerHTML = repE[i].outerHTML;
  6771. }
  6772. return true
  6773. }
  6774. return false
  6775. }
  6776. // 添加历史记录
  6777. function addHistory(pageElems, title, url) {
  6778. if (!curSite.pageUrl) return
  6779. title = title || pageElems.querySelector('title').textContent || window.top.document.title;
  6780. url = url || curSite.pageUrl;
  6781. window.top.document.title = title;
  6782. window.top.document.xiu_nowUrl = curSite.pageUrl;
  6783. window.top.history.pushState('xiu_history', title, url);
  6784. }
  6785. // 插入 <Script>
  6786. function insScript(selector, toElement = document.body, contextNode = document) {
  6787. let scriptElems = contextNode;
  6788. if (selector) {
  6789. if (contextNode instanceof Array) {
  6790. scriptElems = []; contextNode.forEach(function (one) {scriptElems = scriptElems.concat(getAll(selector, one, one));})
  6791. } else {
  6792. scriptElems = getAll(selector, contextNode, contextNode);
  6793. }
  6794. }
  6795. scriptElems.forEach(function (one) {
  6796. if (one.tagName === 'SCRIPT') {
  6797. if (one.src) {
  6798. toElement.appendChild(document.createElement('script')).src = one.src;
  6799. } else {
  6800. toElement.appendChild(document.createElement('script')).textContent = one.textContent;
  6801. }
  6802. }
  6803. });
  6804. }
  6805. // 插入 <Style>
  6806. function insStyle(style) {
  6807. document.documentElement.appendChild(document.createElement('style')).textContent = style;
  6808. }
  6809.  
  6810.  
  6811. // 获取元素(CSS/Xpath)来自:https://github.com/machsix/Super-preloader
  6812. function getCSS(css, contextNode = document) {
  6813. return contextNode.querySelector(css);
  6814. }
  6815. function getAllCSS(css, contextNode = document) {
  6816. return [].slice.call(contextNode.querySelectorAll(css));
  6817. }
  6818. function getXpath(xpath, contextNode, doc = document) {
  6819. contextNode = contextNode || doc;
  6820. try {
  6821. const result = doc.evaluate(xpath, contextNode, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  6822. // 应该总是返回一个元素节点
  6823. return result.singleNodeValue && result.singleNodeValue.nodeType === 1 && result.singleNodeValue;
  6824. } catch (err) {
  6825. throw new Error(`无效 Xpath: ${xpath}`);
  6826. }
  6827. }
  6828. function getAllXpath(xpath, contextNode, doc = document) {
  6829. contextNode = contextNode || doc;
  6830. const result = [];
  6831. try {
  6832. const query = doc.evaluate(xpath, contextNode, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  6833. for (let i = 0; i < query.snapshotLength; i++) {
  6834. const node = query.snapshotItem(i);
  6835. // 如果是 Element 节点
  6836. if (node.nodeType === 1) result.push(node);
  6837. }
  6838. } catch (err) {
  6839. throw new Error(`无效 Xpath: ${xpath}`);
  6840. }
  6841. return result;
  6842. }
  6843. function getOne(selector, contextNode = undefined, doc = document) {
  6844. if (!selector) return;
  6845. contextNode = contextNode || doc;
  6846. if (selector.search(/^css;/i) === 0) {
  6847. return getCSS(selector.slice(4), contextNode);
  6848. } else {
  6849. return getXpath(selector, contextNode, doc);
  6850. }
  6851. }
  6852. function getAll(selector, contextNode = undefined, doc = document) {
  6853. if (!selector) return [];
  6854. contextNode = contextNode || doc;
  6855. if (selector.search(/^css;/i) === 0) {
  6856. return getAllCSS(selector.slice(4), contextNode);
  6857. } else {
  6858. return getAllXpath(selector, contextNode, doc);
  6859. }
  6860. }
  6861. function createDocumentByString(e) {
  6862. if (e) {
  6863. if ('HTML' !== document.documentElement.nodeName) return (new DOMParser).parseFromString(e, 'application/xhtml+xml');
  6864. var t;
  6865. try { t = (new DOMParser).parseFromString(e, 'text/html');} catch (e) {}
  6866. if (t) return t;
  6867. if (document.implementation.createHTMLDocument) {
  6868. t = document.implementation.createHTMLDocument('ADocument');
  6869. } else {
  6870. 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) {}
  6871. }
  6872. if (t) {
  6873. var r = document.createRange(),
  6874. n = r.createContextualFragment(e);
  6875. r.selectNodeContents(document.body);
  6876. t.body.appendChild(n);
  6877. 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);
  6878. return t;
  6879. }
  6880. } else console.error('没有找到要转成 DOM 的字符串');
  6881. }
  6882.  
  6883.  
  6884. // 强制新标签页打开链接(翻页模式 5/6)
  6885. function forceTarget() {
  6886. document.body.addEventListener('click', function(e) {
  6887. if (e.target.tagName === 'A') {
  6888. forceTarget_(e.target, e);
  6889. } else {
  6890. let path = e.path || e.composedPath();
  6891. for (let i = 1; i < path.length - 3; i++) {
  6892. //console.log(path[i])
  6893. if (path[i].tagName === 'A') {
  6894. forceTarget_(path[i], e);
  6895. break;
  6896. }
  6897. }
  6898. }
  6899. });
  6900.  
  6901. function forceTarget_(target, e){
  6902. if (target.href && target.target != '_blank' && !(target.getAttribute('onclick')) && target.href.slice(0,4) == 'http' && target.getAttribute('href').slice(0,1) != '#') {
  6903. e.preventDefault(); // 阻止默认打开链接事件
  6904. //console.log(target.href);
  6905. //window.top.location.href = target.href;
  6906. window.GM_openInTab(target.href, {active: true,insert: true,setParent: true});
  6907. }
  6908. }
  6909. //document.head.appendChild(document.createElement('base')).target = '_top';
  6910. }
  6911. // 判断元素是否隐藏(隐藏返回 true)
  6912. function isHidden(el){
  6913. return (el.offsetParent === null);
  6914. }
  6915. // 判断 URL 是否存在指定文本
  6916. function indexOF(e, l = 'p', low = false){
  6917. switch (l) {
  6918. case 'h':
  6919. l = location.href; break;
  6920. case 'p':
  6921. l = location.pathname; break;
  6922. case 's':
  6923. l = location.search; break;
  6924. }
  6925. //console.log(l,e,l.indexOf(e))
  6926. if (low) {e = e.toLowerCase(); l = l.toLowerCase();} // 全部转为小写
  6927. if (e instanceof RegExp) {
  6928. if (e.test(l)) return true
  6929. } else {
  6930. if (l.indexOf(e) > -1) return true
  6931. }
  6932. return false
  6933. }
  6934. // 启用/禁用 (当前网站)
  6935. function menu_disable(type) {
  6936. switch(type) {
  6937. case 'check':
  6938. return check(); break;
  6939. case 'add':
  6940. add(); break;
  6941. case 'del':
  6942. del(); break;
  6943. }
  6944.  
  6945. function check() { // 存在返回真,不存在返回假
  6946. if (GM_getValue('menu_disable').indexOf(location.hostname) == -1) return false // 不存在返回假
  6947. return true
  6948. }
  6949.  
  6950. function add() {
  6951. if (check()) return
  6952. let list = GM_getValue('menu_disable'); // 读取网站列表
  6953. list.push(location.hostname); // 追加网站域名
  6954. GM_setValue('menu_disable', list); // 写入配置
  6955. location.reload(); // 刷新网页
  6956. }
  6957.  
  6958. function del() {
  6959. if (!check()) return
  6960. let list = GM_getValue('menu_disable'), // 读取网站列表
  6961. index = list.indexOf(location.hostname);
  6962. list.splice(index, 1); // 删除网站域名
  6963. GM_setValue('menu_disable', list); // 写入配置
  6964. location.reload(); // 刷新网页
  6965. }
  6966. }
  6967. // 左键双击网页空白处暂停翻页
  6968. function pausePageEvent() {
  6969. if (!GM_getValue('menu_pause_page')) return
  6970. if (curSite.SiteTypeID === 0) return
  6971. if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
  6972. document.body.addEventListener('dblclick', function () {
  6973. if (pausePage) {GM_notification({text: `❌ 已暂停本页 [自动无缝翻页]\n (再次双击可恢复)`, timeout: 2000});} else {GM_notification({text: `✅ 已恢复本页 [自动无缝翻页]\n (再次双击可暂停)`, timeout: 2000});}
  6974. pausePage = !pausePage;
  6975. if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
  6976. });
  6977. }
  6978. // 显示页码
  6979. function pageNumber(type) {
  6980. 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}
  6981. let status = getCSS('#Autopage_number');
  6982. switch (type) {
  6983. case 'add':
  6984. add(); break;
  6985. case 'del':
  6986. del(); break;
  6987. case 'set':
  6988. set(); break;
  6989. }
  6990.  
  6991. function add(){
  6992. if (status) {
  6993. if (status.style.display === 'none') {status.style.display = 'flex';}
  6994. return
  6995. }
  6996. // 插入网页
  6997. 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>
  6998. <div id="Autopage_number" title="1. 此处数字为 [当前页码] (可在脚本菜单中关闭)&#10;&#10;2. 鼠标左键点击此处 [临时暂停本页自动无缝翻页](再次点击可恢复)">${pageNum._now}</div>`
  6999. document.documentElement.insertAdjacentHTML('beforeend', _html);
  7000. if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
  7001. // 点击事件(临时暂停翻页)
  7002. getCSS('#Autopage_number').onclick = function () {
  7003. if (pausePage) {this.style = 'color: #FF5722 !important; font-style: italic !important;';} else {this.style = '';}
  7004. pausePage = !pausePage;
  7005. if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
  7006. };
  7007. status = getCSS('#Autopage_number');
  7008. set();
  7009. }
  7010. // 监听储存当前页码的对象值的变化
  7011. function set(){
  7012. Object.defineProperty(pageNum, 'now', {
  7013. set: function(value) {
  7014. this._now = value;
  7015. if (status) status.textContent = value;
  7016. }
  7017. });
  7018. }
  7019. function del(){
  7020. if (!status) return
  7021. status.style.display = 'none';
  7022. }
  7023. }
  7024. // 菜单开关
  7025. function menu_switch(menu_status, Name, Tips) {
  7026. if (menu_status === true){
  7027. GM_setValue(Name, false);
  7028. } else {
  7029. GM_setValue(Name, true);
  7030. }
  7031. if (Name === 'menu_page_number') {
  7032. if (menu_status === true){pageNumber('del');} else {pageNumber('add');}
  7033. registerMenuCommand(); // 重新注册(不可用)脚本菜单
  7034. } else {
  7035. location.reload();}
  7036. };
  7037. // 生成 SiteTypeID
  7038. function setSiteTypeID() {
  7039. let num = 0
  7040. for (let val in DBSite) {
  7041. DBSite[val].SiteTypeID = num = num + 1;
  7042. }
  7043. }
  7044. // 获取 Cookie
  7045. function getCookie(name) {
  7046. if (!name) return ''
  7047. let arr = document.cookie.split(';');
  7048. name += '='
  7049. for (let i=0; i<arr.length; i++) {
  7050. let now = arr[i].trim();
  7051. if (now.indexOf(name) == 0) return now.substring(name.length, now.length);
  7052. }
  7053. return '';
  7054. }
  7055. // 插入位置
  7056. function getAddTo(num) {
  7057. switch (num) {
  7058. case 1:
  7059. return 'beforebegin'; break;
  7060. case 2:
  7061. return 'afterbegin'; break;
  7062. case 3:
  7063. case 6:
  7064. return 'beforeend'; break;
  7065. case 4:
  7066. case 5:
  7067. return 'afterend'; break;
  7068. }
  7069. }
  7070. // 滚动条事件
  7071. function windowScroll(fn1) {
  7072. var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  7073. fn = fn1 || function () {};
  7074. setTimeout(function () { // 延时 1 秒执行,避免刚载入到页面就触发翻页事件
  7075. window.addEventListener('scroll', function (e) {
  7076. var afterScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  7077. delta = afterScrollTop - beforeScrollTop;
  7078. if (delta == 0) return false;
  7079. fn(delta > 0 ? 'down' : 'up', e);
  7080. beforeScrollTop = afterScrollTop;
  7081. }, false);
  7082. }, 1000)
  7083. }
  7084. // 自定义 locationChange 事件(用来监听 URL 变化)
  7085. function addLocationchange() {
  7086. history.pushState = ( f => function pushState(){
  7087. var ret = f.apply(this, arguments);
  7088. window.dispatchEvent(new Event('pushstate'));
  7089. window.dispatchEvent(new Event('locationChange'));
  7090. return ret;
  7091. })(history.pushState);
  7092.  
  7093. history.replaceState = ( f => function replaceState(){
  7094. var ret = f.apply(this, arguments);
  7095. window.dispatchEvent(new Event('replacestate'));
  7096. window.dispatchEvent(new Event('locationChange'));
  7097. return ret;
  7098. })(history.replaceState);
  7099.  
  7100. window.addEventListener('popstate',()=>{
  7101. window.dispatchEvent(new Event('locationChange'))
  7102. });
  7103. }
  7104. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址