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

  1. On the Desktop, open the Settings menu.
  2. Navigate to the Shields section, then to Content Filtering. (Or you can go directly to brave://settings/shields/filters.)
  3. Scroll down and enable Developer mode.
Enabling 'Developer mode' in Brave's Shields Settings
  1. 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
Customize a website's appearance with custom scriptlets
  1. 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.
Creating a custom filter rule

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

Before: stackoverflow.com without the custom scriptlet

Before: stackoverflow.com without the custom scriptlet

After: cleaned up stackoverflow.com with the custom scriptlet which removed the sidebars

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.


Buy ExpressVPN with PayPal or Credit Card
Custom scriptlet entry with Edit and Delete buttons

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

Advertisement
READ
NASA’s Moon Base Plans Begin With Three Lunar Missions This Year