您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
关闭消息通知,在哔哩哔哩(bilibili)拒绝社交,拒绝评论区battle。
// ==UserScript== // @name biliMessNone 关闭bilibili消息通知 // @namespace http://tampermonkey.net/ // @version 0.2 // @description 关闭消息通知,在哔哩哔哩(bilibili)拒绝社交,拒绝评论区battle。 // @author You // @match *://*.bilibili.com // @match *://*.bilibili.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; console.log("hello script."); var timerId = setInterval(function(){ var mess = document.getElementsByClassName("signin")[0]; if(mess) { mess.children[2].setAttribute("style", "display:None"); // console.log(mess); clearInterval(timerId); } else { mess = document.getElementsByClassName("right-entry--message")[0]; if(mess){ // console.log(mess); mess.setAttribute("style", "display:None"); clearInterval(timerId); } } }, 500); // 每隔 0.5 秒执行一次 // Your code here... })();