Tuesday, July 20

Firefox - BlogThis! in Throbber

Whenever I recreate my Firefox preferences (it's now my default browser in both Windows and OS X), I have to navigate to this site to pick up the code to make a user.js file that allows me to click the Throbber, the little progress-animated icon in the top-right, to activate BlogThis!. Just so I have it in an easy-to get location, here it is for my own personal reference:

// Throbber Location point 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'));");

If any readers (ha! do I really have readers?) want to use this code for themselves, copy it into a plain-text file called user.js, minus the hyphens above and below the code. Then, copy the user.js file into your profile directory. If you can't find your profile directory, search your system for prefs.js and place the file in the same folder. User.js is not created for Firefox by default, but it will automatically recognize it once it is placed there.

No comments:

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License. Permissions beyond the scope of this license may be available by emailing the author (use the link above).

The Geek Code desperately needs updating, but in any case here's mine (as of 2010-02-28):

Version: 3.12
GIT/MU d+(-) s:+>: a C++> ULXB++++$ L+++ M++ w--() !O !V P+ E---
W+++ N o++ K? PS PE++ Y+ PGP t !5 X- R- tv+@ b++ DI++++ D--- e*++
h--- r+++ y+++ G+

If you really care about knowing what that all means, you either know the code already, or you can get it decoded for you here.