Fix the paste restriction bug in Kogama without checking link type, now for the us/friends server
< Opiniones de kogama remove paste protection for friends/us server!!!
There's a couple of issues with your script.
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/ )
Example of a way more compact snippet:
(function() { document.addEventListener("paste", e => { e.stopImmediatePropagation(); }, true); console.log("KoGaMa Paste Fix Active"); })();
Inicia sesión para responder.
There's a couple of issues with your script.
1 - Invalid @match
What you are using is:
However, using something like this:
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: