Skip to content

Commit dfeb175

Browse files
committed
新增 [F 搜] 支持
1 parent 7de8b48 commit dfeb175

1 file changed

Lines changed: 28 additions & 3 deletions

File tree

Autopage.user.js

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 3.9.3
3+
// @version 3.9.4
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 *://*/*
@@ -589,10 +589,27 @@ function: {
589589
type: 1,
590590
nextL: 'css;li.PartialWebPagination-next > a',
591591
pageE: 'css;.PartialSearchResults.mid',
592-
replaceE: 'css;.PartialWebPagination ',
592+
replaceE: 'css;.PartialWebPagination',
593593
scrollD: 2000
594594
}
595595
}, // ASK 搜索
596+
fsou: {
597+
host: 'fsou.cc',
598+
functionS: function() {if (lp == '/search') {curSite = DBSite.fsou;}},
599+
history: true,
600+
retry: 1000,
601+
pager: {
602+
type: 6,
603+
nextL: () => getNextP('css;.selected.turn-page-text.turn-page-num', 'pageIndex=', /pageIndex=\d+/),
604+
pageE: 'css;#search-result > div',
605+
replaceE: 'css;.bottom-pagination',
606+
loadTime: 1000,
607+
scrollD: 3000
608+
},
609+
function: {
610+
bF: fsou_bF
611+
}
612+
}, // F 搜
596613
baidu_tieba: {
597614
host: 'tieba.baidu.com',
598615
functionS: function() {if (lp == '/f') {
@@ -5344,6 +5361,14 @@ function: {
53445361
}
53455362

53465363

5364+
// [F 搜] 的插入前函数(移除旧页码)
5365+
function fsou_bF(pageElems) {
5366+
let old = getCSS('.bottom-pagination')
5367+
if (old) old.remove();
5368+
return pageElems
5369+
}
5370+
5371+
53475372
// [SkrBT] 获取下一页地址
53485373
function skrbt_nextL() {
53495374
let page = getCSS('a[onclick][aria-label="Next"]');
@@ -6338,7 +6363,7 @@ function: {
63386363
// 暂停翻页
63396364
if (!pausePage) return
63406365
pausePage = false
6341-
6366+
console.log(src)
63426367
// 如果不存在,则创建一个 iframe
63436368
let iframe = document.getElementById('xiu_iframe');
63446369
if (!iframe) {

0 commit comments

Comments
 (0)