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 Feb 24, 2005, 04:13am EST

Can you be more specific about how it breaks the menus? I’m having a hard time reproducing the error.

Also, images don’t show up if the user doesn’t have a userpic. Have you found the script to be inconsistent with users who do have a user pic?

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