Page 1 of 1

Twitter bookmarklet not working any longer

Posted: Mon Mar 10, 2014 8:51 pm
by Claudio
The official bookmarklet from twitter no longer works correctly when visiting an untrusted site, it only opens a new post for twitter totally emtpy vs. The expected pre-filled post. The code of the bookmarklet is:

Code: Select all

javascript:(function(){window.twttr=window.twttr||{};var%20D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('http://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='http://platform.twitter.com/bookmarklets/share.js?v=1';F.getElementsByTagName('head')[0].appendChild(E)}());
The bookmarklet can be found at https://dev.twitter.com/docs/share-bookmarklet.
Thank you.

Re: Twitter bookmarklet not working any longer

Posted: Mon Mar 10, 2014 10:22 pm
by therube
What version of NoScript?
Does the #dev build work better, http://noscript.net/getit#devel ?

Re: Twitter bookmarklet not working any longer

Posted: Tue Mar 11, 2014 4:59 pm
by Claudio
Hello,
The version i am using is 2.6.8.17.
No, I just tried the dev version & did not help. Thank you.

Re: Twitter bookmarklet not working any longer

Posted: Wed Mar 12, 2014 3:34 pm
by therube
Working for me, by dragging the bookmarklet from the link, to the Bookmarks Toolbar.

The code you posted:

Code: Select all

javascript:(function(){window.twttr=window.twttr||{};var%20D=
has a '%20' (representative of a space)
where the bookmarklet has an actual space

Code: Select all

javascript:(function(){window.twttr=window.twttr||{};var D=
The former does not work, the latter does.

(Otherwise, there is no difference between the two.)