Page 1 of 1

Allow other-site JS on certain sites only?

Posted: Wed Nov 24, 2010 3:00 am
by Guest
Hi,

Is there a way to allow JS from certain sites to run only on a set of allowed sites?

For instance, facebook has JS on facebook.com and fbcdn.com. I'm okay with allowing those while I'm actually browsing facebook, but I want them to stay off if I'm on some other website.

Re: Allow other-site JS on certain sites only?

Posted: Wed Nov 24, 2010 10:33 am
by Giorgio Maone
You can use ABE for that:
http://noscript.net/faq#qa8_10

Re: Allow other-site JS on certain sites only?

Posted: Wed Nov 24, 2010 10:33 pm
by Fry-kun
Neat, thanks!

Although maybe it should be easier to do this... I would imagine that as a rule of thumb, users want JS to be allowed "on this site" rather than "everywhere". It's only the few special sites that have externally-called code (facebook, google, etc.). As you've probably guessed by now, I don't much like those cross-site scripts :)
Would probably have to change the code a lot, though...

Re: Allow other-site JS on certain sites only?

Posted: Tue Nov 30, 2010 10:02 am
by Guest
there should be an option "allow xxxx.com on this site" right below allowing globally and temporary.


example:
I want to have disqus.com discussions visible on jquery.com but not on other sites.

I solved this with allowing disqus.com scripts in noscript but blocking them in AdBlock everywhere except on jquery.com.
But this should be a job for AdblockPlus but for NoScript (<- name says it)

Re: Allow other-site JS on certain sites only?

Posted: Tue Nov 30, 2010 10:19 am
by Giorgio Maone
Guest wrote:I want to have disqus.com discussions visible on jquery.com but not on other sites.
Per FAQ 8.10 above, in ABE:

Code: Select all

Site .disqus.com
Accept from SELF++ .jquery.com
Deny