Brave Browser brings a new feature called “ custom scriptlets ” that allows advanced users to insert their own JavaScript into sites, so they can precisely customize and control browsing experience their . They can do this by writing and inserting their own scriptlets into a page.

The new feature is available in version 1.75 of the Brave Browser for desktop. It works similarly to the popular TamperMonkey and GreaseMonkey extensions, which allow users to create user scripts that modify the functionality of specific websites.
Brave says the feature was originally created to debug the browser, but later realized it would be very useful for users as well.
See also: Brave adds new “Shred” button that will delete specific data
Brave's custom scriptlets feature can be used to modify web pages for various purposes, including privacy, security, and usability.
For example, in terms of privacy, users can write scripts that block JavaScript-based trackers, randomize fingerprinting APIs, and replace Google Analytics scripts with a virtual version.
In terms of customization and accessibility, scriptlets could be used to hide sidebars, pop-ups, ads, or annoying graphics. They could also enable dark mode even on sites that don't support it, customize text colors and font sizes, and more.
In terms of usability, scriptlets can block auto-playing videos, auto-fill forms with predefined data, enable custom keyboard shortcuts, automatically click through confirmation dialogs, and more.
See also: Disney launches new standalone ESPN sports streaming service
Injecting JavaScript snippets into sites in Brave Browser can offer limitless possibilities. By providing this level of flexibility, Brave Browser continues to serve tech-savvy individuals who value control and personalization in their online interactions.
Additionally, the introduction of this feature underscores Brave’s commitment to privacy and security, as users can enhance them with custom scriptlets. This approach aligns with Brave’s philosophy of protecting users’ data and prioritizing their online safety.
However, running untrusted custom scriptlets can cause problems or pose a risk, so security should always be a top priority.

How are Brave scriptlets used?
Brave Browser says that scriptlets are powerful tools, but there is a risk of causing problems due to custom JavaScript.
For this reason, it has placed the new feature behind a Developer mode flag in Shields > Content filtering.
Users can gain access by going to “brave://settings/shields/filters“, enabling “Developer mode”, and then clicking the “Add new scriptlet” button.
See also: Quick Share gets new upgrade on Android
A box will appear warning the user not to paste code they do not understand, as this could lead to privacy risks.
Those interested in experimenting with Brave Browser's new custom scriptlets feature should only use their own code or that of people they trust, strictly avoiding anything that has not been vetted.
Source: www.bleepingcomputer.com/
