您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
屏蔽B站首页广告推荐(有广告和火箭标志的)
当前为
// ==UserScript== // @name 屏蔽B站首页广告推荐 // @namespace http://greasyfork.icu/zh-CN/users/810690-twinsdestiny // @version 0.6 // @description 屏蔽B站首页广告推荐(有广告和火箭标志的) // @author TwinsDestiny // @match *://*.bilibili.com/* // @require https://cdn.jsdelivr.net/npm/[email protected]/minified/arrive.min.js // @require https://code.jquery.com/jquery-2.2.4.min.js // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @license MIT // ==/UserScript== (async function () { 'use strict'; // 隐藏 await document.arrive('body', { fireOnAttributesModification: false, onceOnly: false, existing: true }, async function () { setInterval(function () { // 弹出游戏广告 $(".adcard").each(function () { var ad = $(this).find(".palette-button-adcard"); if (ad.length > 0) { $(this).remove(); } }); //首页广告 $(".bili-video-card").each(function () { //广告标记 var authorSpan = $(this).find(".bili-video-card__info--ad"); if (authorSpan.length > 0) { $(this).remove(); } //火箭推送 var rocket = $(this).find(".bili-video-card__info--creative-ad"); if (rocket.length > 0) { $(this).remove(); } //新广告 var statusSpan = $(this).find(".bili-video-card__stats--text"); if (statusSpan.length > 0) { var statusName = statusSpan.text().trim(); if(statusName == '广告'){ $(this).remove(); } } //新火箭 var svg = $(this).find(".vui_icon"); if (svg.length > 0) { $(this).remove(); } }); //视频播放页广告 $(".slide-gg").each(function () { $(this).remove(); }); //视频播放页手游小广告 $(".video-card-ad-small").each(function () { $(this).remove(); }); //视频播放页手游 $(".video-page-game-card-small").each(function () { var game = $(this).find(".card-box"); if (game.length > 0) { game[0].remove(); } }); //视频播放页底部广告 $(".ad-floor-cover").each(function () { $(this).parent().remove(); }); }, 500); }); })();