[Greasemonkey] Stripping font tags
Lenny Domnitser
ldrhcp at gmail.com
Fri Dec 2 16:41:13 EST 2005
On 11/30/05, Randy Burke <uncle.ranny at gmail.com> wrote:
> I was just wondering if there is a easy way to strip all the font tags out
> of the page
var fonts = document.getElementsByTagName('font'), font;
while(font = fonts[0]) {
var frag = document.createDocumentFragment();
frag.innerHTML = font.innerHTML;
font.parentNode.replaceChild(frag, font);
}
More information about the Greasemonkey
mailing list