From bb419377c5bc941a2a175bce76823ae625c86871 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 2 Sep 2012 22:09:54 +0900 Subject: [PATCH] add ext post-to-posterous --- _keysnail.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_keysnail.js b/_keysnail.js index b760917..e531452 100644 --- a/_keysnail.js +++ b/_keysnail.js @@ -169,6 +169,12 @@ plugins.options["twitter_client.use_jmp"] = true; //////////////////////////////////////////// // my ext +ext.add('post-to-posterous', function (ev, arg) { + if (window.loadURI) { + loadURI("javascript:var%20b=document.body;var%20POSTEROUS___bookmarklet_domain='http://posterous.com';var%20d=new%20Date();var%20e=(new%20Date(d.getFullYear(),d.getMonth(),d.getDate())).getTime();if(b&&!document.xmlVersion){void(z=document.createElement('script'));void(z.type='text/javascript');void(z.src='http://posterous.com/javascripts/bookmarklet2.js?'+e);void(b.appendChild(z));}else{}"); + } +}, 'post to posterous'); + ext.add("echo-tab-info", function(){ var all = gBrowser.tabs.length; var ix = gBrowser.mCurrentTab._tPos;