Greasy Fork is available in English.

Userscript Manager Detection

A Code Snippet for detecting if the script is being ran in an Userscript Manager.

Ovu skriptu ne treba izravno instalirati. To je biblioteka za druge skripte koje se uključuju u meta direktivu // @require https://update.greasyfork.org/scripts/453189/1106477/Userscript%20Manager%20Detection.js

Autor
Taureon
Verzija
1
Stvoreno
16.10.2022.
Ažurirano
18.10.2022.
Licenza
Unlicense

A Code Snippet for detecting if the script is being ran in an Userscript Manager. Made by Taureon.

How to use:

  • Add var isInUserscriptContext = typeof GM === 'object' || typeof GM_info === 'object'; to the beginning of your script.
  • Get isInUserscriptContext anytime when required.