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

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

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

Post by rlx »

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
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: jamendo.com surrogate

Post by Tom T. »

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
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: jamendo.com surrogate

Post by Thrawn »

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
------------
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 on x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: jamendo.com surrogate

Post by Giorgio Maone »

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
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: jamendo.com surrogate

Post by Tom T. »

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
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: jamendo.com surrogate

Post by Giorgio Maone »

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
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: jamendo.com surrogate

Post by Tom T. »

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
Post Reply