Greasy Fork is available in English.
Library to create a matchlist for your Furaffinity Script
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/485827/1549457/Furaffinity-Match-List.js
Helper Script to create a Matchlist for your custom Furaffinitiy Script. Also see docs on Furaffinity-Match-List
@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 | 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 |
The MatchList class contains following Properties:
matches - The array of matches for which to checkhasMatch - Wether there is a matchmatch - The current found match (if there is one)runInIFrame - Wether your Script is allowed to run in an IFrameisWindowIFrame - Wether the current Window is running in an IFramecustomSettings - 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 listremoveMatch() - Removes the last match from the list