twitter and ABE settings

General discussion about the NoScript extension for Firefox
Post Reply
helpmeobiwan
Posts: 2
Joined: Sat May 24, 2014 3:00 am

twitter and ABE settings

Post by helpmeobiwan »

I want to allow twitter.com and twimg.com to run scripts on twitter.com only (so I can use it).

I want to disallow these scripts from running from any other page (like cnn.com or whatever).

It seems that ABE is how to do this? I read the FAQ and tried what was suggested but it doesn't work as I want.

Any advice? Can what I want even be done?

thanks in advance
Mozilla/5.0 (X11; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: twitter and ABE settings

Post by Thrawn »

Do you want to post the rules that you tried?

I'd suggest something like this:

Code: Select all

Site .twitter.com .twimg.com
Accept from .twitter.com .twimg.com
Deny
======
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; Ubuntu; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0
helpmeobiwan
Posts: 2
Joined: Sat May 24, 2014 3:00 am

Re: twitter and ABE settings

Post by helpmeobiwan »

That's pretty close to what I tried:

Site .twitter.com
Accept INCLUSION from SELF++
Accept INCLUSION from .twitter.com .twimg.com
Deny

That's taken from the example in the FAQ.

I tried your script instead. However, I must be doing something wrong.

After twitter.com loads, I temp allow twitter.com and twimg.com. Twitter then works properly. But if I go to another site (in a different tab), the twitter.com script is still active there.

Here's an image: Image

You can see that the twitter script is active on this site, which is what I want to stop. I just can't imagine why I want twitter scripts running anywhere but on twitter.
Mozilla/5.0 (X11; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 11066
Joined: Sat Aug 03, 2013 5:45 pm

Re: twitter and ABE settings

Post by barbaz »

ABE and script permissions are totally separate mechanisms so it's possible that normal script blocking gets to the twitter requests first so it shows up as Allowed there, but ABE blocked it afterwards.

You can get closer to emulating true per-site script permissions with this rule:

Code: Select all

Site .twitter.com .twimg.com
Accept from .twitter.com .twimg.com
Deny INCLUSION(SCRIPT, OBJ, FONT, XHR)
Sandbox
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20140427 Firefox/24.0 PaleMoon/24.5.0
Post Reply