<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-04-09:29196</id>
  <title>Musings and Mutterings</title>
  <subtitle>dracodraconis</subtitle>
  <author>
    <name>dracodraconis</name>
  </author>
  <link rel="alternate" type="text/html" href="https://dracodraconis.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://dracodraconis.dreamwidth.org/data/atom"/>
  <updated>2009-04-15T12:47:47Z</updated>
  <dw:journal username="dracodraconis" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-04-09:29196:444794</id>
    <link rel="alternate" type="text/html" href="https://dracodraconis.dreamwidth.org/444794.html"/>
    <link rel="self" type="text/xml" href="https://dracodraconis.dreamwidth.org/data/atom/?itemid=444794"/>
    <title>Quicklink submission seems stable</title>
    <published>2009-04-15T12:43:51Z</published>
    <updated>2009-04-15T12:47:47Z</updated>
    <category term="livejournal"/>
    <category term="javascript"/>
    <category term="dreamwidth"/>
    <dw:security>public</dw:security>
    <dw:reply-count>3</dw:reply-count>
    <content type="html">It appears the jerry-rigged solution works and doesn't require being logged into LJ. The final version of the code is below:&lt;br /&gt;&lt;br /&gt;javascript:void((function(){var%20u='http://www.dreamwidth.org/',w=window.open('','','toolbar=0,resizable=1,scrollbars=1,status=1,width=1000,height=500');if(window.LJ_bookmarklet){return%20LJ_bookmarklet(w,u)};var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.onload=function(){LJ_bookmarklet(w,u)};e.setAttribute('src','http://www.livejournal.com/js/bookmarklet.js');document.getElementsByTagName('head').item(0).appendChild(e)})())&lt;br /&gt;&lt;br /&gt;Create a bookmark in your browser and in the URL field cut-and-paste the above script. One of the biggest changes that is needed is to replace the http://www.livejournal.com/js/bookmarklet.js javascript code residing either locally or on a DW server rather than on the LJ server, but I'm leaving that for others who may be so inclined.&lt;br /&gt;&lt;div class="entry-content"&gt;&lt;br /&gt;If anyone makes any improvements to this script, please let me know and I'll update this post with appropriate cudos.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style='white-space: nowrap;'&gt;&lt;a href='https://jennifer.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/silk/identity/user.png' alt='[personal profile] ' width='17' height='17' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://jennifer.dreamwidth.org/'&gt;&lt;b&gt;jennifer&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;, feel free to post a link to this post on &lt;span style='white-space: nowrap;'&gt;&lt;a href='https://memewidth.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/silk/identity/community.png' alt='[community profile] ' width='16' height='16' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://memewidth.dreamwidth.org/'&gt;&lt;b&gt;memewidth&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; because I don't have posting access to that list. &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dracodraconis&amp;ditemid=444794" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-09:29196:442944</id>
    <link rel="alternate" type="text/html" href="https://dracodraconis.dreamwidth.org/442944.html"/>
    <link rel="self" type="text/xml" href="https://dracodraconis.dreamwidth.org/data/atom/?itemid=442944"/>
    <title>Second attempt at one-click submission</title>
    <published>2009-04-14T01:54:08Z</published>
    <updated>2009-04-14T01:54:08Z</updated>
    <category term="dreamwidth"/>
    <category term="livejournal"/>
    <category term="javascript"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">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.&lt;br /&gt;&lt;br /&gt;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,'&lt;a href="http://www.dreamwidth.org/"&gt;http://www.dreamwidth.org/&lt;/a&gt;')};var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.onload=function(){LJ_bookmarklet(w,'&lt;a href="http://www.dreamwidth.org/"&gt;http://www.dreamwidth.org/&lt;/a&gt;')};e.setAttribute('src','&lt;a href="http://www.livejournal.com/js/bookmarklet.js"&gt;http://www.livejournal.com/js/bookmarklet.js&lt;/a&gt;');document.getElementsByTagName('head').item(0).appendChild(e)})())&lt;br /&gt;&lt;br /&gt;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.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dracodraconis&amp;ditemid=442944" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-09:29196:441050</id>
    <link rel="alternate" type="text/html" href="https://dracodraconis.dreamwidth.org/441050.html"/>
    <link rel="self" type="text/xml" href="https://dracodraconis.dreamwidth.org/data/atom/?itemid=441050"/>
    <title>Javascript for command-line posting</title>
    <published>2009-04-10T16:53:12Z</published>
    <updated>2009-04-13T14:22:21Z</updated>
    <category term="dreamwidth"/>
    <category term="livejournal"/>
    <category term="javascript"/>
    <dw:security>public</dw:security>
    <dw:reply-count>2</dw:reply-count>
    <content type="html">I just arrived at Dreamwidth yesterday and have, so far, been rather impressed. One of the features I missed, however, was the bookmarklet javascript for auto-posting. I've gerry-rigged the LJ javascript function to perform the same function for dreamwidth:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;javascript:void((function(){var%20u='http://www.dreamwidth.org/',w=window.open('','','toolbar=0,resizable=1,scrollbars=1,status=1,width=1000,height=500');if(window.LJ_bookmarklet){return%20LJ_bookmarklet(w,u)};var%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.onload=function(){LJ_bookmarklet(w,u)};e.setAttribute('src',u+'js/bookmarklet.js');document.getElementsByTagName('head').item(0).appendChild(e)})())&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Create a bookmark in your browser and in the URL field cut-and-paste the above script. One of the biggest changes that is needed is to replace the http://www.livejournal.com/js/bookmarklet.js javascript code residing either locally or on a DW server rather than on the LJ server. I'll continue to play with this to see what I come up with.&lt;br /&gt;&lt;br /&gt;If anyone makes any improvements to this script, please let me know and I'll update this post with appropriate cudos.&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;Edit:&lt;/strong&gt; Found a bug with the method; it only works if you have run the script to post to LJ at least once in this session. Not a big problem at the moment because I'm posting to both so I&amp;nbsp;just post to LJ first, then to DW, but this is certainly not a long-term solution.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Edit 2&lt;/strong&gt;: Now testing some locally-running javascript to attempt to perform the same function but so far no-go.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=dracodraconis&amp;ditemid=441050" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
