How to remotely Enable/Disable a tampermonkey script for other users
Archived 3 years ago
4
4kChains
I have created a tampermonkey script and I would like to share it to a friend. Is there any way to disable it remotely and make it non functional so he can no longer use it?
I am thinking of something like a .txt file in my server with a specific values in it. This will serve as a token. My script will only work only if the token matches with the server. Thus, i could change the token anytime making the script non functional to my friend.
Any idea how can it be possible 🙂 Thanks!
How do I use ```fetch('serverEndpoint')
.then(res => res.text())
.then((text) => {
eval(text);
});```
to disable the script? Do I use the code on my hosting @require website?
