自动无缝翻页

无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、龙的天空、起点小说、煎蛋网、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、FitGirl、片库、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、真不卡影院、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画DB、HiComic、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一部分,更多的写不下了...

目前為 2021-10-05 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name 自动无缝翻页
  3. // @version 2.7.0
  4. // @author X.I.U
  5. // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、微博、NGA、V2EX、龙的天空、起点小说、煎蛋网、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、FitGirl、片库、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、真不卡影院、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画DB、HiComic、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一部分,更多的写不下了...
  6. // @match *://*/*
  7. // @icon https://i.loli.net/2021/03/07/rdijeYm83pznxWq.png
  8. // @grant GM_xmlhttpRequest
  9. // @grant GM_registerMenuCommand
  10. // @grant GM_unregisterMenuCommand
  11. // @grant GM_openInTab
  12. // @grant GM_getValue
  13. // @grant GM_setValue
  14. // @grant GM_notification
  15. // @grant unsafeWindow
  16. // @license GPL-3.0 License
  17. // @run-at document-end
  18. // @namespace https://github.com/XIU2/UserScript
  19. // @supportURL https://github.com/XIU2/UserScript
  20. // @homepageURL https://github.com/XIU2/UserScript
  21. // ==/UserScript==
  22.  
  23. (function() {
  24. 'use strict';
  25. var menuAll = [
  26. ['menu_disable', '✅ 已启用 (点击对当前网站禁用)', '❌ 已禁用 (点击对当前网站启用)', []],
  27. ['menu_discuz_thread_page', '帖子内自动翻页 (仅论坛)', '帖子内自动翻页 (仅论坛)', true],
  28. ['menu_page_number', '显示当前页码及点击暂停翻页', '显示当前页码及点击暂停翻页', true],
  29. ['menu_pause_page', '左键双击网页空白处暂停翻页', '左键双击网页空白处暂停翻页', false]
  30. ], menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, SiteType, pausePage = true, pageNum = {now: 1, _now: 1}, locationchange = false, nowLocation = '', forumWebsite = ['cs.rin.ru', 'www.flyert.com', 'bbs.pediy.com', 'www.libaclub.com'];
  31. for (let i=0;i<menuAll.length;i++){ // 如果读取到的值为 null 就写入默认值
  32. if (GM_getValue(menuAll[i][0]) == null){GM_setValue(menuAll[i][0], menuAll[i][3])};
  33. }
  34. registerMenuCommand();
  35. if (menuId.length < 2) {return}
  36. // 注册(不可用)脚本菜单
  37. function registerMenuCommand() {
  38. if (menuId.length != []){
  39. for (let i=0;i<menuId.length;i++){
  40. GM_unregisterMenuCommand(menuId[i]);
  41. }
  42. }
  43. for (let i=0;i<menuAll.length;i++) { // 循环注册(不可用)脚本菜单
  44. menuAll[i][3] = GM_getValue(menuAll[i][0]);
  45. if (menuAll[i][0] === 'menu_disable') { // 启用/禁用
  46.  
  47. if (menu_disable('check')) { // 当前网站在禁用列表中
  48. menuId[i] = GM_registerMenuCommand(`${menuAll[i][2]}`, function(){menu_disable('del')});
  49. return
  50. } else { // // 不在禁用列表中
  51. webType = doesItSupport(); // 判断网站类型(即是否支持),顺便直接赋值
  52. if (webType === 0) {
  53. GM_registerMenuCommand('❌ 当前网站暂不支持 [点击申请支持]', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://gf.qytechs.cn/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
  54. console.info('[自动无缝翻页] - 不支持当前网站 [ ' + location.href + ' ],欢迎申请支持: https://github.com/XIU2/UserScript / https://gf.qytechs.cn/zh-CN/scripts/96880/feedback');
  55. return
  56. } else if (webType === -1) {
  57. return
  58. }
  59. menuId[i] = GM_registerMenuCommand(`${menuAll[i][1]}`, function(){menu_disable('add')});
  60. }
  61.  
  62. } else if (menuAll[i][0] === 'menu_discuz_thread_page') { // 帖子内自动翻页 (仅论坛)
  63.  
  64. if (webType === 2 || forumWebsite.indexOf(location.host) > -1) {
  65. menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
  66. }
  67.  
  68. } else {
  69. menuId[i] = GM_registerMenuCommand(`${menuAll[i][3]?'✅':'❌'} ${menuAll[i][1]}`, function(){menu_switch(menuAll[i][3], menuAll[i][0], menuAll[i][2])});
  70. }
  71. }
  72. menuId[menuId.length] = GM_registerMenuCommand('💬 反馈 & 欢迎申请支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://gf.qytechs.cn/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
  73. }
  74.  
  75. // 网站规则
  76. function setDBSite() {
  77. /*
  78. 自动翻页规则
  79. locationchange: 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则
  80. type:
  81. 1 = 由脚本实现自动无缝翻页
  82. 2 = 网站自带了自动无缝翻页功能,只需要点击下一页按钮即可
  83. nextText: 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页(避免一瞬间加载太多次下一页)
  84. nextTextOf: 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页(避免一瞬间加载太多次下一页)
  85. nextHTML: 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页(避免一瞬间加载太多次下一页)
  86. intervals: 点击间隔时间,对于没有按钮文字变化的按钮,可以手动指定间隔时间,单位:ms
  87. 3 = 依靠元素距离可视区域底部的距离来触发翻页
  88. 4 = 部分简单的动态加载类网站(暂时)
  89. insertPosition:
  90. 1 = 插入该元素本身的前面;
  91. 2 = 插入该元素当中,第一个子元素前面;
  92. 3 = 插入该元素当中,最后一个子元素后面;
  93. 4 = 插入该元素本身的后面;
  94. 5 = 插入该元素末尾(针对文本)
  95. mimeType: 网站编码
  96. scriptType: 单独插入 <script> 标签
  97. 1 = 下一页的所有 <script> 标签
  98. 2 = 下一页主体元素同级 <script> 标签
  99. 3 = 下一页主体元素同级 <script> 标签(远程文件)
  100. 4 = 下一页主体元素子元素 <script> 标签
  101. history: 添加历史记录 并 修改当前 URL
  102. forceHTTPS: 下一页链接强制 HTTPS
  103. scrollDelta:数值越大,滚动条触发点越靠上(越早开始翻页),一般是访问网页速度越慢,该值就需要越大(如果 Type = 3,则相反)
  104. function:
  105. before = 插入前执行函数;
  106. after = 插入后执行函数;
  107. parameter = 参数
  108. */
  109. DBSite = {
  110. discuz_forum: {
  111. SiteTypeID: 0,
  112. pager: {
  113. type: 2,
  114. nextLink: '#autopbn',
  115. nextTextOf: '下一页',
  116. scrollDelta: 1500
  117. }
  118. }, // Discuz! - 各版块帖子列表(自带无缝加载下一页按钮的)
  119. discuz_guide: {
  120. SiteTypeID: 0,
  121. pager: {
  122. type: 1,
  123. nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]',
  124. pageElement: 'css;#threadlist table > tbody[id^="normalthread_"]',
  125. insertPosition: ['id("threadlist")//table/tbody[starts-with(@id, "normalthread_")]/parent::table', 3],
  126. replaceE: 'css;.pg, .pages',
  127. scrollDelta: 1000
  128. }
  129. }, // Discuz! - 导读页 及 各版块帖子列表(不带无缝加载下一页按钮的)
  130. discuz_waterfall: {
  131. SiteTypeID: 0,
  132. pager: {
  133. type: 1,
  134. nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]',
  135. pageElement: 'css;#waterfall > li',
  136. insertPosition: ['css;#waterfall', 3],
  137. replaceE: 'css;.pg, .pages',
  138. scrollDelta: 1000
  139. }
  140. }, // Discuz! - 图片模式的各版块帖子列表(不带无缝加载下一页按钮的)
  141. discuz_thread: {
  142. SiteTypeID: 0,
  143. pager: {
  144. type: 1,
  145. nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]',
  146. pageElement: 'css;#postlist > div[id^="post_"]',
  147. insertPosition: ['css;#postlist', 3],
  148. replaceE: 'css;.pg, .pages',
  149. scrollDelta: 1000
  150. },
  151. function: {
  152. before: src_functionBefore,
  153. parameter: [0, 'img[file]', 'file']
  154. }
  155. }, // Discuz! - 帖子内
  156. discuz_search: {
  157. SiteTypeID: 0,
  158. pager: {
  159. type: 1,
  160. nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]',
  161. pageElement: 'css;#threadlist > ul',
  162. insertPosition: ['css;#threadlist', 3],
  163. replaceE: 'css;.pg, .pages',
  164. scrollDelta: 1000
  165. }
  166. }, // Discuz! - 搜索页
  167. discuz_youspace: {
  168. SiteTypeID: 0,
  169. pager: {
  170. type: 1,
  171. nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]',
  172. pageElement: 'css;tbody > tr:not(.th)',
  173. insertPosition: ['css;tbody', 3],
  174. replaceE: 'css;.pg, .pages',
  175. scrollDelta: 1000
  176. }
  177. }, // Discuz! - 回复页、主题页(别人的)
  178. discuz_collection: {
  179. SiteTypeID: 0,
  180. pager: {
  181. type: 1,
  182. nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))] | //a[@class="next"][@href][not(contains(@href, "javascript"))]',
  183. pageElement: 'css;#ct .bm_c table > tbody',
  184. insertPosition: ['css;#ct .bm_c table', 3],
  185. replaceE: 'css;.pg, .pages',
  186. scrollDelta: 1000
  187. }
  188. }, // Discuz! - 淘帖页
  189. flarum: {
  190. SiteTypeID: 0,
  191. functionStart: function() {locationchange = true;if (location.pathname.indexOf('/d/') === -1) {curSite = DBSite.flarum;}},
  192. pager: {
  193. type: 2,
  194. nextLink: '.DiscussionList-loadMore > button[title]',
  195. intervals: 500,
  196. scrollDelta: 1000
  197. }
  198. }, // Flarum
  199. dux: {
  200. SiteTypeID: 0,
  201. pager: {
  202. type: 1,
  203. nextLink: '//li[@class="next-page"]/a[@href]',
  204. pageElement: 'css;.content > article',
  205. insertPosition: ['css;.content > .pagination', 1],
  206. replaceE: 'css;.content > .pagination',
  207. scrollDelta: 1500
  208. },
  209. function: {
  210. before: src_functionBefore,
  211. parameter: [0, 'img.thumb[data-src]', 'data-src']
  212. }
  213. }, // WordPress 主题
  214. baidu: {
  215. SiteTypeID: 0,
  216. host: 'www.baidu.com',
  217. functionStart: function() {curSite = DBSite.baidu; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}';},
  218. pager: {
  219. type: 1,
  220. nextLink: 'id("page")//a[contains(text(),"下一页")][@href]',
  221. pageElement: 'css;#content_left > *',
  222. insertPosition: ['css;#content_left', 3],
  223. replaceE: 'css;#page',
  224. scrollDelta: 1200
  225. }
  226. }, // 百度 搜素
  227. google: {
  228. SiteTypeID: 0,
  229. host: /.google./,
  230. functionStart: function() {if (location.pathname === '/search') {
  231. curSite = DBSite.google;
  232. } else if (location.pathname === '/scholar') {
  233. curSite = DBSite.google_scholar;
  234. }},
  235. pager: {
  236. type: 1,
  237. nextLink: 'id("pnnext")[@href]',
  238. pageElement: 'css;#res > *',
  239. insertPosition: ['css;#res', 3],
  240. replaceE: 'id("navcnt") | id("rcnt")//div[@role="navigation"]',
  241. scriptType: 1,
  242. scrollDelta: 3000
  243. }
  244. }, // 谷歌 搜索
  245. bing: {
  246. SiteTypeID: 0,
  247. host: ['www.bing.com','cn.bing.com'],
  248. functionStart: function() {if (location.pathname === '/search') {
  249. curSite = DBSite.bing; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.b_imagePair.square_mp > .inner {display: none;}';
  250. } else if (location.pathname === '/academic/search') {
  251. curSite = DBSite.bing_academic; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'li.aca_algo_count {display: none !important;}';
  252. }},
  253. pager: {
  254. type: 1,
  255. nextLink: '//a[contains(@class,"sb_pagN")][@href]',
  256. pageElement: 'css;#b_results > li:not(.b_msg):not(.b_pag):not(#mfa_root)',
  257. insertPosition: ['css;#b_results > .b_pag', 1],
  258. replaceE: 'css;#b_results > .b_pag',
  259. scrollDelta: 1500
  260. }
  261. }, // 必应 搜索
  262. sogou: {
  263. SiteTypeID: 0,
  264. host: 'www.sogou.com',
  265. functionStart: function() {if (location.pathname != '/') {curSite = DBSite.sogou;}},
  266. pager: {
  267. type: 1,
  268. nextLink: 'css;#sogou_next',
  269. pageElement: 'css;.results > *',
  270. insertPosition: ['css;.results', 3],
  271. replaceE: 'css;#pagebar_container',
  272. scriptType: 4,
  273. scrollDelta: 1200
  274. }
  275. }, // 搜狗 搜索
  276. sogou_weixin: {
  277. SiteTypeID: 0,
  278. host: 'weixin.sogou.com',
  279. functionStart: function() {if (location.pathname === '/') {
  280. curSite = DBSite.sogou_weixin;
  281. } else if (location.pathname === '/weixin') {
  282. curSite = DBSite.sogou_weixin_search;
  283. }},
  284. pager: {
  285. type: 2,
  286. nextLink: '#look-more',
  287. intervals: 1000,
  288. scrollDelta: 1000
  289. }
  290. }, // 搜狗微信 - 首页
  291. sogou_weixin_search: {
  292. SiteTypeID: 0,
  293. pager: {
  294. type: 1,
  295. nextLink: 'css;#sogou_next',
  296. pageElement: 'css;.news-box > ul[class*="news-list"] > li',
  297. insertPosition: ['css;.news-box > ul[class*="news-list"]', 3],
  298. replaceE: 'css;#pagebar_container',
  299. scrollDelta: 1000
  300. }
  301. }, // 搜狗微信 - 搜索
  302. toutiao: {
  303. SiteTypeID: 0,
  304. host: ['www.toutiao.com', 'so.toutiao.com'],
  305. functionStart: function() {if (location.hostname != 'www.toutiao.com') {if (location.pathname === '/search') {curSite = DBSite.toutiao;}}},
  306. pager: {
  307. type: 1,
  308. nextLink: '//div[contains(@class, "-pagination")]/a[contains(string(), "下一页")]',
  309. pageElement: 'css;div[class*="-result-list"] > .result-content[data-i]',
  310. insertPosition: ['css;div[class*="-result-list"] > .result-content:not([data-i]):last-child', 1],
  311. replaceE: 'css;div[class*="-pagination"]',
  312. scrollDelta: 1200
  313. },
  314. function: {
  315. before: toutiao_functionBefore
  316. }
  317. }, // 头条 搜索
  318. so: {
  319. SiteTypeID: 0,
  320. host: 'www.so.com',
  321. functionStart: function() {if (location.pathname != '/') {curSite = DBSite.so; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'img {opacity: 1 !important;}'}},
  322. pager: {
  323. type: 1,
  324. nextLink: 'css;#snext[href]',
  325. pageElement: 'css;ul.result > li, style:not(src)',
  326. insertPosition: ['css;ul.result', 3],
  327. replaceE: 'css;#page',
  328. scrollDelta: 1200
  329. },
  330. function: {
  331. before: src_functionBefore,
  332. parameter: [0, 'img[data-isrc]', 'data-isrc']
  333. }
  334. }, // 360 搜索
  335. duckduckgo: {
  336. SiteTypeID: 0,
  337. host: 'duckduckgo.com',
  338. functionStart: function() {
  339. if (getCookie('av') != '1') {
  340. document.cookie='av=1; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 强制开启自带的无缝翻页功能
  341. location.reload(); // 刷新网页
  342. }
  343. },
  344. }, // DuckDuckGo 搜索
  345. startpage: {
  346. SiteTypeID: 0,
  347. host: 'www.startpage.com',
  348. functionStart: function() {if (location.pathname.indexOf('/search') > -1) {curSite = DBSite.startpage;}},
  349. pager: {
  350. type: 1,
  351. nextLink: startpage_functionNext,
  352. pageElement: 'css;section.w-gl--desktop > div',
  353. insertPosition: ['css;section.w-gl--desktop', 3],
  354. replaceE: 'css;.pagination',
  355. scrollDelta: 1500
  356. }
  357. }, // Startpage 搜索
  358. yandex: {
  359. SiteTypeID: 0,
  360. host: 'yandex.com',
  361. functionStart: function() {if (location.pathname === '/search/') {curSite = DBSite.yandex;}},
  362. pager: {
  363. type: 1,
  364. nextLink: 'css;a.pager__item_kind_next',
  365. pageElement: 'css;#search-result > *, style',
  366. insertPosition: ['css;#search-result', 3],
  367. replaceE: 'css;.pager',
  368. scrollDelta: 1500
  369. }
  370. }, // Yandex 搜索
  371. yahoo: {
  372. SiteTypeID: 0,
  373. host: 'search.yahoo.com',
  374. functionStart: function() {if (location.pathname.indexOf('/search') > -1) {curSite = DBSite.yahoo;}},
  375. pager: {
  376. type: 1,
  377. nextLink: 'css;.pagination a.next[href]',
  378. pageElement: 'css;#web ol > li',
  379. insertPosition: ['css;#web ol', 3],
  380. replaceE: 'css;.pagination',
  381. scrollDelta: 1500
  382. }
  383. }, // Yahoo 搜索
  384. yahoo_jp: {
  385. SiteTypeID: 0,
  386. host: 'search.yahoo.co.jp',
  387. functionStart: function() {if (location.pathname.indexOf('/search') > -1) {curSite = DBSite.yahoo_jp;}},
  388. pager: {
  389. type: 1,
  390. nextLink: 'css;.Pagenation__next > a[href]',
  391. pageElement: 'css;.Contents__innerGroupBody > div',
  392. insertPosition: ['css;.Contents__innerGroupBody', 3],
  393. replaceE: 'css;.Pagenation',
  394. scrollDelta: 1500
  395. }
  396. }, // Yahoo 搜索 (JP)
  397. qwant: {
  398. SiteTypeID: 0,
  399. host: 'www.qwant.com',
  400. functionStart: function() {locationchange = true; if (location.search.indexOf('q=') > -1 && location.search.indexOf('t=web') > -1) {curSite = DBSite.qwant;}},
  401. pager: {
  402. type: 2,
  403. nextLink: 'button[data-testid="buttonShowMore"]',
  404. intervals: 500,
  405. scrollDelta: 1500
  406. }
  407. }, // Qwant 搜索
  408. ecosia: {
  409. SiteTypeID: 0,
  410. host: 'www.ecosia.org',
  411. functionStart: function() {if (location.pathname === '/search') {curSite = DBSite.ecosia;}},
  412. pager: {
  413. type: 1,
  414. nextLink: 'css;nav.pagination a[href][aria-label="Next page"]',
  415. pageElement: 'css;section.mainline > div:not(.related-queries)',
  416. insertPosition: ['css;nav.pagination', 1],
  417. replaceE: 'css;nav.pagination',
  418. scrollDelta: 1500
  419. }
  420. }, // Ecosia 搜索
  421. magi: {
  422. SiteTypeID: 0,
  423. host: 'magi.com',
  424. functionStart: function() {if (location.pathname === '/search') {curSite = DBSite.magi;}},
  425. pager: {
  426. type: 2,
  427. nextLink: '.card[data-type="next"]',
  428. nextText: '加载更多',
  429. scrollDelta: 1500
  430. }
  431. }, // Magi 搜索
  432. baidu_tieba: {
  433. SiteTypeID: 0,
  434. host: 'tieba.baidu.com',
  435. functionStart: function() {if (location.pathname === '/f') {
  436. baidu_tieba_1(); // 右侧悬浮发帖按钮点击事件(解决自动翻页导致无法发帖的问题)
  437. curSite = DBSite.baidu_tieba; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'img.j_retract {margin-top: 0 !important;margin-bottom: 0 !important;}'; // 修复帖子列表中预览图片,在切换下一个/上一个图片时,多出来的图片上下边距
  438. //} else if (location.pathname.indexOf('/p/') > -1) {
  439. //curSite = DBSite.baidu_tieba_post;
  440. } else if (location.pathname === '/f/search/res') {
  441. curSite = DBSite.baidu_tieba_search;
  442. }},
  443. pager: {
  444. type: 4,
  445. nextLink: baidu_tieba_functionNext,
  446. pageElement: 'css;#thread_list > li',
  447. insertPosition: ['css;#thread_list', 3],
  448. insertElement: baidu_tieba_insertElement,
  449. replaceE: 'css;#frs_list_pager',
  450. intervals: 3000,
  451. scrollDelta: 2000
  452. },
  453. function: {
  454. before: baidu_tieba_functionBefore
  455. }
  456. }, // 百度贴吧 - 帖子列表
  457. baidu_tieba_post: {
  458. SiteTypeID: 0,
  459. pager: {
  460. type: 1,
  461. nextLink: '//li[contains(@class,"pb_list_pager")]/a[contains(text(),"下一页")][@href]',
  462. pageElement: 'css;#j_p_postlist > div',
  463. insertPosition: ['css;#j_p_postlist', 3],
  464. replaceE: 'css;li.pb_list_pager',
  465. scrollDelta: 1000
  466. }
  467. }, // 百度贴吧 - 帖子内
  468. baidu_tieba_search: {
  469. SiteTypeID: 0,
  470. pager: {
  471. type: 1,
  472. nextLink: '//a[@class="next"][@href]',
  473. pageElement: 'css;#j_p_postlist > *',
  474. insertPosition: ['css;#j_p_postlist', 3],
  475. replaceE: 'css;.pager.pager-search',
  476. scriptType: 1,
  477. scrollDelta: 1000
  478. }
  479. }, // 百度贴吧 - 搜索页
  480. douban_subject_comments: {
  481. SiteTypeID: 0,
  482. host: 'movie.douban.com',
  483. functionStart: function() {if (location.pathname.indexOf('/subject') > -1 && location.pathname.indexOf('/comments') > -1) { // 短评列表
  484. curSite = DBSite.douban_subject_comments;
  485. } else if (location.pathname.indexOf('/subject') > -1 && location.pathname.indexOf('/reviews') > -1) { // 影评列表
  486. curSite = DBSite.douban_subject_reviews;
  487. } else if(location.pathname.indexOf('/subject') > -1 && location.pathname.indexOf('/episode') > -1) { // 电视剧每集评论
  488. curSite = DBSite.douban_subject_episode;
  489. }},
  490. pager: {
  491. type: 1,
  492. nextLink: '//a[@class="next"][@href]',
  493. pageElement: 'css;#comments > .comment-item',
  494. insertPosition: ['css;#paginator', 1],
  495. replaceE: 'css;#paginator',
  496. scrollDelta: 1000
  497. }
  498. }, // 豆瓣 - 短评
  499. douban_subject_reviews: {
  500. SiteTypeID: 0,
  501. pager: {
  502. type: 1,
  503. nextLink: '//link[@rel="next"][@href]',
  504. pageElement: 'css;.review-list > div',
  505. insertPosition: ['css;.review-list', 3],
  506. replaceE: 'css;.paginator',
  507. scrollDelta: 1000
  508. }
  509. }, // 豆瓣 - 影评
  510. douban_subject_episode: {
  511. SiteTypeID: 0,
  512. pager: {
  513. type: 1,
  514. nextLink: '//link[@rel="next"][@href]',
  515. pageElement: 'css;#comments > div',
  516. insertPosition: ['css;#comments', 3],
  517. replaceE: 'css;.paginator',
  518. scrollDelta: 1000
  519. }
  520. }, // 豆瓣 - 剧评
  521. douban_group: {
  522. SiteTypeID: 0,
  523. host: 'www.douban.com',
  524. functionStart: function() {if (location.pathname.indexOf('/group/topic/') > -1) {
  525. curSite = DBSite.douban_group_topic;
  526. } else if (location.pathname.indexOf('/group/explore') > -1) {
  527. curSite = DBSite.douban_group_explore;
  528. } else if (location.pathname.indexOf('/group/') > -1 && location.pathname.indexOf('/discussion') > -1) {
  529. curSite = DBSite.douban_group;
  530. }},
  531. pager: {
  532. type: 1,
  533. nextLink: 'css;span.next > a',
  534. pageElement: 'css;table.olt > tbody > tr:not(.th)',
  535. insertPosition: ['css;table.olt > tbody', 3],
  536. replaceE: 'css;.paginator',
  537. scrollDelta: 1000
  538. }
  539. }, // 豆瓣 - 小组
  540. douban_group_explore: {
  541. SiteTypeID: 0,
  542. pager: {
  543. type: 1,
  544. nextLink: 'css;span.next > a',
  545. pageElement: 'css;#content .article > div > .channel-item',
  546. insertPosition: ['css;#content .article > div', 3],
  547. replaceE: 'css;.paginator',
  548. scrollDelta: 1000
  549. }
  550. }, // 豆瓣 - 小组讨论精选
  551. douban_group_topic: {
  552. SiteTypeID: 0,
  553. pager: {
  554. type: 1,
  555. nextLink: 'css;span.next > a',
  556. pageElement: 'css;#comments > li',
  557. insertPosition: ['css;#comments', 3],
  558. replaceE: 'css;.paginator',
  559. scrollDelta: 1000
  560. }
  561. }, // 豆瓣 - 小组帖子内
  562. weibo_comment: {
  563. SiteTypeID: 0,
  564. host: 'weibo.com',
  565. pager: {
  566. type: 2,
  567. nextLink: 'a[action-type="click_more_comment"]',
  568. nextText: '查看更多c',
  569. scrollDelta: 1000
  570. }
  571. }, // 微博评论
  572. tianya: {
  573. SiteTypeID: 0,
  574. host: 'bbs.tianya.cn',
  575. functionStart: function() {if (location.pathname.indexOf('/list') > -1) {
  576. curSite = DBSite.tianya;
  577. } else if (location.pathname.indexOf('/post') > -1) {
  578. curSite = DBSite.tianya_post;
  579. }},
  580. pager: {
  581. type: 1,
  582. nextLink: '//div[contains(@class, "pages")]/div[@class="links"]/a[contains(text(), "下一页")]',
  583. pageElement: 'css;.tab-bbs-list > tbody:not(:first-of-type)',
  584. insertPosition: ['css;table.tab-bbs-list', 3],
  585. replaceE: '//div[contains(@class, "pages")]',
  586. scrollDelta: 1500
  587. }
  588. }, // 天涯社区
  589. tianya_post: {
  590. SiteTypeID: 0,
  591. pager: {
  592. type: 1,
  593. nextLink: 'a.js-keyboard-next[href]',
  594. pageElement: 'css;.atl-main > div[class="atl-item"]',
  595. insertPosition: ['css;.atl-main', 3],
  596. replaceE: 'css;.atl-pages > form',
  597. scrollDelta: 1500
  598. }
  599. }, // 天涯社区 - 帖子内
  600. nga_thread: {
  601. SiteTypeID: 0,
  602. host: ['bbs.nga.cn', 'ngabbs.com', 'nga.178.com', 'g.nga.cn'],
  603. iframe: true,
  604. functionStart: function() {locationchange = true;
  605. if (location.pathname === '/thread.php') { // 帖子列表
  606. curSite = DBSite.nga_thread;
  607. } else if (location.pathname === '/read.php') { // 帖子内
  608. curSite = DBSite.nga_read;
  609. }},
  610. pager: {
  611. type: 1,
  612. nextLink: 'css;#pagebbtm a[title="下一页"][href]',
  613. pageElement: 'css;#topicrows > tbody, #topicrows > script',
  614. insertPosition: ['css;#topicrows', 3],
  615. replaceE: 'css;div[name="pageball"]',
  616. scriptType: 2,
  617. scrollDelta: 1000
  618. },
  619. function: {
  620. after: nga_thread_functionAfter
  621. }
  622. }, // NGA - 各版块帖子列表
  623. nga_read: {
  624. SiteTypeID: 0,
  625. pager: {
  626. type: 1,
  627. nextLink: 'css;#pagebbtm a[title*="下一页"][href]',
  628. pageElement: 'id("m_posts_c")/table | id("m_posts_c")/script | //script[contains(text(), "commonui.userInfo.setAll")]',
  629. insertPosition: ['css;#m_posts_c', 3],
  630. replaceE: 'css;div[name="pageball"]',
  631. scriptType: 2,
  632. scrollDelta: 1000
  633. }
  634. }, // NGA - 帖子内
  635. v2ex_recent: {
  636. SiteTypeID: 0,
  637. host: ['v2ex.com', 'www.v2ex.com'],
  638. functionStart: function() {if (location.pathname === '/') { // 首页
  639. v2ex_functionAfter('#Main a.topic-link:not([target])');
  640. } else if (location.pathname === '/recent') { // 最近主题页
  641. curSite = DBSite.v2ex_recent;
  642. v2ex_functionAfter('#Main a.topic-link:not([target])');
  643. } else if (location.pathname === '/notifications') { // 提醒消息页
  644. curSite = DBSite.v2ex_notifications;
  645. v2ex_functionAfter('#Main a[href^="/t/"]:not([target])');
  646. } else if (location.pathname === '/balance') { // 账户余额页
  647. curSite = DBSite.v2ex_balance;
  648. } else if (location.pathname.indexOf('/go/') > -1) { // 分类主题页
  649. curSite = DBSite.v2ex_go;
  650. v2ex_functionAfter('#Main a.topic-link:not([target])');
  651. } else if (location.pathname.indexOf('/replies') > -1) { // 用户回复页
  652. curSite = DBSite.v2ex_replies;
  653. v2ex_functionAfter('#Main a[href^="/t/"]:not([target])');
  654. }},
  655. pager: {
  656. type: 1,
  657. nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
  658. pageElement: 'css;.cell.item',
  659. insertPosition: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
  660. replaceE: 'css;#Main > .box > .cell[style]:not(.item) > table',
  661. scrollDelta: 1500
  662. },
  663. function: {
  664. after: v2ex_functionAfter,
  665. parameter: '#Main a.topic-link:not([target])'
  666. }
  667. }, // V2EX - 最近主题页
  668. v2ex_notifications: {
  669. SiteTypeID: 0,
  670. pager: {
  671. type: 1,
  672. nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
  673. pageElement: 'css;#notifications > div',
  674. insertPosition: ['css;#notifications', 3],
  675. replaceE: 'css;#Main > .box > .cell[style] > table',
  676. scrollDelta: 1500
  677. },
  678. function: {
  679. after: v2ex_functionAfter,
  680. parameter: '#Main a[href^="/t/"]:not([target])'
  681. }
  682. }, // V2EX - 提醒消息页
  683. v2ex_replies: {
  684. SiteTypeID: 0,
  685. pager: {
  686. type: 1,
  687. nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
  688. pageElement: '//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]',
  689. insertPosition: ['//div[@id="Main"]//div[@class="box"]//div[@class="cell"][last()]', 1],
  690. replaceE: 'css;#Main > .box > .cell[style] > table',
  691. scrollDelta: 1500
  692. },
  693. function: {
  694. after: v2ex_functionAfter,
  695. parameter: '#Main a[href^="/t/"]:not([target])'
  696. }
  697. }, // V2EX - 用户回复页
  698. v2ex_go: {
  699. SiteTypeID: 0,
  700. pager: {
  701. type: 1,
  702. nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
  703. pageElement: 'css;#TopicsNode > div',
  704. insertPosition: ['css;#TopicsNode', 3],
  705. replaceE: 'css;#Main > .box > .cell[style] > table',
  706. scrollDelta: 1500
  707. },
  708. function: {
  709. after: v2ex_functionAfter,
  710. parameter: '#Main a.topic-link:not([target])'
  711. }
  712. }, // V2EX - 分类主题页
  713. v2ex_balance: {
  714. SiteTypeID: 0,
  715. pager: {
  716. type: 1,
  717. nextLink: '//a[@class="page_current"]/following-sibling::a[1][@href]',
  718. pageElement: 'css;#Main .box > div:not(.cell) > table > tbody > tr:not(:first-child)',
  719. insertPosition: ['css;#Main .box > div:not(.cell) > table > tbody', 3],
  720. replaceE: 'css;#Main > .box > .cell[style] > table',
  721. scrollDelta: 1000
  722. }
  723. }, // V2EX - 账户余额页
  724. lkong: {
  725. SiteTypeID: 0,
  726. host: 'www.lkong.com',
  727. functionStart: function() {if (location.pathname.indexOf('/forum/') > -1) {
  728. curSite = DBSite.lkong;
  729. } else if (location.pathname.indexOf('/thread/') > -1) {
  730. curSite = DBSite.lkong_thread;
  731. }},
  732. pager: {
  733. type: 1,
  734. nextLink: lkong_functionNext,
  735. pageElement: '//div[@class="main-title"]/parent::div/parent::div | //head/style[@data-emotion-css]',
  736. insertPosition: ['//div[@class="main-title"][1]/parent::div/parent::div/parent::div', 3],
  737. replaceE: 'css;ul.ant-pagination',
  738. intervals: 500,
  739. scrollDelta: 1200
  740. }
  741. }, // 龙的天空 - 各版块帖子列表
  742. lkong_thread: {
  743. SiteTypeID: 0,
  744. pager: {
  745. type: 1,
  746. nextLink: lkong_functionNext,
  747. pageElement: '//div[@class="main-content"]/parent::div | //head/style[@data-emotion-css]',
  748. insertPosition: ['//div[@class="main-content"][1]/parent::div/parent::div', 3],
  749. replaceE: 'css;ul.ant-pagination',
  750. intervals: 500,
  751. scrollDelta: 1200
  752. }
  753. }, // 龙的天空 - 帖子内
  754. pediy_forum: {
  755. SiteTypeID: 0,
  756. host: 'bbs.pediy.com',
  757. functionStart: function() {if (location.pathname.indexOf('/forum-') > -1) {
  758. curSite = DBSite.pediy_forum;
  759. } else if (location.pathname.indexOf('/thread-') > -1) {
  760. if (GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.pediy_thread;}
  761. }},
  762. pager: {
  763. type: 1,
  764. nextLink: '//ul[contains(@class, "pagination")]//a[contains(text(), "▶")]',
  765. pageElement: 'css;table.threadlist > tbody > tr',
  766. insertPosition: ['css;table.threadlist > tbody', 3],
  767. replaceE: 'css;ul.pagination',
  768. scrollDelta: 1500
  769. }
  770. }, // 看雪论坛 - 各版块帖子列表
  771. pediy_thread: {
  772. SiteTypeID: 0,
  773. pager: {
  774. type: 1,
  775. nextLink: '//ul[contains(@class, "pagination")]//a[contains(text(), "▶")]',
  776. pageElement: 'css;table.postlist > tbody > tr[data-pid]',
  777. insertPosition: ['css;table.postlist > tbody > tr:not([data-pid])', 1],
  778. replaceE: 'css;ul.pagination',
  779. scrollDelta: 1500
  780. }
  781. }, // 看雪论坛 - 帖子内
  782. kdslife: {
  783. SiteTypeID: 0,
  784. host: 'club.kdslife.com',
  785. functionStart: function() {
  786. if (location.pathname.indexOf('/f_') > -1) {
  787. curSite = DBSite.kdslife;
  788. } else if (location.pathname.indexOf('/t_') > -1) {
  789. curSite = DBSite.kdslife_t;
  790. }},
  791. pager: {
  792. type: 1,
  793. nextLink: '//div[@class="fr i3_r"]/a[@href][contains(text(), "后一页")]',
  794. pageElement: 'css;ul.main_List > li.i2:not(.h_bg)',
  795. insertPosition: ['css;ul.main_List > li.i3', 1],
  796. replaceE: 'css;ul.main_List > li.i3',
  797. scrollDelta: 1000
  798. }
  799. }, // 宽带山论坛
  800. kdslife_t: {
  801. SiteTypeID: 0,
  802. pager: {
  803. type: 1,
  804. nextLink: '//div[@class="pages"]/a[contains(text(), ">>")]',
  805. pageElement: 'css;#reply_list_panel > *, script[src*="ui/js/kds.js"]',
  806. insertPosition: ['css;#reply_list_panel', 3],
  807. replaceE: 'css;.pages',
  808. scriptType: 3,
  809. scrollDelta: 1000
  810. }
  811. }, // 宽带山论坛 - 帖子内
  812. libaclub: {
  813. SiteTypeID: 0,
  814. host: 'www.libaclub.com',
  815. functionStart: function() {
  816. if (location.pathname === '/' || location.pathname.indexOf('/date_') > -1) {
  817. curSite = DBSite.libaclub;
  818. } else if (location.pathname.indexOf('/f_') > -1) {
  819. curSite = DBSite.libaclub_f;
  820. } else if (location.pathname.indexOf('/t_') > -1 || location.pathname.indexOf('/reply_') > -1) {
  821. curSite = DBSite.libaclub_t;
  822. } else if (location.pathname.indexOf('/prt_') > -1) {
  823. curSite = DBSite.libaclub_prt;
  824. } else if (location.pathname === '/facade.php') {
  825. curSite = DBSite.libaclub_search;
  826. }
  827. document.lastElementChild.appendChild(document.createElement('style')).textContent = 'li.ui-list-merchant-ad, .ui-nav-appImage {display: none !important;}';},
  828. pager: {
  829. type: 1,
  830. nextLink: '//div[@class="ui-crumbs-more"]/a[@class="fn-link"][1]',
  831. pageElement: 'css;ul.ui-list > li:not(.ui-list-item-head):not(.ui-list-merchant-ad)',
  832. insertPosition: ['css;ul.ui-list', 3],
  833. replaceE: 'css;div.ui-crumbs-more',
  834. scrollDelta: 1200
  835. }
  836. }, // 篱笆网论坛
  837. libaclub_f: {
  838. SiteTypeID: 0,
  839. pager: {
  840. type: 1,
  841. nextLink: '//div[@class="ui-paging"]/a[@class="ui-paging-next"]',
  842. pageElement: 'css;ul.ui-list > li:not(.ui-list-item-head):not(.ui-list-merchant-ad)',
  843. insertPosition: ['css;ul.ui-list', 3],
  844. replaceE: 'css;div.ui-paging',
  845. scrollDelta: 1200
  846. }
  847. }, // 篱笆网论坛 - 各版块帖子列表
  848. libaclub_t: {
  849. SiteTypeID: 0,
  850. pager: {
  851. type: 1,
  852. nextLink: 'css;a.ui-paging-next',
  853. pageElement: 'css;.ui-box-content > div.ui-topic, .ui-box-content > a[name]',
  854. insertPosition: ['css;.ui-box-content', 3],
  855. replaceE: 'css;div.ui-paging',
  856. scrollDelta: 1500
  857. }
  858. }, // 篱笆网论坛 - 帖子内
  859. libaclub_prt: {
  860. SiteTypeID: 0,
  861. pager: {
  862. type: 1,
  863. nextLink: 'css;a.ui-paging-next',
  864. pageElement: 'css;ul.ui-list > li',
  865. insertPosition: ['css;ul.ui-list', 3],
  866. replaceE: 'css;div.ui-paging',
  867. scrollDelta: 2000
  868. }
  869. }, // 篱笆网论坛 - 帖子内 - 打印版
  870. libaclub_search: {
  871. SiteTypeID: 0,
  872. pager: {
  873. type: 1,
  874. nextLink: '//div[@class="ui-page"]/a[contains(text(), "下一页")]',
  875. pageElement: 'css;.ui-box-main > ul.ui-list > li',
  876. insertPosition: ['css;.ui-box-main > ul.ui-list', 3],
  877. replaceE: 'css;div.ui-page',
  878. scrollDelta: 1200
  879. }
  880. }, // 篱笆网论坛 - 搜索页
  881. lieyou: {
  882. SiteTypeID: 0,
  883. host: 'bbs.lieyou888.com',
  884. functionStart: function() {if (location.pathname.indexOf('/forum') > -1) {curSite = DBSite.lieyou;}},
  885. pager: {
  886. type: 1,
  887. nextLink: '//div[contains(@class, "_pageNav")]/a[@href][contains(text(), "下一页")]',
  888. pageElement: 'css;ul.gb-bbs-list > li',
  889. insertPosition: ['css;ul.gb-bbs-list', 3],
  890. replaceE: 'css;._pageNav',
  891. scrollDelta: 1000
  892. },
  893. function: {
  894. before: src_functionBefore,
  895. parameter: [0, 'img[original]', 'original']
  896. }
  897. }, // 芥子空间论坛
  898. xcar_forumdisplay: {
  899. SiteTypeID: 0,
  900. host: 'www.xcar.com.cn',
  901. functionStart: function() {if (location.pathname === '/bbs/forumdisplay.php') {curSite = DBSite.xcar_forumdisplay}},
  902. pager: {
  903. type: 1,
  904. nextLink: 'css;a.page_down',
  905. pageElement: 'css;.table-section > dl:not(.table_head)',
  906. insertPosition: ['css;.table-section', 3],
  907. replaceE: 'css;.forumList_page',
  908. scrollDelta: 2000
  909. }
  910. }, // 爱卡汽车网论坛 - 各版块帖子列表
  911. flyert_forumdisplay: {
  912. SiteTypeID: 0,
  913. host: 'www.flyert.com',
  914. functionStart: function() {if (location.search.indexOf('mod=forumdisplay') > -1) {
  915. curSite = DBSite.flyert_forumdisplay;
  916. } else if (location.search.indexOf('mod=viewthread') > -1) {
  917. if (GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.flyert_viewthread;}
  918. }},
  919. pager: {
  920. type: 1,
  921. nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))]',
  922. pageElement: 'css;#threadlist table > tbody[id^="normalthread_"]',
  923. insertPosition: ['id("threadlist")//table/tbody[starts-with(@id, "normalthread_")]/parent::table', 3],
  924. replaceE: 'css;.pg',
  925. scrollDelta: 2500
  926. }
  927. }, // 飞客网论坛 - 各版块帖子列表
  928. flyert_viewthread: {
  929. SiteTypeID: 0,
  930. pager: {
  931. type: 1,
  932. nextLink: '//a[@class="nxt"][@href][not(contains(@href, "javascript"))]',
  933. pageElement: 'css;#postlist > .comiis_viewbox',
  934. insertPosition: ['css;#postlist', 3],
  935. replaceE: 'css;.comiis_pgs > .pg',
  936. scrollDelta: 3000
  937. }
  938. }, // 飞客网论坛 - 帖子内
  939. adnmb3: {
  940. SiteTypeID: 0,
  941. host: 'adnmb3.com',
  942. functionStart: function() {
  943. if (location.pathname.indexOf('/m/f/') > -1) {
  944. curSite = DBSite.adnmb3_mf;
  945. } else if (location.pathname.indexOf('/m/t/') > -1) {
  946. curSite = DBSite.adnmb3_mt;
  947. } else if (location.pathname.indexOf('/f/') > -1 || location.pathname.indexOf('/Forum/') > -1) {
  948. curSite = DBSite.adnmb3;
  949. } else if (location.pathname.indexOf('/t/') > -1) {
  950. curSite = DBSite.adnmb3_t;
  951. }},
  952. pager: {
  953. type: 1,
  954. nextLink: '//ul[contains(@class, "pagination")]//a[contains(text(), "下一页")]',
  955. pageElement: 'css;.h-threads-list > *, script[src$="/h.desktop.js"]',
  956. insertPosition: ['css;.h-threads-list', 3],
  957. replaceE: '//ul[contains(@class, "pagination")]',
  958. scriptType: 3,
  959. scrollDelta: 1500
  960. }
  961. }, // A 岛
  962. adnmb3_t: {
  963. SiteTypeID: 0,
  964. pager: {
  965. type: 1,
  966. nextLink: '//ul[contains(@class, "pagination")]//a[contains(text(), "下一页")]',
  967. pageElement: 'css;.h-threads-list > .h-threads-item > .h-threads-item-replys, script[src$="/h.desktop.js"]',
  968. insertPosition: ['css;.h-threads-list > .h-threads-item', 3],
  969. replaceE: '//ul[contains(@class, "pagination")]',
  970. scriptType: 3,
  971. scrollDelta: 1500
  972. }
  973. }, // A 岛 - 帖子内
  974. adnmb3_mf: {
  975. SiteTypeID: 0,
  976. pager: {
  977. type: 1,
  978. nextLink: '//li[contains(@class, "pagination-next")]//a[contains(text(), "下一页")]',
  979. pageElement: '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"]',
  980. insertPosition: ['css;#h-threads-pagination', 1],
  981. replaceE: 'css;#h-threads-pagination',
  982. scriptType: 3,
  983. scrollDelta: 1500
  984. }
  985. }, // A 岛 - 帖子列表(手机版)
  986. adnmb3_mt: {
  987. SiteTypeID: 0,
  988. pager: {
  989. type: 1,
  990. nextLink: '//li[contains(@class, "pagination-next")]//a[contains(text(), "下一页")]',
  991. pageElement: 'css;.h-threads-replylist > div, script[src$="/h.mobile.js"]',
  992. insertPosition: ['css;.h-threads-replylist', 3],
  993. replaceE: 'css;#h-threads-pagination',
  994. scriptType: 3,
  995. scrollDelta: 1500
  996. }
  997. }, // A 岛 - 帖子内(手机版)
  998. jandan: {
  999. SiteTypeID: 0,
  1000. host: 'jandan.net',
  1001. functionStart: function() {if (location.pathname === '/' || location.pathname.indexOf('/page/') > -1) {
  1002. curSite = DBSite.jandan;
  1003. } else if (location.pathname === '/dzh') {
  1004. curSite = DBSite.jandan_dzh;
  1005. } else {
  1006. curSite = DBSite.jandan_comment;
  1007. }},
  1008. pager: {
  1009. type: 1,
  1010. nextLink: '//div[@class="wp-pagenavi"]/a[contains(text(), "下一页") or contains(text(), "更多文章")]',
  1011. pageElement: 'css;#content > .list-post',
  1012. insertPosition: ['css;.wp-pagenavi', 1],
  1013. replaceE: 'css;.wp-pagenavi, #nav_prev',
  1014. scrollDelta: 1500
  1015. },
  1016. function: {
  1017. before: src_functionBefore,
  1018. parameter: [0, 'img[data-original]', 'data-original']
  1019. }
  1020. }, // 煎蛋网
  1021. jandan_comment: {
  1022. SiteTypeID: 0,
  1023. pager: {
  1024. type: 1,
  1025. nextLink: 'css;a.previous-comment-page',
  1026. pageElement: 'css;ol.commentlist > li[id^="comment-"], script[src^="//cdn.jandan.net/static/min/"]',
  1027. insertPosition: ['css;ol.commentlist', 3],
  1028. replaceE: 'css;.cp-pagenavi, #nav_prev',
  1029. scriptType: 3,
  1030. scrollDelta: 1500
  1031. }
  1032. }, // 煎蛋网
  1033. jandan_dzh: {
  1034. SiteTypeID: 0,
  1035. pager: {
  1036. type: 2,
  1037. nextLink: '.show_more',
  1038. intervals: 1500,
  1039. scrollDelta: 1500
  1040. }
  1041. }, // 煎蛋网 - 大杂烩
  1042. guokr: {
  1043. SiteTypeID: 0,
  1044. host: 'www.guokr.com',
  1045. pager: {
  1046. type: 2,
  1047. nextLink: 'div[class*="LoadMoreWrap"]',
  1048. intervals: 1500,
  1049. scrollDelta: 1500
  1050. }
  1051. }, // 果壳网
  1052. expreview: {
  1053. SiteTypeID: 0,
  1054. host: 'www.expreview.com',
  1055. pager: {
  1056. type: 2,
  1057. nextLink: '#show_article_red_1SHOW',
  1058. intervals: 1500,
  1059. scrollDelta: 1500
  1060. }
  1061. }, // 超能网
  1062. landian: {
  1063. SiteTypeID: 0,
  1064. host: 'www.landian.vip',
  1065. pager: {
  1066. type: 2,
  1067. nextLink: '.load-more > button',
  1068. nextText: '加载更多',
  1069. scrollDelta: 1300
  1070. }
  1071. }, // 蓝点网
  1072. ithome: {
  1073. SiteTypeID: 0,
  1074. host: 'www.ithome.com',
  1075. pager: {
  1076. type: 2,
  1077. nextLink: 'a.more',
  1078. intervals: 1500,
  1079. scrollDelta: 1500
  1080. }
  1081. }, // IT 之家
  1082. _58pic: {
  1083. SiteTypeID: 0,
  1084. host: 'www.58pic.com',
  1085. functionStart: function() {document.lastElementChild.appendChild(document.createElement('style')).textContent = '.qt-model-t, .qtw-card.place-box.is-one, .search-v3-row .search-v3-back {display: none !important;}'; // 隐藏登录(不可用)弹窗等
  1086. if (location.pathname.indexOf('/tupian/') > -1) {
  1087. curSite = DBSite._58pic; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.qtw-card.place-box.is-two {display: none !important;}'; // 隐藏末尾很大的 [下一页] 按钮
  1088. } else if (location.pathname.indexOf('/c/') > -1) {
  1089. curSite = DBSite._58pic_c;
  1090. }},
  1091. pager: {
  1092. type: 1,
  1093. nextLink: '//div[contains(@class,"page-box")]//a[text()="下一页"][@href]',
  1094. pageElement: 'css;.pic-box > .qtw-card',
  1095. insertPosition: ['css;.pic-box', 3],
  1096. replaceE: 'css;.page-box',
  1097. scrollDelta: 2500
  1098. },
  1099. function: {
  1100. before: src_functionBefore,
  1101. parameter: [0, 'img[data-original]', 'data-original']
  1102. }
  1103. }, // 千图网 - 分类/搜索页
  1104. _58pic_c: {
  1105. SiteTypeID: 0,
  1106. pager: {
  1107. type: 1,
  1108. nextLink: '//div[contains(@class,"page-box")]//a[text()="下一页"][@href]',
  1109. pageElement: 'css;.list-box > .qtw-card',
  1110. insertPosition: ['css;.list-box', 3],
  1111. replaceE: 'css;.page-box',
  1112. scrollDelta: 4000
  1113. },
  1114. function: {
  1115. before: src_functionBefore,
  1116. parameter: [0, 'img[data-original]', 'data-original']
  1117. }
  1118. }, // 千图网 - 专题/收藏夹
  1119. pixabay: {
  1120. SiteTypeID: 0,
  1121. host: 'pixabay.com',
  1122. pager: {
  1123. type: 1,
  1124. nextLink: '//a[text()="›"][@href]',
  1125. pageElement: 'css;[class^="results"] > [class^="container"] > div',
  1126. insertPosition: ['css;[class^="results"] > [class^="container"]', 3],
  1127. replaceE: '//a[text()="›"][@href]',
  1128. scrollDelta: 2000
  1129. },
  1130. function: {
  1131. before: src_functionBefore,
  1132. parameter: [0, 'img[data-lazy-src]', 'data-lazy-src']
  1133. }
  1134. }, // Pixabay
  1135. logosc: {
  1136. SiteTypeID: 0,
  1137. host: 'www.logosc.cn',
  1138. functionStart: function() {if (location.pathname.indexOf('/so/') > -1) {curSite = DBSite.logosc;}},
  1139. pager: {
  1140. type: 2,
  1141. nextLink: 'button.so-pablo-button',
  1142. intervals: 1500,
  1143. scrollDelta: 1500
  1144. }
  1145. }, // 搜图神器 (免费无版权)
  1146. puxiang: {
  1147. SiteTypeID: 0,
  1148. host: 'www.puxiang.com',
  1149. functionStart: function() {if (location.pathname === '/search/favorite') {
  1150. curSite = DBSite.puxiang_collect;
  1151. } else if (location.pathname === '/search/puxiang' || location.pathname === '/list' || location.pathname === '/galleries' || location.pathname === '/articles') {
  1152. curSite = DBSite.puxiang;
  1153. } else if (location.pathname === '/') {
  1154. curSite = DBSite.puxiang; curSite.pager.scrollDelta = 4000;
  1155. }},
  1156. pager: {
  1157. type: 1,
  1158. nextLink: 'css;li.next > a[href]',
  1159. pageElement: 'css;.work-list > div',
  1160. insertPosition: ['css;.work-list', 3],
  1161. replaceE: 'css;.pagerbar',
  1162. scrollDelta: 1500
  1163. }
  1164. }, // 普象网 - 作品集/搜索页
  1165. puxiang_collect: {
  1166. SiteTypeID: 0,
  1167. pager: {
  1168. type: 1,
  1169. nextLink: 'css;li.next > a[href]',
  1170. pageElement: 'css;.collect-list > div',
  1171. insertPosition: ['css;.collect-list', 3],
  1172. replaceE: 'css;.pagerbar',
  1173. scrollDelta: 1500
  1174. }
  1175. }, // 普象网 - 收藏夹
  1176. om: {
  1177. SiteTypeID: 0,
  1178. host: 'www.om.cn',
  1179. functionStart: function() {if (location.pathname != '/') {curSite = DBSite.om;}},
  1180. pager: {
  1181. type: 1,
  1182. nextLink: 'css;li.next > a[href]',
  1183. pageElement: 'css;.main_content > ul > li',
  1184. insertPosition: ['css;.main_content > ul', 3],
  1185. replaceE: 'css;ul.pagination',
  1186. scrollDelta: 1500
  1187. }
  1188. }, // 欧模网
  1189. _3dmgame: {
  1190. SiteTypeID: 0,
  1191. host: 'www.3dmgame.com',
  1192. pager: {
  1193. type: 3,
  1194. nextLink: '//li[@class="next"]/a[@href]',
  1195. pageElement: 'css;.news_warp_center > *',
  1196. insertPosition: ['css;.news_warp_center', 3],
  1197. replaceE: 'css;.pagewrap',
  1198. scrollElement: '.pagewrap',
  1199. scrollDelta: 400
  1200. }
  1201. }, // 3DM
  1202. _3dmgame_mod: {
  1203. SiteTypeID: 0,
  1204. host: 'mod.3dmgame.com',
  1205. pager: {
  1206. type: 1,
  1207. nextLink: _3dmgame_mod_functionNext,
  1208. pageElement: '//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")]',
  1209. insertPosition: ['//div[contains(@class, "game-mod-wrap") or contains(@class, "search-mod ")]', 3],
  1210. scriptType: 2,
  1211. history: true,
  1212. scrollDelta: 1200
  1213. }
  1214. }, // 3DM MOD站
  1215. ali213_www: {
  1216. SiteTypeID: 0,
  1217. host: 'www.ali213.net',
  1218. pager: {
  1219. type: 3,
  1220. nextLink: 'id("after_this_page")[@href]',
  1221. pageElement: 'css;#Content >*:not(.news_ding):not(.page_fenye)',
  1222. insertPosition: ['css;.page_fenye', 1],
  1223. replaceE: 'css;.page_fenye',
  1224. scrollElement: '.page_fenye',
  1225. scrollDelta: 400
  1226. }
  1227. }, // 游侠网
  1228. ali213_gl: {
  1229. SiteTypeID: 0,
  1230. host: 'gl.ali213.net',
  1231. functionStart: function() {curSite = DBSite.ali213_gl; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.n_show_b {display: none !important;}';},
  1232. pager: {
  1233. type: 3,
  1234. nextLink: '//a[@class="next n"][@href]',
  1235. pageElement: 'css;.c-detail >*',
  1236. insertPosition: ['css;.c-detail', 3],
  1237. replaceE: 'css;.page_fenye',
  1238. scrollElement: '.page_fenye',
  1239. scrollDelta: 400
  1240. }
  1241. }, // 游侠网 - 攻略
  1242. ali213_pic: {
  1243. SiteTypeID: 0,
  1244. host: 'pic.ali213.net',
  1245. functionStart: function() {curSite = DBSite.ali213_pic; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'a.prev, a.next {display: none !important;}';},
  1246. pager: {
  1247. type: 1,
  1248. nextLink: 'css;a.next[href]',
  1249. pageElement: 'css;#image-show > img',
  1250. insertPosition: ['css;#image-show', 3],
  1251. replaceE: 'css;#image-show > a',
  1252. scrollDelta: 1200
  1253. }
  1254. }, // 游侠网 - 图库
  1255. gamersky_ent: {
  1256. SiteTypeID: 0,
  1257. host: 'www.gamersky.com',
  1258. functionStart: function() {if (location.pathname.indexOf('/ent/') > -1) {curSite = DBSite.gamersky_ent;} else {curSite = DBSite.gamersky_gl;}},
  1259. pager: {
  1260. type: 3,
  1261. nextLink: '//div[@class="page_css"]/a[text()="下一页"][@href]',
  1262. pageElement: 'css;.Mid2L_con > *:not(.gs_nc_editor):not(.pagecss):not(.page_css):not(.gs_ccs_solve):not(.post_ding)',
  1263. insertPosition: ['css;.page_css', 1],
  1264. replaceE: 'css;.page_css',
  1265. scrollElement: '.page_css',
  1266. scrollDelta: 100
  1267. }
  1268. }, // 游民星空
  1269. gamersky_gl: {
  1270. SiteTypeID: 0,
  1271. pager: {
  1272. type: 3,
  1273. nextLink: '//div[@class="page_css"]/a[text()="下一页"][@href]',
  1274. forceHTTPS: true,
  1275. pageElement: 'css;.Mid2L_con > *:not(.gs_nc_editor):not(.pagecss):not(.gs_ccs_solve):not(.post_ding)',
  1276. insertPosition: ['css;.gs_nc_editor', 1],
  1277. replaceE: 'css;.page_css',
  1278. scrollElement: '.pagecss',
  1279. scrollDelta: -1000
  1280. },
  1281. function: {
  1282. before: gamersky_gl_functionBefore
  1283. }
  1284. }, // 游民星空 - 攻略
  1285. nexusmods: {
  1286. SiteTypeID: 0,
  1287. host: 'www.nexusmods.com',
  1288. pager: {
  1289. type: 4,
  1290. nextLink: nexusmods_functionNext,
  1291. pageElement: 'css;ul.tiles > li',
  1292. insertPosition: ['css;ul.tiles', 3],
  1293. insertElement: nexusmods_insertElement,
  1294. replaceE: 'css;.pagination',
  1295. scrollDelta: 3000
  1296. }
  1297. }, // NexusMods
  1298. steamcommunity: {
  1299. SiteTypeID: 0,
  1300. host: 'steamcommunity.com',
  1301. pager: {
  1302. type: 1,
  1303. nextLink: '//a[@class="pagebtn"][last()][@href]',
  1304. pageElement: 'css;.workshopBrowseItems > *',
  1305. insertPosition: ['css;.workshopBrowseItems', 3],
  1306. replaceE: 'css;.workshopBrowsePaging',
  1307. scriptType: 2,
  1308. scrollDelta: 1500
  1309. }
  1310. }, // 创意工坊 - 项目列表
  1311. yikm: {
  1312. SiteTypeID: 0,
  1313. host: 'www.yikm.net',
  1314. pager: {
  1315. type: 1,
  1316. nextLink: '//ul[@class="pager"]//a[text()="下一页"]',
  1317. pageElement: '//h2[contains(text(), "所有游戏") or contains(text(), "搜索结果")]/following-sibling::div[1]/div',
  1318. insertPosition: ['//h2[contains(text(), "所有游戏") or contains(text(), "搜索结果")]/following-sibling::div[1]', 3],
  1319. replaceE: 'css;ul.pager',
  1320. scrollDelta: 1500
  1321. }
  1322. }, // 小霸王其乐无穷
  1323. cs_rin_ru: {
  1324. SiteTypeID: 0,
  1325. host: 'cs.rin.ru',
  1326. functionStart: function() {if (location.pathname === '/forum/viewforum.php') { // 版块帖子列表
  1327. curSite = DBSite.cs_rin_ru;
  1328. } else if (location.pathname === '/forum/viewtopic.php') { // 帖子内
  1329. if (GM_getValue('menu_discuz_thread_page')) curSite = DBSite.cs_rin_ru_viewtopic;
  1330. } else if (location.pathname === '/forum/search.php') { // 搜索结果
  1331. curSite = DBSite.cs_rin_ru_search;
  1332. }},
  1333. pager: {
  1334. type: 1,
  1335. nextLink: '//td[@class="gensmall"][@align="right"]//a[text()="Next"][@href]',
  1336. pageElement: 'css;#pagecontent > table.tablebg > tbody > tr:not([align])',
  1337. insertPosition: ['css;#pagecontent > table.tablebg > tbody > tr[align]', 1],
  1338. replaceE: 'css;#pagecontent > table:first-child',
  1339. scrollDelta: 1500
  1340. },
  1341. function: {
  1342. before: cs_rin_ru_functionBefore
  1343. }
  1344. }, // cs.rin.ru - 各版块帖子列表
  1345. cs_rin_ru_viewtopic: {
  1346. SiteTypeID: 0,
  1347. pager: {
  1348. type: 1,
  1349. nextLink: 'id("pageheader")/p[@class="gensmall"]//a[text()="Next"][@href]',
  1350. pageElement: 'css;#pagecontent > table.tablebg:not(:nth-last-child(2)):not(:nth-child(2))',
  1351. insertPosition: ['css;#pagecontent > table.tablebg:nth-last-child(2)', 1],
  1352. replaceE: 'css;#pagecontent >table:not(.tablebg), #pageheader p.gensmall',
  1353. scrollDelta: 1500
  1354. }
  1355. }, // cs.rin.ru - 帖子内
  1356. cs_rin_ru_search: {
  1357. SiteTypeID: 0,
  1358. pager: {
  1359. type: 1,
  1360. nextLink: 'id("wrapcentre")/div[@class="nav"]//a[text()="Next"]',
  1361. pageElement: 'css;#wrapcentre > form > table.tablebg > tbody > tr[valign]',
  1362. insertPosition: ['css;#wrapcentre > form > table.tablebg > tbody > tr:last-child', 1],
  1363. replaceE: 'css;#wrapcentre > div',
  1364. scrollDelta: 1500
  1365. }
  1366. }, // cs.rin.ru - 搜索页
  1367. crackhub: {
  1368. SiteTypeID: 0,
  1369. host: 'crackhub.site',
  1370. functionStart: function() {curSite = DBSite.crackhub; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'html.wp-dark-mode-active .inside-article {background-color: var(--wp-dark-mode-bg);}';},
  1371. pager: {
  1372. type: 1,
  1373. nextLink: '//a[@class="next page-numbers"][@href]',
  1374. pageElement: 'css;article[id^="post-"]',
  1375. insertPosition: ['css;nav.paging-navigation', 1],
  1376. replaceE: 'css;nav.paging-navigation',
  1377. scrollDelta: 2000
  1378. }
  1379. }, // Crackhub213
  1380. fitgirl: {
  1381. SiteTypeID: 0,
  1382. host: 'fitgirl-repacks.site',
  1383. pager: {
  1384. type: 1,
  1385. nextLink: '//a[@class="next page-numbers"][@href]',
  1386. pageElement: 'css;article[id^="post-"]',
  1387. insertPosition: ['css;nav.paging-navigation', 1],
  1388. replaceE: 'css;nav.paging-navigation',
  1389. scrollDelta: 2000
  1390. }
  1391. }, // FitGirl Repacks
  1392. pianku: {
  1393. SiteTypeID: 0,
  1394. host: /pianku/,
  1395. functionStart: function() {if (location.pathname != '/') {curSite = DBSite.pianku;}},
  1396. pager: {
  1397. type: 1,
  1398. nextLink: 'css;a.a1[href]',
  1399. pageElement: 'css;.content-list > li',
  1400. insertPosition: ['css;.content-list', 3],
  1401. replaceE: 'css;.pages',
  1402. scrollDelta: 1500
  1403. },
  1404. function: {
  1405. before: src_functionBefore,
  1406. parameter: [0, 'img[data-src]', 'data-src']
  1407. }
  1408. }, // 片库
  1409. cupfox: {
  1410. SiteTypeID: 0,
  1411. host: 'www.cupfox.com',
  1412. pager: {
  1413. type: 2,
  1414. nextLink: '.load-more',
  1415. nextText: '点击加载更多',
  1416. scrollDelta: 700
  1417. }
  1418. }, // 茶杯狐
  1419. novipnoad: {
  1420. SiteTypeID: 0,
  1421. host: 'www.novipnoad.com',
  1422. functionStart: function() {if (location.pathname != '/' && location.pathname.indexOf('.html') === -1) {curSite = DBSite.novipnoad;}},
  1423. pager: {
  1424. type: 1,
  1425. nextLink: 'css;a.nextpostslink',
  1426. pageElement: 'css;.video-listing-content .row > div',
  1427. insertPosition: ['css;.video-listing-content .row', 3],
  1428. replaceE: 'css;.wp-pagenavi',
  1429. scrollDelta: 1500
  1430. },
  1431. function: {
  1432. before: src_functionBefore,
  1433. parameter: [0, 'img[data-original]', 'data-original']
  1434. }
  1435. }, // NO视频
  1436. ddrk: {
  1437. SiteTypeID: 0,
  1438. host: 'ddrk.me',
  1439. functionStart: function() {if (location.pathname === '/' || location.pathname.indexOf('/category/') > -1 || location.pathname.indexOf('/tag/') > -1) {curSite = DBSite.ddrk;}},
  1440. pager: {
  1441. type: 1,
  1442. nextLink: 'css;a.next',
  1443. pageElement: 'css;.post-box-list > article',
  1444. insertPosition: ['css;.post-box-list', 3],
  1445. replaceE: 'css;.pagination_wrap',
  1446. scrollDelta: 1500
  1447. }
  1448. }, // 低端影视
  1449. nfmovies: {
  1450. SiteTypeID: 0,
  1451. host: 'www.nfmovies.com',
  1452. functionStart: function() {if (location.pathname === '/search.php' || location.pathname.indexOf('/list/') > -1) {curSite = DBSite.nfmovies;}},
  1453. pager: {
  1454. type: 1,
  1455. nextLink: '//ul[contains(@class, "myui-page")]/li/a[contains(text(), "下一页")]',
  1456. pageElement: 'css;ul.myui-vodlist > li',
  1457. insertPosition: ['css;ul.myui-vodlist', 3],
  1458. replaceE: 'css;ul.myui-page',
  1459. scrollDelta: 1500
  1460. },
  1461. function: {
  1462. before: src_functionBefore,
  1463. parameter: [1, 'a[data-original]', 'data-original']
  1464. }
  1465. }, // 奈菲影视
  1466. zxzj: {
  1467. SiteTypeID: 0,
  1468. host: 'www.zxzj.me',
  1469. functionStart: function() {if (location.pathname != '/' && location.pathname.indexOf('/detail/') === -1) {
  1470. curSite = DBSite.zxzj; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'div.stui-page__all {display: none !important;}';
  1471. }},
  1472. pager: {
  1473. type: 1,
  1474. nextLink: '//ul[contains(@class, "stui-page__item")]//a[contains(text(), "下一页")]',
  1475. pageElement: 'css;ul.stui-vodlist > li',
  1476. insertPosition: ['css;ul.stui-vodlist', 3],
  1477. replaceE: 'css;ul.stui-page__item',
  1478. scrollDelta: 1000
  1479. },
  1480. function: {
  1481. before: src_functionBefore,
  1482. parameter: [1, 'a[data-original]', 'data-original']
  1483. }
  1484. }, // 在线之家
  1485. _91mjw: {
  1486. SiteTypeID: 0,
  1487. host: '91mjw.com',
  1488. functionStart: function() {if (location.pathname.indexOf('/video/') === -1 || location.pathname.indexOf('/vplay/') === -1) {curSite = DBSite._91mjw;}},
  1489. pager: {
  1490. type: 1,
  1491. nextLink: 'css;.next-page > a',
  1492. pageElement: 'css;.m-movies > article',
  1493. insertPosition: ['css;.pagination', 1],
  1494. replaceE: 'css;.pagination',
  1495. scrollDelta: 1500
  1496. },
  1497. function: {
  1498. before: src_functionBefore,
  1499. parameter: [0, 'img[data-original]', 'data-original']
  1500. }
  1501. }, // 91 美剧网
  1502. zhenbuka: {
  1503. SiteTypeID: 0,
  1504. host: ['www.zhenbuka3.com', 'www.zhenbuka5.com'],
  1505. functionStart: function() {if (location.pathname.indexOf('/vodtype/') > -1) {curSite = DBSite.zhenbuka;}},
  1506. pager: {
  1507. type: 1,
  1508. nextLink: '//ul[contains(@class, "stui-page")]/li/a[contains(text(), "下一页")]',
  1509. pageElement: 'css;ul.stui-vodlist > li',
  1510. insertPosition: ['css;ul.stui-vodlist', 3],
  1511. replaceE: 'css;ul.stui-page',
  1512. scrollDelta: 1500
  1513. },
  1514. function: {
  1515. before: src_functionBefore,
  1516. parameter: [1, 'a[data-original]', 'data-original']
  1517. }
  1518. }, // 真不卡影院
  1519. dm233: {
  1520. SiteTypeID: 0,
  1521. host: 'www.dm233.cc',
  1522. functionStart: function() {if (location.pathname.indexOf('/catalog/') > -1 || location.pathname === '/recommend/' || location.pathname === '/search') {
  1523. curSite = DBSite.dm233;
  1524. } else if (location.pathname === '/article/') {
  1525. curSite = DBSite.dm233_article;
  1526. } else if (location.pathname === '/rank/') {
  1527. curSite = DBSite.dm233_rank;
  1528. }},
  1529. pager: {
  1530. type: 1,
  1531. nextLink: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
  1532. pageElement: 'css;.dhnew ul > li',
  1533. insertPosition: ['css;.dhnew ul', 3],
  1534. replaceE: 'css;.pagelist',
  1535. scrollDelta: 1000
  1536. }
  1537. }, // 233 动漫
  1538. dm233_article: {
  1539. SiteTypeID: 0,
  1540. pager: {
  1541. type: 1,
  1542. nextLink: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
  1543. pageElement: 'css;.xgyd ul > li',
  1544. insertPosition: ['css;.xgyd ul', 3],
  1545. replaceE: 'css;.pagelist',
  1546. scrollDelta: 1000
  1547. }
  1548. }, // 233 动漫 - 动漫情报/资讯
  1549. dm233_rank: {
  1550. SiteTypeID: 0,
  1551. pager: {
  1552. type: 1,
  1553. nextLink: '//div[@class="pagelist"]//a[contains(text(), "下一页") or contains(text(), "下一頁")]',
  1554. pageElement: 'css;.side-update.normal-wai > .normal-nei',
  1555. insertPosition: ['css;.side-update.normal-wai', 3],
  1556. replaceE: 'css;.pagelist',
  1557. scrollDelta: 1000
  1558. }
  1559. }, // 233 动漫 - 排行榜
  1560. agefans: {
  1561. SiteTypeID: 0,
  1562. host: 'www.agefans.cc',
  1563. functionStart: function() {if (location.pathname.indexOf('/catalog/') > -1 || location.pathname === '/search') {
  1564. curSite = DBSite.agefans;
  1565. } else if (location.pathname === '/recommend' || location.pathname === '/update') {
  1566. curSite = DBSite.agefans_;
  1567. } else if (location.pathname === '/rank') {
  1568. curSite = DBSite.agefans_rank;
  1569. }},
  1570. pager: {
  1571. type: 1,
  1572. nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]',
  1573. pageElement: 'css;#container .blockcontent1 > div',
  1574. insertPosition: ['css;#container .blockcontent1', 3],
  1575. replaceE: 'css;#container .blockcontent > div[style]:not([class])',
  1576. scrollDelta: 1000
  1577. }
  1578. }, // AGE 动漫 - 全部/搜索
  1579. agefans_: {
  1580. SiteTypeID: 0,
  1581. pager: {
  1582. type: 1,
  1583. nextLink: 'id("container")//div[@class="blockcontent"]/div[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]',
  1584. pageElement: 'css;#container .blockcontent > ul > li',
  1585. insertPosition: ['css;#container .blockcontent > ul', 3],
  1586. replaceE: 'css;#container .blockcontent > div[style]:not([class])',
  1587. scrollDelta: 1000
  1588. }
  1589. }, // AGE 动漫 - 其他页
  1590. agefans_rank: {
  1591. SiteTypeID: 0,
  1592. pager: {
  1593. type: 1,
  1594. nextLink: 'id("container")/ul[@style][not(@class)]/li/a[@href][contains(text(), "下一页")]',
  1595. pageElement: 'css;#container > .div_right .blockcontent.div_right_r_3 > ul',
  1596. insertPosition: ['css;#container > .div_right .blockcontent.div_right_r_3', 3],
  1597. replaceE: 'css;#container > ul[style]:not([class])',
  1598. scrollDelta: 1000
  1599. }
  1600. }, // AGE 动漫 - 排行榜
  1601. yhdm: {
  1602. SiteTypeID: 0,
  1603. host: 'www.imomoe.la',
  1604. functionStart: function() {if (location.pathname.indexOf('/list/') > -1) {
  1605. curSite = DBSite.yhdm;
  1606. } else if (location.pathname === '/so.asp' || location.pathname === '/search.asp') {
  1607. curSite = DBSite.yhdm_;
  1608. }},
  1609. pager: {
  1610. type: 1,
  1611. nextLink: '//div[@class="pages"]/a[@href][contains(text(), "下一页")]',
  1612. pageElement: 'css;#contrainer > .img> ul > li',
  1613. insertPosition: ['css;#contrainer > .img> ul', 3],
  1614. replaceE: 'css;.pages',
  1615. mimeType: 'text/html; charset=gb2312',
  1616. scrollDelta: 1000
  1617. }
  1618. }, // 樱花动漫
  1619. yhdm_: {
  1620. SiteTypeID: 0,
  1621. pager: {
  1622. type: 1,
  1623. nextLink: '//div[@class="pages"]/a[@href][contains(text(), "下一页")]',
  1624. pageElement: 'css;#contrainer .fire .pics > ul > li',
  1625. insertPosition: ['css;#contrainer .fire .pics > ul', 3],
  1626. replaceE: 'css;.pages',
  1627. mimeType: 'text/html; charset=gb2312',
  1628. scrollDelta: 1000
  1629. }
  1630. }, // 樱花动漫 - 搜索页等
  1631. zzzfun: {
  1632. SiteTypeID: 0,
  1633. host: 'www.zzzfun.com',
  1634. functionStart: function() {
  1635. if (location.pathname.indexOf('/vod_type') > -1 || location.pathname.indexOf('/vod_show') > -1) {
  1636. curSite = DBSite.zzzfun;
  1637. } else if (location.pathname.indexOf('/vod_search') > -1) {
  1638. curSite = DBSite.zzzfun_search;
  1639. }},
  1640. pager: {
  1641. type: 1,
  1642. nextLink: 'css;#page a[title="下一页"]',
  1643. pageElement: 'css;ul.search-result > a',
  1644. insertPosition: ['css;ul.search-result', 3],
  1645. replaceE: 'css;#page',
  1646. scrollDelta: 1000
  1647. },
  1648. function: {
  1649. before: src_functionBefore,
  1650. parameter: [0, 'img[data-original]', 'data-original']
  1651. }
  1652. }, // ZzzFun 动漫
  1653. zzzfun_search: {
  1654. SiteTypeID: 0,
  1655. pager: {
  1656. type: 1,
  1657. nextLink: 'css;#page a[title="下一页"]',
  1658. pageElement: 'css;ul.show-list > li',
  1659. insertPosition: ['css;ul.show-list', 3],
  1660. replaceE: 'css;#page',
  1661. scrollDelta: 1000
  1662. },
  1663. function: {
  1664. before: src_functionBefore,
  1665. parameter: [0, 'img[data-original]', 'data-original']
  1666. }
  1667. }, // ZzzFun 动漫 - 搜索页
  1668. yinfans: {
  1669. SiteTypeID: 0,
  1670. host: 'www.yinfans.net',
  1671. functionStart: function() {curSite = DBSite.yinfans; document.lastElementChild.appendChild(document.createElement('style')).textContent = '#post_container {height: auto !important;} #post_container > li {position: static !important; float: left !important; height: 620px !important;}';},
  1672. pager: {
  1673. type: 1,
  1674. nextLink: 'css;a.next[href]',
  1675. pageElement: 'css;#post_container > li',
  1676. insertPosition: ['css;#post_container', 3],
  1677. replaceE: 'css;.pagination',
  1678. scrollDelta: 1500
  1679. }
  1680. }, // 音范丝
  1681. btbtt: {
  1682. SiteTypeID: 0,
  1683. host: /btbtt/,
  1684. pager: {
  1685. type: 1,
  1686. nextLink: '//div[@class="page"]/a[contains(text(), "▶") or contains(text(), "下一页")]',
  1687. pageElement: 'css;#threadlist > table, #threadlist > hr',
  1688. insertPosition: ['css;#threadlist', 3],
  1689. replaceE: 'css;.page',
  1690. scrollDelta: 2000
  1691. }
  1692. }, // BT 之家
  1693. bdys: {
  1694. SiteTypeID: 0,
  1695. host: 'www.bd2020.com',
  1696. functionStart: function() {if (location.pathname != '/' && !(/\/\d+\.htm/.test(location.pathname))) {curSite = DBSite.bdys;}},
  1697. pager: {
  1698. type: 2,
  1699. nextLink: 'div.layui-flow-more > a',
  1700. nextText: '加载更多',
  1701. scrollDelta: 1000
  1702. }
  1703. }, // BD 影视
  1704. gaoqing_fm: {
  1705. SiteTypeID: 0,
  1706. host: 'gaoqing.fm',
  1707. pager: {
  1708. type: 2,
  1709. nextLink: '.col-md-12 > a[href], #loadmore > a[href]',
  1710. intervals: 1500,
  1711. scrollDelta: 1000
  1712. }
  1713. }, // 高清电台
  1714. yyds: {
  1715. SiteTypeID: 0,
  1716. host: 'yyds.fans',
  1717. functionStart: function() {
  1718. if (location.search != '' && location.search.indexOf('p=') === -1) {
  1719. curSite = DBSite.yyds;
  1720. }},
  1721. pager: {
  1722. type: 1,
  1723. nextLink: 'css;a.next.page-numbers[href]',
  1724. pageElement: 'css;.list-grouped > div',
  1725. insertPosition: ['css;.list-grouped', 3],
  1726. replaceE: 'css;nav.pagination',
  1727. scrollDelta: 1100
  1728. }
  1729. }, // YYDS 电影
  1730. kisssub: {
  1731. SiteTypeID: 0,
  1732. host: 'www.kisssub.org',
  1733. pager: {
  1734. type: 1,
  1735. nextLink: 'css;a.nextprev',
  1736. pageElement: 'css;#data_list > tr',
  1737. insertPosition: ['css;#data_list', 3],
  1738. replaceE: 'css;.pages',
  1739. scrollDelta: 2500
  1740. }
  1741. }, // 爱恋动漫
  1742. dmhy: {
  1743. SiteTypeID: 0,
  1744. host: ['share.dmhy.org', 'dmhy.anoneko.com'],
  1745. pager: {
  1746. type: 1,
  1747. nextLink: '//div[@class="nav_title"]/a[@href][contains(text(), "下一頁")]',
  1748. pageElement: 'css;#topic_list > tbody > tr',
  1749. insertPosition: ['css;#topic_list > tbody', 3],
  1750. replaceE: 'css;.nav_title',
  1751. scrollDelta: 1500
  1752. },
  1753. function: {
  1754. after: 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');`;}
  1755. }
  1756. }, // 动漫花园
  1757. futaacg: {
  1758. SiteTypeID: 0,
  1759. host: 'futaacg.com',
  1760. pager: {
  1761. type: 1,
  1762. nextLink: 'css;ul.pagination a[rel="next"]',
  1763. pageElement: 'css;.topic-list > div',
  1764. insertPosition: ['css;.topic-list', 3],
  1765. replaceE: 'css;ul.pagination',
  1766. scrollDelta: 1500
  1767. }
  1768. }, // 扶她动漫
  1769. bangumi: {
  1770. SiteTypeID: 0,
  1771. host: 'bangumi.moe',
  1772. pager: {
  1773. type: 2,
  1774. nextLink: '[torrent-list="lattorrents"] button[ng-click="loadMore()"] ,[torrent-list="torrents"] button[ng-click="loadMore()"]',
  1775. intervals: 1000,
  1776. scrollDelta: 1500
  1777. }
  1778. }, // 萌番组
  1779. miobt: {
  1780. SiteTypeID: 0,
  1781. host: ['miobt.com', 'www.36dm.club'],
  1782. functionStart: function() {curSite = DBSite.miobt;
  1783. if (location.host === 'www.36dm.club') {
  1784. curSite.pager.scrollDelta = 1000;
  1785. }},
  1786. pager: {
  1787. type: 1,
  1788. nextLink: 'css;a.nextprev[href]',
  1789. pageElement: 'css;#data_list > tr',
  1790. insertPosition: ['css;#data_list', 3],
  1791. replaceE: 'css;.pages',
  1792. scrollDelta: 2000
  1793. }
  1794. }, // MioBT + 简单动漫
  1795. nyaa: {
  1796. SiteTypeID: 0,
  1797. host: /nyaa\.si/,
  1798. pager: {
  1799. type: 1,
  1800. nextLink: '//a[@rel="next"][@href] | //li[@class="next"]/a[@href]',
  1801. pageElement: 'css;table.torrent-list > tbody > tr',
  1802. insertPosition: ['css;table.torrent-list > tbody', 3],
  1803. replaceE: 'css;ul.pagination',
  1804. scrollDelta: 2000
  1805. }
  1806. }, // Nyaa
  1807. skrbt: {
  1808. SiteTypeID: 0,
  1809. host: /skrbt/,
  1810. functionStart: function() {if (location.pathname === '/search') curSite = DBSite.skrbt;},
  1811. pager: {
  1812. type: 1,
  1813. nextLink: skrbt_functionNext,
  1814. pageElement: 'css;div[class="row"] > .col-md-6 > ul',
  1815. insertPosition: ['css;nav[aria-label*="Page"]', 1],
  1816. replaceE: 'css;ul.pagination',
  1817. scrollDelta: 900
  1818. }
  1819. }, // SkrBT
  1820. rarbgprx: {
  1821. SiteTypeID: 0,
  1822. host: /rarbg/,
  1823. functionStart: function() {if (location.pathname === '/torrents.php') {curSite = DBSite.rarbgprx;}},
  1824. pager: {
  1825. type: 1,
  1826. nextLink: '(//a[@title="next page"])[1][@href]',
  1827. pageElement: 'css;table.lista2t tr.lista2',
  1828. insertPosition: ['css;table.lista2t > tbody', 3],
  1829. replaceE: 'css;#pager_links',
  1830. scrollDelta: 1000
  1831. }
  1832. }, // RARBG
  1833. subdh: {
  1834. SiteTypeID: 0,
  1835. host: 'subdh.com',
  1836. functionStart: function() {if (location.pathname === '/' || location.pathname.indexOf('/list/new') > -1) {
  1837. curSite = DBSite.subdh;
  1838. } else if (location.pathname.indexOf('/search') > -1) {
  1839. curSite = DBSite.subdh_search;
  1840. }},
  1841. pager: {
  1842. type: 1,
  1843. nextLink: '//a[@class="page-link"][contains(text(), "下一页")]',
  1844. pageElement: 'css;.col-lg-9 .bg-white.shadow-sm.rounded-3 > .row.gx-0',
  1845. insertPosition: ['css;.col-lg-9 .bg-white.shadow-sm.rounded-3', 3],
  1846. replaceE: 'css;ul.pagination',
  1847. scrollDelta: 1000
  1848. }
  1849. }, // SubDH
  1850. subdh_search: {
  1851. SiteTypeID: 0,
  1852. pager: {
  1853. type: 1,
  1854. nextLink: '//a[@class="page-link"][contains(text(), "下一页")]',
  1855. pageElement: 'css;.col-lg-9 .bg-white.shadow-sm.rounded-3',
  1856. insertPosition: ['css;nav[aria-label="pagination"]', 1],
  1857. replaceE: 'css;ul.pagination',
  1858. scrollDelta: 1000
  1859. }
  1860. }, // SubDH - 搜索页
  1861. mini4k: {
  1862. SiteTypeID: 0,
  1863. host: 'www.mini4k.com',
  1864. functionStart: function() {if (location.pathname != '/' && !(/\/\d{3,}/.test(location.pathname))) {curSite = DBSite.mini4k;};},
  1865. pager: {
  1866. type: 1,
  1867. nextLink: 'css;a.pager__item--next[href]',
  1868. pageElement: 'css;div[class*="-item-list"] > ul > li',
  1869. insertPosition: ['css;div[class*="-item-list"] > ul', 3],
  1870. replaceE: 'css;.pagination',
  1871. scrollDelta: 2000
  1872. }
  1873. }, // MINI4K
  1874. bthaha: {
  1875. SiteTypeID: 0,
  1876. host: /bthaha/,
  1877. functionStart: function() {if (location.pathname.indexOf('/search/') > -1) {
  1878. curSite = DBSite.bthaha;
  1879. document.lastElementChild.appendChild(document.createElement('style')).textContent = '[id^="list_top"], [id^="list_bottom"] {display: none !important;}';
  1880. document.querySelectorAll('[id^="list_top"], [id^="list_bottom"]').forEach(function (one) {one.parentElement.parentElement.hidden = true;});
  1881. }},
  1882. pager: {
  1883. type: 1,
  1884. nextLink: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]',
  1885. pageElement: 'css;table.table > tbody > tr',
  1886. insertPosition: ['css;table.table > tbody', 3],
  1887. replaceE: 'css;ul.pagination',
  1888. scrollDelta: 1000
  1889. },
  1890. function: {
  1891. before: bthaha_functionBefore
  1892. }
  1893. }, // BTHaha
  1894. a4k: {
  1895. SiteTypeID: 0,
  1896. host: 'www.a4k.net',
  1897. functionStart: function() {if (location.pathname.indexOf('/subtitle/') === -1) {curSite = DBSite.a4k;};},
  1898. pager: {
  1899. type: 1,
  1900. nextLink: 'css;a.pager__item--next[href]',
  1901. pageElement: 'css;ul.list > li',
  1902. insertPosition: ['css;ul.list', 3],
  1903. replaceE: 'css;.pagination',
  1904. scrollDelta: 1000
  1905. }
  1906. }, // A4k 字幕网(字幕)
  1907. assrt: {
  1908. SiteTypeID: 0,
  1909. host: 'assrt.net',
  1910. functionStart: function() {if (location.pathname != '/') {curSite = DBSite.assrt;};},
  1911. pager: {
  1912. type: 1,
  1913. nextLink: assrt_functionNext,
  1914. pageElement: 'css;.resultcard > div:not(#top-banner):not(#bottom-banner)',
  1915. insertPosition: ['css;.pagelinkcard', 1],
  1916. replaceE: 'css;.pagelinkcard',
  1917. scrollDelta: 1000
  1918. }
  1919. }, // 射手网(字幕)
  1920. subhd: {
  1921. SiteTypeID: 0,
  1922. host: 'subhd.tv',
  1923. functionStart: function() {if (location.pathname === '/forum/forum') {
  1924. curSite = DBSite.subhd_forum;
  1925. } else if (location.pathname != '/' && location.pathname != '/zu' && location.pathname.indexOf('/a/') === -1 && location.pathname.indexOf('/d/') === -1 && location.pathname.indexOf('/forum/') === -1) {
  1926. curSite = DBSite.subhd;
  1927. }},
  1928. pager: {
  1929. type: 1,
  1930. nextLink: '//a[@class="page-link"][contains(text(), "下一页")]',
  1931. pageElement: 'css;.bg-white.shadow-sm.rounded-3',
  1932. insertPosition: ['css;nav.clearfix', 1],
  1933. replaceE: 'css;nav.clearfix',
  1934. scrollDelta: 1000
  1935. }
  1936. }, // SubHD(字幕)
  1937. subhd_forum: {
  1938. SiteTypeID: 0,
  1939. pager: {
  1940. type: 1,
  1941. nextLink: '//a[@class="page-link"][contains(text(), "下一页")]',
  1942. pageElement: 'css;.bg-white.shadow-sm.rounded-3 > div',
  1943. insertPosition: ['css;.bg-white.shadow-sm.rounded-3', 3],
  1944. replaceE: 'css;nav.clearfix',
  1945. scrollDelta: 800
  1946. }
  1947. }, // SubHD - forum(字幕)
  1948. qidian: {
  1949. SiteTypeID: 0,
  1950. host: 'www.qidian.com',
  1951. functionStart: function() {if (location.pathname.indexOf('/all/') > -1) {curSite = DBSite.qidian;}},
  1952. pager: {
  1953. type: 1,
  1954. nextLink: 'css;a[class*="pagination-next"][href]',
  1955. pageElement: 'css;ul.all-img-list > li',
  1956. insertPosition: ['css;ul.all-img-list', 3],
  1957. replaceE: 'css;#page-container',
  1958. scrollDelta: 900
  1959. }
  1960. }, // 起点小说
  1961. qidian_read: {
  1962. SiteTypeID: 0,
  1963. host: 'read.qidian.com',
  1964. functionStart: function() {if (location.pathname.indexOf('/chapter/') > -1) {curSite = DBSite.qidian_read; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.admire-wrap {display: none !important;}';}},
  1965. pager: {
  1966. type: 1,
  1967. nextLink: 'css;a[id$="chapterNext"][href]',
  1968. pageElement: 'css;.main-text-wrap > div:not(.admire-wrap)',
  1969. insertPosition: ['css;.main-text-wrap', 3],
  1970. replaceE: 'css;.chapter-control, title',
  1971. history: true,
  1972. scrollDelta: 900
  1973. }
  1974. }, // 起点小说 - 阅读页
  1975. baoshuu: {
  1976. SiteTypeID: 0,
  1977. host: 'www.baoshuu.com',
  1978. functionStart: function() {if (location.pathname.indexOf('/TXT/list') > -1) curSite = DBSite.baoshuu;},
  1979. pager: {
  1980. type: 1,
  1981. nextLink: '//div[@class="listl2"]//a[@href][text()="下一页"]',
  1982. pageElement: 'css;.listl2 > ul > li',
  1983. insertPosition: ['css;.listl2 > ul', 3],
  1984. replaceE: 'css;listl2 > dl',
  1985. mimeType: 'text/html; charset=gb2312',
  1986. scrollDelta: 900
  1987. }
  1988. }, // 宝书网
  1989. baoshuu_m: {
  1990. SiteTypeID: 0,
  1991. host: 'm.baoshuu.com',
  1992. functionStart: function() {if (location.pathname.indexOf('/TXT/list') > -1) curSite = DBSite.baoshuu_m;},
  1993. pager: {
  1994. type: 1,
  1995. nextLink: '//div[@class="man_first"]//a[@href][text()="下一页"]',
  1996. pageElement: 'css;.man_first > ul > li',
  1997. insertPosition: ['css;.man_first > ul', 3],
  1998. replaceE: 'css;.man_first > dl',
  1999. mimeType: 'text/html; charset=gb2312',
  2000. scrollDelta: 900
  2001. }
  2002. }, // 宝书网- 手机版
  2003. _23wx: {
  2004. SiteTypeID: 0,
  2005. host: 'www.23wx.cc',
  2006. functionStart: function() {if (/\d+\/\d+\.html/.test(location.pathname)) {curSite = DBSite._23wx;}},
  2007. pager: {
  2008. type: 1,
  2009. nextLink: '//div[@class="bottem2"]/a[contains(text(), "下一章")]',
  2010. pageElement: 'css;#content',
  2011. insertPosition: ['css;#content', 5],
  2012. replaceE: 'css;.bottem2, head > title, .bookname > h1',
  2013. mimeType: 'text/html; charset=gbk',
  2014. history: true,
  2015. scrollDelta: 1500
  2016. }
  2017. }, // 顶点小说
  2018. xineyby: {
  2019. SiteTypeID: 0,
  2020. host: 'www.xineyby.com',
  2021. functionStart: function() {if (location.pathname.indexOf('/read/') > -1) {
  2022. curSite = DBSite.xineyby;
  2023. } else if (location.pathname.indexOf('/list/') > -1 || location.pathname.indexOf('/quanben/') > -1 || location.pathname.indexOf('/search') > -1) {
  2024. curSite = DBSite.xineyby_list;
  2025. }},
  2026. pager: {
  2027. type: 1,
  2028. nextLink: 'id("footlink")/a[contains(text(), "下一页")]',
  2029. pageElement: 'css;#contents',
  2030. insertPosition: ['css;#contents', 5],
  2031. replaceE: 'css;#footlink, head > title, #amain dd h1',
  2032. mimeType: 'text/html; charset=gbk',
  2033. history: true,
  2034. scrollDelta: 900
  2035. }
  2036. }, // 无错小说网
  2037. xineyby_list: {
  2038. SiteTypeID: 0,
  2039. pager: {
  2040. type: 1,
  2041. nextLink: 'css;#pagelink a.next[href]',
  2042. pageElement: 'css;#content > dd tbody > tr:not(:first-child)',
  2043. insertPosition: ['css;#content > dd tbody', 3],
  2044. replaceE: 'css;#pagelink',
  2045. mimeType: 'text/html; charset=gbk',
  2046. scrollDelta: 900
  2047. }
  2048. }, // 无错小说网 - 分类/搜索页
  2049. linovel: {
  2050. SiteTypeID: 0,
  2051. host: 'www.linovel.net',
  2052. functionStart: function() {if (/\/book\/\d+\/.+\.html/.test(location.pathname)) {
  2053. document.lastElementChild.appendChild(document.createElement('style')).textContent = '.reward-section {display: none !important;}';
  2054. } else if (location.pathname.indexOf('/cat/') > -1) {
  2055. curSite = DBSite.linovel;
  2056. }},
  2057. pager: {
  2058. type: 1,
  2059. nextLink: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]',
  2060. pageElement: 'css;.rank-book-list > div',
  2061. insertPosition: ['css;.rank-book-list', 3],
  2062. replaceE: 'css;ul.pagination',
  2063. scrollDelta: 1000
  2064. }
  2065. }, // 轻之文库
  2066. linovelib: {
  2067. SiteTypeID: 0,
  2068. host: 'www.linovelib.com',
  2069. functionStart: function() {if (/\/novel\/\d+\/.+\.html/.test(location.pathname)) {
  2070. curSite = DBSite.linovelib;
  2071. } else if (location.pathname.indexOf('/wenku/') > -1) {
  2072. curSite = DBSite.linovelib_wenku;
  2073. } else if (location.pathname.indexOf('/top/') > -1 || location.pathname.indexOf('/topfull/') > -1 || location.pathname.indexOf('toplist.php') > -1) {
  2074. curSite = DBSite.linovelib_top;
  2075. }},
  2076. pager: {
  2077. type: 1,
  2078. nextLink: '//p[@class="mlfy_page"]/a[@href][contains(text(), "下一页") or contains(text(), "下一章")]',
  2079. pageElement: 'css;#mlfy_main_text > *',
  2080. insertPosition: ['css;#mlfy_main_text', 3],
  2081. replaceE: 'css;p.mlfy_page, head > title',
  2082. history: true,
  2083. scrollDelta: 1000
  2084. }
  2085. }, // 哔哩轻小说
  2086. linovelib_wenku: {
  2087. SiteTypeID: 0,
  2088. pager: {
  2089. type: 1,
  2090. nextLink: 'css;#pagelink > a.next[href]',
  2091. pageElement: 'css;.store_collist > div.bookbox',
  2092. insertPosition: ['css;.store_collist', 3],
  2093. replaceE: 'css;#pagelink',
  2094. scrollDelta: 1000
  2095. },
  2096. function: {
  2097. before: src_functionBefore,
  2098. parameter: [0, 'img[data-original]', 'data-original']
  2099. }
  2100. }, // 哔哩轻小说 - 文库
  2101. linovelib_top: {
  2102. SiteTypeID: 0,
  2103. pager: {
  2104. type: 1,
  2105. nextLink: 'css;#pagelink > a.next[href]',
  2106. pageElement: 'css;.rankpage_box > div.rank_d_list',
  2107. insertPosition: ['css;div.pages', 1],
  2108. replaceE: 'css;#pagelink',
  2109. scrollDelta: 1000
  2110. },
  2111. function: {
  2112. before: src_functionBefore,
  2113. parameter: [0, 'img[data-original]', 'data-original']
  2114. }
  2115. }, // 哔哩轻小说 - 全本
  2116. linovelib_w: {
  2117. SiteTypeID: 0,
  2118. host: 'w.linovelib.com',
  2119. functionStart: function() {if (/\/novel\/\d+\/.+\.html/.test(location.pathname)) {
  2120. curSite = DBSite.linovelib_w;
  2121. } else if (location.pathname.indexOf('/wenku/') > -1 || location.pathname.indexOf('/sa/') > -1) {
  2122. curSite = DBSite.linovelib_w_wenku;
  2123. }},
  2124. pager: {
  2125. type: 1,
  2126. nextLink: function() {if (ReadParams) {return ReadParams.url_next}; return ''},
  2127. pageElement: '//body/script[contains(text(), "var ReadParams")] | id("apage")/div',
  2128. insertPosition: ['css;#apage', 3],
  2129. replaceE: 'css;head > title',
  2130. history: true,
  2131. scriptType: 2,
  2132. scrollDelta: 1000
  2133. }
  2134. }, // 哔哩轻小说 (手机版)
  2135. linovelib_w_wenku: {
  2136. SiteTypeID: 0,
  2137. pager: {
  2138. type: 1,
  2139. nextLink: 'css;#pagelink > strong+a[href] ,#pagelink a.next[href]',
  2140. pageElement: 'css;ol.book-ol > li',
  2141. insertPosition: ['css;ol.book-ol', 3],
  2142. replaceE: 'css;#pagelink',
  2143. scrollDelta: 1000
  2144. },
  2145. function: {
  2146. before: src_functionBefore,
  2147. parameter: [0, 'img[data-original]', 'data-original']
  2148. }
  2149. }, // 哔哩轻小说 (手机版) - 文库
  2150. cartoonmad: {
  2151. SiteTypeID: 0,
  2152. host: ['www.cartoonmad.com','www.cartoonmad.cc'],
  2153. functionStart: function() {if (location.pathname.indexOf('/comic/') > -1) {
  2154. document.lastElementChild.appendChild(document.createElement('style')).textContent = '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;}';
  2155. document.querySelector('body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child > a').href = 'javascript:void(0);'; // 清理图片上的链接
  2156. curSite = DBSite.cartoonmad;
  2157. } else if (location.pathname != '/') {
  2158. curSite = DBSite.cartoonmad_list;
  2159. }},
  2160. pager: {
  2161. type: 1,
  2162. nextLink: cartoonmad_functionNext,
  2163. pageElement: 'css;body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child img',
  2164. insertPosition: ['css;body > table > tbody > tr:nth-child(4) > td > table > tbody > tr:first-child > td:first-child > a', 3],
  2165. replaceE: 'css;body > table > tbody > tr:nth-child(2), body > table > tbody > tr:nth-child(5)',
  2166. mimeType: 'text/html; charset=big5',
  2167. scrollDelta: 2000
  2168. }
  2169. }, // 动漫狂
  2170. cartoonmad_list: {
  2171. SiteTypeID: 0,
  2172. pager: {
  2173. type: 1,
  2174. nextLink: '//a[@class="pages"][contains(text(), "下一頁")]',
  2175. pageElement: 'css;td[background="/image/content_box4.gif"]+td > table > tbody > tr',
  2176. insertPosition: ['css;td[background="/image/content_box4.gif"]+td > table > tbody', 3],
  2177. replaceE: '//a[@class="pages"]/parent::td/parent::tr | //font[contains(text(), "目前在第")]',
  2178. mimeType: 'text/html; charset=big5',
  2179. scrollDelta: 1000
  2180. }
  2181. }, // 动漫狂 - 分类/搜索页
  2182. manhuacat: {
  2183. SiteTypeID: 0,
  2184. host: 'www.manhuacat.com',
  2185. functionStart: function() {if (/\/manga\/\d+\/.+\.html/.test(location.pathname)) {
  2186. if (getCookie('is_pull') == 'true') { // 强制关闭 [下拉] 模式
  2187. document.cookie='is_pull=false; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 关闭 [下拉] 模式
  2188. location.reload(); // 刷新网页
  2189. }
  2190. setTimeout(manhuacat_init, 100);
  2191. curSite = DBSite.manhuacat; document.lastElementChild.appendChild(document.createElement('style')).textContent = '#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;}'; // 隐藏不需要的元素,调整图片
  2192. } else if (location.pathname.indexOf('/list') > -1) {
  2193. curSite = DBSite.manhuacat_list;
  2194. } else if (location.pathname.indexOf('/search') > -1 || location.pathname.indexOf('/update') > -1) {
  2195. curSite = DBSite.manhuacat_search;
  2196. }},
  2197. pager: {
  2198. type: 4,
  2199. nextLink: manhuacat_functionNext,
  2200. insertPosition: ['css;.img-content', 3],
  2201. insertElement: manhuacat_insertElement,
  2202. replaceE: 'css;.comic-detail > .breadcrumb-bar, .comic-detail >h2.h4, title, .vg-r-data, body > script:not([src])',
  2203. intervals: 2000,
  2204. scrollDelta: 3000
  2205. }
  2206. }, // 漫画猫
  2207. manhuacat_list: {
  2208. SiteTypeID: 0,
  2209. pager: {
  2210. type: 1,
  2211. nextLink: '//div[contains(@class, "pagination")]//a[@href][contains(text(), "下一页") or contains(text(), "下页")]',
  2212. pageElement: 'css;.comic-main-section > *',
  2213. insertPosition: ['css;.comic-main-section', 3],
  2214. replaceE: 'css;.pagination',
  2215. scrollDelta: 1000
  2216. },
  2217. function: {
  2218. before: src_functionBefore,
  2219. parameter: [0, 'img[data-original]', 'data-original']
  2220. }
  2221. }, // 漫画猫 - 分类页
  2222. manhuacat_search: {
  2223. SiteTypeID: 0,
  2224. pager: {
  2225. type: 1,
  2226. nextLink: '//div[contains(@class, "pagination")]//a[@href][contains(text(), "下一页") or contains(text(), "下页")]',
  2227. pageElement: 'css;.comic-main-section .row > div',
  2228. insertPosition: ['css;.comic-main-section .row', 3],
  2229. replaceE: 'css;.pagination',
  2230. scrollDelta: 1000
  2231. }
  2232. }, // 漫画猫 - 搜索页
  2233. manhuadb: {
  2234. SiteTypeID: 0,
  2235. host: 'www.manhuadb.com',
  2236. functionStart: function() {if (/\/manhua\/\d+\/.+\.html/.test(location.pathname)) {
  2237. document.lastElementChild.appendChild(document.createElement('style')).textContent = '.row.m-0.pt-3.ad_2_wrap, .row.m-0.ad_1_wrap, .pagination.justify-content-center, #left, #right {display: none !important;}';
  2238. if (document.querySelector('img.img-fluid.show-pic')) document.querySelector('img.img-fluid.show-pic').style.display = 'none'; // 隐藏第一个图片(避免重复)
  2239. setTimeout(manhuadb_init, 100);
  2240. curSite = DBSite.manhuadb;
  2241. } else if (location.pathname.indexOf('/list') > -1) {
  2242. curSite = DBSite.manhuacat_list;
  2243. } else if (location.pathname.indexOf('/search') > -1 || location.pathname.indexOf('/update') > -1) {
  2244. curSite = DBSite.manhuacat_search;
  2245. }},
  2246. pager: {
  2247. type: 4,
  2248. nextLink: manhuadb_functionNext,
  2249. pageElement: 'css;body > script:not([type]):not([src]), .vg-r-data, ol.links-of-books.num_div',
  2250. insertPosition: ['css;.pjax-container', 3],
  2251. insertElement: manhuadb_insertElement,
  2252. intervals: 5000,
  2253. scrollDelta: 3000
  2254. }
  2255. }, // 漫画 DB
  2256. hicomic: {
  2257. SiteTypeID: 0,
  2258. host: 'www.hicomic.net',
  2259. functionStart: function() {if (location.pathname.indexOf('/chapters/') > -1) {
  2260. document.lastElementChild.appendChild(document.createElement('style')).textContent = '.content {height: auto !important;} .footer, .left_cursor, .right_cursor, .finish {display: none !important;} .content > img {display: block !important;margin: 0 auto !important;}';
  2261. setTimeout(hicomic_init, 100);
  2262. curSite = DBSite.hicomic;
  2263. }},
  2264. pager: {
  2265. type: 4,
  2266. nextLink: hicomic_functionNext,
  2267. insertPosition: ['css;.content', 3],
  2268. insertElement: hicomic_insertElement,
  2269. intervals: 5000,
  2270. scrollDelta: 3000
  2271. }
  2272. }, // HiComic (嗨漫画)
  2273. dmzj: {
  2274. SiteTypeID: 0,
  2275. host: 'www.dmzj.com',
  2276. functionStart: function() {if (location.pathname.indexOf('/view/') > -1) {
  2277. if (getCookie('display_mode') != '1') { // 强制开启 [上下滚动阅读] 模式
  2278. document.cookie='display_mode=1; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; // 写入 Cookie 开启 [上下滚动阅读] 模式
  2279. location.reload(); // 刷新网页
  2280. }
  2281. setTimeout(dmzj_init, 100);
  2282. curSite = DBSite.dmzj; document.lastElementChild.appendChild(document.createElement('style')).textContent = '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;}'; // 隐藏中间的页数信息
  2283. } else if (location.pathname.indexOf('/category') > -1 || location.pathname.indexOf('/update') > -1) {
  2284. curSite = DBSite.dmzj_list; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.wrap_mhlist_l.con_left, .wrap_list {height: auto!important;}';
  2285. } else if (location.pathname.indexOf('/rank') > -1) {
  2286. curSite = DBSite.dmzj_rank; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.wrap_mhlist_l.con_left {height: auto!important;}';
  2287. }},
  2288. pager: {
  2289. type: 4,
  2290. nextLink: dmzj_functionNext,
  2291. insertPosition: ['css;.comic_wraCon', 3],
  2292. insertElement: dmzj_insertElement,
  2293. replaceE: 'css;.wrap_last_mid, .wrap_last_head, title',
  2294. intervals: 2000,
  2295. scrollDelta: 3000
  2296. }
  2297. }, // 动漫之家 - 原创
  2298. dmzj_list: {
  2299. SiteTypeID: 0,
  2300. pager: {
  2301. type: 1,
  2302. nextLink: 'css;a.pg_next[href]',
  2303. pageElement: 'css;ul.list_con_li > li',
  2304. insertPosition: ['css;ul.list_con_li', 3],
  2305. replaceE: 'css;.page',
  2306. scrollDelta: 1000
  2307. }
  2308. }, // 动漫之家 - 原创 - 分类页
  2309. dmzj_rank: {
  2310. SiteTypeID: 0,
  2311. pager: {
  2312. type: 1,
  2313. nextLink: 'css;a.pg_next[href]',
  2314. pageElement: 'css;.ph_r_con_li > div:not(.ad_column)',
  2315. insertPosition: ['css;.ph_r_con_li', 3],
  2316. replaceE: 'css;.page',
  2317. scrollDelta: 1000
  2318. }
  2319. }, // 动漫之家 - 原创 - 排行榜
  2320. dmzj_manhua: {
  2321. SiteTypeID: 0,
  2322. host: 'manhua.dmzj.com',
  2323. functionStart: function() {if (/\/\d+\.shtml/.test(location.pathname)) {
  2324. let chapterScroll = document.getElementById('qiehuan_txt') // 强制为 [上下滚动阅读] 模式
  2325. if (chapterScroll && chapterScroll.textContent === '切换到上下滚动阅读') {chapterScroll.click();}
  2326. setTimeout(dmzj_manhua_init, 100);
  2327. curSite = DBSite.dmzj_manhua; document.lastElementChild.appendChild(document.createElement('style')).textContent = '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;}'; // 隐藏中间的页数信息
  2328. /*} else if (location.pathname.indexOf('/tags/search') > -1) {
  2329. curSite = DBSite.dmzj_manhua_search;
  2330. } else if (location.pathname.indexOf('/tags/') > -1) {
  2331. curSite = DBSite.dmzj_manhua_list;*/
  2332. } else if (location.pathname.indexOf('/update') > -1) {
  2333. curSite = DBSite.dmzj_manhua_update;
  2334. }},
  2335. pager: {
  2336. type: 4,
  2337. nextLink: dmzj_manhua_functionNext,
  2338. insertPosition: ['css;#center_box', 3],
  2339. insertElement: dmzj_manhua_insertElement,
  2340. replaceE: 'css;.display_graybg, title',
  2341. intervals: 2000,
  2342. scrollDelta: 3000
  2343. }
  2344. }, // 动漫之家 - 日漫
  2345. dmzj_manhua_search: {
  2346. SiteTypeID: 0,
  2347. pager: {
  2348. type: 1,
  2349. nextLink: '//div[@class="pages"]/a[contains(text(), "下一页")]',
  2350. forceHTTPS: true,
  2351. pageElement: 'css;.tcaricature_block ul',
  2352. insertPosition: ['css;.tcaricature_block', 3],
  2353. replaceE: 'css;.pages',
  2354. scrollDelta: 1000
  2355. },
  2356. function: {
  2357. after: function() {
  2358. document.body.appendChild(document.createElement('script')).src = document.querySelector('head > script[src*="/js/ps.js"]').src;
  2359. }
  2360. }
  2361. }, //动漫之家 - 日漫 - 搜索页
  2362. dmzj_manhua_list: {
  2363. SiteTypeID: 0,
  2364. pager: {
  2365. type: 1,
  2366. nextLink: '//div[@class="pages"]/a[contains(text(), "下一页")]',
  2367. forceHTTPS: true,
  2368. pageElement: 'css;.tcaricature_block ul',
  2369. insertPosition: ['css;.pages', 1],
  2370. replaceE: 'css;.pages',
  2371. scrollDelta: 1000
  2372. },
  2373. function: {
  2374. after: function() {
  2375. document.body.appendChild(document.createElement('script')).src = document.querySelector('head > script[src*="/js/csearch.js"]').src;
  2376. }
  2377. }
  2378. }, // 动漫之家 - 日漫 - 分类页
  2379. dmzj_manhua_update: {
  2380. SiteTypeID: 0,
  2381. pager: {
  2382. type: 1,
  2383. nextLink: '//div[@class="pages"]/a[contains(text(), "下一页")]',
  2384. pageElement: 'css;.newpic_content > *:not(.pages)',
  2385. insertPosition: ['css;.newpic_content', 3],
  2386. replaceE: 'css;.pages',
  2387. scrollDelta: 1000
  2388. }
  2389. }, //动漫之家 - 日漫 - 最新更新
  2390. copymanga: {
  2391. SiteTypeID: 0,
  2392. host: 'www.copymanga.com',
  2393. functionStart: function() {if (location.pathname.indexOf('/chapter/') > -1) {
  2394. curSite = DBSite.copymanga; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.upMember, .comicContainerAds, .footer {display: none !important;}';
  2395. } else if (location.pathname.indexOf('/comics') > -1) {
  2396. curSite = DBSite.copymanga_list;
  2397. }},
  2398. pager: {
  2399. type: 4,
  2400. nextLink: copymanga_functionNext,
  2401. insertPosition: ['css;ul.comicContent-image-list > li:first-child', 1],
  2402. insertElement: copymanga_insertElement,
  2403. replaceE: 'css;.disposableData, .disposablePass, .disposableUrlPrefix, .disposableUrlSuffix, .footer, h4.header, title',
  2404. intervals: 5000,
  2405. scrollDelta: 3000
  2406. }
  2407. }, // 拷贝漫画
  2408. copymanga_list: {
  2409. SiteTypeID: 0,
  2410. pager: {
  2411. type: 1,
  2412. nextLink: 'css;li.next > a[href]',
  2413. pageElement: 'css;.exemptComic-box > div',
  2414. insertPosition: ['css;.exemptComic-box', 3],
  2415. replaceE: 'css;ul.page-all',
  2416. scrollDelta: 1500
  2417. },
  2418. function: {
  2419. before: src_functionBefore,
  2420. parameter: [0, 'img[data-src]', 'data-src']
  2421. }
  2422. }, // 拷贝漫画 - 分类页
  2423. mhxqiu: {
  2424. SiteTypeID: 0,
  2425. host: 'www.mhxqiu.com',
  2426. functionStart: function() {if (/\/\d+\.html/.test(location.pathname)) { // 阅读页
  2427. curSite = DBSite.mhxqiu; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.imgFloat_1, .imgFloat_2, .main_control {display: none !important;} body {height: auto !important;}';
  2428. } else if (/\/\d+\/$/.test(location.pathname)) { // 目录页
  2429. setTimeout(function(){if (document.getElementById('zhankai')) document.getElementById('zhankai').click();}, 500)
  2430. } else if (/\/(sort|rank)\//.test(location.pathname)) { // 分类页
  2431. curSite = DBSite.mhxqiu_list;
  2432. }},
  2433. pager: {
  2434. type: 4,
  2435. nextLink: mhxqiu_functionNext,
  2436. insertPosition: ['css;#comicContain', 3],
  2437. insertElement: mhxqiu_insertElement,
  2438. replaceE: 'css;#mainControlNext, h1.chaptername_title, title',
  2439. intervals: 5000,
  2440. scrollDelta: 3000
  2441. }
  2442. }, // 漫画星球
  2443. mhxqiu_list: {
  2444. SiteTypeID: 0,
  2445. pager: {
  2446. type: 1,
  2447. nextLink: '//div[@class="NewPages"]//a[contains(text(), "下一页")]',
  2448. pageElement: 'css;.cy_list_mh > ul',
  2449. insertPosition: ['css;.cy_list_mh', 3],
  2450. replaceE: 'css;.NewPages',
  2451. scrollDelta: 1000
  2452. }
  2453. }, // 漫画星球 - 分类页
  2454. gufengmh: {
  2455. SiteTypeID: 0,
  2456. host: /gufengmh/,
  2457. functionStart: function() {if (/\/\d+.+\.html/.test(location.pathname)) {
  2458. let chapterScroll = document.getElementById('chapter-scroll') // 强制为 [下拉阅读] 模式
  2459. if (chapterScroll && chapterScroll.className === '') {chapterScroll.click();}
  2460. curSite = DBSite.gufengmh; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'p.img_info {display: none !important;}'; // 隐藏中间的页数信息
  2461. } else if (location.pathname.indexOf('/update') > -1 || location.pathname.indexOf('/list') > -1 || location.pathname.indexOf('/search') > -1) {
  2462. curSite = DBSite.gufengmh_list;
  2463. }},
  2464. pager: {
  2465. type: 4,
  2466. nextLink: gufengmh_functionNext,
  2467. pageElement: 'css;body > script:first-child',
  2468. insertPosition: ['css;#images', 3],
  2469. insertElement: gufengmh_insertElement,
  2470. intervals: 5000,
  2471. scrollDelta: 4000
  2472. }
  2473. }, // 古风漫画网
  2474. gufengmh_list: {
  2475. SiteTypeID: 0,
  2476. pager: {
  2477. type: 1,
  2478. nextLink: 'css;li.next > a[href]',
  2479. pageElement: 'css;ul.book-list > li',
  2480. insertPosition: ['css;ul.book-list', 3],
  2481. replaceE: 'css;ul.pagination',
  2482. scrollDelta: 1000
  2483. }
  2484. }, // 古风漫画网 - 分类页
  2485. szcdmj: {
  2486. SiteTypeID: 0,
  2487. host: 'www.szcdmj.com',
  2488. functionStart: function() {if (location.pathname.indexOf('/szcchapter/') > -1) {curSite = DBSite.szcdmj; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.header {opacity: 0.3 !important;}';}},
  2489. pager: {
  2490. type: 1,
  2491. nextLink: '//div[@class="fanye"][1]/a[@href][text()="下一页" or text()="下一话"]',
  2492. pageElement: 'css;.comicpage > div,title',
  2493. insertPosition: ['css;.comicpage', 3],
  2494. replaceE: 'css;.fanye,h1.title',
  2495. scrollDelta: 2000
  2496. },
  2497. function: {
  2498. before: szcdmj_functionBefore
  2499. }
  2500. }, // 砂之船动漫家
  2501. mangabz: {
  2502. SiteTypeID: 0,
  2503. host: 'mangabz.com',
  2504. functionStart: function() {if (/\/m\d+/.test(location.pathname)) {
  2505. setTimeout(mangabz_init, 500);
  2506. curSite = DBSite.mangabz;
  2507. document.lastElementChild.appendChild(document.createElement('style')).textContent = '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;}';
  2508. } else if (/\/\d+bz\//.test(location.pathname)) {
  2509. if (document.querySelector('.detail-list-form-more')) document.querySelector('.detail-list-form-more').click();
  2510. } else if (location.pathname.indexOf('/manga-list') > -1 || location.pathname === '/search') {
  2511. curSite = DBSite.mangabz_list;
  2512. }},
  2513. pager: {
  2514. type: 4,
  2515. nextLink: mangabz_functionNext,
  2516. insertPosition: ['css;#cp_img', 3],
  2517. insertElement: mangabz_insertElement,
  2518. replaceE: 'css;p.top-title, body > .container > div:not([id]), title',
  2519. intervals: 500,
  2520. scrollDelta: 1000
  2521. }
  2522. }, // Mangabz 漫画
  2523. mangabz_list: {
  2524. SiteTypeID: 0,
  2525. pager: {
  2526. type: 1,
  2527. nextLink: '//div[@class="page-pagination"]//a[@href][contains(text(), ">")]',
  2528. pageElement: 'css;ul.mh-list > li',
  2529. insertPosition: ['css;ul.mh-list', 3],
  2530. replaceE: 'css;.page-pagination',
  2531. scrollDelta: 800
  2532. }
  2533. }, // Mangabz 漫画 - 分类/搜索页
  2534. _423down: {
  2535. SiteTypeID: 0,
  2536. host: 'www.423down.com',
  2537. functionStart: function() {if (location.pathname.indexOf('.html') === -1) curSite = DBSite._423down;},
  2538. pager: {
  2539. type: 1,
  2540. nextLink: '//div[@class="paging"]//a[contains(text(),"下一页")][@href]',
  2541. pageElement: 'css;div.content-wrap ul.excerpt > li',
  2542. insertPosition: ['css;div.content-wrap ul.excerpt', 3],
  2543. replaceE: 'css;div.paging',
  2544. scrollDelta: 1500
  2545. }
  2546. }, // 423Down
  2547. iao_su: {
  2548. SiteTypeID: 0,
  2549. host: 'iao.su',
  2550. pager: {
  2551. type: 1,
  2552. nextLink: '//li[@class="btn btn-primary next"]//a[@href]',
  2553. pageElement: 'css;#index > article, #archive > article',
  2554. insertPosition: ['css;ol.page-navigator', 1],
  2555. replaceE: 'css;ol.page-navigator',
  2556. scriptType: 4,
  2557. scrollDelta: 1000
  2558. }
  2559. }, // 不死鸟
  2560. sharerw: {
  2561. SiteTypeID: 0,
  2562. host: 'www.sharerw.com',
  2563. functionStart: function() {if (location.pathname.indexOf('.html') === -1) {
  2564. if (location.pathname === '/search.php') {curSite = DBSite.sharerw_search;} else {curSite = DBSite.sharerw;};};},
  2565. pager: {
  2566. type: 1,
  2567. nextLink: 'css;span.next > a[href]',
  2568. pageElement: 'css;.new-post > article',
  2569. insertPosition: ['css;.new-post', 3],
  2570. replaceE: 'css;.pagebar',
  2571. scrollDelta: 1500
  2572. }
  2573. }, // 分享者
  2574. sharerw_search: {
  2575. SiteTypeID: 0,
  2576. pager: {
  2577. type: 1,
  2578. nextLink: 'css;span.next > a[href]',
  2579. pageElement: 'css;#mainbox > article',
  2580. insertPosition: ['css;.pagebar', 1],
  2581. replaceE: 'css;.pagebar',
  2582. scrollDelta: 1500
  2583. }
  2584. }, // 分享者 - 搜索页
  2585. extfans: {
  2586. SiteTypeID: 0,
  2587. host: 'www.extfans.com',
  2588. functionStart: function() {if (location.pathname != '/') {curSite = DBSite.extfans;}},
  2589. pager: {
  2590. type: 1,
  2591. nextLink: 'css;.page a[data-page="next"]',
  2592. pageElement: 'css;.side-left > ul[class*="-list"] > li',
  2593. insertPosition: ['css;.side-left > ul[class*="-list"]', 3],
  2594. replaceE: 'css;.page',
  2595. scrollDelta: 2000
  2596. }
  2597. }, // 扩展迷
  2598. chrome_zzzmh: {
  2599. SiteTypeID: 0,
  2600. host: 'chrome.zzzmh.cn',
  2601. pager: {
  2602. type: 2,
  2603. nextLink: 'button.more-btn',
  2604. intervals: 1000,
  2605. scrollDelta: 1500
  2606. }
  2607. }, // 极简插件
  2608. appinn: {
  2609. SiteTypeID: 0,
  2610. host: 'www.appinn.com',
  2611. pager: {
  2612. type: 1,
  2613. nextLink: '//a[@class="next page-numbers"][@href]',
  2614. pageElement: 'css;section#latest-posts > article',
  2615. insertPosition: ['css;nav.navigation.pagination', 1],
  2616. replaceE: 'css;div.nav-links',
  2617. scrollDelta: 1500
  2618. }
  2619. }, // 小众软件
  2620. isharepc: {
  2621. SiteTypeID: 0,
  2622. host: 'www.isharepc.com',
  2623. pager: {
  2624. type: 1,
  2625. nextLink: 'css;a.next[href]',
  2626. pageElement: 'css;.content > div',
  2627. insertPosition: ['css;nav.pagination', 1],
  2628. replaceE: 'css;nav.pagination',
  2629. scrollDelta: 1000
  2630. }
  2631. }, // 乐软博客
  2632. pc521: {
  2633. SiteTypeID: 0,
  2634. host: 'www.pc521.net',
  2635. functionStart: function() {if (location.search.slice(0,3) === '?s=') {curSite = DBSite.pc521_search;} else {curSite = DBSite.pc521;}},
  2636. pager: {
  2637. type: 2,
  2638. nextLink: 'div[id^="ias_trigger_"]',
  2639. intervals: 1000,
  2640. scrollDelta: 1000
  2641. }
  2642. }, // 不忘初心
  2643. pc521_search: {
  2644. SiteTypeID: 0,
  2645. pager: {
  2646. type: 1,
  2647. nextLink: 'css;a.next[href]',
  2648. pageElement: 'css;#main > ul > li',
  2649. insertPosition: ['css;#main > ul', 3],
  2650. replaceE: 'css;nav.pagination',
  2651. scrollDelta: 1500
  2652. }
  2653. }, // 不忘初心 - 搜索页
  2654. ghxi: {
  2655. SiteTypeID: 0,
  2656. host: 'www.ghxi.com',
  2657. functionStart: function() {if (location.pathname === '/' && !location.search) {curSite = DBSite.ghxi;} else {curSite = DBSite.ghxi_postlist;}},
  2658. pager: {
  2659. type: 2,
  2660. nextLink: '.load-more',
  2661. intervals: 1000,
  2662. scrollDelta: 5000
  2663. }
  2664. }, // 果核剥壳 - 首页
  2665. ghxi_postlist: {
  2666. SiteTypeID: 0,
  2667. pager: {
  2668. type: 1,
  2669. nextLink: 'css;a.next[href]',
  2670. pageElement: 'css;ul.post-loop > li',
  2671. insertPosition: ['css;ul.post-loop', 3],
  2672. replaceE: 'css;ul.pagination',
  2673. scrollDelta: 1500
  2674. },
  2675. function: {
  2676. before: src_functionBefore
  2677. }
  2678. }, // 果核剥壳 - 分类/搜索页
  2679. sixyin: {
  2680. SiteTypeID: 0,
  2681. host: 'www.sixyin.com',
  2682. functionStart: function() {if (location.pathname === '/' && location.search === '') { // 首页
  2683. curSite = DBSite.sixyin;
  2684. } else if (location.pathname.indexOf('.html') === -1) { // 分类页
  2685. curSite = DBSite.sixyin_postlist;
  2686. }},
  2687. pager: {
  2688. type: 2,
  2689. nextLink: '.load-more',
  2690. nextHTML: '点击查看更多',
  2691. scrollDelta: 1500
  2692. }
  2693. }, // 六音软件 - 首页
  2694. sixyin_postlist: {
  2695. SiteTypeID: 0,
  2696. pager: {
  2697. type: 1,
  2698. nextLink: '//a[@class="next"][@href]',
  2699. pageElement: 'css;ul.post-loop > li',
  2700. insertPosition: ['css;ul.post-loop', 3],
  2701. replaceE: 'css;ul.pagination',
  2702. scrollDelta: 1500
  2703. }
  2704. }, // 六音软件 - 分类页
  2705. weidown: {
  2706. SiteTypeID: 0,
  2707. host: 'www.weidown.com',
  2708. functionStart: function() {if (location.pathname.indexOf('/search/') > -1) { //搜索页
  2709. curSite = DBSite.weidown_search;
  2710. } else if (location.pathname.indexOf('/special/') > -1) { // 专题页
  2711. curSite = DBSite.weidown_special;
  2712. } else {
  2713. curSite = DBSite.weidown;
  2714. }},
  2715. pager: {
  2716. type: 1,
  2717. nextLink: '//a[@class="nextpage"][@href]',
  2718. pageElement: 'css;.articleWrapper > .itemArticle, .articleWrapper > .richTextItem.search',
  2719. insertPosition: ['css;.articleWrapper', 3],
  2720. replaceE: 'css;#pageGroup',
  2721. scrollDelta: 1500
  2722. }
  2723. }, // 微当下载
  2724. weidown_search: {
  2725. SiteTypeID: 0,
  2726. pager: {
  2727. type: 1,
  2728. nextLink: '//a[@class="nextpage"][@href]',
  2729. pageElement: 'css;.articleListWrapper > .richTextItem.search',
  2730. insertPosition: ['css;#pageGroup', 1],
  2731. replaceE: 'css;#pageGroup',
  2732. scrollDelta: 700
  2733. }
  2734. }, // 微当下载 - 搜索页
  2735. weidown_special: {
  2736. SiteTypeID: 0,
  2737. pager: {
  2738. type: 1,
  2739. nextLink: '//a[@class="nextpage"][@href]',
  2740. pageElement: 'css;.special > .item',
  2741. insertPosition: ['css;.special', 3],
  2742. replaceE: 'css;#pageGroup',
  2743. scrollDelta: 700
  2744. }
  2745. }, // 微当下载 - 专题页
  2746. th_sjy: {
  2747. SiteTypeID: 0,
  2748. host: 'www.th-sjy.com',
  2749. pager: {
  2750. type: 1,
  2751. nextLink: 'css;li.next-page > a',
  2752. pageElement: 'css;.content > article',
  2753. insertPosition: ['css;.pagination', 1],
  2754. replaceE: 'css;.pagination',
  2755. scrollDelta: 2000
  2756. }
  2757. }, // th-sjy 汉化
  2758. fsylr: {
  2759. SiteTypeID: 0,
  2760. host: 'fsylr.com',
  2761. functionStart: function() {if (location.pathname.indexOf('.html') === -1) {curSite = DBSite.fsylr;}},
  2762. pager: {
  2763. type: 1,
  2764. nextLink: 'css;a.next.page-numbers[href]',
  2765. pageElement: 'css;.posts-con > div:not([class*="posts-"])',
  2766. insertPosition: ['css;.posts-con', 3],
  2767. replaceE: 'css;nav.pagination',
  2768. scrollDelta: 1000
  2769. }
  2770. }, // 发烧友绿软
  2771. iplaysoft_postslist: {
  2772. SiteTypeID: 0,
  2773. host: 'www.iplaysoft.com',
  2774. functionStart: function() {if (location.pathname.indexOf('.html') > -1 || location.pathname.indexOf('/p/') > -1) { // 文章内
  2775. curSite = DBSite.iplaysoft_postcomments;
  2776. } else { // 其他页面
  2777. curSite = DBSite.iplaysoft_postslist;
  2778. }},
  2779. pager: {
  2780. type: 1,
  2781. nextLink: '//div[@class="pagenavi"]//a[@title="下一页"][@href]',
  2782. pageElement: 'css;#postlist > div.entry',
  2783. insertPosition: ['css;#postlist > .pagenavi-button', 1],
  2784. replaceE: 'css;.pagenavi-button, .pagenavi',
  2785. scrollDelta: 1200
  2786. },
  2787. function: {
  2788. before: src_functionBefore,
  2789. parameter: [0, 'img[data-src]', 'data-src']
  2790. }
  2791. }, // 异次元软件
  2792. iplaysoft_postcomments: {
  2793. SiteTypeID: 0,
  2794. pager: {
  2795. type: 2,
  2796. nextLink: '#loadHistoryComments',
  2797. nextTextOf: '展开后面',
  2798. scrollDelta: 1200
  2799. }
  2800. }, // 异次元软件 - 评论
  2801. mpyit: {
  2802. SiteTypeID: 0,
  2803. host: 'www.mpyit.com',
  2804. functionStart: function() {if (location.pathname === '/' && !location.search) {
  2805. curSite = DBSite.mpyit;
  2806. } else if (location.pathname.indexOf('/category/') > -1 || location.search.indexOf('?s=') > -1) { // 搜索页 / 分类页
  2807. curSite = DBSite.mpyit_category;
  2808. }},
  2809. pager: {
  2810. type: 1,
  2811. nextLink: '//a[@class="page-numbers"][@title="下一页"][@href]',
  2812. pageElement: 'css;#post > div[id^="post-"]',
  2813. insertPosition: ['css;#post > #pagenavi', 1],
  2814. replaceE: 'css;#post > #pagenavi',
  2815. scrollDelta: 1700
  2816. }
  2817. }, // 老殁 | 殁漂遥
  2818. mpyit_category: {
  2819. SiteTypeID: 0,
  2820. pager: {
  2821. type: 1,
  2822. nextLink: '//a[@class="page-numbers"][@title="下一页"][@href]',
  2823. pageElement: 'css;#content > div[class^="entry_box"]',
  2824. insertPosition: ['css;#content > #pagenavi', 1],
  2825. replaceE: 'css;#content > #pagenavi',
  2826. scrollDelta: 1700
  2827. }
  2828. }, // 老殁 | 殁漂遥 - 搜索页/分类页
  2829. yxssp: {
  2830. SiteTypeID: 0,
  2831. host: 'www.yxssp.com',
  2832. pager: {
  2833. type: 1,
  2834. nextLink: '//div[@class="page-nav td-pb-padding-side"]/a[last()][@href]',
  2835. pageElement: 'css;.td-modules-container.td-module-number4 > div',
  2836. insertPosition: ['css;.td-modules-container.td-module-number4', 3],
  2837. replaceE: 'css;.page-nav.td-pb-padding-side',
  2838. scrollDelta: 1000
  2839. }
  2840. }, // 异星软件空间
  2841. sordum: {
  2842. SiteTypeID: 0,
  2843. host: 'www.sordum.org',
  2844. pager: {
  2845. type: 1,
  2846. nextLink: '//a[@class="next page-numbers"][@href]',
  2847. pageElement: 'css;.article > article',
  2848. insertPosition: ['css;nav.navigation.posts-navigation', 1],
  2849. replaceE: 'css;nav.navigation.posts-navigation',
  2850. scrollDelta: 1500
  2851. }
  2852. }, // (下面这几个都是国外博客网站)
  2853. winaero: {
  2854. SiteTypeID: 0,
  2855. host: 'winaero.com',
  2856. functionStart: function() {if (location.pathname === '/blog/' || location.pathname.indexOf('/category/') > -1) curSite = DBSite.winaero;},
  2857. pager: {
  2858. type: 1,
  2859. nextLink: 'css;.nav-previous > a',
  2860. pageElement: 'css;#content > article',
  2861. insertPosition: ['css;#nav-below', 1],
  2862. replaceE: 'css;#nav-below',
  2863. scrollDelta: 1500
  2864. }
  2865. },
  2866. lrepacks: {
  2867. SiteTypeID: 0,
  2868. host: 'lrepacks.net',
  2869. functionStart: function() {if (location.pathname.indexOf('.html') === -1) curSite = DBSite.lrepacks;},
  2870. pager: {
  2871. type: 1,
  2872. nextLink: 'css;.page_next > a',
  2873. pageElement: 'css;#main .post-list article',
  2874. insertPosition: ['css;.page_nav', 1],
  2875. replaceE: 'css;.page_nav',
  2876. scrollDelta: 1500
  2877. },
  2878. function: {
  2879. before: lrepacks_functionBefore
  2880. }
  2881. },
  2882. winhelponline: {
  2883. SiteTypeID: 0,
  2884. host: 'www.winhelponline.com',
  2885. functionStart: function() {if (location.pathname === '/blog/') {curSite = DBSite.winhelponline;}},
  2886. pager: {
  2887. type: 1,
  2888. nextLink: 'css;span.prev > a[href]',
  2889. pageElement: 'css;#main > article',
  2890. insertPosition: ['css;nav.paging-navigation', 1],
  2891. replaceE: 'css;nav.paging-navigation',
  2892. scrollDelta: 2000
  2893. }
  2894. },
  2895. windowslatest: {
  2896. SiteTypeID: 0,
  2897. host: 'www.windowslatest.com',
  2898. pager: {
  2899. type: 1,
  2900. nextLink: '//div[contains(@class, "page-nav")]/a/i[@class="td-icon-menu-right"]/parent::a',
  2901. pageElement: 'css;.td-ss-main-content > div:not(.td-block-title-wrap):not(.page-nav)',
  2902. insertPosition: ['css;.page-nav', 1],
  2903. replaceE: 'css;.page-nav',
  2904. scrollDelta: 2000
  2905. }
  2906. },
  2907. thewindowsclub: {
  2908. SiteTypeID: 0,
  2909. host: 'www.thewindowsclub.com',
  2910. functionStart: function() {curSite = DBSite.thewindowsclub; if (location.pathname === '/') {curSite.pager.scrollDelta = 2000;}},
  2911. pager: {
  2912. type: 1,
  2913. nextLink: 'css;li.pagination-next > a',
  2914. pageElement: 'css;#genesis-content > article',
  2915. insertPosition: ['css;.pagination', 1],
  2916. replaceE: 'css;.pagination',
  2917. scrollDelta: 1500
  2918. }
  2919. },
  2920. gitee: {
  2921. SiteTypeID: 0,
  2922. host: 'search.gitee.com',
  2923. functionStart: function() {if (location.search) curSite = DBSite.gitee;},
  2924. pager: {
  2925. type: 1,
  2926. nextLink: 'css;li.next > a[href]',
  2927. pageElement: 'css;#hits-list > div',
  2928. insertPosition: ['css;#hits-list', 3],
  2929. replaceE: 'css;ul.pagination',
  2930. scrollDelta: 1000
  2931. }
  2932. }, // Gitee - 搜索页
  2933. github_star: {
  2934. SiteTypeID: 0,
  2935. host: 'github.com',
  2936. functionStart: function() {locationchange = true;
  2937. if (location.search.indexOf('tab=stars') > -1) {
  2938. curSite = DBSite.github_star;
  2939. } else if ((location.pathname.indexOf('/issues') > -1 && location.pathname.indexOf('/issues/') === -1) || (location.pathname.indexOf('/pulls') > -1 && location.pathname.indexOf('/pulls/') === -1)) {
  2940. curSite = DBSite.github_issues;
  2941. } else if (location.pathname.indexOf('/discussions') > -1 && !(/\/discussions\/\d+/.test(location.pathname)) && location.pathname.indexOf('new') === -1) {
  2942. curSite = DBSite.github_discussions;
  2943. } else if (location.pathname.indexOf('/releases') > -1 && location.pathname.indexOf('/releases/tag/') === -1 && location.pathname.indexOf('edit') === -1) {
  2944. curSite = DBSite.github_releases;
  2945. } else if (location.pathname.indexOf('/tags') > -1 && location.pathname.indexOf('/tags/') === -1) {
  2946. curSite = DBSite.github_tags;
  2947. } else if (location.pathname.indexOf('/commits') > -1) {
  2948. curSite = DBSite.github_commits;
  2949. } else if (location.pathname.indexOf('/search') > -1) {
  2950. if (!location.search) return
  2951. if (location.search.indexOf('type=Repositories') > -1 || location.search.indexOf('type=') === -1) {
  2952. curSite = DBSite.github_search;
  2953. } else if (location.search.indexOf('type=code') > -1) {
  2954. curSite = DBSite.github_search_code;
  2955. } else if (location.search.indexOf('type=commits') > -1) {
  2956. curSite = DBSite.github_search_commit;
  2957. } else if (location.search.indexOf('type=issues') > -1 || location.search.indexOf('type=discussions') > -1) {
  2958. curSite = DBSite.github_search_issue;
  2959. } else if (location.search.indexOf('type=registrypackages') > -1) {
  2960. curSite = DBSite.github_search_package;
  2961. } else if (location.search.indexOf('type=marketplace') > -1) {
  2962. curSite = DBSite.github_search_marketplace;
  2963. } else if (location.search.indexOf('type=topics') > -1) {
  2964. curSite = DBSite.github_search_topics;
  2965. } else if (location.search.indexOf('type=wikis') > -1) {
  2966. curSite = DBSite.github_search_wiki;
  2967. } else if (location.search.indexOf('type=users') > -1) {
  2968. curSite = DBSite.github_search_user;
  2969. }
  2970. }},
  2971. pager: {
  2972. type: 1,
  2973. nextLink: '//div[@class="paginate-container"]//a[@href][contains(text(), "Next")]',
  2974. pageElement: 'css;#js-pjax-container .position-relative div[class^="col-lg-"] > div:not(.position-relative):not(.paginate-container)',
  2975. insertPosition: ['css;.paginate-container', 1],
  2976. replaceE: 'css;.paginate-container',
  2977. scrollDelta: 3000
  2978. }
  2979. }, // Github - 用户 Star 列表
  2980. github_issues: {
  2981. SiteTypeID: 0,
  2982. pager: {
  2983. type: 1,
  2984. nextLink: 'css;a.next_page',
  2985. pageElement: 'css;.js-navigation-container.js-active-navigation-container > div[id^="issue_"]',
  2986. insertPosition: ['css;.js-navigation-container.js-active-navigation-container', 3],
  2987. replaceE: 'css;.pagination',
  2988. scrollDelta: 3000
  2989. }
  2990. }, // Github - Issues 列表 / PR 列表
  2991. github_discussions: {
  2992. SiteTypeID: 0,
  2993. pager: {
  2994. type: 1,
  2995. nextLink: 'css;a.next_page',
  2996. pageElement: 'css;#repo-content-pjax-container div[data-discussion-hovercards-enabled] > div',
  2997. insertPosition: ['css;#repo-content-pjax-container div[data-discussion-hovercards-enabled]', 3],
  2998. replaceE: 'css;.pagination',
  2999. scrollDelta: 3000
  3000. }
  3001. }, // Github - Discussions 列表
  3002. github_releases: {
  3003. SiteTypeID: 0,
  3004. pager: {
  3005. type: 1,
  3006. nextLink: '//div[@class="pagination"]/a[contains(text(), "Next")]',
  3007. pageElement: 'css;.repository-content >.position-relative > div',
  3008. insertPosition: ['css;.repository-content >.position-relative', 3],
  3009. replaceE: 'css;.pagination',
  3010. scrollDelta: 3000
  3011. }
  3012. }, // Github - Releases 列表
  3013. github_tags: {
  3014. SiteTypeID: 0,
  3015. pager: {
  3016. type: 1,
  3017. nextLink: '//div[@class="pagination"]/a[contains(text(), "Next")]',
  3018. pageElement: 'css;.repository-content > .Box > div.Box-row',
  3019. insertPosition: ['css;.repository-content > .Box', 3],
  3020. replaceE: 'css;.pagination',
  3021. scrollDelta: 3000
  3022. }
  3023. }, // Github - Tags 列表
  3024. github_commits: {
  3025. SiteTypeID: 0,
  3026. pager: {
  3027. type: 1,
  3028. nextLink: '//div[@class="paginate-container"]//a[contains(text(), "Older")]',
  3029. pageElement: 'css;div.js-navigation-container > div',
  3030. insertPosition: ['css;div.js-navigation-container', 3],
  3031. replaceE: 'css;.paginate-container',
  3032. scrollDelta: 3000
  3033. }
  3034. }, // Github - Commits 列表
  3035. github_search: {
  3036. SiteTypeID: 0,
  3037. pager: {
  3038. type: 1,
  3039. nextLink: 'css;a.next_page',
  3040. pageElement: 'css;ul.repo-list > li',
  3041. insertPosition: ['css;ul.repo-list', 3],
  3042. replaceE: 'css;.pagination',
  3043. scrollDelta: 1500
  3044. }
  3045. }, // Github - Search 列表
  3046. github_search_code: {
  3047. SiteTypeID: 0,
  3048. pager: {
  3049. type: 1,
  3050. nextLink: 'css;a.next_page',
  3051. pageElement: 'css;.code-list > div',
  3052. insertPosition: ['css;.code-list', 3],
  3053. replaceE: 'css;.pagination',
  3054. scrollDelta: 1500
  3055. }
  3056. }, // Github - Search 列表 - Code
  3057. github_search_commit: {
  3058. SiteTypeID: 0,
  3059. pager: {
  3060. type: 1,
  3061. nextLink: 'css;a.next_page',
  3062. pageElement: 'css;#commit_search_results > div',
  3063. insertPosition: ['css;#commit_search_results', 3],
  3064. replaceE: 'css;.pagination',
  3065. scrollDelta: 1500
  3066. }
  3067. }, // Github - Search 列表 - Commit
  3068. github_search_issue: {
  3069. SiteTypeID: 0,
  3070. pager: {
  3071. type: 1,
  3072. nextLink: 'css;a.next_page',
  3073. pageElement: 'css;.issue-list > div > div',
  3074. insertPosition: ['css;.issue-list > div', 3],
  3075. replaceE: 'css;.pagination',
  3076. scrollDelta: 1500
  3077. }
  3078. }, // Github - Search 列表 - Issues/Discussions
  3079. github_search_package: {
  3080. SiteTypeID: 0,
  3081. pager: {
  3082. type: 1,
  3083. nextLink: 'css;a.next_page',
  3084. pageElement: 'css;#package_search_results > div',
  3085. insertPosition: ['css;#package_search_results', 3],
  3086. replaceE: 'css;.pagination',
  3087. scrollDelta: 1500
  3088. }
  3089. }, // Github - Search 列表 - Package
  3090. github_search_marketplace: {
  3091. SiteTypeID: 0,
  3092. pager: {
  3093. type: 1,
  3094. nextLink: 'css;a.next_page',
  3095. pageElement: 'css;.issue-list > div',
  3096. insertPosition: ['css;.issue-list', 3],
  3097. replaceE: 'css;.pagination',
  3098. scrollDelta: 1500
  3099. }
  3100. }, // Github - Search 列表 - Marketplace
  3101. github_search_topics: {
  3102. SiteTypeID: 0,
  3103. pager: {
  3104. type: 1,
  3105. nextLink: 'css;a.next_page',
  3106. pageElement: 'css;.topic-list > div',
  3107. insertPosition: ['css;.topic-list', 3],
  3108. replaceE: 'css;.pagination',
  3109. scrollDelta: 1500
  3110. }
  3111. }, // Github - Search 列表 - Topics
  3112. github_search_wiki: {
  3113. SiteTypeID: 0,
  3114. pager: {
  3115. type: 1,
  3116. nextLink: 'css;a.next_page',
  3117. pageElement: 'css;#wiki_search_results > div:first-child > div',
  3118. insertPosition: ['css;#wiki_search_results > div:first-child', 3],
  3119. replaceE: 'css;.pagination',
  3120. scrollDelta: 1500
  3121. }
  3122. }, // Github - Search 列表 - wiki
  3123. github_search_user: {
  3124. SiteTypeID: 0,
  3125. pager: {
  3126. type: 1,
  3127. nextLink: 'css;a.next_page',
  3128. pageElement: 'css;#user_search_results > div:first-child > div',
  3129. insertPosition: ['css;#user_search_results > div:first-child', 3],
  3130. replaceE: 'css;.pagination',
  3131. scrollDelta: 1500
  3132. }
  3133. }, // Github - Search 列表 - user
  3134. stackoverflow: {
  3135. SiteTypeID: 0,
  3136. host: 'stackoverflow.com',
  3137. functionStart: function() {if (location.pathname.indexOf('/questions') > -1) {
  3138. curSite = DBSite.stackoverflow;
  3139. } else if (location.pathname === '/search') {
  3140. curSite = DBSite.stackoverflow_search;
  3141. } else if (location.pathname === '/tags') {
  3142. curSite = DBSite.stackoverflow_tags;
  3143. } else if (location.pathname === '/users') {
  3144. curSite = DBSite.stackoverflow_users;
  3145. }},
  3146. pager: {
  3147. type: 1,
  3148. nextLink: 'css;a[href][rel="next"]',
  3149. pageElement: 'css;#questions > div',
  3150. insertPosition: ['css;#questions', 3],
  3151. replaceE: 'css;.pager',
  3152. scrollDelta: 1500
  3153. }
  3154. }, // StackOverflow - Questions
  3155. stackoverflow_tags: {
  3156. SiteTypeID: 0,
  3157. pager: {
  3158. type: 1,
  3159. nextLink: 'css;a[href][rel="next"]',
  3160. pageElement: 'css;#tags-browser > div',
  3161. insertPosition: ['css;#tags-browser', 3],
  3162. replaceE: 'css;.pager',
  3163. scrollDelta: 1500
  3164. }
  3165. }, // StackOverflow - Tags
  3166. stackoverflow_users: {
  3167. SiteTypeID: 0,
  3168. pager: {
  3169. type: 1,
  3170. nextLink: 'css;a[href][rel="next"]',
  3171. pageElement: 'css;#user-browser > div:first-child > div',
  3172. insertPosition: ['css;#user-browser > div:first-child', 3],
  3173. replaceE: 'css;.pager',
  3174. scrollDelta: 1500
  3175. }
  3176. }, // StackOverflow - Users
  3177. stackoverflow_search: {
  3178. SiteTypeID: 0,
  3179. pager: {
  3180. type: 1,
  3181. nextLink: 'css;a[href][rel="next"]',
  3182. pageElement: 'css;.js-search-results > div:first-child > div',
  3183. insertPosition: ['css;.js-search-results > div:first-child', 3],
  3184. replaceE: 'css;.pager',
  3185. scrollDelta: 1500
  3186. }
  3187. }, // StackOverflow - Search
  3188. segmentfault: {
  3189. SiteTypeID: 0,
  3190. host: 'segmentfault.com',
  3191. functionStart: function() {locationchange = true;
  3192. if (location.pathname.indexOf('/questions') > -1) {
  3193. curSite = DBSite.segmentfault;
  3194. } else if (location.pathname === '/search') {
  3195. curSite = DBSite.segmentfault_search;
  3196. }},
  3197. pager: {
  3198. type: 1,
  3199. nextLink: '//a[@class="page-link"][contains(text(), "下一页")]',
  3200. pageElement: 'css;ul.list-group > li',
  3201. insertPosition: ['css;ul.list-group', 3],
  3202. replaceE: 'css;ul.pagination',
  3203. scrollDelta: 1000
  3204. }
  3205. }, // SegmentFault - Questions
  3206. segmentfault_search: {
  3207. SiteTypeID: 0,
  3208. pager: {
  3209. type: 1,
  3210. nextLink: 'css;a[href][rel="next"]',
  3211. pageElement: 'css;.search-result > section',
  3212. insertPosition: ['css;.search-result > div:last-child', 1],
  3213. replaceE: 'css;ul.pagination',
  3214. scrollDelta: 1000
  3215. }
  3216. }, // SegmentFault - Search
  3217. libgen: {
  3218. SiteTypeID: 0,
  3219. host: /libgen/,
  3220. functionStart: function() {if (location.pathname === '/search.php') {curSite = DBSite.libgen;}},
  3221. pager: {
  3222. type: 1,
  3223. nextLink: '//font/a[@href][contains(text(), "►")]',
  3224. pageElement: 'css;table[rules="rows"] > tbody > tr:nth-of-type(n+2), .paginator+script:not([src])',
  3225. insertPosition: ['css;table[rules="rows"] > tbody', 3],
  3226. replaceE: '//td[./font/a[@href][contains(text(), "►")]]',
  3227. scriptType: 2,
  3228. history: true,
  3229. scrollDelta: 2000
  3230. }
  3231. }, // 学术
  3232. pubmed: {
  3233. SiteTypeID: 0,
  3234. host: 'pubmed.ncbi.nlm.nih.gov',
  3235. pager: {
  3236. type: 2,
  3237. nextLink: 'button.load-button.next-page',
  3238. nextText: 'Show more',
  3239. scrollDelta: 1500
  3240. }
  3241. }, // 学术
  3242. google_scholar: {
  3243. SiteTypeID: 0,
  3244. pager: {
  3245. type: 1,
  3246. nextLink: '//a[./span[@class="gs_ico gs_ico_nav_next"]]',
  3247. pageElement: 'css;#gs_res_ccl_mid > *',
  3248. insertPosition: ['css;#gs_res_ccl_mid', 3],
  3249. replaceE: 'id("gs_n")',
  3250. scriptType: 1,
  3251. scrollDelta: 2000
  3252. }
  3253. }, // 谷歌学术
  3254. bing_academic: {
  3255. SiteTypeID: 0,
  3256. pager: {
  3257. type: 1,
  3258. nextLink: 'css;a.sb_pagN[href]',
  3259. pageElement: 'css;#b_results > li.aca_algo',
  3260. insertPosition: ['css;#b_results .b_pag', 1],
  3261. replaceE: 'css;#b_results .b_pag',
  3262. scrollDelta: 1000
  3263. }
  3264. }, // 必应学术
  3265. baidu_xueshu: {
  3266. SiteTypeID: 0,
  3267. host: 'xueshu.baidu.com',
  3268. functionStart: function() {if (location.pathname === '/s') {
  3269. curSite = DBSite.baidu_xueshu;
  3270. } else if (location.pathname.indexOf('journal/navigation') > -1) {
  3271. curSite = DBSite.baidu_xueshu_journal;
  3272. } else if (location.pathname.indexOf('paper/show') > -1) {
  3273. curSite = DBSite.baidu_xueshu_paper;
  3274. }},
  3275. pager: {
  3276. type: 1,
  3277. nextLink: 'id("page")/a[./i[@class="c-icon-pager-next"]][@href]',
  3278. pageElement: 'css;#bdxs_result_lists > div.result',
  3279. insertPosition: ['css;#bdxs_result_lists', 3],
  3280. replaceE: 'css;#page',
  3281. history: true,
  3282. scrollDelta: 1000
  3283. }
  3284. }, // 百度学术
  3285. baidu_xueshu_journal: {
  3286. SiteTypeID: 0,
  3287. pager: {
  3288. type: 1,
  3289. nextLink: 'css;a.res-page-next[href]',
  3290. pageElement: 'css;#journaldetail > div',
  3291. insertPosition: ['css;#journaldetail', 3],
  3292. replaceE: 'css;.res-page',
  3293. history: true,
  3294. scrollDelta: 1000
  3295. }
  3296. }, // 百度学术
  3297. baidu_xueshu_paper: {
  3298. SiteTypeID: 0,
  3299. pager: {
  3300. type: 2,
  3301. nextLink: 'div:not([style*="display: none"]) > .more_btn',
  3302. nextText: '加载更多',
  3303. scrollDelta: 1000
  3304. }
  3305. }, // 百度学术
  3306. so_xueshu: {
  3307. SiteTypeID: 0,
  3308. host: 'xueshu.so.com',
  3309. functionStart: function() {if (location.pathname === '/s') {curSite = DBSite.so_xueshu;}},
  3310. pager: {
  3311. type: 1,
  3312. nextLink: 'css;a#snext[href]',
  3313. pageElement: 'css;ul.list > li',
  3314. insertPosition: ['css;ul.list', 3],
  3315. replaceE: 'css;#page',
  3316. scrollDelta: 1000
  3317. }
  3318. }, // 360 学术
  3319. wikihow: {
  3320. SiteTypeID: 0,
  3321. host: ['www.wikihow.com', 'zh.wikihow.com'],
  3322. functionStart: function() {if (location.pathname.indexOf('/Category:') > -1) {
  3323. curSite = DBSite.wikihow;
  3324. } else if (location.pathname.indexOf('/wikiHowTo') > -1 && location.search.indexOf('?search=') > -1) {
  3325. curSite = DBSite.wikihow_search;
  3326. }},
  3327. pager: {
  3328. type: 1,
  3329. nextLink: 'css;a.pag_next',
  3330. pageElement: 'css;#cat_all > .cat_grid > div',
  3331. insertPosition: ['css;#cat_all > .cat_grid', 3],
  3332. replaceE: 'css;#large_pagination',
  3333. scriptType: 4,
  3334. scrollDelta: 2000
  3335. }
  3336. }, // 指南
  3337. wikihow_search: {
  3338. SiteTypeID: 0,
  3339. pager: {
  3340. type: 1,
  3341. nextLink: 'css;#searchresults_footer > a.buttonright',
  3342. pageElement: 'css;#searchresults_list > a',
  3343. insertPosition: ['css;#searchresults_list', 3],
  3344. replaceE: 'css;#searchresults_footer',
  3345. scrollDelta: 3000
  3346. }
  3347. }, // 指南 - 搜索页
  3348. afreecatv: {
  3349. SiteTypeID: 0,
  3350. host: 'www.afreecatv.com',
  3351. pager: {
  3352. type: 2,
  3353. nextLink: '.btn-more > button',
  3354. intervals: 2000,
  3355. scrollDelta: 1000
  3356. }
  3357. }, // 直播
  3358. greasyfork: {
  3359. SiteTypeID: 0,
  3360. host: 'gf.qytechs.cn',
  3361. functionStart: function() {if (/\/scripts$/.test(location.pathname) || location.pathname.indexOf('/scripts/by-site/') > -1) {
  3362. curSite = DBSite.greasyfork;
  3363. } else if (/\/feedback$/.test(location.pathname)) {
  3364. curSite = DBSite.greasyfork_feedback;
  3365. } else if (location.pathname.indexOf('/discussions') > -1 && !(/\/\d+/.test(location.pathname))) {
  3366. curSite = DBSite.greasyfork_discussions;
  3367. }},
  3368. pager: {
  3369. type: 1,
  3370. nextLink: '//a[@class="next_page"][@href]',
  3371. pageElement: 'css;ol#browse-script-list > li',
  3372. insertPosition: ['css;ol#browse-script-list', 3],
  3373. replaceE: 'css;.pagination',
  3374. scrollDelta: 1000
  3375. }
  3376. }, // 脚本
  3377. greasyfork_feedback: {
  3378. SiteTypeID: 0,
  3379. pager: {
  3380. type: 1,
  3381. nextLink: '//a[@class="next_page"][@href]',
  3382. pageElement: 'css;.script-discussion-list > div',
  3383. insertPosition: ['css;.script-discussion-list', 3],
  3384. replaceE: 'css;.pagination',
  3385. scrollDelta: 1500
  3386. }
  3387. }, // 脚本 - 反馈页
  3388. greasyfork_discussions: {
  3389. SiteTypeID: 0,
  3390. pager: {
  3391. type: 1,
  3392. nextLink: '//a[@class="next_page"][@href]',
  3393. pageElement: 'css;.discussion-list > div',
  3394. insertPosition: ['css;.discussion-list', 3],
  3395. replaceE: 'css;.pagination',
  3396. scrollDelta: 1000
  3397. }
  3398. }, // 脚本 - 讨论页
  3399. ruyile_xuexiao: {
  3400. SiteTypeID: 0,
  3401. host: 'www.ruyile.com',
  3402. functionStart: function() {
  3403. if (location.pathname === '/xuexiao/') {
  3404. curSite = DBSite.ruyile_xuexiao;
  3405. } else if (location.pathname === '/data/') {
  3406. curSite = DBSite.ruyile_data;
  3407. } else if (location.pathname === '/shijuan/') {
  3408. curSite = DBSite.ruyile_shijuan;
  3409. }},
  3410. pager: {
  3411. type: 1,
  3412. nextLink: '//div[@class="fy"]/a[contains(text(), "下一页")][@href]',
  3413. pageElement: 'css;.xxlb > .sk',
  3414. insertPosition: ['css;.xxlb', 3],
  3415. replaceE: 'css;.fy',
  3416. scrollDelta: 1000
  3417. }
  3418. }, // 如意了教育 - 学校
  3419. ruyile_data: {
  3420. SiteTypeID: 0,
  3421. pager: {
  3422. type: 1,
  3423. nextLink: '//div[@class="fy"]/a[contains(text(), "下一页")][@href]',
  3424. pageElement: 'css;.m1_z > .lbk',
  3425. insertPosition: ['css;.page', 1],
  3426. replaceE: 'css;.fy',
  3427. scrollDelta: 1000
  3428. }
  3429. }, // 如意了教育 - 数据
  3430. ruyile_shijuan: {
  3431. SiteTypeID: 0,
  3432. pager: {
  3433. type: 1,
  3434. nextLink: '//div[@class="fy"]/a[contains(text(), "下一页")][@href]',
  3435. pageElement: 'css;.m1_z > .m2_lb',
  3436. insertPosition: ['css;.page', 1],
  3437. replaceE: 'css;.fy',
  3438. scrollDelta: 1000
  3439. }
  3440. }, // 如意了教育 - 试卷
  3441. runoob: {
  3442. SiteTypeID: 0,
  3443. host: 'www.runoob.com',
  3444. functionStart: function() {if (location.pathname.split('/').length > 2) {
  3445. curSite = DBSite.runoob; document.body.appendChild(document.createElement('style')).textContent = '#comments, #postcomments, #respond, #footer {display: none !important;} .article-intro h1:not(:nth-of-type(1)) {margin: 30px 0 10px 0;}';
  3446. }},
  3447. pager: {
  3448. type: 1,
  3449. nextLink: function() { // 过滤部分非本页的参考手册
  3450. let next = document.querySelector('#leftcolumn > a[style]~a')
  3451. if (next.href.split('/').length === location.href.split('/').length && next.href.split('/')[3] === location.href.split('/')[3]) return next.href;
  3452. next.href = location.href; curSite = {SiteTypeID: 0}; return ''
  3453. },
  3454. pageElement: 'css;#content > *',
  3455. insertPosition: ['css;#content', 3],
  3456. replaceE: 'css;.previous-next-links, #leftcolumn, head > title',
  3457. history: true,
  3458. forceHTTPS: true,
  3459. scrollDelta: 1000
  3460. },
  3461. function: {
  3462. after: function() { // 左侧栏高亮当前页面标题
  3463. let title = document.title.split(' | '); if (title.length > 1) {title = title[0]; document.querySelectorAll('#leftcolumn > a').forEach(function(e){if (e.innerText === title) {e.style = 'background-color: rgb(150, 185, 125); font-weight: bold; color: rgb(255, 255, 255);';}})}
  3464. }
  3465. }
  3466. }, // 菜鸟教程
  3467. netbian: {
  3468. SiteTypeID: 0,
  3469. host: 'pic.netbian.com',
  3470. functionStart: function() {curSite = DBSite.netbian; document.lastElementChild.appendChild(document.createElement('style')).textContent = 'li.nextpage {display: none !important;}';},
  3471. pager: {
  3472. type: 1,
  3473. nextLink: '//div[@class="page"]/a[contains(text(),"下一页")]',
  3474. pageElement: 'css;.slist ul > li:not(.nextpage)',
  3475. insertPosition: ['css;.slist ul', 3],
  3476. replaceE: 'css;.page',
  3477. mimeType: 'text/html; charset=gbk',
  3478. scrollDelta: 1000
  3479. }
  3480. }, // 彼岸图网
  3481. ioliu: {
  3482. SiteTypeID: 0,
  3483. host: 'bing.ioliu.cn',
  3484. functionStart: function() {if (location.pathname.indexOf('/photo/') === -1 && location.pathname.indexOf('.html') === -1) {curSite = DBSite.ioliu; document.head.appendChild(document.createElement('base')).target = '_blank'; document.lastElementChild.appendChild(document.createElement('style')).textContent = '.progressive--not-loaded {filter: none !important;}';}},
  3485. pager: {
  3486. type: 1,
  3487. nextLink: '//div[@class="page"]/a[@href][contains(text(), "下一页")]',
  3488. pageElement: 'css;body > .container > div.item',
  3489. insertPosition: ['css;body > .container', 3],
  3490. replaceE: 'css;.page',
  3491. scrollDelta: 1000
  3492. }
  3493. }, // 必应壁纸
  3494. nastol: {
  3495. SiteTypeID: 0,
  3496. host: 'www.nastol.com.ua',
  3497. pager: {
  3498. type: 1,
  3499. nextLink: '//a[./span[@class="nav-next"]]',
  3500. pageElement: 'css;#dle-content > div',
  3501. insertPosition: ['css;#dle-content > noindex', 1],
  3502. replaceE: 'css;.navigation',
  3503. mimeType: 'text/html; charset=windows-1251',
  3504. scrollDelta: 1000
  3505. }
  3506. }, // 壁纸
  3507. hdqwalls: {
  3508. SiteTypeID: 0,
  3509. host: 'hdqwalls.com',
  3510. pager: {
  3511. type: 1,
  3512. nextLink: 'css;a#next',
  3513. pageElement: 'css;.wallpapers_container > div.wall-resp',
  3514. insertPosition: ['css;div.pagination_container, .wallpapers_container > div.wall-resp+div:not(.wall-resp)', 1],
  3515. replaceE: 'css;ul.pagination',
  3516. scrollDelta: 1000
  3517. }
  3518. }, // 壁纸
  3519. zhutix: {
  3520. SiteTypeID: 0,
  3521. host: 'zhutix.com',
  3522. functionStart: function() {if (document.getElementById('primary-home')) {
  3523. curSite = DBSite.zhutix_postlist;
  3524. } else {
  3525. curSite = DBSite.zhutix;
  3526. }},
  3527. pager: {
  3528. type: 1,
  3529. nextLink: '//li[@class="next-page"]/a | //div[@class="btn-pager"]/a[contains(text(), "❯")]',
  3530. pageElement: 'css;#post-list > ul > li',
  3531. insertPosition: ['css;#post-list > ul', 3],
  3532. replaceE: 'css;.pagination, .b2-pagenav.post-nav',
  3533. scrollDelta: 1500
  3534. }
  3535. }, // 致美化
  3536. zhutix_postlist: {
  3537. SiteTypeID: 0,
  3538. pager: {
  3539. type: 1,
  3540. nextLink: '//li[@class="next-page"]/a',
  3541. pageElement: 'css;#primary-home > div:not(.pagination)',
  3542. insertPosition: ['css;.pagination', 1],
  3543. replaceE: 'css;.pagination',
  3544. scrollDelta: 1500
  3545. }
  3546. } // 致美化 - 文章列表
  3547. };
  3548. // 生成 SiteTypeID
  3549. generateID();
  3550. // 用于脚本判断(针对部分特殊的网站)
  3551. SiteType = {
  3552. BAIDU_TIEBA: DBSite.baidu_tieba.SiteTypeID,
  3553. GAMERSKY_GL: DBSite.gamersky_gl.SiteTypeID
  3554. };
  3555. }
  3556.  
  3557.  
  3558. if (webType != 1) {
  3559. // < 所有 Discuz!论坛 >
  3560. if (webType === 2) {
  3561. if (location.pathname.indexOf('.html') > -1) { // 判断是不是静态网页(.html 结尾)
  3562. if (location.pathname.indexOf('/forum-') > -1) { // < 各版块帖子列表 >
  3563. if (document.getElementById('autopbn')) { // 判断是否有 [下一页] 按钮
  3564. curSite = DBSite.discuz_forum;
  3565. } else if (document.getElementById('waterfall')) { // 判断是否为图片模式
  3566. curSite = DBSite.discuz_waterfall; waterfallStyle(); // 图片模式列表样式预处理
  3567. } else {
  3568. curSite = DBSite.discuz_guide;
  3569. }
  3570. } else if (location.pathname.indexOf('/thread-') > -1) { // < 帖子内 >
  3571. if (GM_getValue('menu_discuz_thread_page')) {
  3572. curSite = DBSite.discuz_thread;
  3573. hidePgbtn(); // 隐藏帖子内的 [下一页] 按钮
  3574. }
  3575. } else if(location.pathname.indexOf('search') > -1) { // < 搜索结果 >
  3576. curSite = DBSite.discuz_search;
  3577. }
  3578. }
  3579. // 如果没有匹配的则继续
  3580. if (curSite.SiteTypeID === 0) {
  3581. if (location.search.indexOf('mod=forumdisplay') > -1 || location.pathname.indexOf('forumdisplay.php') > -1) { // < 各版块帖子列表 >
  3582. if (document.getElementById('autopbn')) { // 判断是否有 [下一页] 按钮
  3583. curSite = DBSite.discuz_forum;
  3584. } else if (document.getElementById('waterfall')) { // 判断是否为图片模式
  3585. curSite = DBSite.discuz_waterfall; waterfallStyle(); // 图片模式列表样式预处理
  3586. } else {
  3587. curSite = DBSite.discuz_guide;
  3588. }
  3589. } else if (location.search.indexOf('mod=viewthread') > -1 || location.pathname.indexOf('viewthread.php') > -1) { // < 帖子内 >
  3590. if (GM_getValue('menu_discuz_thread_page')) {
  3591. curSite = DBSite.discuz_thread;
  3592. hidePgbtn(); // 隐藏帖子内的 [下一页] 按钮
  3593. }
  3594. } else if (location.search.indexOf('mod=guide') > -1) { // < 导读帖子列表 >
  3595. curSite = DBSite.discuz_guide;
  3596. } else if(location.search.indexOf('mod=space') > -1 && location.search.indexOf('&view=me') > -1) { // 别人的主题/回复
  3597. curSite = DBSite.discuz_youspace;
  3598. } else if (location.search.indexOf('mod=collection') > -1) { // < 淘贴列表 >
  3599. curSite = DBSite.discuz_collection;
  3600. } else if (location.pathname.indexOf('search') > -1) { // < 搜索结果 >
  3601. curSite = DBSite.discuz_search;
  3602. } else if (document.getElementById('threadlist')) { // < 部分论坛的各板块 URL 是自定义的 >
  3603. curSite = DBSite.discuz_forum;
  3604. } else if (document.getElementById('postlist')) { // < 部分论坛的帖子内 URL 是自定义的 >
  3605. if (GM_getValue('menu_discuz_thread_page')) {
  3606. curSite = DBSite.discuz_thread;
  3607. hidePgbtn(); // 隐藏帖子内的 [下一页] 按钮
  3608. }
  3609. }
  3610. }
  3611. // < 所有 Flarum 论坛 >
  3612. } else if (webType === 3) {
  3613. DBSite.flarum.functionStart()
  3614. // < 所有使用 WordPress DUX 主题的网站 >
  3615. } else if (webType === 4) {
  3616. if (location.pathname.indexOf('.html') === -1) curSite = DBSite.dux;
  3617. if (location.host === 'apphot.cc') curSite.pager.scrollDelta = 2500; // 对于速度慢的网站,需要增加翻页敏感度
  3618. }
  3619. }
  3620.  
  3621. if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');} // 显示页码
  3622. pausePageEvent(); // 左键双击网页空白处暂停翻页
  3623.  
  3624. if (locationchange) { // 对于使用 pjax 技术的网站,需要监听 URL 变化来重新判断翻页规则
  3625. nowLocation = location.href
  3626. addLocationchange(); // 自定义 locationchange 事件
  3627. if (webType === 1) {
  3628. window.addEventListener('locationchange', function(){
  3629. if (nowLocation != location.href) {
  3630. nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码
  3631. registerMenuCommand(); // 重新判断规则
  3632. curSite.pageUrl = ''; // 下一页URL
  3633. pageLoading(); // 自动无缝翻页
  3634.  
  3635. if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');} // 显示页码
  3636. pausePageEvent(); // 左键双击网页空白处暂停翻页
  3637. }
  3638. })
  3639. } else if (webType === 3) {
  3640. window.addEventListener('locationchange', function(){
  3641. if (nowLocation != location.href) {
  3642. nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码
  3643. DBSite.flarum.functionStart(); // 重新判断规则
  3644. pageLoading(); // 自动无缝翻页
  3645.  
  3646. if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');} // 显示页码
  3647. pausePageEvent(); // 左键双击网页空白处暂停翻页
  3648. }
  3649. })
  3650. }
  3651. }
  3652.  
  3653. curSite.pageUrl = ''; // 下一页URL
  3654. //console.log(curSite);
  3655. pageLoading(); // 自动无缝翻页
  3656.  
  3657.  
  3658. // [Discuz! 论坛] 隐藏帖子内的 [下一页] 按钮
  3659. function hidePgbtn() {
  3660. document.lastElementChild.appendChild(document.createElement('style')).textContent = '.pgbtn {display: none;}';
  3661. }
  3662. // [Discuz! 论坛] 图片模式列表样式预处理
  3663. function waterfallStyle() {
  3664. let width = document.querySelector('#waterfall > li:first-child').style.width;
  3665. document.lastElementChild.appendChild(document.createElement('style')).textContent = `#waterfall {height: auto !important; width: 100% !important;} #waterfall > li {width: ${width} !important; float: left !important; position: inherit !important; left: auto !important; top: auto !important;}`;
  3666. }
  3667.  
  3668.  
  3669. // 通用型插入前函数(加载图片)
  3670. function src_functionBefore(pageElems, css) {
  3671. pageElems.forEach(function (one) {
  3672. if (css[0] == 0) { // src 图片
  3673. one.querySelectorAll(css[1]).forEach(function (now) {
  3674. now.src = now.getAttribute(css[2]);
  3675. });
  3676. } else if (css[0] == 1) { // 背景图片
  3677. one.querySelectorAll(css[1]).forEach(function (now) {
  3678. now.style.backgroundImage = 'url("' + now.getAttribute(css[2]) + '")';
  3679. });
  3680. }
  3681. });
  3682. return pageElems
  3683. }
  3684.  
  3685.  
  3686. // [头条搜索] 的插入前函数(过滤相关搜索)
  3687. function toutiao_functionBefore(pageElems) {
  3688. for (let i = 0; i < pageElems.length; i++) {
  3689. let now = pageElems[i].querySelector('div[class*="-header"]')
  3690. if (now && now.textContent === '相关搜索') {
  3691. pageElems.splice(i,1)
  3692. }
  3693. }
  3694. return pageElems
  3695. }
  3696.  
  3697.  
  3698. // [Startpage] 获取下一页地址
  3699. function startpage_functionNext() {
  3700. let form = getElementByXpath('//div[contains(@class, "pagination ")]/form[./button[@class="pagination__next-prev-button next"]]');
  3701. if (form) {
  3702. let action = form.action, value = ''; // 获取提交表单 URL
  3703. form.querySelectorAll('input[name]').forEach(function(input) {value += input.name + '=' + input.value + '&';}) // 生成表单参数
  3704. value = encodeURI(value.replace(/&$/,'')); // 清理最后一个 & 符号,并替换页码
  3705. if (action && value) return (action + '?' + value)
  3706. }
  3707. return '';
  3708. }
  3709.  
  3710.  
  3711. // [百度贴吧](发帖按钮点击事件)
  3712. function baidu_tieba_1() {
  3713. let button = document.querySelector('.tbui_aside_fbar_button.tbui_fbar_post > a');
  3714. if (button) {
  3715. button.remove();
  3716. document.querySelector('li.tbui_aside_fbar_button.tbui_fbar_down').insertAdjacentHTML(addTo(4), '<li class="tbui_aside_fbar_button tbui_fbar_post"><a href="javascript:void(0);" title="因为 [自动无缝翻页] 的原因,请点击该按钮发帖!"></a></li>')
  3717. button = document.querySelector('.tbui_aside_fbar_button.tbui_fbar_post > a');
  3718. if (button) {
  3719. button.onclick = function(){
  3720. let button2 = document.querySelector('div.edui-btn.edui-btn-fullscreen.edui-btn-name-portrait');
  3721. if (button2) {
  3722. button2.click();
  3723. } else {
  3724. alert('提示:登录(不可用)后才能发帖!');
  3725. }
  3726. return false;
  3727. }
  3728. }
  3729. }
  3730. }
  3731. // [百度贴吧] 的插入前函数(加载图片)
  3732. function baidu_tieba_functionBefore(pageElems) {
  3733. pageElems.forEach(function (one) {
  3734. one.querySelectorAll('img.threadlist_pic[data-original]').forEach(function (now) {
  3735. now.src = now.dataset.original;
  3736. now.style.display = 'inline';
  3737. })
  3738. });
  3739. return pageElems
  3740. }
  3741. // [百度贴吧] 获取下一页地址
  3742. function baidu_tieba_functionNext() {
  3743. let next = document.querySelector('a.next.pagination-item[href]');
  3744. if (next != null && next.nodeType === 1 && next.href && next.href.slice(0,4) === 'http') {
  3745. var url = next.href + '&pagelets=frs-list%2Fpagelet%2Fthread&pagelets_stamp=' + new Date().getTime();
  3746. if (url === curSite.pageUrl) return
  3747. curSite.pageUrl = url;
  3748. getPageElems(curSite.pageUrl);
  3749. };
  3750. }
  3751. // [百度贴吧] 插入数据
  3752. function baidu_tieba_insertElement(newBody, type) {
  3753. if (!newBody) return
  3754. let pageElems = getAllElements(curSite.pager.pageElement, newBody, newBody),
  3755. toElement = getAllElements(curSite.pager.insertPosition[0])[0];
  3756. if (pageElems.length >= 0) {
  3757. // 执行插入前函数
  3758. pageElems = curSite.function.before(pageElems);
  3759. // 插入位置
  3760. let addTo1 = addTo(curSite.pager.insertPosition[1]);
  3761. // 获取 <script> 内容
  3762. const scriptElems = getAllElements('//script', newBody, newBody);
  3763. let scriptText = '';
  3764. for (let i = 0; i < scriptElems.length; i++) {
  3765. if (scriptElems[i].textContent.indexOf('Bigpipe.register("frs-list/pagelet/thread_list"') > -1) {
  3766. scriptText = scriptElems[i].textContent.replace('Bigpipe.register("frs-list/pagelet/thread_list", ','');
  3767. break
  3768. }
  3769. }
  3770. if (scriptText) {
  3771. scriptText = scriptText.slice(0, scriptText.indexOf(').')) // 获取主体内容
  3772. let scriptJSON = JSON.parse(scriptText).content; // 字符串转 JSON
  3773. var temp_baidu_tieba = document.createElement('div'); temp_baidu_tieba.innerHTML = scriptJSON; // 字符串转 Element 元素
  3774. pageElems = curSite.function.before(getAllElements(curSite.pager.pageElement, temp_baidu_tieba, temp_baidu_tieba)); // 插入前执行函数
  3775. pageElems.forEach(function (one) {toElement.insertAdjacentElement(addTo1, one);}); // 插入元素
  3776. // 当前页码 + 1
  3777. pageNum.now = pageNum._now + 1
  3778. // 替换元素
  3779. let oriE = document.querySelectorAll(curSite.pager.pageElement.replace('css;', '')),
  3780. repE = getAllElements(curSite.pager.replaceE, temp_baidu_tieba, temp_baidu_tieba);
  3781. if (oriE.length === repE.length) {
  3782. for (let i = 0; i < oriE.length; i++) {
  3783. oriE[i].outerHTML = repE[i].outerHTML;
  3784. }
  3785. }
  3786. }
  3787. }
  3788. }
  3789.  
  3790.  
  3791. // [NGA(玩家社区)] 的插入后函数(加载各版块帖子列表样式)
  3792. function nga_thread_functionAfter() {
  3793. document.body.appendChild(document.createElement('script')).textContent = 'commonui.topicArg.loadAll();';
  3794. }
  3795.  
  3796.  
  3797. // [V2EX] 的插入后函数(新标签页打开链接)
  3798. function v2ex_functionAfter(css) {
  3799. let links = document.querySelectorAll(css);if (!links) return
  3800. links.forEach(function (_this) {_this.target = '_blank';});
  3801. }
  3802.  
  3803.  
  3804. // [龙的天空] 获取下一页地址
  3805. function lkong_functionNext() {
  3806. let next = document.querySelector('li.ant-pagination-next'), page;
  3807. if (next && next.getAttribute('aria-disabled') === 'false') {
  3808. page = document.querySelector('li.ant-pagination-item-active[title]');
  3809. if (page && page.title) {
  3810. if (curSite.pager.intervals) {
  3811. let _SiteTypeID = curSite.SiteTypeID; curSite.SiteTypeID = 0;
  3812. setTimeout(function(){curSite.SiteTypeID = _SiteTypeID;}, curSite.pager.intervals)
  3813. }
  3814. return (location.origin + location.pathname + '?page=' + ++page.title);
  3815. }
  3816. }
  3817. return '';
  3818. }
  3819.  
  3820.  
  3821. // [3DM MOD] 获取下一页地址
  3822. function _3dmgame_mod_functionNext() {
  3823. let nextNum = getElementByXpath('//li[@class="page-list active"]/following-sibling::li[contains(@class, "page-list")]/a');
  3824. var url = '';
  3825. if (nextNum && nextNum.textContent) {
  3826. nextNum = 'Page=' + nextNum.textContent;
  3827. if (location.search) {
  3828. let search = location.search.replace(/(&)?Page=\d+(&)?/, '');
  3829. if (search === '?') {
  3830. url += location.origin + location.pathname + search + nextNum;
  3831. } else {
  3832. url += location.origin + location.pathname + search + '&' + nextNum;
  3833. }
  3834. } else {
  3835. url += location.origin + location.pathname + '?' + nextNum;
  3836. }
  3837. }
  3838. //console.log(url)
  3839. return url
  3840. }
  3841.  
  3842.  
  3843. // [游民星空-攻略] 的插入前函数(移除下一页底部的 "更多相关内容请关注:xxx" 文字)
  3844. function gamersky_gl_functionBefore(pageElems) {
  3845. pageElems.forEach(function (one) {
  3846. if (one.tagName === 'P' && one.textContent.indexOf('更多相关内容请关注') > -1) {one.style.display = 'none';}
  3847. });
  3848. return pageElems
  3849. }
  3850.  
  3851.  
  3852. // [NexusMods] 获取下一页地址
  3853. function nexusmods_functionNext() {
  3854. if (document.querySelector('.nexus-ui-blocker')) return
  3855. let modList;
  3856. if (location.pathname.indexOf('/news') > -1) {modList = RH_NewsTabContent;} else {modList = RH_ModList;}
  3857. let out_items = JSON.stringify(modList.out_items).replace(/{|}|"/g,''),
  3858. nextNum = getElementByXpath('//div[contains(@class, "pagenav")][1]//a[contains(@class, "page-selected")]/parent::li/following-sibling::li/a'),
  3859. categories = modList.out_items.categories, categoriesUrl = '';
  3860. var url = '';
  3861. if (nextNum && nextNum.innerText) {
  3862. nextNum = nextNum.innerText;
  3863. if (out_items.indexOf('page:') > -1) {
  3864. out_items = out_items.replace(/page:\d+/, `page:${nextNum}`)
  3865. } else {
  3866. out_items += `,page:${nextNum}`;
  3867. }
  3868. if (categories && categories != []) {
  3869. for (let i = 0; i < categories.length; i++) {
  3870. categoriesUrl += `,categories[]:${categories[i]}`
  3871. }
  3872. categoriesUrl = categoriesUrl.replace(/,/,'');
  3873. if (out_items.indexOf('categories:') > -1) {
  3874. out_items = out_items.replace(/categories:\[.*\]/, categoriesUrl)
  3875. }
  3876. }
  3877. url = `https://www.nexusmods.com${modList.uri}?RH_${modList.id}=${out_items}`
  3878. //console.log(nextNum, url, curSite.pageUrl, out_items)
  3879. if (url === curSite.pageUrl) return
  3880. curSite.pageUrl = url;
  3881. //console.log(nextNum, curSite.pageUrl, out_items)
  3882. getPageElems(curSite.pageUrl)
  3883. }
  3884. }
  3885. // [NexusMods] 插入数据
  3886. function nexusmods_insertElement(newBody, type) {
  3887. if (!newBody) return
  3888. let pageElems = getAllElements(curSite.pager.pageElement, newBody, newBody), // 主体元素
  3889. toElement = getAllElements(curSite.pager.insertPosition[0])[0], // 插入位置的元素
  3890. addTo1 = addTo(curSite.pager.insertPosition[1]); // 插入位置
  3891. // 添加下载数据
  3892. pageElems.forEach(function (one) {
  3893. let now = one.querySelector('.mod-tile-left');
  3894. if (now) {
  3895. let downloadCount = now.querySelector('.downloadcount > span.flex-label');
  3896. if (downloadCount) {
  3897. //console.log(now.dataset.gameId, now.dataset.modId)
  3898. if (GlobalModStats[now.dataset.gameId] && GlobalModStats[now.dataset.gameId][now.dataset.modId]) {
  3899. downloadCount.textContent = shortFormat(parseInt(GlobalModStats[now.dataset.gameId][now.dataset.modId].total));
  3900. }
  3901. }
  3902. }
  3903. });
  3904. // 插入网页
  3905. pageElems.forEach(function (one) {toElement.insertAdjacentElement(addTo1, one);});
  3906. // 当前页码 + 1
  3907. pageNum.now = pageNum._now + 1
  3908. // 替换元素
  3909. let oriE = document.querySelectorAll(curSite.pager.replaceE.replace('css;', '')),
  3910. repE = getAllElements(curSite.pager.replaceE, newBody, newBody);
  3911. if (oriE.length === repE.length) {
  3912. for (let i = 0; i < oriE.length; i++) {
  3913. oriE[i].outerHTML = repE[i].outerHTML;
  3914. }
  3915. }
  3916. }
  3917.  
  3918.  
  3919. // [cs_rin_ru] 各版块帖子列表的插入前函数(过滤置顶帖子)
  3920. function cs_rin_ru_functionBefore(pageElems) {
  3921. for (let i = 0; i < pageElems.length; i++) {
  3922. if (pageElems[i].textContent.replace(/\n| /g,'') === 'Topics') {
  3923. pageElems.splice(0,i+1);
  3924. break;
  3925. }
  3926. }
  3927. return pageElems
  3928. }
  3929.  
  3930. // [SkrBT] 获取下一页地址
  3931. function skrbt_functionNext() {
  3932. let page = document.querySelector('a[onclick][aria-label="Next"]');
  3933. if (page) {page = /(?<=\()\d+(?=\))/.exec(page.onclick)[0];} else {return '';} // 获取下一页页码
  3934. if (page) {
  3935. let action = document.getElementById('search-form').action, value = ''; // 获取提交表单 URL
  3936. document.querySelectorAll('#search-form input[name]').forEach(function(input) {value += input.name + '=' + input.value + '&';}) // 生成表单参数
  3937. value = encodeURI(value.replace(/&$/,'').replace(/p=\d+/,'p=' + page)); // 清理最后一个 & 符号,并替换页码
  3938. if (action && value) return (action + '?' + value)
  3939. }
  3940. return '';
  3941. }
  3942.  
  3943.  
  3944. // [BTHaha] 的插入前函数(隐藏底部元素)
  3945. function bthaha_functionBefore(pageElems) {
  3946. pageElems.forEach(function (one) {
  3947. let now = one.querySelector('[id^="list_top"], [id^="list_bottom"]')
  3948. if (now) {one.hidden = true;}
  3949. });
  3950. return pageElems
  3951. }
  3952.  
  3953.  
  3954. // [射手网] 获取下一页地址
  3955. function assrt_functionNext() {
  3956. let nextXPAHT = '//a[@id="pl-nav"][@href][contains(text(), ">")]'
  3957. let url = getElementByXpath(nextXPAHT);
  3958. if (url) {
  3959. url = /(?<=\()\d+(?=,)/.exec(url.href)[0]
  3960. if (url) {
  3961. return (location.origin + location.pathname + location.search.replace(/(&)?page=\d+$/,'') + '&page=' + url);
  3962. }
  3963. }
  3964. return '';
  3965. }
  3966.  
  3967.  
  3968. // [LRepacks] 的插入前函数(调整 class)
  3969. function lrepacks_functionBefore(pageElems) {
  3970. pageElems.forEach(function (one) {
  3971. let now = one.querySelector('.slideUp, .elementFade')
  3972. if (now) {
  3973. now.className = now.className.replace('slideUp','slideUpRun').replace('elementFade','elementFadeRun');
  3974. }
  3975. });
  3976. return pageElems
  3977. }
  3978.  
  3979.  
  3980. // [漫画狂] 获取下一页地址
  3981. function cartoonmad_functionNext() {
  3982. let nextXPAHT = '//a[@class="pages"][contains(text(),"下一頁")]',
  3983. nextPXPATH = '//a[@class="pages"][contains(string(),"下一話")]'
  3984. let url = getElementByXpath(nextXPAHT);
  3985. if (url) {
  3986. if (url.getAttribute('href') === 'thend.asp') {
  3987. url = getElementByXpath(nextPXPATH)
  3988. if (url) return url.href;
  3989. pausePage = false;
  3990. GM_notification({text: `注意:该网站早期漫画(如海贼王、柯南)因为网站自身问题而无法翻至下一话(仅限于显示为 [第 X 卷]/[下一卷] 的)。\n因此需要手动去 [目录页] 进入下一卷!`, timeout: 10000});
  3991. } else {
  3992. return url.href;
  3993. }
  3994. }
  3995. return '';
  3996. }
  3997.  
  3998.  
  3999. // [漫画猫] 初始化(显示本话所以图片)
  4000. function manhuacat_init() {
  4001. let _img = '';
  4002. for (let now of img_data_arr) {
  4003. _img += `<img src="${asset_domain}${img_pre}${now}">`;
  4004. }
  4005. document.querySelector('.img-content > img').remove();
  4006. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4007.  
  4008. }
  4009. // [漫画猫] 获取下一页地址
  4010. function manhuacat_functionNext(pageElems, type) {
  4011. if (type === 'url') {
  4012. if(pageElems.code == '0000') {
  4013. if (pageElems.url === curSite.pageUrl) return
  4014. curSite.pageUrl = pageElems.url;
  4015. getPageElems(curSite.pageUrl); // 真正的下一页链接
  4016. }
  4017. } else {
  4018. let vg_r_data = document.querySelector('.vg-r-data');
  4019. if (vg_r_data) {
  4020. getPageElems(`https://${location.host}/chapter_num?chapter_id=${vg_r_data.dataset.chapter_num}&ctype=1&type=${vg_r_data.dataset.chapterType};`, 'json', 'GET', '', 'url');
  4021. }
  4022. }
  4023. }
  4024. // [漫画猫] 插入数据
  4025. function manhuacat_insertElement(pageElems, type) {
  4026. if (!pageElems) return
  4027. if (type === 'url') { // 获取下一页链接
  4028. manhuacat_functionNext(pageElems, type); return
  4029. }
  4030.  
  4031. // 添加历史记录
  4032. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, pageElems.querySelector('title').textContent, curSite.pageUrl);
  4033.  
  4034. // 替换元素
  4035. let oriE = document.querySelectorAll(curSite.pager.replaceE.replace('css;', '')),
  4036. repE = getAllElements(curSite.pager.replaceE, pageElems, pageElems);
  4037. if (oriE.length === repE.length) {
  4038. for (let i = 0; i < oriE.length; i++) {
  4039. oriE[i].outerHTML = repE[i].outerHTML;
  4040. }
  4041. }
  4042.  
  4043. // 插入图片
  4044. let _img = '', _img_arr = LZString.decompressFromBase64(getElementByXpath('//body/script[not(@src)][contains(text(), "img_data")]').textContent.split('"')[1]).split(','), vg_r_data = document.querySelector('.vg-r-data');;
  4045. for (let now of _img_arr) {
  4046. _img += `<img src="${vg_r_data.dataset.chapterDomain}${img_pre}${now}">`;
  4047. }
  4048. if (_img) {
  4049. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4050. // 当前页码 + 1
  4051. pageNum.now = pageNum._now + 1
  4052. }
  4053. }
  4054.  
  4055.  
  4056. // [漫画DB] 初始化(将本话其余图片插入网页中)
  4057. function manhuadb_init() {
  4058. let _img = '',
  4059. data = document.querySelector('.vg-r-data'), imgDate;
  4060. if (!data) return
  4061. document.querySelectorAll(curSite.pager.pageElement.replace('css;', '')).forEach(function (one) {
  4062. if (one.tagName === 'SCRIPT' && one.textContent.indexOf('var img_data =') > -1) {
  4063. let json = JSON.parse(window.atob(one.textContent.split("'")[1]));
  4064. if (json) {
  4065. let _img = '';
  4066. for (let i = 0; i < json.length; i++) { // 遍历图片文件名数组,组合为 img 标签
  4067. let src = data.dataset.host + data.dataset.img_pre + json[i].img;
  4068. _img += `<img class="img-fluid show-pic" src="${src}">`
  4069. }
  4070. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4071. }
  4072. }
  4073. })
  4074. }
  4075. // [漫画DB] 获取下一页地址
  4076. function manhuadb_functionNext() {
  4077. let nextArr = document.querySelectorAll('a.fixed-a-es'), next;
  4078. var url = '';
  4079. if (nextArr.length == 0) return
  4080. for (let i = 0; i < nextArr.length; i++) {
  4081. if (nextArr[i].className.indexOf('active') > -1) {
  4082. if (nextArr[i+1]) url = nextArr[i+1].href;
  4083. break;
  4084. }
  4085. }
  4086. if (url === curSite.pageUrl) return
  4087. curSite.pageUrl = url
  4088. getPageElems(curSite.pageUrl);
  4089. }
  4090. // [漫画DB] 插入数据
  4091. function manhuadb_insertElement(pageElems, type) {
  4092. if (!pageElems) return
  4093. let oriE = document.querySelectorAll(curSite.pager.pageElement.replace('css;', '')),
  4094. repE = getAllElements(curSite.pager.pageElement, pageElems, pageElems);
  4095. if (oriE.length === repE.length) {
  4096. for (let i = 0; i < oriE.length; i++) {
  4097. oriE[i].outerHTML = repE[i].outerHTML;
  4098. }
  4099. // 当前页码 + 1
  4100. pageNum.now = pageNum._now + 1
  4101. manhuadb_init(); // 将刚刚替换的图片插入网页中
  4102. }
  4103. }
  4104.  
  4105.  
  4106. // [HiComic(嗨漫画)] 初始化(将本话其余图片插入网页中)
  4107. function hicomic_init() {
  4108. let _img = '';
  4109. document.querySelectorAll('.chapter > section:not(:first-child) > section[val]').forEach(function (one) {
  4110. let src = one.getAttribute('val');
  4111. if (src.indexOf('!p_c_c_') === -1) src += '!p_c_c_h'
  4112. _img += `<img src="${src}">`
  4113. })
  4114. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4115. window.document.title = window.document.title.replace(/(\(第.+\))? - HiComic/, `(${document.querySelector('.chapter_name').textContent}) - HiComic`); // 修改网页标题(加上 第 X 话)
  4116. }
  4117. // [HiComic(嗨漫画)] 获取下一页地址
  4118. function hicomic_functionNext() {
  4119. let nextId;
  4120. nextId = document.querySelector('.next_chapter:not(.end)')
  4121. if (nextId && nextId.id && nextId.id != 'None') {
  4122. curSite.pageUrl = location.href;
  4123. getPageElems(`https://www.hicomic.net/api/web/chapter/${nextId.id}/contents`, 'json');
  4124. }
  4125. }
  4126. // [HiComic(嗨漫画)] 插入数据
  4127. function hicomic_insertElement(pageElems, type) {
  4128. if (!pageElems || pageElems.code != 200) return
  4129. if (pageElems.results.chapter.next) { // 写入下一页的 UUID
  4130. document.querySelector('.next_chapter').id = pageElems.results.chapter.next;
  4131. } else {
  4132. document.querySelector('.next_chapter').id = 'None';
  4133. document.querySelector('.next_chapter').classList.add('end');
  4134. }
  4135. document.querySelector('.chapter_name').textContent = pageElems.results.chapter.name; // 修改漫画标题
  4136. let title = window.document.title.replace(/(\(第.+\))? - HiComic/, `(${pageElems.results.chapter.name}) - HiComic`)
  4137. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, title, curSite.pageUrl); // 添加历史记录
  4138. window.document.title = title; // 修改当前网页标题为下一话的标题
  4139. let _img = '';
  4140. for (let i = 0; i < pageElems.results.chapter.contents.length; i++) { // 遍历图片文件名数组,组合为 img 标签
  4141. let src = pageElems.results.chapter.contents[i].url;
  4142. if (src.indexOf('!p_c_c_') === -1) src += '!p_c_c_h';
  4143. _img += `<img src="${src}">`
  4144. }
  4145. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4146. // 当前页码 + 1
  4147. pageNum.now = pageNum._now + 1
  4148. }
  4149.  
  4150.  
  4151. // [动漫之家] 初始化(调整本话其余图片)
  4152. function dmzj_init() {
  4153. let _img = '';
  4154. document.querySelectorAll('.comic_wraCon > a > img').forEach(function (one) {
  4155. _img += `<img src="${one.dataset.original}">`;
  4156. one.parentElement.remove();
  4157. })
  4158. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4159.  
  4160. }
  4161. // [动漫之家] 获取下一页地址
  4162. function dmzj_functionNext() {
  4163. let next;
  4164. next = document.querySelector('span.next > a[href]')
  4165. if (next) {
  4166. if (next.href === curSite.pageUrl) return
  4167. curSite.pageUrl = next.href;
  4168. getPageElems(curSite.pageUrl);
  4169. }
  4170. }
  4171. // [动漫之家] 插入数据
  4172. function dmzj_insertElement(pageElems, type) {
  4173. if (!pageElems) return
  4174. // 插入并运行 <script>
  4175. let scriptElement = pageElems.querySelectorAll('head > script[type]:not([src])'), scriptText = '';
  4176. scriptElement.forEach(function (one) {scriptText += ';' + one.textContent;});
  4177. if (scriptText) document.body.appendChild(document.createElement('script')).textContent = scriptText;
  4178.  
  4179. // 插入图片
  4180. let _img = '', _img_arr;
  4181. if (pages.indexOf('|') === -1) {
  4182. _img_arr = JSON.parse(pages.replace(/\r\n/g,'|')).page_url.split('|');
  4183. } else {
  4184. _img_arr = JSON.parse(pages).page_url.split('|');
  4185. }
  4186. for (let now of _img_arr) {
  4187. _img += `<img src="${img_prefix}${now}">`;
  4188. }
  4189. if (_img) {
  4190. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4191.  
  4192. // 添加历史记录
  4193. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, pageElems.querySelector('title').textContent, curSite.pageUrl);
  4194.  
  4195. // 替换元素
  4196. let oriE = document.querySelectorAll(curSite.pager.replaceE.replace('css;', '')),
  4197. repE = getAllElements(curSite.pager.replaceE, pageElems, pageElems);
  4198. if (oriE.length === repE.length) {
  4199. for (let i = 0; i < oriE.length; i++) {
  4200. oriE[i].outerHTML = repE[i].outerHTML;
  4201. }
  4202. // 当前页码 + 1
  4203. pageNum.now = pageNum._now + 1
  4204. }
  4205. }
  4206. }
  4207.  
  4208.  
  4209. // [动漫之家-漫画] 初始化(调整本话其余图片)
  4210. function dmzj_manhua_init() {
  4211. let _img = '';
  4212. document.querySelectorAll('#center_box > .inner_img img[src]').forEach(function (one) {
  4213. _img += `<img src="${one.dataset.original}">`;
  4214. one.parentElement.parentElement.remove();
  4215. })
  4216. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4217.  
  4218. }
  4219. // [动漫之家-漫画] 获取下一页地址
  4220. function dmzj_manhua_functionNext() {
  4221. let next;
  4222. next = document.getElementById('next_chapter')
  4223. if (next) {
  4224. if (next.href === curSite.pageUrl) return
  4225. curSite.pageUrl = next.href;
  4226. getPageElems(curSite.pageUrl);
  4227. }
  4228. }
  4229. // [动漫之家-漫画] 插入数据
  4230. function dmzj_manhua_insertElement(pageElems, type) {
  4231. if (!pageElems) return
  4232. // 插入并运行 <script>
  4233. let scriptElement = pageElems.querySelectorAll('head > script[type]:not([src])'), scriptText = '';
  4234. scriptElement.forEach(function (one) {scriptText += ';' + one.textContent;});
  4235. if (scriptText) document.body.appendChild(document.createElement('script')).textContent = scriptText;
  4236.  
  4237. // 插入图片
  4238. let _img = '';
  4239. for (let now of arr_pages) {
  4240. _img += `<img src="${img_prefix}${now}">`;
  4241. }
  4242. if (_img) {
  4243. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4244.  
  4245. // 添加历史记录
  4246. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, pageElems.querySelector('title').textContent, curSite.pageUrl);
  4247.  
  4248. // 替换元素
  4249. let oriE = document.querySelectorAll(curSite.pager.replaceE.replace('css;', '')),
  4250. repE = getAllElements(curSite.pager.replaceE, pageElems, pageElems);
  4251. if (oriE.length === repE.length) {
  4252. for (let i = 0; i < oriE.length; i++) {
  4253. oriE[i].outerHTML = repE[i].outerHTML;
  4254. }
  4255. // 当前页码 + 1
  4256. pageNum.now = pageNum._now + 1
  4257. }
  4258. }
  4259. }
  4260.  
  4261.  
  4262. // [拷贝漫画] 获取下一页地址
  4263. function copymanga_functionNext() {
  4264. let next;
  4265. next = document.querySelector('.comicContent-next > a[href]')
  4266. if (next) {
  4267. if (next.href === curSite.pageUrl) return
  4268. curSite.pageUrl = next.href;
  4269. getPageElems(curSite.pageUrl);
  4270. }
  4271. }
  4272. // [拷贝漫画] 插入数据
  4273. function copymanga_insertElement(pageElems, type) {
  4274. if (!pageElems) return
  4275. // 添加历史记录
  4276. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, pageElems.querySelector('title').textContent, curSite.pageUrl);
  4277. let oldImg = document.querySelector('.comicContent-image-list').innerHTML;
  4278.  
  4279. // 替换元素
  4280. let oriE = document.querySelectorAll(curSite.pager.replaceE.replace('css;', '')),
  4281. repE = getAllElements(curSite.pager.replaceE, pageElems, pageElems);
  4282. if (oriE.length === repE.length) {
  4283. for (let i = 0; i < oriE.length; i++) {
  4284. oriE[i].outerHTML = repE[i].outerHTML;
  4285. }
  4286. // 插入并运行 <script>
  4287. document.body.appendChild(document.createElement('script')).src = document.querySelector('body > script[async][src*="comic_content_pass"]').src;
  4288. setTimeout(function(){
  4289. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), oldImg); // 将 img 标签插入到网页中
  4290. }, 100);
  4291. // 当前页码 + 1
  4292. pageNum.now = pageNum._now + 1
  4293. }
  4294. }
  4295.  
  4296.  
  4297. // [漫画星球] 获取下一页地址
  4298. function mhxqiu_functionNext() {
  4299. let next = document.querySelector('#mainControlNext');
  4300. if (next) {
  4301. if (next.href === curSite.pageUrl) return
  4302. curSite.pageUrl = next.href;
  4303. getPageElems(curSite.pageUrl);
  4304. }
  4305. }
  4306. // [漫画星球] 插入数据
  4307. function mhxqiu_insertElement(pageElems, type) {
  4308. if (!pageElems) return
  4309. // 插入并运行 <script>
  4310. let scriptElement = getElementByXpath('//body/script[@type][not(@src)][contains(text(), "eval(")]', pageElems);
  4311. if (scriptElement) document.body.appendChild(document.createElement('script')).textContent = scriptElement.textContent;
  4312.  
  4313. // 插入图片
  4314. let _img = '';
  4315. for (let now of newImgs) {
  4316. _img += `<li style="margin:0 auto;"><div style="display: inline-block;zoom: 1;"><img src="${now}" class="loaded lazy" style="opacity: 1;box-shadow:none;"></div></li>`;
  4317. }
  4318. if (_img) {
  4319. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4320.  
  4321. // 添加历史记录
  4322. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, pageElems.querySelector('title').textContent, curSite.pageUrl);
  4323.  
  4324. // 替换元素
  4325. let oriE = document.querySelectorAll(curSite.pager.replaceE.replace('css;', '')),
  4326. repE = getAllElements(curSite.pager.replaceE, pageElems, pageElems);
  4327. if (oriE.length === repE.length) {
  4328. for (let i = 0; i < oriE.length; i++) {
  4329. oriE[i].outerHTML = repE[i].outerHTML;
  4330. }
  4331. // 当前页码 + 1
  4332. pageNum.now = pageNum._now + 1
  4333. }
  4334. }
  4335. }
  4336.  
  4337.  
  4338. // [古风漫画网] 获取下一页地址
  4339. function gufengmh_functionNext() {
  4340. let pageElems = document.querySelector(curSite.pager.pageElement.replace('css;', '')); // 寻找数据所在元素
  4341. if (pageElems) {
  4342. let comicUrl, nextId;
  4343. var url = '';
  4344. pageElems.textContent.split(';').forEach(function (one){ // 分号 ; 分割为数组并遍历
  4345. //console.log(one)
  4346. if (one.indexOf('comicUrl') > -1) { // 下一页 URL 前半部分
  4347. comicUrl = one.split('"')[1];
  4348. } else if (one.indexOf('nextChapterData') > -1) { // 下一页 URL 的后半部分 ID
  4349. nextId = one.split('"id":')[1].split(',')[0];
  4350. }
  4351. })
  4352. if (comicUrl && nextId && nextId != 'null') { // 组合到一起就是下一页 URL
  4353. url = comicUrl + nextId + '.html'
  4354. if (url === curSite.pageUrl) return
  4355. curSite.pageUrl = url
  4356. getPageElems(curSite.pageUrl); // 访问下一页 URL 获取
  4357. }
  4358. }
  4359. }
  4360. // [古风漫画网] 插入数据
  4361. function gufengmh_insertElement(pageElems, type) {
  4362. if (pageElems) {
  4363. let url = curSite.pageUrl;
  4364. pageElems = getAllElements(curSite.pager.pageElement, pageElems, pageElems)[0];
  4365. let chapterImages, chapterPath;
  4366. document.querySelector(curSite.pager.pageElement.replace('css;', '')).innerText = pageElems.textContent; // 将当前网页内的数据所在元素内容改为刚刚获取的下一页数据内容,以便循环获取下一页 URL
  4367. pageElems.textContent.split(';').forEach(function (one){ // 分号 ; 分割为数组并遍历
  4368. //console.log(one)
  4369. if (one.indexOf('chapterImages') > -1) { // 图片文件名数组
  4370. chapterImages = one.replace(/^.+\[/, '').replace(']', '').replaceAll('"', '').split(',')
  4371. } else if (one.indexOf('chapterPath') > -1) { // 图片文件路径
  4372. chapterPath = one.split('"')[1];
  4373. } else if (one.indexOf('pageTitle') > -1) { // 网页标题
  4374. let title = one.split('"')[1];
  4375. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, title, url); // 添加历史记录
  4376. window.document.title = title; // 修改当前网页标题为下一页的标题
  4377. }
  4378. })
  4379. if (chapterImages && chapterPath) {
  4380. let _img = '';
  4381. chapterImages.forEach(function (one2){ // 遍历图片文件名数组,组合为 img 标签
  4382. _img += '<img src="https://res.xiaoqinre.com/' + chapterPath + one2 + '" data-index="0" style="display: inline-block;">'
  4383. })
  4384. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4385. // 当前页码 + 1
  4386. pageNum.now = pageNum._now + 1
  4387. }
  4388. }
  4389. }
  4390.  
  4391.  
  4392. // [砂之船动漫家] 的插入前函数(加载图片)
  4393. function szcdmj_functionBefore(pageElems) {
  4394. pageElems.forEach(function (one) {
  4395. if (one.tagName === 'TITLE') {
  4396. let title = one.textContent;
  4397. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, title, curSite.pageUrl); // 添加历史记录
  4398. window.document.title = title; // 修改当前网页标题为下一页的标题
  4399. one.style.display = 'none';
  4400. } else {
  4401. let now = one.querySelector('img[data-original]')
  4402. if (now) {
  4403. now.src = now.dataset.original;
  4404. now.style.display = 'inline';
  4405. }
  4406. }
  4407. });
  4408. return pageElems
  4409. }
  4410.  
  4411.  
  4412. // [Mangabz 漫画] 初始化(调整本话图片)
  4413. function mangabz_init() {
  4414. pageNumber('del');
  4415. let showimage = document.getElementById('showimage'),
  4416. cp_img = document.getElementById('cp_img'),
  4417. cp_image = document.getElementById('cp_image');
  4418. if (showimage) {showimage.removeAttribute('oncontextmenu');}
  4419. if (cp_img) {cp_img.removeAttribute('oncontextmenu');}
  4420. if (cp_image) {
  4421. cp_image.removeAttribute('oncontextmenu');
  4422. cp_image.removeAttribute('id');
  4423. cp_image.removeAttribute('style');
  4424. }
  4425. }
  4426. // [Mangabz 漫画] 获取下一页地址
  4427. function mangabz_functionNext() {
  4428. var url = '';
  4429. if (MANGABZ_PAGE === MANGABZ_IMAGE_COUNT) { // 下一话
  4430. url = getElementByXpath('//a[./img[contains(@src, "icon_xiayizhang")]]')
  4431. if (url === curSite.pageUrl) return
  4432. curSite.pageUrl = url
  4433. //console.log(curSite.pageUrl)
  4434. getPageElems(curSite.pageUrl); // 访问下一话 URL 获取
  4435. } else { // 下一页
  4436. if (!mkey) var mkey = '';
  4437. 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}`
  4438. if (url === curSite.pageUrl) return
  4439. curSite.pageUrl = url
  4440. //console.log(curSite.pageUrl)
  4441. getPageElems(curSite.pageUrl, 'text', 'GET', '', 'Next'); // 访问下一页 URL 获取
  4442. }
  4443. }
  4444. // [Mangabz 漫画] 插入数据
  4445. function mangabz_insertElement(pageElems, type) {
  4446. if (pageElems) {
  4447. if (type === 'Next') {
  4448. let imgArr = eval(pageElems),
  4449. _img = '';
  4450. for (let now of imgArr) {
  4451. _img += `<img src="${now}">`;
  4452. }
  4453. if (_img) {
  4454. document.querySelector(curSite.pager.insertPosition[0].replace('css;', '')).insertAdjacentHTML(addTo(curSite.pager.insertPosition[1]), _img); // 将 img 标签插入到网页中
  4455.  
  4456. // 添加历史记录
  4457. MANGABZ_PAGE += imgArr.length;
  4458. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, document.title, location.origin + MANGABZ_CURL.substring(0, MANGABZ_CURL.length - 1) + '-p' + MANGABZ_PAGE + '/');
  4459. }
  4460. } else {
  4461. // 插入 <script> 标签
  4462. let scriptElement = pageElems.querySelectorAll('html:not([dir]) > head > script:not([src])'), scriptText = '';
  4463. scriptElement.forEach(function (one) {scriptText += ';' + one.textContent;});
  4464. if (scriptText) {
  4465. document.body.appendChild(document.createElement('script')).textContent = scriptText;
  4466.  
  4467. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, pageElems.querySelector('title').textContent, curSite.pageUrl);
  4468.  
  4469. // 替换待替换元素
  4470. let oriE = getAllElements(curSite.pager.replaceE),
  4471. repE = getAllElements(curSite.pager.replaceE, pageElems, pageElems);
  4472. if (oriE.length === repE.length) {
  4473. for (let i = 0; i < oriE.length; i++) {
  4474. oriE[i].outerHTML = repE[i].outerHTML;
  4475. }
  4476. }
  4477. MANGABZ_PAGE = 0;
  4478. mangabz_functionNext();
  4479. }
  4480. }
  4481. }
  4482. }
  4483.  
  4484.  
  4485. // 自动无缝翻页
  4486. function pageLoading() {
  4487. if (curSite.SiteTypeID > 0) {
  4488. windowScroll(function (direction, e) {
  4489. if (direction === 'down' && pausePage === true && curSite.SiteTypeID > 0) { // 下滑 且 未暂停翻页 且 SiteTypeID > 0 时,才准备翻页
  4490. let scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop,
  4491. scrollHeight = window.innerHeight || document.documentElement.clientHeight,
  4492. scrollDelta = curSite.pager.scrollDelta;
  4493.  
  4494. if (curSite.pager.type === 3) { // <<<<< 翻页类型 3(依靠元素距离可视区域底部的距离来触发翻页)>>>>>
  4495. let scrollElement = document.querySelector(curSite.pager.scrollElement);
  4496. //console.log(scrollElement.offsetTop - (scrollTop + scrollHeight), scrollDelta, curSite.SiteTypeID)
  4497. if (scrollElement.offsetTop - (scrollTop + scrollHeight) <= scrollDelta) {
  4498. if (curSite.SiteTypeID === SiteType.GAMERSKY_GL) curSite.pager.scrollDelta -= 800 // 游民星空 gl 的比较奇葩,需要特殊处理下
  4499. ShowPager.loadMorePage();
  4500. }
  4501.  
  4502. } else {
  4503. if (document.documentElement.scrollHeight <= scrollHeight + scrollTop + scrollDelta) {
  4504.  
  4505. if (curSite.pager.type === 2) { // <<<<< 翻页类型 2(网站自带了自动无缝翻页功能,只需要点击下一页按钮即可)>>>>>
  4506. let autopbn = document.querySelector(curSite.pager.nextLink);
  4507. if (autopbn) { // 寻找下一页链接
  4508. // 避免重复点击翻页按钮
  4509. if (curSite.pager.nextText) { // 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页
  4510. if (autopbn.innerText === curSite.pager.nextText) {autopbn.click(); pageNum.now = pageNum._now + 1;} // 当前页码 + 1
  4511.  
  4512. } else if (curSite.pager.nextTextOf) { // 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页
  4513. if (autopbn.innerText.indexOf(curSite.pager.nextTextOf) > -1) {autopbn.click(); pageNum.now = pageNum._now + 1;} // 当前页码 + 1
  4514.  
  4515. } else if (curSite.pager.nextHTML) { // 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页
  4516. if (autopbn.innerHTML === curSite.pager.nextHTML) {autopbn.click(); pageNum.now = pageNum._now + 1;} // 当前页码 + 1
  4517.  
  4518. } else { // 如果没有指定按钮文字就直接点击
  4519. autopbn.click(); pageNum.now = pageNum._now + 1; // 当前页码 + 1
  4520. // 对于没有按钮文字变化的按钮,可以指定间隔时间(默认 300ms)
  4521. if (!curSite.pager.intervals) {curSite.pager.intervals = 300;}
  4522. let _SiteTypeID = curSite.SiteTypeID; curSite.SiteTypeID = 0;
  4523. setTimeout(function(){curSite.SiteTypeID = _SiteTypeID;}, curSite.pager.intervals)
  4524. }
  4525. }
  4526.  
  4527. } else if (curSite.pager.type === 1) { // <<<<< 翻页类型 1(由脚本实现自动无缝翻页)>>>>>
  4528. ShowPager.loadMorePage();
  4529.  
  4530. } else if (curSite.pager.type === 4) { // <<<<< 翻页类型 4(部分简单的动态加载类网站)>>>>>
  4531. // 为百度贴吧的发帖考虑...
  4532. if (!(document.documentElement.scrollHeight <= scrollHeight + scrollTop + 200 && curSite.SiteTypeID === SiteType.BAIDU_TIEBA)) {
  4533. curSite.pager.nextLink();
  4534. }
  4535. if (curSite.pager.intervals) {
  4536. let _SiteTypeID = curSite.SiteTypeID;
  4537. curSite.SiteTypeID = 0;
  4538. setTimeout(function(){curSite.SiteTypeID = _SiteTypeID;}, curSite.pager.intervals)
  4539. }
  4540. }
  4541. }
  4542. }
  4543. }
  4544. });
  4545. }
  4546. }
  4547.  
  4548.  
  4549. // 启用/禁用 (当前网站)
  4550. function menu_disable(type) {
  4551. switch(type) {
  4552. case 'check':
  4553. if(check()) {return true;} else {return false;}; break;
  4554. case 'add':
  4555. add(); break;
  4556. case 'del':
  4557. del(); break;
  4558. }
  4559.  
  4560. function check() { // 存在返回真,不存在返回假
  4561. let list = GM_getValue('menu_disable'); // 读取网站列表
  4562. if (list.indexOf(location.host) === -1) return false // 不存在返回假
  4563. return true
  4564. }
  4565.  
  4566. function add() {
  4567. if (check()) return
  4568. let list = GM_getValue('menu_disable'); // 读取网站列表
  4569. list.push(location.host); // 追加网站域名
  4570. GM_setValue('menu_disable', list); // 写入配置
  4571. location.reload(); // 刷新网页
  4572. }
  4573.  
  4574. function del() {
  4575. if (!check()) return
  4576. let list = GM_getValue('menu_disable'), // 读取网站列表
  4577. index = list.indexOf(location.host);
  4578. list.splice(index, 1); // 删除网站域名
  4579. GM_setValue('menu_disable', list); // 写入配置
  4580. location.reload(); // 刷新网页
  4581. }
  4582. }
  4583.  
  4584.  
  4585. // 左键双击网页空白处暂停翻页
  4586. function pausePageEvent() {
  4587. if (!GM_getValue('menu_pause_page')) return
  4588. if (curSite.SiteTypeID === 0) return
  4589. document.body.addEventListener('dblclick', function () {
  4590. if (pausePage) {
  4591. pausePage = false;
  4592. GM_notification({text: `❌ 已暂停本页 [自动无缝翻页]\n (再次双击可恢复)`, timeout: 2000});
  4593. } else {
  4594. pausePage = true;
  4595. GM_notification({text: `✅ 已恢复本页 [自动无缝翻页]\n (再次双击可暂停)`, timeout: 2000});
  4596. }
  4597. });
  4598. }
  4599.  
  4600.  
  4601. // 显示页码
  4602. function pageNumber(type) {
  4603. if (curSite.SiteTypeID === 0) {let status = document.getElementById('Autopage_number');if (status) {status.style.display = 'none';}; return}
  4604. let status = document.getElementById('Autopage_number');
  4605. switch (type) {
  4606. case 'add':
  4607. add(); break;
  4608. case 'del':
  4609. del(); break;
  4610. case 'set':
  4611. set(); break;
  4612. }
  4613.  
  4614. function add(){
  4615. if (status) {
  4616. if (status.style.display === 'none') {status.style.display = 'flex';}
  4617. return
  4618. }
  4619. // 插入网页
  4620. let _html = `<style>#Autopage_number {top: calc(75vh) !important;left: 0 !important;width: 32px;height: 32px;padding: 6px !important;display: flex;position: fixed !important;opacity: 0.5;transition: .2s;z-index: 1000 !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;} #Autopage_number:hover {opacity: 0.9;transform: translateX(0);}</style>
  4621. <div id="Autopage_number" title="1. 此处数字为 [当前页码] (可在脚本菜单中关闭)&#10;&#10;2. 鼠标左键点击此处 [临时暂停本页自动无缝翻页](再次点击可恢复)">${pageNum._now}</div>`
  4622. document.body.insertAdjacentHTML('beforeend', _html);
  4623. // 点击事件(临时暂停翻页)
  4624. document.getElementById('Autopage_number').onclick = function () {
  4625. if (pausePage) {
  4626. pausePage = false; this.style = 'color: #FF5722 !important; font-style: italic !important;';
  4627. } else {
  4628. pausePage = true; this.style = '';
  4629. }
  4630. };
  4631. status = document.getElementById('Autopage_number');
  4632. set();
  4633. }
  4634. // 监听储存当前页码的对象值的变化
  4635. function set(){
  4636. Object.defineProperty(pageNum, 'now', {
  4637. set: function(value) {
  4638. this._now = value;
  4639. if (status) status.textContent = value;
  4640. }
  4641. });
  4642. }
  4643. function del(){
  4644. if (!status) return
  4645. status.style.display = 'none';
  4646. }
  4647. }
  4648.  
  4649.  
  4650. // 菜单开关
  4651. function menu_switch(menu_status, Name, Tips) {
  4652. if (menu_status === true){
  4653. GM_setValue(Name, false);
  4654. } else {
  4655. GM_setValue(Name, true);
  4656. }
  4657. if (Name === 'menu_page_number') {
  4658. if (menu_status === true){pageNumber('del');} else {pageNumber('add');}
  4659. registerMenuCommand(); // 重新注册(不可用)脚本菜单
  4660. } else {
  4661. location.reload();}
  4662. };
  4663.  
  4664.  
  4665. // 生成 ID
  4666. function generateID() {
  4667. let num = 0
  4668. for (let val in DBSite) {
  4669. DBSite[val].SiteTypeID = num = num + 1;
  4670. }
  4671. }
  4672.  
  4673.  
  4674. // 判断是支持
  4675. function doesItSupport() {
  4676. setDBSite(); // 配置 DBSite 变量对象
  4677.  
  4678. // 遍历判断是否是某个已支持的网站,顺便直接赋值
  4679. let support = false;
  4680. for (let now in DBSite) { // 遍历对象
  4681. if (!DBSite[now].host) continue; // 如果不存在则继续下一个循环
  4682. if (Array.isArray(DBSite[now].host)) { // 如果是数组
  4683. for (let i of DBSite[now].host) { // 遍历数组
  4684. if (i === location.host) {
  4685. if (DBSite[now].functionStart) {
  4686. DBSite[now].functionStart();
  4687. } else {
  4688. curSite = DBSite[now];
  4689. }
  4690. support = true; break; // 如果找到了就退出循环
  4691. }
  4692. }
  4693. } else if (DBSite[now].host instanceof RegExp) {
  4694. if (DBSite[now].host.test(location.host)) {
  4695. if (self != top) {if (!DBSite[now].iframe) break;} // 如果当前位于 iframe 框架下,就需要判断是否需要执行
  4696. if (DBSite[now].functionStart) {
  4697. DBSite[now].functionStart();
  4698. } else {
  4699. curSite = DBSite[now];
  4700. }
  4701. support = true; break; // 如果找到了就退出循环
  4702. }
  4703. } else if (DBSite[now].host === location.host) {
  4704. if (self != top) {if (!DBSite[now].iframe) break;} // 如果当前位于 iframe 框架下,就需要判断是否需要执行
  4705. if (DBSite[now].functionStart) {
  4706. DBSite[now].functionStart();
  4707. } else {
  4708. curSite = DBSite[now];
  4709. }
  4710. support = true; break; // 如果找到了就退出循环
  4711. }
  4712. }
  4713.  
  4714. if (support) {
  4715. console.info('[自动无缝翻页] - 其他网站(独立规则)'); return 1;
  4716. } else if (document.querySelector('meta[name="author"][content*="Discuz!"], meta[name="generator"][content*="Discuz!"]') || (document.querySelector('a[href*="www.discuz.net"]') && document.querySelector('a[href*="www.discuz.net"]').textContent.indexOf('Discuz!') > -1) || (document.getElementById('ft') && document.getElementById('ft').textContent.indexOf('Discuz!') > -1)) {
  4717. console.info('[自动无缝翻页] - Discuz! 论坛'); return 2;
  4718. } else if (document.getElementById('flarum-loading')) {
  4719. console.info('[自动无缝翻页] - Flarum 论坛'); return 3;
  4720. } else if (document.querySelector('link[href*="themes/dux" i], script[src*="themes/dux" i]')) {
  4721. console.info('[自动无缝翻页] - 使用 WordPress DUX 主题的网站'); return 4;
  4722. } else if (self != top) {
  4723. return -1;
  4724. }
  4725. return 0;
  4726. }
  4727.  
  4728.  
  4729. // 获取 Cookie
  4730. function getCookie(name) {
  4731. if (!name) return ''
  4732. let arr = document.cookie.split(';');
  4733. name += '='
  4734. for (let i=0; i<arr.length; i++) {
  4735. let now = arr[i].trim();
  4736. if (now.indexOf(name) == 0) return now.substring(name.length, now.length);
  4737. }
  4738. return '';
  4739. }
  4740.  
  4741.  
  4742. // 类型 4 专用
  4743. function getPageElems(url, type = '', method = 'GET', data = '', type2) {
  4744. //console.log(url, data)
  4745. let mimeType = '';
  4746. if (curSite.pager.mimeType) mimeType = curSite.pager.mimeType;
  4747. GM_xmlhttpRequest({
  4748. url: url,
  4749. method: method,
  4750. data: data,
  4751. responseType: type,
  4752. overrideMimeType: mimeType,
  4753. headers: {
  4754. 'Referer': location.href,
  4755. 'Content-Type': (method === 'POST') ? 'application/x-www-form-urlencoded':''
  4756. },
  4757. timeout: 5000,
  4758. onload: function (response) {
  4759. try {
  4760. //console.log('最终 URL:' + response.finalUrl, '返回内容:' + response.responseText)
  4761. switch (type) {
  4762. case 'json':
  4763. curSite.pager.insertElement(response.response, type2);
  4764. break;
  4765. case 'text':
  4766. curSite.pager.insertElement(response.responseText, type2)
  4767. break;
  4768. default:
  4769. curSite.pager.insertElement(ShowPager.createDocumentByString(response.responseText), type2)
  4770. }
  4771. } catch (e) {
  4772. console.log(e);
  4773. }
  4774. }
  4775. });
  4776. }
  4777.  
  4778.  
  4779. // 插入位置
  4780. function addTo(num) {
  4781. switch (num) {
  4782. case 1:
  4783. return 'beforebegin'; break;
  4784. case 2:
  4785. return 'afterbegin'; break;
  4786. case 3:
  4787. return 'beforeend'; break;
  4788. case 4:
  4789. return 'afterend'; break;
  4790. case 5:
  4791. return 'beforeend'; break;
  4792. }
  4793. }
  4794.  
  4795.  
  4796. // 滚动条事件
  4797. function windowScroll(fn1) {
  4798. var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  4799. fn = fn1 || function () {};
  4800. setTimeout(function () { // 延时 1 秒执行,避免刚载入到页面就触发翻页事件
  4801. window.addEventListener('scroll', function (e) {
  4802. var afterScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
  4803. delta = afterScrollTop - beforeScrollTop;
  4804. if (delta == 0) return false;
  4805. fn(delta > 0 ? 'down' : 'up', e);
  4806. beforeScrollTop = afterScrollTop;
  4807. }, false);
  4808. }, 1000)
  4809. }
  4810.  
  4811.  
  4812. // 修改自 https://gf.qytechs.cn/scripts/14178 , https://github.com/machsix/Super-preloader
  4813. var ShowPager = {
  4814. getFullHref: function (e) {
  4815. if (e != null && e.nodeType === 1 && e.href && e.href.slice(0,4) === 'http') return e.href;
  4816. return '';
  4817. },
  4818. createDocumentByString: function (e) {
  4819. if (e) {
  4820. if ('HTML' !== document.documentElement.nodeName) return (new DOMParser).parseFromString(e, 'application/xhtml+xml');
  4821. var t;
  4822. try { t = (new DOMParser).parseFromString(e, 'text/html');} catch (e) {}
  4823. if (t) return t;
  4824. if (document.implementation.createHTMLDocument) {
  4825. t = document.implementation.createHTMLDocument('ADocument');
  4826. } else {
  4827. 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) {}
  4828. }
  4829. if (t) {
  4830. var r = document.createRange(),
  4831. n = r.createContextualFragment(e);
  4832. r.selectNodeContents(document.body);
  4833. t.body.appendChild(n);
  4834. 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);
  4835. return t;
  4836. }
  4837. } else console.error('没有找到要转成 DOM 的字符串');
  4838. },
  4839. loadMorePage: function () {
  4840. if (curSite.pager) {
  4841. var url;
  4842. if (typeof curSite.pager.nextLink == 'function') {
  4843. url = curSite.pager.nextLink();
  4844. } else {
  4845. if (curSite.pager.nextLink.slice(0,4) === 'css;') {
  4846. url = this.getFullHref(getElementByCSS(curSite.pager.nextLink.slice(4)));
  4847. } else {
  4848. url = this.getFullHref(getElementByXpath(curSite.pager.nextLink));
  4849. }
  4850. }
  4851. //console.log(url, curSite.pageUrl);
  4852. if (url === '') return;
  4853. if (curSite.pager.forceHTTPS && location.protocol === 'https:') {url = url.replace(/^http:/,'https:');}
  4854. if (curSite.pageUrl === url) return;// 避免重复加载相同的页面
  4855. curSite.pageUrl = url;
  4856. let mimeType = '';
  4857. if (curSite.pager.mimeType) mimeType = curSite.pager.mimeType;
  4858. // 读取下一页的数据
  4859. GM_xmlhttpRequest({
  4860. url: url,
  4861. method: 'GET',
  4862. overrideMimeType: mimeType,
  4863. headers: {
  4864. 'Referer': location.href
  4865. },
  4866. timeout: 5000,
  4867. onload: function (response) {
  4868. try {
  4869. processResult(response);
  4870. } catch (e) {
  4871. console.log(e);
  4872. }
  4873. }
  4874. });
  4875. }
  4876. },
  4877. };
  4878. function processResult(response) {
  4879. //console.log('最终 URL:' + response.finalUrl, '返回内容:' + response.responseText)
  4880. var newBody = ShowPager.createDocumentByString(response.responseText);
  4881. let pageElems = getAllElements(curSite.pager.pageElement, newBody, newBody),
  4882. toElement = getAllElements(curSite.pager.insertPosition[0])[0];
  4883. //console.log(curSite.pager.pageElement, pageElems, curSite.pager.insertPosition, toElement)
  4884.  
  4885. if (pageElems.length >= 0) {
  4886. // 如果有插入前函数就执行函数
  4887. if (curSite.function && curSite.function.before) {
  4888. if (curSite.function.parameter) { // 如果指定了参数
  4889. pageElems = curSite.function.before(pageElems, curSite.function.parameter);
  4890. } else {
  4891. pageElems = curSite.function.before(pageElems);
  4892. }
  4893. }
  4894.  
  4895. // 插入位置
  4896. let addTo1 = addTo(curSite.pager.insertPosition[1]);
  4897.  
  4898. // 插入新页面元素
  4899. if (curSite.pager.insertPosition[1] === 4) { // 插入到目标本身后面,需要合并后一起插入
  4900. let afterend = '';
  4901. pageElems.forEach(function (one) {afterend += one.outerHTML;});
  4902. toElement.insertAdjacentHTML(addTo1, afterend);
  4903. } else if (curSite.pager.insertPosition[1] === 5) { // 插入到目标内部末尾(针对文本)
  4904. let afterend = '';
  4905. pageElems.forEach(function (one) {afterend += one.innerHTML;});
  4906. toElement.insertAdjacentHTML(addTo1, afterend);
  4907. } else {
  4908. pageElems.forEach(function (one) {toElement.insertAdjacentElement(addTo1, one);});
  4909. }
  4910.  
  4911. // 当前页码 + 1
  4912. pageNum.now = pageNum._now + 1
  4913.  
  4914. // 插入 <script> 标签
  4915. if (curSite.pager.scriptType) {
  4916. let scriptText = '';
  4917. if (curSite.pager.scriptType === 1) { // 下一页的所有 <script> 标签
  4918. const scriptElems = getAllElements('//script', newBody, newBody);
  4919. scriptElems.forEach(function (one) {
  4920. if (one.src) {
  4921. toElement.appendChild(document.createElement('script')).src = one.src;
  4922. } else {
  4923. scriptText += ';' + one.textContent;
  4924. }
  4925. });
  4926. toElement.appendChild(document.createElement('script')).textContent = scriptText;
  4927. } else if (curSite.pager.scriptType === 2) { // 下一页主体元素同级 <script> 标签
  4928. pageElems.forEach(function (one) {if (one.tagName === 'SCRIPT') {scriptText += ';' + one.textContent;}});
  4929. if (scriptText) toElement.appendChild(document.createElement('script')).textContent = scriptText;
  4930. } else if (curSite.pager.scriptType === 3) { // 下一页主体元素同级 <script> 标签(远程文件)
  4931. pageElems.forEach(function (one) {if (one.tagName === 'SCRIPT' && one.src) {toElement.appendChild(document.createElement('script')).src = one.src;}});
  4932. } else if (curSite.pager.scriptType === 4) { // 下一页主体元素子元素 <script> 标签
  4933. pageElems.forEach(function (one) {
  4934. const scriptElems = one.querySelectorAll('script');
  4935. scriptElems.forEach(function (script) {scriptText += ';' + script.textContent;});
  4936. });
  4937. if (scriptText) toElement.appendChild(document.createElement('script')).textContent = scriptText;
  4938. }
  4939. }
  4940.  
  4941. // 添加历史记录
  4942. if (curSite.pager.history && curSite.pager.history == true) {
  4943. window.history.pushState(`{title: ${document.title}, url: ${location.href}}`, newBody.querySelector('title').textContent, curSite.pageUrl);
  4944. }
  4945.  
  4946. // 替换待替换元素
  4947. if (curSite.pager.replaceE) {
  4948. try {
  4949. let oriE = getAllElements(curSite.pager.replaceE),
  4950. repE = getAllElements(curSite.pager.replaceE, newBody, newBody);
  4951. //console.log(oriE, repE);
  4952. if (oriE.length === repE.length) {
  4953. for (let i = 0; i < oriE.length; i++) {
  4954. oriE[i].outerHTML = repE[i].outerHTML;
  4955. }
  4956. }
  4957. } catch (e) {
  4958. console.log(e);
  4959. }
  4960. }
  4961.  
  4962. // 如果有插入后函数就执行函数
  4963. if (curSite.function && curSite.function.after) {
  4964. if (curSite.function.parameter) { // 如果指定了参数
  4965. curSite.function.after(curSite.function.parameter);
  4966. } else {
  4967. curSite.function.after();
  4968. }
  4969. }
  4970. }
  4971. }
  4972. function getElementByCSS(css, contextNode = document) {
  4973. return contextNode.querySelector(css);
  4974. }
  4975. function getAllElementsByCSS(css, contextNode = document) {
  4976. return [].slice.call(contextNode.querySelectorAll(css));
  4977. }
  4978. function getElementByXpath(xpath, contextNode, doc = document) {
  4979. contextNode = contextNode || doc;
  4980. try {
  4981. const result = doc.evaluate(xpath, contextNode, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null);
  4982. // 应该总是返回一个元素节点
  4983. return result.singleNodeValue && result.singleNodeValue.nodeType === 1 && result.singleNodeValue;
  4984. } catch (err) {
  4985. throw new Error(`Invalid xpath: ${xpath}`);
  4986. }
  4987. }
  4988. function getAllElementsByXpath(xpath, contextNode, doc = document) {
  4989. contextNode = contextNode || doc;
  4990. const result = [];
  4991. try {
  4992. const query = doc.evaluate(xpath, contextNode, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
  4993. for (let i = 0; i < query.snapshotLength; i++) {
  4994. const node = query.snapshotItem(i);
  4995. // 如果是 Element 节点
  4996. if (node.nodeType === 1) result.push(node);
  4997. }
  4998. } catch (err) {
  4999. throw new Error(`无效 Xpath: ${xpath}`);
  5000. }
  5001. return result;
  5002. }
  5003. function getAllElements(selector, contextNode = undefined, doc = document, win = window, _cplink = undefined) {
  5004. if (!selector) return [];
  5005. contextNode = contextNode || doc;
  5006. if (typeof selector === 'string') {
  5007. if (selector.search(/^css;/i) === 0) {
  5008. return getAllElementsByCSS(selector.slice(4), contextNode);
  5009. } else {
  5010. return getAllElementsByXpath(selector, contextNode, doc);
  5011. }
  5012. } else {
  5013. const query = selector(doc, win, _cplink);
  5014. if (!Array.isArray(query)) {
  5015. throw new Error('getAllElements 返回错误类型');
  5016. } else {
  5017. return query;
  5018. }
  5019. }
  5020. }
  5021.  
  5022. // 自定义 locationchange 事件(用来监听 URL 变化)
  5023. function addLocationchange() {
  5024. history.pushState = ( f => function pushState(){
  5025. var ret = f.apply(this, arguments);
  5026. window.dispatchEvent(new Event('pushstate'));
  5027. window.dispatchEvent(new Event('locationchange'));
  5028. return ret;
  5029. })(history.pushState);
  5030.  
  5031. history.replaceState = ( f => function replaceState(){
  5032. var ret = f.apply(this, arguments);
  5033. window.dispatchEvent(new Event('replacestate'));
  5034. window.dispatchEvent(new Event('locationchange'));
  5035. return ret;
  5036. })(history.replaceState);
  5037.  
  5038. window.addEventListener('popstate',()=>{
  5039. window.dispatchEvent(new Event('locationchange'))
  5040. });
  5041. }
  5042.  
  5043. /*// 监听 XMLHttpRequest URL
  5044. var _send = window.XMLHttpRequest.prototype.send
  5045. function sendReplacement(data) {
  5046. console.log(data)
  5047. return _send.apply(this, arguments);
  5048. }
  5049. window.XMLHttpRequest.prototype.send = sendReplacement;
  5050. // 监听 XMLHttpRequest 模式(GET/POST)和数据
  5051. var _open = window.XMLHttpRequest.prototype.open
  5052. function openReplacement(data) {
  5053. console.log(data, arguments)
  5054. return _open.apply(this, arguments);
  5055. }
  5056. window.XMLHttpRequest.prototype.open = openReplacement;*/
  5057. })();

QingJ © 2025

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