Using ABE to disable javascript on just one website

Ask for help about NoScript, no registration needed to post
Guest

Using ABE to disable javascript on just one website

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: Using ABE to disable javascript on just one website

Post 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?
*Always* check the changelogs BEFORE updating that important software!
-
Guest

Re: Using ABE to disable javascript on just one website

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: Using ABE to disable javascript on just one website

Post 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
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Linux i686; rv:38.9) Gecko/20100101 Goanna/2.0 Firefox/38.9 PaleMoon/26.1.1
barbaz
Senior Member
Posts: 11064
Joined: Sat Aug 03, 2013 5:45 pm

Re: Using ABE to disable javascript on just one website

Post 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
*Always* check the changelogs BEFORE updating that important software!
-
Guest

Re: Using ABE to disable javascript on just one website

Post 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.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Post Reply