Skip to content

Commit bab8584

Browse files
committed
新增 [ASK] 支持
1 parent d8f5775 commit bab8584

1 file changed

Lines changed: 22 additions & 9 deletions

File tree

Autopage.user.js

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 3.8.5
3+
// @version 3.8.6
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 *://*/*
@@ -436,7 +436,7 @@ function: {
436436
pageE: 'css;.results > *',
437437
replaceE: 'css;#pagebar_container',
438438
scriptT: 3,
439-
scrollD: 1200
439+
scrollD: 1500
440440
}
441441
}, // 搜狗 搜索
442442
sogou_weixin: {
@@ -460,7 +460,7 @@ function: {
460460
nextL: 'css;#sogou_next',
461461
pageE: 'css;ul[class*="news-list"] > li',
462462
replaceE: 'css;#pagebar_container',
463-
scrollD: 1000
463+
scrollD: 1200
464464
}
465465
}, // 搜狗微信 - 搜索
466466
toutiao: {
@@ -472,7 +472,7 @@ function: {
472472
nextL: '//div[contains(@class, "-pagination")]/a[contains(string(), "下一页")]',
473473
pageE: 'css;div[class*="-result-list"] > .result-content[data-i]',
474474
replaceE: 'css;div[class*="-pagination"]',
475-
scrollD: 1200
475+
scrollD: 1500
476476
},
477477
function: {
478478
bF: toutiao_bF
@@ -488,7 +488,7 @@ function: {
488488
pageE: 'css;ul.result > li, style:not(src)',
489489
insertP: ['css;ul.result', 3],
490490
replaceE: 'css;#page',
491-
scrollD: 1200
491+
scrollD: 1500
492492
},
493493
function: {
494494
bF: src_bF,
@@ -526,7 +526,7 @@ function: {
526526
pageE: 'css;#search-result > *, style',
527527
insertP: ['css;#search-result', 3],
528528
replaceE: 'css;.pager',
529-
scrollD: 1500
529+
scrollD: 2000
530530
}
531531
}, // Yandex 搜索
532532
yahoo: {
@@ -538,7 +538,7 @@ function: {
538538
nextL: 'css;.pagination a.next',
539539
pageE: 'css;#web ol > li',
540540
replaceE: 'css;.pagination',
541-
scrollD: 1500
541+
scrollD: 2000
542542
}
543543
}, // Yahoo 搜索
544544
yahoo_jp: {
@@ -550,7 +550,7 @@ function: {
550550
nextL: 'css;.Pagenation__next > a',
551551
pageE: 'css;.Contents__innerGroupBody > div',
552552
replaceE: 'css;.Pagenation',
553-
scrollD: 1500
553+
scrollD: 2000
554554
}
555555
}, // Yahoo 搜索 (JP)
556556
qwant: {
@@ -560,7 +560,7 @@ function: {
560560
type: 2,
561561
nextL: 'css;button[data-testid="buttonShowMore"]',
562562
interval: 500,
563-
scrollD: 1500
563+
scrollD: 2000
564564
}
565565
}, // Qwant 搜索
566566
ecosia: {
@@ -585,6 +585,19 @@ function: {
585585
scrollD: 1500
586586
}
587587
}, // Magi 搜索
588+
ask: {
589+
host: ['ask.com', 'www.ask.com'],
590+
functionS: function() {if (lp == '/web') {curSite = DBSite.ask;}},
591+
insStyle: '.PartialSearchResults-heading {display: none !important;}',
592+
history: true,
593+
pager: {
594+
type: 1,
595+
nextL: 'css;li.PartialWebPagination-next > a',
596+
pageE: 'css;.PartialSearchResults.mid',
597+
replaceE: 'css;.PartialWebPagination ',
598+
scrollD: 2000
599+
}
600+
}, // ASK 搜索
588601
baidu_tieba: {
589602
host: 'tieba.baidu.com',
590603
functionS: function() {if (lp == '/f') {

0 commit comments

Comments
 (0)