bumcheekcity
Active member
I have a little greasemonkey script running to make the text in the charplane smaller. It simply loops through every <td> and changes the font size. It works beautifully.
But for a couple of days, mafia has started loading the charpane, and then it 'pings' into small text (which is normal and correct as greasemonkey loads only after a page has fully loaded), BUT then it pings back into the normal sized text again.
Have I changed an option stupidly that would have caused this? It's really weird?
Greasemonkey script below:
But for a couple of days, mafia has started loading the charpane, and then it 'pings' into small text (which is normal and correct as greasemonkey loads only after a page has fully loaded), BUT then it pings back into the normal sized text again.
Have I changed an option stupidly that would have caused this? It's really weird?
Greasemonkey script below:
// ==UserScript==
// @name bumcheekcity's KoL Charplane Script
// @namespace /
// @include *kingdomofloathing.com/charpane.php*
// @include *127.0.0.1:*/charpane.php*
// ==/UserScript==
var img = document.getElementsByTagName('img');
var tds = document.getElementsByTagName('td');
var fnt = document.getElementsByTagName('font');
var i;
//Removes your Character's picture.
img[0].height = 50;
img[0].width = 30;
//Removes HP, MP, Meat, Adv pictures.
for (i = 1; i < img.length; i++)
{
img.style.height = 20;
img.style.width = 20;
}
//Make Text Small
for (i = 0; i < tds.length; i++)
{
tds.style.fontSize = 10+"px";
}
for (i = 0; i < fnt.length; i++)
{
fnt.size = 1;
}