You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/reference/addon-manifest.md
+28-2Lines changed: 28 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,7 +239,33 @@ Each object must specify the url to the userscript/userstyle through the `url` p
239
239
| - | - |
240
240
| Type |`Array`|
241
241
242
-
Matches that allow the userscript/userstyle to run on. Values can be a URL match pattern, or `projects`, `projectEmbeds`, `studios`, `profiles`, `topics`, `newPostScreens`, `editingScreens`, `forums`, `scratchWWWNoProject`.
242
+
{{< admonition info >}}
243
+
Userscripts and userstyles are matched against the **initial URL** of the page. For example, userscripts/userstyles that only intend to affect the insides of the project editor must also run if the user is navigating to a project page, and vice versa.
244
+
{{< /admonition >}}
245
+
246
+
Matches for the userscript/userstyle to run on. Values can be well-known matchers, URL match patterns, or regex patterns.
247
+
248
+
Well-known matchers:
249
+
-`projects` (project page and editor routes, excluding project embeds)
250
+
-`projectEmbeds`
251
+
-`studios` (includes all 4 tabs inside studios)
252
+
-`profiles`
253
+
-`topics` (forum topics)
254
+
-`newPostScreens`
255
+
-`editingScreens` (forum routes with editing screens, including "change signature" page)
0 commit comments