Second attempt at one-click submission
Apr. 13th, 2009 09:48 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
This still requires the bookmarklet function on LJ, but appears to no longer require being logged into LJ or posting to it first. Once again, I'll give it a few days of testing to see what bugs appear. If this version appears stable I'll crosspost so people can at least start using it.
javascript:void((function(){var%20w=window.open('','','toolbar=0,resizable=1,scrollbars=1,status=1,width=1000,height=500');if(window.LJ_bookmarklet){return%20LJ_bookmarklet(w,'http://www.dreamwidth.org/')};var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.onload=function(){LJ_bookmarklet(w,'http://www.dreamwidth.org/')};e.setAttribute('src','http://www.livejournal.com/js/bookmarklet.js');document.getElementsByTagName('head').item(0).appendChild(e)})())
The change here is that the document source is set to be the script on the LJ server while the code is handed the dreamwidth URL.
javascript:void((function(){var%20w=window.open('','','toolbar=0,resizable=1,scrollbars=1,status=1,width=1000,height=500');if(window.LJ_bookmarklet){return%20LJ_bookmarklet(w,'http://www.dreamwidth.org/')};var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.onload=function(){LJ_bookmarklet(w,'http://www.dreamwidth.org/')};e.setAttribute('src','http://www.livejournal.com/js/bookmarklet.js');document.getElementsByTagName('head').item(0).appendChild(e)})())
The change here is that the document source is set to be the script on the LJ server while the code is handed the dreamwidth URL.