Thursday, July 15, 2004

Blogthis with this

I use this javascript as my throbber URL - it invokes BlogThis for the current page. Useful if you blog links and remember it's there.. it has to be set using about:config or with this in your user.js file:

// Set throbber to "Blog This"
user_pref("browser.throbber.url", "javascript:Q='';
x=document;y=window;
if(x.selection){Q=x.selection.createRange().text;}
else if(y.getSelection){Q=y.getSelection();}
else if(x.getSelection){Q=x.getSelection();}
void(window.open
('http://new.blogger.com/blog_this.pyra?t='
+escape(Q)+'&u='+escape(location.href)+'&n='
+escape(document.title),
'bloggerForm','scrollbars=no,
width=475,height=300,top=175,left=75,
status=yes,resizable=yes'));");

No comments: