你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/27743-add-users-count-to-people-nav-when-on-users-page/discussions/30424,源站連結 點此以跳轉

Add users count to people nav when on users page

https://github.com/thegreatmichael/canvas-people-count-badge

< 脚本 Add users count to people nav when on users page 的反馈

提问 / 留言

hcientist作者
§
发布于:2017-02-28

How do I Indicate that my script is intended for a certain site/url?

I have posted my first script, but I'm not sure how to indicate that it is intended to work on canvas (by instructure) sites (e.g. canvas.vt.edu but probably also other canvas sites)

§
发布于:2021-01-06
编辑于:2021-01-06

Hello, there! I may be over 3 years late, but you can use regex to match all valid sites using @include or simply using * as a wildcard (though regex seems more useful imo):

Ex:

@include    /^https:\/\/canvas\.[a-z0-9]*?\.[a-z]*?\/courses\/.*?\/users$/
@match      https://canvas.*.*/courses/*/users

There is also the <name>.instructure.com/courses/*/users URL to watch for.

发布留言

登录以发布留言。