Greasy Fork is available in English.
Helper Script to create a matchlist for your Furaffinity Script
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/485827/1318251/Furaffinity-Match-List.js
Helper Script to create Custom pages on Furaffinitiy. Also see this Script on Greasy Fork as Furaffinity-Custom-Pages
@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();
The MatchList class contains following Properties:
matches - The array of matches for which to checkrunInIFrame - Wethere your Script is allowed to run 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 listhasMatch() - Checks if the list contains a matchgetMatch() - Returns a Match if there is one