Greasy Fork is available in English.

Furaffinity-Match-List

Helper Script to create a matchlist for your Furaffinity Script

此脚本不应被直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/485827/1326313/Furaffinity-Match-List.js

脚本作者
Midori Tsume
版本
1.0.2
创建日期
2024-01-27
最近更新
2024-02-12
许可证
MIT

Furaffinity Match List

Helper Script to create a Matchlist for your custom Furaffinitiy Script. Also see this Script on Github as Furaffinity-Match-List

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
  • isWindowIFrame() - Checks if the current Window is running in an IFrame