自动无缝翻页

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

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