Skip to content

[Feature]站点匹配在列表里可以展示并支持点击 #419

@FreeWang3

Description

@FreeWang3

功能描述

最近这两天用ScriptCat(脚本猫)的时候,发现与Tampermonkey(篡改猴)的一点区别,如下方附图里我红框框起来的地方:站点!

个人感觉咱们也能在列表上多加【站点】这一列,并且比Tampermonkey(篡改猴)多支持可以直接点击跳转到新页面打开,唯一需要处理的是:链接原本是匹配形式的,所以点击跳转的时候,得处理成实际【根链接】才行!例如:
它可能是https://bbs.tampermonkey.net.cn/**://*.tampermonkey.net.cn/*这两种常见形式的,得处理成https://bbs.tampermonkey.net.cntampermonkey.net.cn

写issue时,我又看了好多脚本的匹配规则,规则还有这种的https://*/play/video/*、还有这种带参数的*://*.nh.net/search/?q=*、还看到了正则的/^https://www.hx\w+\.com.+$/,感觉要实现起来还没想象的简单呢~~~


使用场景

可以直接在列表页,点击对应站点,跳转到对应的网站,而无需“点进脚本”→“脚本设置”→“网站匹配”里去手动复制脚本匹配的网站,粘贴到浏览器新标签里打开!【算是一个人性化的小细节功能】


附加说明

原帖来源:油猴中文网论坛-【建议】站点匹配在列表里可以展示并支持点击 ...

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions