|
1 | 1 | // ==UserScript== |
2 | 2 | // @name 自动无缝翻页 |
3 | | -// @version 2.4.7 |
| 3 | +// @version 2.4.8 |
4 | 4 | // @author X.I.U |
5 | 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 | 6 | // @match *://*/* |
|
2358 | 2358 | curSite = DBSite.github_star; |
2359 | 2359 | } else if (location.pathname.indexOf('/issues') > -1 && location.pathname.indexOf('/issues/') === -1) { |
2360 | 2360 | curSite = DBSite.github_issues; |
| 2361 | + console.log(1111111111) |
2361 | 2362 | } else if (location.pathname === '/search') { |
2362 | 2363 | if (!location.search) return |
2363 | 2364 | if (location.search.indexOf('type=Repositories') > -1 || location.search.indexOf('type=') === -1) { |
|
2386 | 2387 | pageElement: 'css;#js-pjax-container .position-relative div[class^="col-lg-"] > div:not(.position-relative):not(.paginate-container)', |
2387 | 2388 | insertPosition: ['css;.paginate-container', 1], |
2388 | 2389 | replaceE: 'css;.paginate-container', |
2389 | | - scrollDelta: 2500 |
| 2390 | + scrollDelta: 3000 |
2390 | 2391 | } |
2391 | 2392 | }, // Github - 用户 Star 列表 |
2392 | 2393 | github_issues: { |
|
2397 | 2398 | pageElement: 'css;.js-navigation-container.js-active-navigation-container > div[id^="issue_"]', |
2398 | 2399 | insertPosition: ['css;.js-navigation-container.js-active-navigation-container', 3], |
2399 | 2400 | replaceE: 'css;.pagination', |
2400 | | - scrollDelta: 2000 |
| 2401 | + scrollDelta: 3000 |
2401 | 2402 | } |
2402 | 2403 | }, // Github - Issues 列表 |
2403 | 2404 | github_search: { |
|
2898 | 2899 | nowLocation = location.href; curSite = {SiteTypeID: 0}; pageNum.now = 1; // 重置规则+页码 |
2899 | 2900 | registerMenuCommand(); // 重新判断规则 |
2900 | 2901 | curSite.pageUrl = ''; // 下一页URL |
| 2902 | + pageLoading(); // 自动无缝翻页 |
2901 | 2903 |
|
2902 | 2904 | if (GM_getValue('menu_page_number')) {pageNumber('add');} else {pageNumber('set');} // 显示页码 |
2903 | 2905 | pausePageEvent(); // 左键双击网页空白处暂停翻页 |
|
0 commit comments