|
1 | 1 | // ==UserScript== |
2 | 2 | // @name 自动无缝翻页 |
3 | | -// @version 2.5.4 |
| 3 | +// @version 2.5.5 |
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 *://*/* |
|
224 | 224 | google: { |
225 | 225 | SiteTypeID: 0, |
226 | 226 | host: /.google./, |
227 | | - functionStart: function() {if (location.pathname === '/search') curSite = DBSite.google;}, |
| 227 | + functionStart: function() {if (location.pathname === '/search') { |
| 228 | + curSite = DBSite.google; |
| 229 | + } else if (location.pathname === '/scholar') { |
| 230 | + curSite = DBSite.google_scholar; |
| 231 | + }}, |
228 | 232 | pager: { |
229 | 233 | type: 1, |
230 | 234 | nextLink: 'id("pnnext")[@href]', |
|
235 | 239 | scrollDelta: 3000 |
236 | 240 | } |
237 | 241 | }, // 谷歌 搜索 |
| 242 | + google_scholar: { |
| 243 | + SiteTypeID: 0, |
| 244 | + pager: { |
| 245 | + type: 1, |
| 246 | + nextLink: '//a[./span[@class="gs_ico gs_ico_nav_next"]]', |
| 247 | + pageElement: 'css;#gs_res_ccl_mid > *', |
| 248 | + insertPosition: ['css;#gs_res_ccl_mid', 3], |
| 249 | + replaceE: 'id("gs_n")', |
| 250 | + scriptType: 1, |
| 251 | + scrollDelta: 2000 |
| 252 | + } |
| 253 | + }, // 谷歌学术 搜索 |
238 | 254 | bing: { |
239 | 255 | SiteTypeID: 0, |
240 | 256 | host: ['www.bing.com','cn.bing.com'], |
|
1236 | 1252 | function: { |
1237 | 1253 | before: pianku_functionBefore |
1238 | 1254 | } |
1239 | | - }, // 片库 |
| 1255 | + }, // 片库 |
1240 | 1256 | cupfox: { |
1241 | 1257 | SiteTypeID: 0, |
1242 | 1258 | host: 'www.cupfox.com', |
|
1360 | 1376 | replaceE: 'css;.pagelist', |
1361 | 1377 | scrollDelta: 1000 |
1362 | 1378 | } |
1363 | | - }, // 233 动漫 |
| 1379 | + }, // 233 动漫 |
1364 | 1380 | dm233_article: { |
1365 | 1381 | SiteTypeID: 0, |
1366 | 1382 | pager: { |
|
1371 | 1387 | replaceE: 'css;.pagelist', |
1372 | 1388 | scrollDelta: 1000 |
1373 | 1389 | } |
1374 | | - }, // 233 动漫 - 动漫情报/资讯 |
| 1390 | + }, // 233 动漫 - 动漫情报/资讯 |
1375 | 1391 | dm233_rank: { |
1376 | 1392 | SiteTypeID: 0, |
1377 | 1393 | pager: { |
|
1382 | 1398 | replaceE: 'css;.pagelist', |
1383 | 1399 | scrollDelta: 1000 |
1384 | 1400 | } |
1385 | | - }, // 233 动漫 - 排行榜 |
| 1401 | + }, // 233 动漫 - 排行榜 |
1386 | 1402 | agefans: { |
1387 | 1403 | SiteTypeID: 0, |
1388 | 1404 | host: 'www.agefans.cc', |
|
2465 | 2481 | curSite = DBSite.github_issues; |
2466 | 2482 | } else if (location.pathname.indexOf('/discussions') > -1 && !(/\/discussions\/\d+/.test(location.pathname))) { |
2467 | 2483 | curSite = DBSite.github_discussions; |
2468 | | - } else if (location.pathname === '/search') { |
| 2484 | + } else if (location.pathname.indexOf('/search') > -1) { |
2469 | 2485 | if (!location.search) return |
2470 | 2486 | if (location.search.indexOf('type=Repositories') > -1 || location.search.indexOf('type=') === -1) { |
2471 | 2487 | curSite = DBSite.github_search; |
|
0 commit comments