Facebook Share Bookmarklet not working on untrusted sites.

Bug reports and enhancement requests
Post Reply
qwerty017
Junior Member
Posts: 24
Joined: Wed Mar 10, 2010 4:11 pm

Facebook Share Bookmarklet not working on untrusted sites.

Post by qwerty017 »

Using the bookmarklet from https://www.facebook.com/share_options.php on either a trusted or not set website works as it should. Setting the site as untrusted though stops the bookmarklet from running. This does not affect all bookmarklets though as the one from http://email.about.com/library/misc/blg ... arklet.htm works on untrusted sites just as it should. I don't know if this is related at all but Noscript also seems to be breaking the Shareaholic addon for untrusted sites while it works perfectly fine if the site is set as trusted. I am using the latest Nightly Firefox and Development build of Noscript.
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20130128 Firefox/21.0
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Facebook Share Bookmarklet not working on untrusted site

Post by Giorgio Maone »

It's expected, because sites marked as untrusted are inhibited from including script files no matter what.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
qwerty017
Junior Member
Posts: 24
Joined: Wed Mar 10, 2010 4:11 pm

Re: Facebook Share Bookmarklet not working on untrusted site

Post by qwerty017 »

2 questions then.
1) I have Noscript set to allow bookmarklets on untrusted sites so shouldn't that mean I can run bookmarlets on untrusted sites?
2) Why is it only that 1 bookmarklet that does not run when the other ones I posted are working fine?
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20130128 Firefox/21.0
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Facebook Share Bookmarklet not working on untrusted site

Post by Giorgio Maone »

qwerty017 wrote:2 questions then.
1) I have Noscript set to allow bookmarklets on untrusted sites so shouldn't that mean I can run bookmarlets on untrusted sites?
That option pre-dates the "mark as untrusted" blacklist feature: in that context, "untrusted" actually means "non-whitelisted".
qwerty017 wrote:2) Why is it only that 1 bookmarklet that does not run when the other ones I posted are working fine?
The ones working fine are self-contained, i.e. they don't include external script files.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0
qwerty017
Junior Member
Posts: 24
Joined: Wed Mar 10, 2010 4:11 pm

Re: Facebook Share Bookmarklet not working on untrusted site

Post by qwerty017 »

Ok. In case anyone else happens to run into the same problem the below code will allow sharing on pages marked as untrusted.

Code: Select all

javascript:(function()%7Bm='http://www.facebook.com/sharer.php?src=bm&v=4&i=1301235609&u='+encodeURIComponent(window.location.href)+'&t='+encodeURIComponent(document.title);w=window.open(m,'addwindow','toolbar=0,status=0,resizable=1,width=626,height=436');setTimeout(function()%7Bw.focus();%7D,%20250);%7D)();
Mozilla/5.0 (Windows NT 6.2; WOW64; rv:21.0) Gecko/20130129 Firefox/21.0
Post Reply