GC - Universal Userscripts Settings

Library for adding a user interface to manage settings for grundos.cafe userscripts

Устаревшая версия за 28.10.2024. Перейдите к последней версии.

Этот скрипт недоступен для установки пользователем. Он является библиотекой, которая подключается к другим скриптам мета-ключом // @require https://update.greasyforks.org/scripts/514423/1472892/GC%20-%20Universal%20Userscripts%20Settings.js

Автор
CrystalFlame
Версия
0.0.1.20241028045914
Создано
28.10.2024
Обновлено
28.10.2024
Размер
9,1 КБ
Лицензия
нет данных

GC - Universal Userscripts Settings

Setup:
// @require script_url
// @grant GM.getValue (can be made optional)
// @grant GM.setValue (can be made optional)
// @match *://*.grundos.cafe/help/*/

Usage:
Add your settings by calling addTextInput, addNumberInput, addCheckboxInput, or addDropdown.

Common Parameters:
categoryName: The name of the category for which to put the setting underneath.
settingName: This name will be used to save the setting with GM.setValue
labelText: The label text for the setting.
currentSetting: The current value of the setting, if none supplied it is retrieved with GM.getValue(settingName).
callbackFunction: The function to call when the setting is updated. It will be called with settingName and the new value as arguments. If none supplied, the new value will be set with GM.setValue(settingName, value).

User Interface:
Settings will be added to /help/userscripts/ which is linked from various /help/*/ pages.

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