theme selector

light blue screenshot grey screenshot navy screenshot dark green screenshot red and black screenshot
 

by Tony Chang
tony@ponderer.org

All opinions on this site are my own and do not represent those of my employer.

Creative Commons Attribution License

my first user script

Feb 17, 2005, 11:32pm EST

 

 

My first (real) greasemonkey user script is for adding user pics to livejournal user links. That is, if you hover over a livejournal user link (like this one: [info]idealisms), the user’s userpic appear above your cursor.

Futhermore, the script use XMLHttpRequests and doesn’t require user intervention because all the requests are made to livejournal.com.

I had actually done something similar in my livejournal S2 style, but I gave up when I realized that there was no way to get userpic urls for most user links in S2. I was reminded of the idea today when I read about a related PHP script.

Hmm, it’s unclear to me whether I should have posted this here on my tech blog or on my more personal livejournal.

tony at Apr 10, 2005, 10:36pm EDT

At the time I wrote this, GM_xmlhttpRequest didn’t exist. Once the feature was added, I wrote a user script to use it, but haven’t gone back and updated this script yet.

allowed HTML: a, blockquote, ul, ol, li, dl, dt, dd, b, i, strong, em, code, abbr, acronym, sub, sup, span, pre

allowed HTML: a, blockquote, ul, ol, li, dl, dt, dd, b, i, strong, em, code, abbr, acronym, sub, sup, span, pre