Brave now lets you inject custom JavaScript to tweak websites

Starting a few days ago, Brave users can inject their own JavaScript scriptlets into pages, potentially adding new avenues of privacy customization

For privacy-related changes, users write scripts that block JavaScript-based trackers, randomize fingerprinting APIs, and substitute Google Analytics scripts with a dummy version.

In terms of customization and accessibility, the scriptlets could be used for hiding sidebars, pop-ups, floating ads, or annoying widgets, force dark mode even on sites that don’t support it, expand content areas, force infinite scrolling, adjust text colors and font size, and auto-expand hidden content.

Has anyone tried doing this yet?

1 Like

Wonder if that means that their adblock will also support the JS filters of ubo now. That would be nice.

1 Like

Brave does support JS Filtering (so you can unblock individual scripts) but it isn’t persistent like ubo

If this updates makes it persistent or at least give us the option to be persistent, then that would be even better.

2 Likes

Just to be sure are we talking about the same thing? I mean the syntax with +js in ubo actions. Static filter syntax · gorhill/uBlock Wiki · GitHub

1 Like

it looks like this:



Again as far as I can tell it is not persistent but other than that yeah.

Yeah not quite what i was implying haha but anyway that is also a useful feature.