Allow scripts from site A on site B only.

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

Allow scripts from site A on site B only.

Post by Guest »

Since google.com done everything to break usability of their site with JS on, I usally don't allow scripts for them.
However google continued "break the internet" quest and acquired recaptcha several years ago. Of course, they decided to break it too.

So right now, if recaptcha.net is allowed and google.com is not, then recaptcha works awfully bad: I need to type captcha and then copypaste wall of text. However, if I'll chose on this page "temporaly allow google.com" or "temporaly allow all this page", then if I go to google.com, its scripts will be enabled.

So question is, is it possible to setup NoScript such way that it will allow scripts from google.com on some sites (for example on this forums.informaction.com), but at the same time disallow their execution from main google site(google.com).
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow scripts from site A on site B only.

Post by Giorgio Maone »

You can use ABE to this effect.
Allow google.com in NoScript, then add the following rule to your USER ruleset in NoScript Options|Advanced|ABE:

Code: Select all

Site .google.com
Sandbox
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Henry

Re: Allow scripts from site A on site B only.

Post by Henry »

I have a similar question:

How can I allow the facebook-servers just when I visit facebook, but block them everywhere else?

Now, it seems that I can allow a site totally, or block it totally, no matter what domain I visit. It would be very helpful when there was a third option in noscript like "allow [...] just when visiting this domain". (or could "allow temporarily" help me there?)

Thanks
Henry
Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Henry

Re: Allow scripts from site A on site B only.

Post by Henry »

okay, I found the ABE-Code now.

But I'd like to suggest that third option I described above, it would make things much easier!

Thanks for writing Noscript!

Henry
Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
TemplarW20
Posts: 1
Joined: Tue Jun 14, 2011 1:14 am

Re: Allow scripts from site A on site B only.

Post by TemplarW20 »

I'm wondering the same thing. Given how facebook and google have been when it comes to tracking people, I'd like to block their scripts on sites other than the home sites.
Mozilla/5.0 (Windows NT 6.0; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow scripts from site A on site B only.

Post by Giorgio Maone »

TemplarW20 wrote:I'm wondering the same thing. Given how facebook and google have been when it comes to tracking people, I'd like to block their scripts on sites other than the home sites.
http://noscript.net/faq#qa8_10
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Post Reply