Skip to content

Commit b17edc3

Browse files
committed
新增 [Yandex 视频] 支持; 补充 [Yandex] 其他域名
1 parent f6aae0a commit b17edc3

2 files changed

Lines changed: 19 additions & 8 deletions

File tree

Autopage.user.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 自动无缝翻页
3-
// @version 4.4.3
3+
// @version 4.4.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 *://*/*
@@ -522,8 +522,8 @@ function: {
522522
}
523523
}, // Startpage 搜索
524524
yandex: {
525-
host: 'yandex.com',
526-
functionS: function() {if (lp == '/search/') {curSite = DBSite.yandex;}},
525+
host: ['yandex.com', 'yandex.ru', 'yandex.ua', 'yandex.by', 'yandex.kz', 'yandex.uz', 'yandex.com.tr'],
526+
functionS: function() {if (lp == '/search/') {curSite = DBSite.yandex;} else if (lp == '/video/search') {curSite = DBSite.yandex_video;}},
527527
history: true,
528528
pager: {
529529
type: 1,
@@ -534,6 +534,15 @@ function: {
534534
scrollD: 2000
535535
}
536536
}, // Yandex 搜索
537+
yandex_video: {
538+
hiddenPN: true,
539+
pager: {
540+
type: 2,
541+
nextL: 'css;button.more__button',
542+
interval: 1000,
543+
scrollD: 1000
544+
}
545+
}, // Yandex 搜索 - 视频
537546
yahoo: {
538547
host: 'search.yahoo.com',
539548
functionS: function() {if (indexOF('/search')) {curSite = DBSite.yahoo;}},

DuckDuckGo-Enhanced.user.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,13 @@
135135
// 快捷回到顶部(右键两侧空白处)
136136
function backToTop() {
137137
if (!GM_getValue('menu_backToTop')) return
138-
document.getElementById('web_content_wrapper').oncontextmenu = document.querySelector('#web_content_wrapper > .cw').oncontextmenu = document.getElementById('links_wrapper').oncontextmenu = function(e){
139-
if (e.target == this) {
140-
e.preventDefault();
141-
window.scrollTo(0,0);
138+
document.querySelectorAll('#web_content_wrapper, #web_content_wrapper > .cw, #links_wrapper').forEach(ele => {
139+
ele.oncontextmenu = function(e) {
140+
if (e.target == this) {
141+
e.preventDefault();
142+
window.scrollTo(0,0);
143+
}
142144
}
143-
}
145+
})
144146
}
145147
})();

0 commit comments

Comments
 (0)