Allow JavaScript from Apple Events in Brave
“Allow JavaScript from Apple Events” is a Mac-only Brave setting that lets other apps on your Mac run JavaScript in your Brave tabs. You need it to script Brave with AppleScript, to run JavaScript in a tab from Shortcuts or a Keyboard Maestro macro, or to use an app like Pauseidon that controls the video in your tabs. Brave keeps it off until you turn it on, once, in Brave’s menu bar.
Click View.
Choose Developer.
Click Allow JavaScript from Apple Events, so it has a tick.
How to turn it off again
Choose View › Developer again and click Allow JavaScript from Apple Events, so the tick goes away. Apps that relied on it, like your scripts or macros, stop being able to run JavaScript in Brave.
Is it safe?
The setting doesn’t give websites anything new. It only lets apps on your Mac run JavaScript in Brave, and macOS asks you first: an app can only control Brave once you’ve approved it, and you can see or take back that approval anytime in System Settings › Privacy & Security › Automation.
An app you approve can read and change the pages you have open, so only allow apps you trust. And you can switch the setting off again whenever you like.
Using Pauseidon?
Pauseidon fixes your Mac’s play/pause key. In Brave, you don’t need this setting: add Pauseidon’s free extension instead, and you can leave it off. The extension is faster, finds players embedded in other pages, and shows each video’s own title and channel.
If you can’t add extensions, say on a work Mac, this setting works too. Once it’s on, Pauseidon notices within a few seconds: the dot on its menu bar icon goes away, and if the setup window is open, Bravegets a tick. Pauseidon only uses it to find the video or audio in a page, show its artwork, and play or pause it.