去除bilibili复制烦人的后缀

去除哔哩哔哩网页上的复制功能,阻止复制事件的传播。

目前為 2023-10-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name         去除bilibili复制烦人的后缀
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  去除哔哩哔哩网页上的复制功能,阻止复制事件的传播。
// @author       NPE wx = notNpe
// @match         *://*.bilibili.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// @license  MIT
// ==/UserScript==

(function() {
    var d = document;
    var add = d.addEventListener;
    add('copy',function(e){
        e.stopPropagation();
    },true);
})();

(function() {
    var d = document;
    var add = d.addEventListener;
    add('copy',function(e){
        e.stopPropagation();
    },true);
})();

(function() {
    var d = document;
    var add = d.addEventListener;
    add('copy',function(e){
        e.stopPropagation();
        // 将函数作为对象传递
        var callback = {
            call: function(e){
                e.stopPropagation();
            }
        };
        add(e,callback);
    },true);
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址