// ==UserScript== // @name Bilibili broker // @namespace http://tampermonkey.net/ // @version 0.2 // @description Redirect from Bilibili to Google // @author You // @match https://www.bilibili.com/* // @grant none // @run-at document-start // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; if (window.location.href.includes('https://www.bilibili.com')) { document.documentElement.innerHTML = ''; // 清空页面内容 document.documentElement.style.background = 'white'; // 将背景设置为白色以避免显示任何内容 window.stop(); // 停止页面加载 window.location.replace("https://www.google.com"); } })();