mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-09 10:55:22 +00:00
优化 B 站新版搜索页
This commit is contained in:
+3
-21
@@ -5,7 +5,7 @@
|
||||
// @name:en AutoPager
|
||||
// @version 5.4.1
|
||||
// @author X.I.U
|
||||
// @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、煎蛋网、龙的天空、起点中文、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、RuTracker、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、漫画猫、漫画屋、漫画 DB、动漫之家、拷贝漫画、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
|
||||
// @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、煎蛋网、龙的天空、起点中文、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、RuTracker、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、漫画猫、漫画屋、漫画 DB、动漫之家、拷贝漫画、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
|
||||
// @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
|
||||
// @description:en Append the next page content to the bottom seamlessly (like a waterfall)~
|
||||
// @match *://*/*
|
||||
@@ -669,9 +669,9 @@ function: {
|
||||
host: 'search.bilibili.com',
|
||||
url: ()=> {
|
||||
urlC = true;
|
||||
if (lp == '/all' || lp == '/video') {
|
||||
if ((lp == '/all' || lp == '/video') && getCSS('ul.video-list') != null) {
|
||||
curSite = DBSite.bilibili_search;
|
||||
} else if (lp == '/article') {
|
||||
} else if (lp == '/article' && getCSS('#article-list') != null) {
|
||||
curSite = DBSite.bilibili_search_article;
|
||||
}
|
||||
},
|
||||
@@ -1545,24 +1545,6 @@ function: {
|
||||
// 插入 Style CSS 样式
|
||||
if (curSite.style) insStyle(curSite.style)
|
||||
|
||||
// 对翻页模式 5 的子 iframe 添加一个跟随滚动的事件
|
||||
/*if (curSite.pager && curSite.pager.type === 5 && self != top) {
|
||||
var beforeScrollTop = document.documentElement.scrollTop || document.body.scrollTop
|
||||
window.addEventListener('scroll', function (e) {
|
||||
let scrollTop = window.parent.document.documentElement.scrollTop || window.parent.document.body.scrollTop,
|
||||
clientHeight = window.parent.document.documentElement.clientHeight || window.parent.document.body.clientHeight,
|
||||
scrollHeight = window.parent.document.documentElement.scrollHeight || window.parent.document.body.scrollHeight,
|
||||
afterScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
|
||||
delta = afterScrollTop - beforeScrollTop;
|
||||
if (delta == 0) return false;
|
||||
beforeScrollTop = afterScrollTop;
|
||||
//console.log(delta, scrollHeight - (scrollTop + clientHeight), '2222')
|
||||
if (delta > 0 && scrollTop + clientHeight < scrollHeight) {
|
||||
window.parent.scrollBy(0, delta);
|
||||
}
|
||||
}, false);
|
||||
}*/
|
||||
|
||||
// 自动无缝翻页
|
||||
pageLoading();
|
||||
|
||||
|
||||
+1
-1
@@ -396,7 +396,7 @@
|
||||
case 3:
|
||||
style += style_31;
|
||||
if (location.hostname.indexOf('search.bilibili.com') > -1) {
|
||||
style += `ul.video-list[type="video"] img, ul.video-list[type="video"] .video-item .img .mask-video, ul.video-list[type="video"] .video-item .img .van-danmu, ul.video-list[type="video"] .video-item .img .van-framepreview {filter: none !important;}`
|
||||
style += `ul.video-list img, ul.video-list .video-item .img .mask-video, ul.video-list .video-item .img .van-danmu, ul.video-list .video-item .img .van-framepreview {filter: none !important;}`
|
||||
} else if (location.hostname.indexOf('.bilibili.com') > -1) {
|
||||
style += `#bilibiliPlayer video, .video-item .img .mask-video, .video-item .img .van-danmu, .video-item .img .van-framepreview {filter: none !important;} #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} .bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3, #bilibiliPlayer {box-shadow: none !important;} * {font-weight: bold !important;}`
|
||||
} else if (location.hostname.indexOf('.huya.com') > -1) {
|
||||
|
||||
Reference in New Issue
Block a user