Furaffinity-Match-List

Library to create a matchlist for your Furaffinity Script

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/485827/1549457/Furaffinity-Match-List.js

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Midori Tsume
版本
1.1.2
建立日期
2024-01-27
更新日期
2025-03-07
尺寸
6.1 KB
授權條款
MIT

Furaffinity Match List

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

How to use

  • @require this script

  • Create a new MatchList:

    const matchlist = new FAMatchList(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");
    matchlist.matches = ["part/of-url"];
    

    See MatchList for more info

  • Check for matches:

    if (matchlist.hasMatch)
      doSomething();
    

Feature Roadmap

Feature Status
Have basic Matchlist ✅ Completed
Have some Options ✅ Completed
⠀⠀⠀⠀Whether to run in an IFrame ✅ Completed
⠀⠀⠀⠀Whether to log the running status ✅ Completed
Integration with Furaffinity-Custom-Settings ⠀⠀⠀⠀ ✅ Completed

Documentation

MatchList

The MatchList class contains following Properties:

  • matches - The array of matches for which to check
  • hasMatch - Wether there is a match
  • match - The current found match (if there is one)
  • runInIFrame - Wether your Script is allowed to run in an IFrame
  • isWindowIFrame - Wether the current Window is running 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