# Brave now lets you inject custom JavaScript to tweak websites

**URL:** https://discuss.privacyguides.net/t/brave-now-lets-you-inject-custom-javascript-to-tweak-websites/24847
**Category:** News
**Tags:** article
**Created:** 2025-02-10T22:11:58Z
**Posts:** 6

## Post 1 by @KevPham — 2025-02-10T22:11:58Z

> **[Brave now lets you inject custom JavaScript to tweak websites](https://www.bleepingcomputer.com/news/software/brave-now-lets-you-inject-custom-javascript-to-tweak-websites/)**
>
> Brave Browser is getting a new feature called 'custom scriptlets' that lets advanced users inject their own JavaScript into websites, allowing deep customization and control over their browsing experience.

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?

---

## Post 2 by @ph00lt0 — 2025-02-10T22:14:51Z

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

---

## Post 3 by @anon39279085 — 2025-02-10T22:28:04Z

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.

---

## Post 4 by @ph00lt0 — 2025-02-10T22:40:31Z

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](https://github.com/gorhill/uBlock/wiki/Static-filter-syntax#scriptlet-injection)

---

## Post 5 by @anon39279085 — 2025-02-11T20:25:12Z

it looks like this:

 ![Screenshot_20250211_222157](//forum-uploads.privacyguidesusercontent.com/original/2X/3/3718109569880f00851d3bb5683737ef05c8f36f.png)  
 ![image](//forum-uploads.privacyguidesusercontent.com/original/2X/a/a83e1e12a34c4641e75e7bdcddf552b15ce5ea7b.png)  
Again as far as I can tell it is not persistent but other than that yeah.

---

## Post 6 by @ph00lt0 — 2025-02-12T17:26:32Z

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