// ==UserScript==
// @name 哔哩哔哩不打开APP直接看
// @namespace https://greasyfork.org/zh-CN/scripts/457664-哔哩哔哩不打开app直接看
// @version 0.3
// @description 哔哩哔哩无需打开APP,直接看相关推荐的内容
// @author 呆毛飘啊飘
// @run-at document-start
// @match https://*.bilibili.com/*
// @grant none
// @license MIT
// ==/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) {} else {
var r = confirm("是否打开:" + name);
if (r == true) {
window.location.replace(name);
} else {};
return true;
}
};
})();
Back to home |
File page
Subscribe |
Register |
Login
| N