Greasy Fork is available in English.

Userscript Manager Detection

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

Bu script direkt olarak kurulamaz. Başka scriptler için bir kütüphanedir ve meta yönergeleri içerir // @require https://greasyfork.org/scripts/453189-userscript-manager-detection/code/Userscript%20Manager%20Detection.js?version=1106477

Yazar
Taureon
Versiyon
1
Oluşturulma
16.10.2022
Güncellenme
18.10.2022
Lisans
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.