Furaffinity-Match-List

Helper Script to create a matchlist for your Furaffinity Script

Verze ze dne 27. 01. 2024. Zobrazit nejnovější verzi.

Tento skript by neměl být instalován přímo. Jedná se o knihovnu, kterou by měly jiné skripty využívat pomocí meta příkazu // @require https://update.greasyforks.org/scripts/485827/1318252/Furaffinity-Match-List.js

Autor
Midori Dragon
Verze
1.0.1
Vytvořeno
27. 01. 2024
Aktualizováno
27. 01. 2024
Size
2,1 KB
Licence
MIT

Furaffinity Custom Pages

Helper Script to create Custom pages on Furaffinitiy. Also see this Script on Greasy Fork镜像 as Furaffinity-Custom-Pages

Table of Contents

How to use

  • @require this script

  • Create a new MatchList: const matchlist = new MatchList(customSettings); //customSettings is optional
    See CustomSettings for more info

  • Add Matches to the list with either addMatch or matches.push:

    matchlist.addMatch("part/of-url");
    matchlist.matches.push("part/of-url");
    

    See MatchList for more info

  • Check for matches:

    if (matchlist.hasMatch())
      doSomething();
    

Documentation

MatchList

The MatchList class contains following Properties:

  • matches - The array of matches for which to check
  • runInIFrame - Wethere your Script is allowed to run in an IFrame
  • customSettings - The CustomSettings which to display if your Script is allowed to run (See CustomSettings)

It has following functions:

  • addMatch(match) - Adds a new match to the list
  • removeMatch() - Removes the last match from the list
  • hasMatch() - Checks if the list contains a match
  • getMatch() - Returns a Match if there is one
长期地址
遇到问题?请前往 GitHub 提 Issues。