// ==UserScript==
// @name 哔哩哔哩超强防护
// @namespace https://viayoo.com/
// @version 0.4
// @description 杜绝哔哩哔哩一切的打开app查看!
// @author 呆毛飘啊飘
// @run-at document-start
// @run-at document-end
// @match https://*.bilibili.com/*
// @grant none
// @license MIT
// ==/UserScript==


(function() {
var timer = setInterval(m,100);
function m(){document.getElementsByClassName('light')[0].click();window.clearInterval(timer);}
//点开视频

var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = ".mplayer-widescreen-callapp,.caution-dialog,.mplayer-buff-app,.fe-ui-open-app-btn,.m-space-float-openapp,.mplayer-widescreen-callapp,.openapp-dialog,.large,.home-float-openapp,.mplayer-control-btn-quality,.guide-mask,.m-video2-awaken-btn-v2,.open-app,.weakened.openapp-dialog,.mplayer-ending-panel-button,.mplayer-control-btn-speed,.m-nav-openapp,.related-openapp,.m-float-openapp,.interact-wrapper,.m-video2-awaken-btn{display:none!important;}.title-wrapper{pointer-events:none!important;}";
document.body.appendChild(css);
document.querySelectorAll(".mplayer-widescreen-callapp,DIV.mplayer-comment-text-callapp,DIV.mplayer-control-btn-quality,DIV.mplayer-widescreen-callapp").forEach(e=>e.remove());
document.getElementsByClassName('mplayer-widescreen-callapp')[0].remove();
//屏蔽元素
})();


Back to home | File page

Subscribe | Register | Login | N