jamendo.com surrogate [FOR ALL "FaceBook Connect"]

Ask for help about NoScript, no registration needed to post

jamendo.com surrogate [FOR ALL "FaceBook Connect"]

Postby rlx » Sat Apr 28, 2012 12:12 am

jamendo.com - a creative commons music site - fouled up their site with a edesign recently. When blocking scripts from facebook domains nothing works.

A surrogate that works for me:
Code: Select all
noscript.surrogate.jamendo.sources;@*.jamendo.com
noscript.surrogate.jamendo.replacement;fb_sharepro_render=function(){}
Last edited by Tom T. on Wed May 02, 2012 9:12 am, edited 2 times in total.
Reason: language
Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0
rlx
 

Re: jamendo.com surrogate

Postby Tom T. » Sat Apr 28, 2012 6:16 am

Please review the Forum Rules, and refrain from offensive language, thank you.
Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0
Tom T.
Field Marshal
 
Posts: 3632
Joined: Fri Mar 20, 2009 6:58 am

Re: jamendo.com surrogate

Postby Thrawn » Wed May 02, 2012 3:35 am

rlx wrote:jamendo.com - a creative commons music site - fouled up their site with a edesign recently. When blocking scripts from facebook domains nothing works.

A surrogate that works for me:
Code: Select all
noscript.surrogate.jamendo.sources;@*.jamendo.com
noscript.surrogate.jamendo.replacement;fb_sharepro_render=function(){}


Thanks for posting that :). Even if someone uses & allows Facebook (more specifically, fbcdn.net), the surrogate is handy if they also run RequestPolicy
======
Thrawn
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/IT/M/S d++(-) s+: C++$ ULS$>++++ P(+) L++ W++
K- w V? PS-(---) PE Y+ PGP->++ t@ X R tv b++>+++ DI+@
!D G>+++ e++>+++ h--- r+++ m?
-----END GEEK CODE BLOCK-----
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
User avatar
Thrawn
Senior Member
 
Posts: 962
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia

Re: jamendo.com surrogate

Postby Giorgio Maone » Wed May 02, 2012 7:28 am

Thrawn wrote:
rlx wrote:jamendo.com - a creative commons music site - fouled up their site with a edesign recently. When blocking scripts from facebook domains nothing works.

A surrogate that works for me:
Code: Select all
noscript.surrogate.jamendo.sources;@*.jamendo.com
noscript.surrogate.jamendo.replacement;fb_sharepro_render=function(){}


Thanks for posting that :). Even if someone uses & allows Facebook (more specifically, fbcdn.net), the surrogate is handy if they also run RequestPolicy

Notice that the surrogate could be generalized to any site which attempts to use the same Facebook Connect feature:
Code: Select all
noscript.surrogate.fbconnect.sources;.fbcdn.net/connect.php/js/FB.Share
noscript.surrogate.fbconnect.replacement;fb_sharepro_render=function(){}

... but it likely wouldn't work with RequesPolicy because NoScript runs later.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
User avatar
Giorgio Maone
Site Admin
 
Posts: 6834
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy

Re: jamendo.com surrogate

Postby Tom T. » Wed May 02, 2012 8:47 am

Giorgio Maone wrote:... [Notice that the surrogate could be generalized to any site which attempts to use the same Facebook Connect feature:
Code: Select all
noscript.surrogate.fbconnect.sources;.fbcdn.net/connect.php/js/FB.Share
noscript.surrogate.fbconnect.replacement;fb_sharepro_render=function(){}

@ Giorgio:

Disregarding RP for the moment (and OP's original impolite language), is that something that you would be adding to the existing NS surrogate?
Code: Select all
noscript.surrogate.facebook_connect.sources;connect.facebook.net/en_US/all.js
noscript.surrogate.facebook_connect.replacement;FB=function(){if(typeof Proxy==='undefined'){var f=arguments.callee;return f.__noSuchMethod__=f.Event=f;}var p=Proxy.createFunction({get:function(proxy, name){return name in Object.prototype?Object.prototype[name]:p;}},function(){return p;});return p;}();

I avoid Facebook completely (which is why I had no comment before), but if many sites are indeed using this "feature", should this surrogate be added as a default?
Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0
Tom T.
Field Marshal
 
Posts: 3632
Joined: Fri Mar 20, 2009 6:58 am

Re: jamendo.com surrogate

Postby Giorgio Maone » Wed May 02, 2012 9:04 am

Tom T. wrote:Disregarding RP for the moment (and OP's original impolite language), is that something that you would be adding to the existing NS surrogate?
Code: Select all
noscript.surrogate.facebook_connect.sources;connect.facebook.net/en_US/all.js
noscript.surrogate.facebook_connect.replacement;FB=function(){if(typeof Proxy==='undefined'){var f=arguments.callee;return f.__noSuchMethod__=f.Event=f;}var p=Proxy.createFunction({get:function(proxy, name){return name in Object.prototype?Object.prototype[name]:p;}},function(){return p;});return p;}();

I avoid Facebook completely (which is why I had no comment before), but if many sites are indeed using this "feature", should this surrogate be added as a default?

If those site break without it and it's tested to "fix" this issue, then yes it should.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0
User avatar
Giorgio Maone
Site Admin
 
Posts: 6834
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy

Re: jamendo.com surrogate

Postby Tom T. » Wed May 02, 2012 9:37 am

Giorgio Maone wrote:
Tom T. wrote:Disregarding RP for the moment (and OP's original impolite language), is that something that you would be adding to the existing NS surrogate?
Code: Select all
noscript.surrogate.facebook_connect.sources;connect.facebook.net/en_US/all.js
noscript.surrogate.facebook_connect.replacement;FB=function(){if(typeof Proxy==='undefined'){var f=arguments.callee;return f.__noSuchMethod__=f.Event=f;}var p=Proxy.createFunction({get:function(proxy, name){return name in Object.prototype?Object.prototype[name]:p;}},function(){return p;});return p;}();

I avoid Facebook completely (which is why I had no comment before), but if many sites are indeed using this "feature", should this surrogate be added as a default?

If those site break without it and it's tested to "fix" this issue, then yes it should.

Very well, then. I've edited the topic title to attract more user feedback.

ANYONE WHO CAN REPRODUCE A PAGE BREAKING WHEN THIS SCRIPT IS BLOCKED:

Please list the site addresses, and please test the surrogate as follows:

1) Navigate away from the site, and open about:config
2) Right-click in the window, and select "New > String"
3) In the pop-up box for "Preference Name", copy/paste
Code: Select all
noscript.surrogate.fbconnect.sources
and click OK.

4) In the pop-up box for "Enter String Value", copy/paste
Code: Select all
.fbcdn.net/connect.php/js/FB.Share
and click OK.

5) Right-click in the window, and select "New > String"
6) In the pop-up box for "Preference Name", copy/paste
Code: Select all
noscript.surrogate.fbconnect.replacement
and click OK.

7) In the pop-up box for "Enter String Value", copy/paste
Code: Select all
fb_sharepro_render=function(){}
and click OK.

Then please close about:config.
Go back to the site(s) that broke with the Facebook script either default-denied or marked as Untrusted.

Does the site now work correctly? Or not?

Your feedback may result in an enhancement for many users. Thank you.
Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0
Tom T.
Field Marshal
 
Posts: 3632
Joined: Fri Mar 20, 2009 6:58 am


Return to NoScript Support

Who is online

Users browsing this forum: No registered users and 8 guests