Skip to content

Commit c368fee

Browse files
committed
Update user-scripts-api.md
1 parent ed6b613 commit c368fee

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

docs/adguard-browser-extension/user-scripts-api.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This article is about AdGuard Browser Extension, which safeguards only your brow
1111

1212
When adding a custom filter or user rule, a notification will appear asking you to enable developer mode to use these features in the extension:
1313

14-
![Notification *border](https://cdn.adtidy.org/content/Kb/ad_blocker/browser_extension/dev-mode-ext.png)
14+
![Notification *border](https://cdn.adtidy.org/content/Kb/ad_blocker/browser_extension/notification-allow-user-scripts.jpg)
1515

1616
This is because, starting with version 5.2, AdGuard Browser Extension uses the User Scripts API . In other words, the extension now uses script-based rules.
1717

@@ -21,6 +21,18 @@ The User Scripts API is a set of browser-provided functions and capabilities tha
2121

2222
With the shift to Chrome’s Manifest V3, many older methods of injecting scripts are limited or delayed. However, there is an exception for the User Scripts API.
2323

24-
## What happens when you enable the Developer mode
24+
## How to enable the Developer mode
2525

26-
You must either enable Developer mode (for Chrome versions prior to 138) or the *Allow User Scripts* toggle (for Chrome version 138 and later). Doing so gives the extension a reliable and secure method of injecting scripts into web pages at the optimal time. This allows you to use custom filters and JavaScript rules in *User Rules*.
26+
To use custom filters and JavaScript rules in the tab *User Rules*, you have to set up your browser first. This will give the extension a reliable and secure method of injecting scripts into web pages at the optimal time. To do so, follow the instruction below, depending on your Chrome version.
27+
28+
### For Chrome versions prior to 138
29+
30+
You must enable the Developer mode for extensions. To do it, open the Chrome menu by clicking the three dots in the upper-right corner, go to *Extensions**Manage Exetensions*. Toggle the "Developer mode" switch in the upper-right corner:
31+
32+
![Manage Extensions *border](https://cdn.adtidy.org/content/Kb/ad_blocker/browser_extension/developer-mode-enable.jpg)
33+
34+
### For Chrome version 138 and later
35+
36+
You must enable the *Allow User Scripts* toggle. To do it, open the Chrome menu by clicking the three dots in the upper-right corner, go to *Extensions**Manage Exetensions*. Toggle the *Allow User Scripts* switch.
37+
38+
![Manage Extensions *border](https://cdn.adtidy.org/content/Kb/ad_blocker/browser_extension/allow-user-scripts-ext.jpg)

0 commit comments

Comments
 (0)