Open-source web browser Brave announced a new feature that allows users to write and inject their own scriptlets into a page, giving them greater control over their browsing experience.
Brave is a free and open-source web browser developed by Brave Software, Inc. based on the Chromium web browser.
How to use custom scriptlets
- On the Desktop, open the Settings menu.
- Navigate to the Shields section, then to Content Filtering. (Or you can go directly to brave://settings/shields/filters.)
- Scroll down and enable Developer mode.

- Under Custom scriptlets, click Add new scriptlet and write your JavaScript. Give it a name (note that the custom scriptlet always gets saved with a user- prefix). Then click Save.

- Finally, insert the rule by adding a custom rule for the website you want to modify, and press Save Changes. Note that you must use filter rule syntax, which looks something like “example.com##+js(name-of-your-scriptlet.js)”. For more information, see the custom scriptlet technical documentation.

Once the scriptlet is done, you can visit the website you just modified to see the difference:

Before: stackoverflow.com without the custom scriptlet

After: cleaned up stackoverflow.com with the custom scriptlet which removed the sidebars
Editing or deleting a custom scriptlet
You can easily edit or delete your custom scriptlet using the buttons on the right.
If this article helped you, please consider supporting our work. Every small contribution keeps Abijita.com independent and running.

Custom scriptlets are stored locally in your browser, and never leave the device.





