Add users count to people nav when on users page

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

< Commentaires sur Add users count to people nav when on users page

Question / commentaire

hcientistAuteur
§
Posté le: 28/02/2017

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)

§
Posté le: 06/01/2021
Édité le: 06/01/2021

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.

Poster une réponse

Connectez-vous pour poster une réponse.