imllo_哔哩_不打开

哔哩哔哩不打开

// ==UserScript==
// @name         imllo_哔哩_不打开
// @name:zh-CN   imllo_哔哩_不打开
// @description  哔哩哔哩不打开
// @namespace    http://0
// @author       
// @run-at       document-start
// @version      0
// @match        https://m.bilibili.com/video/*
// @grant        none
// ==/UserScript==

(function() { document.execCommand = function() { var content = window.getSelection().toString(); var name = content.match(/2233 (\S*)\?/)[1].replace('bilibili://space/', 'https://m.bilibili.com/space/'); if (name == window.location.href) { return false; } else { var r = confirm("是否打开:" + name); if (r == true) { window.open(name, '_blank'); } return true; } }; })();