Page 1 of 1
Facebook Share Bookmarklet not working on untrusted sites.
Posted: Tue Jan 29, 2013 12:06 am
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.
Re: Facebook Share Bookmarklet not working on untrusted site
Posted: Tue Jan 29, 2013 9:37 am
by Giorgio Maone
It's expected, because sites marked as untrusted are inhibited from including script files no matter what.
Re: Facebook Share Bookmarklet not working on untrusted site
Posted: Tue Jan 29, 2013 3:18 pm
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?
Re: Facebook Share Bookmarklet not working on untrusted site
Posted: Tue Jan 29, 2013 8:51 pm
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.
Re: Facebook Share Bookmarklet not working on untrusted site
Posted: Tue Jan 29, 2013 9:44 pm
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)();