Block "script" for all (not just first-party/direct)?

Status
Not open for further replies.

SouthernDevGirl

New Member
When blocking javascript, for example:

||example.com^$script (0r) ||example.com^$script,important

I notice the third-party Javascript continues to run. This has created problems for me, because most scripts come from third-party locations. As a result, blocking "script" doesn't do much in my use-cases.

I'm betting there is a simple rule that blocks everything, not only the local resources within a rule, and I'm just not aware of it?

Thank you in advance!
 

Blaz

Moderator & Translator
Staff member
Moderator
If you want to block all scripts (first and third-party), just use this rule:

Code:
||*.*$script
Please note you will get a lot of broken sites then.
 

SouthernDevGirl

New Member
Sorry, it looks like I did a bad job explaining ..

I don't want to block all sites, if I did, I would certainly use a wildcard like you mentioned (or just avoid browsing altogether, lol).

Let me clarify...

If I block a specific page or domain, for example:

||example.com^$script

This apparantly does not block the javascript called from third-party sites from the site being blocked. In other words, it apparently only blocks javascript from example.com in my testing.

What I'd like to do, is understand how to block all script, whether it's first-party or third-party.
 

Blaz

Moderator & Translator
Staff member
Moderator
||*.*^$script,domain=example.com

This rule will block every script which is requested from the site example.com (unless something removes referrer).
 
Status
Not open for further replies.
Top