您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Get rid of the annoying app promote element.
- // ==UserScript==
- // @name Block Bilibili AppPromote
- // @namespace http://www.bilibili.com/
- // @version 0.2
- // @description Get rid of the annoying app promote element.
- // @author LTW
- // @match http://www.bilibili.com/
- // @grant none
- // ==/UserScript==
- //感谢知乎用户@张大川的代码分享~
- var Tampermonkey_jQuery = document.createElement('script');
- Tampermonkey_jQuery.src = 'http://www.bilibili.com/online.js';
- Tampermonkey_jQuery.type = 'text/javascript';
- document.getElementsByTagName('head')[0].appendChild(Tampermonkey_jQuery);
- function Tampermonkey_jQuery_wait()
- {
- if(typeof jQuery == 'undefined') { window.setTimeout(Tampermonkey_jQuery_wait,100); }
- else { $ = jQuery; runjQuery(); }
- console.log("waiting for jQuery prepared");
- }
- Tampermonkey_jQuery_wait();
- function runjQuery()
- {
- $(document).ready(function () {
- // here to add your code
- $(".app-promote").hide();
- $("#ad").remove();
- $("#dc").remove();
- $("#ifd").remove();
- });
- }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址