GM dat.GUI

dat.GUI modified to prioritize GM_getValue/GM_setValue over localStorage among other things.

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.greasyfork.org/scripts/429537/964426/GM%20datGUI.js

作者
MadHero
版本
0.1.1
建立日期
2021-07-17
更新日期
2021-08-27
授權條款
Apache

Original source by dataarts @ GitHub
https://github.com/dataarts/dat.gui

Forked by MacroMan @ GitHub
https://github.com/MacroMan/dat.gui


Modified by MadHero @ GreasyFork.
https://greasyfork.org/users/168
- Prioritize GM_getValue/GM_setValue over localStorage
- New constructor param/property "useLocalStorage", param overriden by stored value, default "false"
- New constructor param/property "storageHashPrefix", default "document.location.href + '.'"
- New constructor param/property "autoSaveIfPossible", saves on tab exit, default "true"
- New "GUI.hide_key_code", sets keyCode for hiding GUIs, default "72" (h)
- Prioritize Shadow DOM container, prevents CSS conflicts
- Expand GUI._keydownHandler filtering of writtable elements.

Initial userscript release, bug reports would be appreciated.