[Greasemonkey] CSS style element alteration
Ben
livingood at gmail.com
Tue Jun 14 18:20:15 EDT 2005
Hi all,
so in http://forums.worldofwarcraft.com there are two styles listed in
the head. I want to change some of the elements and not some of the
others.
I've been trying the following:
( function() {
var head;
head = document.getElementsByTagName('head')[0];
alert(head.style.small);
})();
just to see what the value was. I'm thinking that that is wrong since
it's an array(?). The weird thing is that the alert printed nil. I
know I might be able to destroy the style element and remake it in a
mostly static option, but that's kind of inelegant, right?
Anyways, the main reason I want to get at the style elements and alter
them is to change various fonts different colours and sizes to help
the old eyes. I know it's possible to do by just adding styles to the
end of the sheet (I did it before but it was a fluke and the code is
gone :( )
Any help/suggestions and/or irc chans that might be more appropriate
would be vastly appreciated.
Ben Livingood
--
Ben Livingood || livingood at gmail.com
Do not tell fish stories where the people know you;
but particularly, don't tell them where they know the fish.
--Mark Twain
More information about the Greasemonkey
mailing list