Thanks to
piehead (and who was that masked man?) I've got my style=not-mine script working, so for anyone interested, the relevant bit is under the cut. Paste it into a text file, name it something.user.js and open it in firefox. (Assuming you already have
greasemonkey installed.)
// ==UserScript==
// @name Style not-mine
// @namespace betty offers no tech support!
// @description Removes ?style=mine from links
// @include
http://*.livejournal.com/*// ==/UserScript==
(function(){
var l = document.getElementsByTagName("a");
for (var cand = null, i = 0; (cand = l[i]); i++) {
uim = cand.getAttribute('href');
if (uim != null)
if(uim.search("style=mine") >= 0)
cand.setAttribute('href',uim.replace(/\?style\=mine/, ''));
}
var l = document.getElementsByTagName("form");
for (var cand = null, i = 0; (cand = l[i]); i++) {
uim = cand.getAttribute('action');
if(uim.search("style=mine") >= 0)
if (uim != null)
cand.setAttribute('href',uim.replace(/\?style\=mine/, ''));
}
})();