新手问题关于@match匹配

新手问题关于@match匹配

查看完整内容

// ==UserScript==

// @name New Userscript

// @namespace https://bbs.tampermonkey.net.cn/

// @version 0.1.0

// @description try to take over the world!

// @author You

// @match https://scriptcat.org/zh-CN/script-show-page/[0-9]*/$

// ==/UserScript==

alert('test')

比如脚本站,可以直接匹配数字加尾部强制带/来进行触发

你的页面则可以考虑不包含/只带后缀文本进行触发

比如[A-Z ...