自动无缝翻页

无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP、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(以上仅一小部分,更多的写不下了...

当前为 2022-01-18 提交的版本,查看 最新版本

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