本帖最后由 梦汐 于 2022-12-8 10:08 编辑
油猴脚本。只保留了视频推荐,其他的都过滤掉了,有需求可以在*:not里添加不过滤的选择器
(不支持旧版和内测版本,需在右下角点击退出内测)
// ==UserScript==
// @name 哔哩哔哩 首页精简
// @namespace √新版页面 ×旧版 ×内测
// @match *://www.bilibili.com/
// @version 1.0
// @grant GM_addStyle
// @run-at document-start
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// ==/UserScript==
(function () {
$(
function RemoveRotationDiagram() {
var Interval = setInterval(
function () {
var node = $('.recommended-swipe-core')
if (!!node.length) {
clearInterval(Interval)
node[0].outerHTML = `<img style="object-fit: cover;position: absolute;top: 50%;left: 50%;display: block;min-width: 100%;min-height: 100%;transform:translate(-50%,-50%);border: 1px solid #000000;background: url(https://s1.ax1x.com/2022/11/10/zpbUds.jpg) no-repeat center center;background-size: cover;">`
GM_addStyle(`.recommended-swipe-core > *{display: 1!important;}`);
}
}, 100
)
}
)
GM_addStyle(`.bili-header__bar{position: unset!important;}
.bili-header__banner{display: none!important;}
.bili-header.large-header{background-color: brown;z-index: 999;}
.bili-layout > *:not(.bili-grid.short-margin.grid-anchor){display: none!important;}
.recommended-swipe-core > *{display: none;}`);
}())
|