|
1 | 1 | // ==UserScript== |
2 | 2 | // @name 自动无缝翻页 |
3 | | -// @version 2.5.8 |
| 3 | +// @version 2.5.9 |
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 *://*/* |
|
2912 | 2912 | nextText: 'Show more', |
2913 | 2913 | scrollDelta: 1500 |
2914 | 2914 | } |
2915 | | - }, // 学术 |
| 2915 | + }, // 学术 |
| 2916 | + libgen: { |
| 2917 | + SiteTypeID: 0, |
| 2918 | + host: /libgen/, |
| 2919 | + functionStart: function() {if (location.pathname === '/search.php') {curSite = DBSite.libgen;}}, |
| 2920 | + pager: { |
| 2921 | + type: 1, |
| 2922 | + nextLink: '//font/a[@href][contains(text(), "►")]', |
| 2923 | + pageElement: 'css;table[rules="rows"] > tbody > tr:nth-of-type(n+2), .paginator+script:not([src])', |
| 2924 | + insertPosition: ['css;table[rules="rows"] > tbody', 3], |
| 2925 | + replaceE: '//td[./font/a[@href][contains(text(), "►")]]', |
| 2926 | + scriptType: 2, |
| 2927 | + history: true, |
| 2928 | + scrollDelta: 2000 |
| 2929 | + } |
| 2930 | + }, // 学术 |
| 2931 | + baidu_xueshu: { |
| 2932 | + SiteTypeID: 0, |
| 2933 | + host: 'xueshu.baidu.com', |
| 2934 | + functionStart: function() {if (location.pathname === '/s') { |
| 2935 | + curSite = DBSite.baidu_xueshu; |
| 2936 | + } else if (location.pathname.indexOf('journal/navigation') > -1) { |
| 2937 | + curSite = DBSite.baidu_xueshu_journal; |
| 2938 | + } else if (location.pathname.indexOf('paper/show') > -1) { |
| 2939 | + curSite = DBSite.baidu_xueshu_paper; |
| 2940 | + }}, |
| 2941 | + pager: { |
| 2942 | + type: 1, |
| 2943 | + nextLink: 'id("page")/a[./i[@class="c-icon-pager-next"]][@href]', |
| 2944 | + pageElement: 'css;#bdxs_result_lists > div.result', |
| 2945 | + insertPosition: ['css;#bdxs_result_lists', 3], |
| 2946 | + replaceE: 'css;#page', |
| 2947 | + history: true, |
| 2948 | + scrollDelta: 1000 |
| 2949 | + } |
| 2950 | + }, // 百度学术 |
| 2951 | + baidu_xueshu_journal: { |
| 2952 | + SiteTypeID: 0, |
| 2953 | + pager: { |
| 2954 | + type: 1, |
| 2955 | + nextLink: 'css;a.res-page-next[href]', |
| 2956 | + pageElement: 'css;#journaldetail > div', |
| 2957 | + insertPosition: ['css;#journaldetail', 3], |
| 2958 | + replaceE: 'css;.res-page', |
| 2959 | + history: true, |
| 2960 | + scrollDelta: 1000 |
| 2961 | + } |
| 2962 | + }, // 百度学术 |
| 2963 | + baidu_xueshu_paper: { |
| 2964 | + SiteTypeID: 0, |
| 2965 | + pager: { |
| 2966 | + type: 2, |
| 2967 | + nextLink: 'div:not([style*="display: none"]) > .more_btn', |
| 2968 | + nextText: '加载更多', |
| 2969 | + scrollDelta: 1000 |
| 2970 | + } |
| 2971 | + }, // 百度学术 |
2916 | 2972 | wikihow: { |
2917 | 2973 | SiteTypeID: 0, |
2918 | 2974 | host: ['www.wikihow.com', 'zh.wikihow.com'], |
|
0 commit comments