|
1 | 1 | // ==UserScript== |
2 | 2 | // @name 自动无缝翻页 |
3 | | -// @version 2.6.0 |
| 3 | +// @version 2.6.1 |
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 *://*/* |
|
2701 | 2701 | curSite = DBSite.github_issues; |
2702 | 2702 | } else if (location.pathname.indexOf('/discussions') > -1 && !(/\/discussions\/\d+/.test(location.pathname))) { |
2703 | 2703 | curSite = DBSite.github_discussions; |
| 2704 | + } else if (location.pathname.indexOf('/releases') > -1 && location.pathname.indexOf('/releases/tag/') === -1) { |
| 2705 | + curSite = DBSite.github_releases; |
| 2706 | + } else if (location.pathname.indexOf('/tags') > -1 && location.pathname.indexOf('/tags/') === -1) { |
| 2707 | + curSite = DBSite.github_tags; |
| 2708 | + } else if (location.pathname.indexOf('/commits') > -1) { |
| 2709 | + curSite = DBSite.github_commits; |
2704 | 2710 | } else if (location.pathname.indexOf('/search') > -1) { |
2705 | 2711 | if (!location.search) return |
2706 | 2712 | if (location.search.indexOf('type=Repositories') > -1 || location.search.indexOf('type=') === -1) { |
|
2754 | 2760 | scrollDelta: 3000 |
2755 | 2761 | } |
2756 | 2762 | }, // Github - Discussions 列表 |
| 2763 | + github_releases: { |
| 2764 | + SiteTypeID: 0, |
| 2765 | + pager: { |
| 2766 | + type: 1, |
| 2767 | + nextLink: '//div[@class="pagination"]/a[contains(text(), "Next")]', |
| 2768 | + pageElement: 'css;.repository-content >.position-relative > div', |
| 2769 | + insertPosition: ['css;.repository-content >.position-relative', 3], |
| 2770 | + replaceE: 'css;.pagination', |
| 2771 | + scrollDelta: 3000 |
| 2772 | + } |
| 2773 | + }, // Github - Releases 列表 |
| 2774 | + github_tags: { |
| 2775 | + SiteTypeID: 0, |
| 2776 | + pager: { |
| 2777 | + type: 1, |
| 2778 | + nextLink: '//div[@class="pagination"]/a[contains(text(), "Next")]', |
| 2779 | + pageElement: 'css;.repository-content > .Box > div.Box-row', |
| 2780 | + insertPosition: ['css;.repository-content > .Box', 3], |
| 2781 | + replaceE: 'css;.pagination', |
| 2782 | + scrollDelta: 3000 |
| 2783 | + } |
| 2784 | + }, // Github - Tags 列表 |
| 2785 | + github_commits: { |
| 2786 | + SiteTypeID: 0, |
| 2787 | + pager: { |
| 2788 | + type: 1, |
| 2789 | + nextLink: '//div[@class="paginate-container"]//a[contains(text(), "Older")]', |
| 2790 | + pageElement: 'css;div.js-navigation-container > div', |
| 2791 | + insertPosition: ['css;div.js-navigation-container', 3], |
| 2792 | + replaceE: 'css;.paginate-container', |
| 2793 | + scrollDelta: 3000 |
| 2794 | + } |
| 2795 | + }, // Github - Commits 列表 |
2757 | 2796 | github_search: { |
2758 | 2797 | SiteTypeID: 0, |
2759 | 2798 | pager: { |
|
0 commit comments