GM dat.GUI

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

Script này sẽ không được không được cài đặt trực tiếp. Nó là một thư viện cho các script khác để bao gồm các chỉ thị meta // @require https://update.greasyforks.org/scripts/429537/964426/GM%20datGUI.js

Tác giả
MadHero
Phiên bản
0.1.1
Đã tạo
17-07-2021
Đã cập nhật
27-08-2021
Size
90 KB
Giấy phép
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://greasyforks.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.

长期地址
遇到问题?请前往 GitHub 提 Issues。