Skip to content

Commit 4e93746

Browse files
committed
新增 [科研通] 支持
1 parent 43eb4d6 commit 4e93746

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

Autopage.user.js

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 3.7.4
3+
// @version 3.7.5
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 *://*/*
@@ -29,7 +29,7 @@
2929
['menu_discuz_thread_page', '帖子内自动翻页', '帖子内自动翻页', true],
3030
['menu_page_number', '显示当前页码及点击暂停翻页', '显示当前页码及点击暂停翻页', true],
3131
['menu_pause_page', '左键双击网页空白处暂停翻页', '左键双击网页空白处暂停翻页', false]
32-
], menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, SiteType, pausePage = true, pageNum = {now: 1, _now: 1}, locationC = false, nowLocation = '', forumWebsite = ['cs.rin.ru', 'www.flyert.com', 'bbs.pediy.com', 'www.libaclub.com', 'tieba.baidu.com', 'www.cadtutor.net', 'www.theswamp.org', 'www.xuexiniu.com', 'bbs.xuexiniu.com', 'www.taoguba.com.cn', 'www.cnprint.org'];
32+
], menuId = [], webType = 0, curSite = {SiteTypeID: 0}, DBSite, SiteType, pausePage = true, pageNum = {now: 1, _now: 1}, locationC = false, nowLocation = '', forumWebsite = ['cs.rin.ru', 'www.flyert.com', 'bbs.pediy.com', 'www.libaclub.com', 'tieba.baidu.com', 'www.cadtutor.net', 'www.theswamp.org', 'www.xuexiniu.com', 'bbs.xuexiniu.com', 'www.taoguba.com.cn', 'www.cnprint.org', 'www.ablesci.com'];
3333
for (let i=0;i<menuAll.length;i++){ // 如果读取到的值为 null 就写入默认值
3434
if (GM_getValue(menuAll[i][0]) == null){GM_setValue(menuAll[i][0], menuAll[i][3])};
3535
}
@@ -1338,6 +1338,28 @@ function: {
13381338
scrollD: 2000
13391339
}
13401340
}, // CPC 中文印刷社区 - 帖子内
1341+
ablesci: {
1342+
host: 'www.ablesci.com',
1343+
functionS: function() {if (indexOF('/detail') && GM_getValue('menu_discuz_thread_page')) {curSite = DBSite.ablesci_p;} else if (getCSS('ul.fly-list')) {curSite = DBSite.ablesci;}},
1344+
pager: {
1345+
type: 1,
1346+
nextL: 'css;li.next > a',
1347+
pageE: 'css;ul.fly-list > li',
1348+
insertP: ['css;ul.fly-list', 3],
1349+
replaceE: 'css;.pages',
1350+
scrollD: 2000
1351+
}
1352+
}, // 科研通
1353+
ablesci_p: {
1354+
pager: {
1355+
type: 1,
1356+
nextL: 'css;li.next > a',
1357+
pageE: 'css;ul#jieda > li',
1358+
insertP: ['css;ul#jieda', 3],
1359+
replaceE: 'css;.pages',
1360+
scrollD: 2000
1361+
}
1362+
}, // 科研通 - 帖子内
13411363
adnmb3: {
13421364
host: ['adnmb3.com', 'www.tnmb.org'],
13431365
functionS: function() {

0 commit comments

Comments
 (0)