你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/485827-furaffinity-match-list,源站連結 點此以跳轉。
Helper Script to create a matchlist for your Furaffinity Script
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.org.cn/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