Skip to content

Commit 62238b0

Browse files
committed
新增 [百度搜索 - 手机版] 支持
1 parent 5c7f41c commit 62238b0

1 file changed

Lines changed: 36 additions & 3 deletions

File tree

Autopage.user.js

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 3.7.0
3+
// @version 3.7.1
44
// @author X.I.U
55
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
66
// @match *://*/*
@@ -372,23 +372,46 @@ function: {
372372
}, // 笔趣阁 模板的小说网站
373373
baidu: {
374374
host: 'www.baidu.com',
375+
functionS: function() {locationC = true;
376+
if (location.pathname == '/s') {
377+
curSite = DBSite.baidu
378+
} else if (indexOF('/s')) {
379+
location.host = 'm.baidu.com'
380+
}
381+
},
375382
insStyle: '.new-pmd .c-img-border {position: initial !important;} .op-bk-polysemy-video__wrap.c-gap-bottom {display: none !important;}',
383+
history: true,
376384
pager: {
377385
type: 1,
378386
nextL: 'id("page")//a[contains(text(),"下一页")]',
379387
pageE: 'css;#content_left > *',
380388
insertP: ['css;#content_left', 3],
381389
replaceE: 'css;#page',
382-
scrollD: 1200
390+
scrollD: 1500
391+
}
392+
}, // 百度 搜索
393+
baidu_m: {
394+
host: 'm.baidu.com',
395+
functionS: function() {if (indexOF('/s')) curSite = DBSite.baidu_m;},
396+
history: true,
397+
insStyle: 'div.result[tpl="recommend_list"], #page-copyright {display: none !important;}',
398+
pager: {
399+
type: 1,
400+
nextL: 'css;a[class^="new-nextpage"]',
401+
pageE: 'css;#results > *',
402+
insertP: ['css;#results', 3],
403+
replaceE: 'css;#page-controller',
404+
scrollD: 2000
383405
}
384-
}, // 百度 搜素
406+
}, // 百度 搜索 - 手机版
385407
google: {
386408
host: /\.google\./,
387409
functionS: function() {if (location.pathname === '/search' && !indexOF('tbm=isch', 's')) {
388410
curSite = DBSite.google;
389411
} else if (location.pathname === '/scholar') {
390412
curSite = DBSite.google_scholar;
391413
}},
414+
history: true,
392415
pager: {
393416
type: 1,
394417
nextL: 'css;#pnnext',
@@ -410,6 +433,7 @@ function: {
410433
curSite = DBSite.bing_academic;
411434
}},
412435
insStyle: '.b_imagePair.square_mp > .inner {display: none !important;}',
436+
history: true,
413437
pager: {
414438
type: 1,
415439
nextL: '//a[contains(@class,"sb_pagN")]',
@@ -422,6 +446,7 @@ function: {
422446
sogou: {
423447
host: 'www.sogou.com',
424448
functionS: function() {if (location.pathname != '/') {curSite = DBSite.sogou;}},
449+
history: true,
425450
pager: {
426451
type: 1,
427452
nextL: 'css;#sogou_next',
@@ -447,6 +472,7 @@ function: {
447472
}
448473
}, // 搜狗微信 - 首页
449474
sogou_weixin_search: {
475+
history: true,
450476
pager: {
451477
type: 1,
452478
nextL: 'css;#sogou_next',
@@ -459,6 +485,7 @@ function: {
459485
toutiao: {
460486
host: ['www.toutiao.com', 'so.toutiao.com'],
461487
functionS: function() {if (location.hostname != 'www.toutiao.com') {if (location.pathname === '/search') {curSite = DBSite.toutiao;}}},
488+
history: true,
462489
pager: {
463490
type: 1,
464491
nextL: '//div[contains(@class, "-pagination")]/a[contains(string(), "下一页")]',
@@ -474,6 +501,7 @@ function: {
474501
so: {
475502
host: 'www.so.com',
476503
functionS: function() {if (location.pathname != '/') {curSite = DBSite.so; insStyle('img {opacity: 1 !important;}')}},
504+
history: true,
477505
pager: {
478506
type: 1,
479507
nextL: 'css;a#snext',
@@ -499,6 +527,7 @@ function: {
499527
startpage: {
500528
host: ['startpage.com', 'www.startpage.com'],
501529
functionS: function() {if (indexOF('/search')) {curSite = DBSite.startpage;}},
530+
history: true,
502531
pager: {
503532
type: 1,
504533
nextL: startpage_nextL,
@@ -511,6 +540,7 @@ function: {
511540
yandex: {
512541
host: 'yandex.com',
513542
functionS: function() {if (location.pathname === '/search/') {curSite = DBSite.yandex;}},
543+
history: true,
514544
pager: {
515545
type: 1,
516546
nextL: 'css;a.pager__item_kind_next',
@@ -523,6 +553,7 @@ function: {
523553
yahoo: {
524554
host: 'search.yahoo.com',
525555
functionS: function() {if (indexOF('/search')) {curSite = DBSite.yahoo;}},
556+
history: true,
526557
pager: {
527558
type: 1,
528559
nextL: 'css;.pagination a.next',
@@ -535,6 +566,7 @@ function: {
535566
yahoo_jp: {
536567
host: 'search.yahoo.co.jp',
537568
functionS: function() {if (indexOF('/search')) {curSite = DBSite.yahoo_jp;}},
569+
history: true,
538570
pager: {
539571
type: 1,
540572
nextL: 'css;.Pagenation__next > a',
@@ -557,6 +589,7 @@ function: {
557589
ecosia: {
558590
host: 'www.ecosia.org',
559591
functionS: function() {if (location.pathname === '/search') {curSite = DBSite.ecosia;}},
592+
history: true,
560593
pager: {
561594
type: 1,
562595
nextL: 'css;nav.pagination a[aria-label="Next page"]',

0 commit comments

Comments
 (0)