mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-09 10:55:22 +00:00
新增 [F 搜] 支持
This commit is contained in:
+28
-3
@@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 自动无缝翻页
|
||||
// @version 3.9.3
|
||||
// @version 3.9.4
|
||||
// @author X.I.U
|
||||
// @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(以上仅一小部分,更多的写不下了...
|
||||
// @match *://*/*
|
||||
@@ -589,10 +589,27 @@ function: {
|
||||
type: 1,
|
||||
nextL: 'css;li.PartialWebPagination-next > a',
|
||||
pageE: 'css;.PartialSearchResults.mid',
|
||||
replaceE: 'css;.PartialWebPagination ',
|
||||
replaceE: 'css;.PartialWebPagination',
|
||||
scrollD: 2000
|
||||
}
|
||||
}, // ASK 搜索
|
||||
fsou: {
|
||||
host: 'fsou.cc',
|
||||
functionS: function() {if (lp == '/search') {curSite = DBSite.fsou;}},
|
||||
history: true,
|
||||
retry: 1000,
|
||||
pager: {
|
||||
type: 6,
|
||||
nextL: () => getNextP('css;.selected.turn-page-text.turn-page-num', 'pageIndex=', /pageIndex=\d+/),
|
||||
pageE: 'css;#search-result > div',
|
||||
replaceE: 'css;.bottom-pagination',
|
||||
loadTime: 1000,
|
||||
scrollD: 3000
|
||||
},
|
||||
function: {
|
||||
bF: fsou_bF
|
||||
}
|
||||
}, // F 搜
|
||||
baidu_tieba: {
|
||||
host: 'tieba.baidu.com',
|
||||
functionS: function() {if (lp == '/f') {
|
||||
@@ -5344,6 +5361,14 @@ function: {
|
||||
}
|
||||
|
||||
|
||||
// [F 搜] 的插入前函数(移除旧页码)
|
||||
function fsou_bF(pageElems) {
|
||||
let old = getCSS('.bottom-pagination')
|
||||
if (old) old.remove();
|
||||
return pageElems
|
||||
}
|
||||
|
||||
|
||||
// [SkrBT] 获取下一页地址
|
||||
function skrbt_nextL() {
|
||||
let page = getCSS('a[onclick][aria-label="Next"]');
|
||||
@@ -6338,7 +6363,7 @@ function: {
|
||||
// 暂停翻页
|
||||
if (!pausePage) return
|
||||
pausePage = false
|
||||
|
||||
console.log(src)
|
||||
// 如果不存在,则创建一个 iframe
|
||||
let iframe = document.getElementById('xiu_iframe');
|
||||
if (!iframe) {
|
||||
|
||||
Reference in New Issue
Block a user