home -> my lj

Mar 16, 2007 20:04

for those of you who are sad that the My LJ link has been replaced by a simple Home link, the following is for you.

1. learn how to use userscripting with your browser.
2. incorporate this code:
var href = "http://my.livejournal.com/";
var text = "My LJ";

var home;
var as;
var links = new Array(2);
links[0] = document.getElementById('NavMenuItem1'); // first link in Horizon and Vertigo
links[1] = document.getElementById('utility-nav'); // link in Horizontal portion of Vertigo

for(var i = 0; i < links.length; i++) {
home = links[i];
if(home) {
as = home.getElementsByTagName('a');
as[0].href = href;
as[0].innerHTML = text;
}
}

lj: hacks, js

Previous post Next post
Up