20
submitted 1 day ago* (last edited 1 day ago) by InevitableSwing@hexbear.net to c/askchapo@hexbear.net

What's a very easy way to kill all js at a particular domain? Ideally - I'd like some kind of kill switch I can click.

Example link at news4sanantonio.com. The damn site showed me page as normal but for only literally about one second. And then I got that very annoying error message.

The only way I know is via Ublock Origin. I have to write a couple filters and that's annoying.

! news4sanantonio.com
! 2026-02-17 "Oops! Something went wrong!" Yes, that's true - you fuckers!
||news4sanantonio.com^$script
||news4sanantonio.com^$inline-script

---

Trivia

The number of SCRIPT tags on that page is insane.

  • In HEAD 53
  • In BODY 128
top 11 comments
sorted by: hot top new old
[-] buckykat@hexbear.net 15 points 1 day ago

noscript is a browser add-on that blocks all javascript

Seconding NoScript! I combine it with uBlock Origin, and between the two of them, they catch most of the drive-by crapware out there.

Unfortunately, this doesn't stop something like: <meta http-equiv="refresh" content="0; url=https://chapo.chat/" />

[-] Camden28@hexbear.net 7 points 1 day ago

It can block all scripts, but the current version lets some stuff through by default. You can allow or forbid scripts for each site, so you might, say, allow scripts from hexbear, forbid doubleclick, and leave gstatic on default.

[-] fox@hexbear.net 5 points 1 day ago

There's some old extension called uMatrix that lets you selectively kill JS based on the origin domain. So trackers are all dead by default and then you can prune further.

[-] hellinkilla@hexbear.net 5 points 1 day ago

I've seen news sites that sow normal for a second then flip to a paywall but I can't find any way around it.

In terms of your specific question is this it? https://github.com/gorhill/uBlock/wiki/Dynamic-filtering it's over my head. I assume clicking the button in ublock origin to turn off javascript doesn't work as hoped... it basically never does what I hope it would do.

[-] InevitableSwing@hexbear.net 3 points 1 day ago

I think if I google "kill javascript extension" google might actually work for once.

ublock origin

The problem is if I go to example.com and it's annoying - as far as I know - UO doesn't have a way to just kill the fucking js with a click.

[-] hellinkilla@hexbear.net 2 points 1 day ago

You can disable all js by a button in the main pop up

[-] buckykat@hexbear.net 1 points 1 day ago

When I right click something in ff with ublock origin installed, I get an option in the menu to "block element..." which brings up an interface to select what to block

[-] InevitableSwing@hexbear.net 2 points 1 day ago

As far as I could figure out - the real page was entirely missing.

[-] buckykat@hexbear.net 2 points 1 day ago

Did you try reader view (in ff, the little page icon on the right side of the address bar just next to the bookmark star)

I can see the whole text of the article in your OP with that.

[-] InevitableSwing@hexbear.net 2 points 1 day ago

So the page is there. Hmm... I'll have a look.

this post was submitted on 18 Feb 2026
20 points (100.0% liked)

askchapo

23224 readers
307 users here now

Ask Hexbear is the place to ask and answer ~~thought-provoking~~ questions.

Rules:

  1. Posts must ask a question.

  2. If the question asked is serious, answer seriously.

  3. Questions where you want to learn more about socialism are allowed, but questions in bad faith are not.

  4. Try !feedback@hexbear.net if you're having questions about regarding moderation, site policy, the site itself, development, volunteering or the mod team.

founded 5 years ago
MODERATORS