Furaffinity-Custom-Settings

Library to create Custom settings on Furaffinitiy

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/475041/1765107/Furaffinity-Custom-Settings.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
Midori Dragon
Wersja
4.3.4
Utworzono
11-09-2023
Zaktualizowano
02-03-2026
Rozmiar
49,7 KB
Licencja
MIT

Furaffinity Custom Settings

Helper Library to create Custom settings on FurAffinity.

See documentation on Furaffinity-Custom-Settings.

How to use

  • @require this script

  • Create a Settings Object:

    // Constructor takes provider name (navigation entry) and header name (settings page title)
    const customSettings = new FACustomSettings("Midori's Script Settings", "My Script Settings");
    // Multiple Settings Pages can be created with different provider/header combinations
    


  • Create a new Setting:

    const setting = customSettings.newSetting(FASettingType.Boolean, "Setting Name");
    setting.description = "Setting Description";
    setting.defaultValue = DefaultValue;
    setting.onInput = (target) => { doSomething(); }; // For Action Settings when clicked otherwise every time the Setting is changed
    setting.addEventListener("input", (target) => { doSomething(); }); // Alternative to onInput
    setting.verifyRegex = /Regex/; // For Text Settings only
    

    See Furaffinity-Custom-Settings for more info

  • Trigger when settings should be loaded:

    customSettings.loadSettings(); // loads Navigation Menu & Settings if on Settings Page
    

Feature Roadmap

Feature Status
Create new Settings and easily access Settings change ✅ Completed
Have different Setting Types ✅ Completed
⠀⠀⠀⠀Number (TextField that only allows Numbers) ✅ Completed
⠀⠀⠀⠀Boolean (Checkbox with a description) ✅ Completed
⠀⠀⠀⠀Action (Button with a description) ✅ Completed
⠀⠀⠀⠀Text (TextField that allow any Characters) ✅ Completed
⠀⠀⠀⠀Option (Combobox with multiple options) ✅ Completed
Change Settings Page Name and Header Name ✅ Completed
Have multiple different Setting Pages ✅ Completed
Import and Export Settings ✅ Completed