kogama remove paste protection for friends/us server!!!

Fix the paste restriction bug in Kogama without checking link type, now for the us/friends server

< 脚本 kogama remove paste protection for friends/us server!!! 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于:2025-09-22

There's a couple of issues with your script.

1 - Invalid @match

What you are using is:

// @match        https://friends.kogama.com/profile/150146281/

However, using something like this:

// @match        *://www.kogama.com/*
// @match        *://www.friends.kogama.com/*
// @match        *://kogama.com.br/*

Will make it work across all the servers, and it's way better in use. Currently it only works on this specific profile ( /profile/150146281/ )

2 - The code can be way shorter and smarter.

Example of a way more compact snippet:

(function() {
    document.addEventListener("paste", e => {
        e.stopImmediatePropagation();
    }, true);
    console.log("KoGaMa Paste Fix Active");
})();

发布留言

登录以发布留言。