I like Greasemonkey, what can I say?
May. 4th, 2009 11:04 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
If you have the LJ Taglister Greasemonkey script installed, you may want to update it for Dreamwidth usage.
The first thing you do is add the following two includes:
Second, edit the script to change these three sections:
1) From:
To:
2) Look for this line:
Under that line, add this block:
And a couple of lines down, change from:
To:
3) From:
To:
The first thing you do is add the following two includes:
http://*.dreamwidth.org/update.bml*
http://*.dreamwidth.org/editjournal.bml*
Second, edit the script to change these three sections:
1) From:
tagItem.href="http://"+usejournal+".livejournal.com/tag/"+tag[0].replace(/ /g,'+');
To:
if (window.location.href.indexOf("livejournal.com") > -1) {
tagItem.href="http://"+usejournal+".livejournal.com/tag/"+tag[0].replace(/ /g,'+');
} else {
tagItem.href="http://"+usejournal+".dreamwidth.org/tag/"+tag[0].replace(/ /g,'+');
}
2) Look for this line:
usejournal = getJournal();
Under that line, add this block:
if (window.location.href.indexOf("livejournal.com") > -1) {
var xurl = "http://"+usejournal+".livejournal.com/tag/?format=light";
} else {
var xurl = "http://"+usejournal+".dreamwidth.org/tag/?format=light";
}
And a couple of lines down, change from:
url: "http://"+usejournal+".livejournal.com/tag/?format=light",
To:
url: xurl,
3) From:
tagsTextbox.parentNode.insertBefore(tagslistpkg, tagsTextbox.nextSibling.nextSibling);
To:
if (window.location.href.indexOf("livejournal.com") > -1) {
tagsTextbox.parentNode.insertBefore(tagslistpkg, tagsTextbox.nextSibling.nextSibling);
} else {
tagsTextbox.parentNode.insertBefore(tagslistpkg, tagsTextbox.nextSibling);
}