A Code Snippet for detecting if the script is being ran in an Userscript Manager.
À partir de
Ce script ne devrait pas être installé directement. C'est une librairie créée pour d'autres scripts. Elle doit être inclus avec la commande // @require https://update.greasyfork.org/scripts/453189/1106477/Userscript%20Manager%20Detection.js
A Code Snippet for detecting if the script is being ran in an Userscript Manager. Made by Taureon.
How to use:
var isInUserscriptContext = typeof GM === 'object' || typeof GM_info === 'object'; to the beginning of your script.isInUserscriptContext anytime when required.