Twitter bookmarklet not working any longer

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

Twitter bookmarklet not working any longer

Post 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.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Twitter bookmarklet not working any longer

Post by therube »

What version of NoScript?
Does the #dev build work better, http://noscript.net/getit#devel ?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26a2
Claudio

Re: Twitter bookmarklet not working any longer

Post 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.
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Twitter bookmarklet not working any longer

Post 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.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 SeaMonkey/2.24
Post Reply