Page 1 of 1

Using ABE to disable javascript on just one website

Posted: Fri Jul 29, 2016 8:20 am
by Guest
Hi! I'm a noob, excuse me if I say something stupid.

I'm using a website that is very slow. I think one of the reasons of this that the site uses a lot of unnecessary javascript. I thought I can use ABE to allow only the minimum necessary JS, so maybe it would be faster. I tried to set an ABE rule like this:

Site .facebook.com .twitter.com
Deny INC from .facebook.com .twitter.com
.example.com
Accept

When I applied the rule and loaded example.com, I noticed three things:
1. Some addresses don't show up in noscript when I load the page(the intended effect)
2. Some addresses do show up despite the rule(such as twitter.com)
3. Facebook.com isn't loading properly(so the rule was not restricted to example.com)

What rule should I set?
Thank you for your help in advance.

Re: Using ABE to disable javascript on just one website

Posted: Fri Jul 29, 2016 3:16 pm
by barbaz
Emulating NoScript's active content blocking using ABE is tricky:

Code: Select all

Site .example.net
Deny INC(SCRIPT, OBJ, FONT, XHR, MEDIA)
Sandbox
Can you just use the regular script blocking on this site?

Re: Using ABE to disable javascript on just one website

Posted: Sat Jul 30, 2016 8:48 am
by Guest
The website still needs the javascript from example.com to function at all. Simply blocking the scripts from other sites work, but with that, I won't be able to use some other websites.

Re: Using ABE to disable javascript on just one website

Posted: Sat Jul 30, 2016 9:11 am
by Thrawn
Your initial ABE rule doesn't look right...see if this helps:

Code: Select all

Site .example.com
Accept from SELF++
Deny INC

Re: Using ABE to disable javascript on just one website

Posted: Sat Jul 30, 2016 4:46 pm
by barbaz
Guest wrote:The website still needs the javascript from example.com to function at all. Simply blocking the scripts from other sites work, but with that, I won't be able to use some other websites.
Ah, you're trying to make per-site permissions but like the reverse of what people usually ask. This ABE rule should do:

Code: Select all

Site .facebook.com .twitter.com
Deny INC(SCRIPT, OBJ, FONT, XHR, MEDIA) from .example.com
Sandbox from .example.com
Accept

Re: Using ABE to disable javascript on just one website

Posted: Sat Jul 30, 2016 8:59 pm
by Guest
Thrawn wrote:Your initial ABE rule doesn't look right...see if this helps:

Code: Select all

Site .example.com
Accept from SELF++
Deny INC
Unfortunately this doesn't seem to have any effect.