
mw54finest
|
Creates a bigger depth chartby RandomBeast
Makes the middle window larger so it shows more than just three players
Here's the script: http://userscripts.org/scripts/show/28566
by DaRealest
Also did these, which are basically modified from RB's script for Bigger Depth Charts:
7 player (What I usually use) - http://userscripts.org/scripts/show/28618
10 player - http://userscripts.org/scripts/show/28619
15 player (Good for ST setting) - http://userscripts.org/scripts/show/28620
22 player (Highly unlikely you'll REALLY need it, but it's there!) - http://userscripts.org/scripts/show/28621
|
coyote4848
|
For some reason, all of these are not going right to install, they are asking to be saved. then when you try download them, you get an error message.
|
mw54finest
|
Do you have Firefox and Greasemonkey?
http://glbscripts.myfreeforum.org/about5.html
|
coyote4848
|
Yes....I downloaded everything else. Now I am getting error reports on everything I try to install from here.
It is asking to "save file(which it didn't used to do, it would go right into install), so I save it. Then it goes into the "downloads" box. But if I try to download anything, a window pops up that says "Window script host", error 'window' is undefined, code 800A1391, source: microsoft JScript runtime error.
|
coyote4848
|
Now it's working again....weird.
|
mw54finest
|
glad it worked out. It almost sounded like Firefox did not know how to handle .js file.
|
SNAITF
|
hey, I like the idea for this as I find this annoying as well, this is what I came up with for a solution
| Code: |
var css = 'html, body {height: 100%;}' +
'html>body #position_players {min-height: 100%;height: auto;}';
addGlobalStyle(css);
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
|
what this does is make the box around the players auto expand to fit them all, no need to ever modify the code.
To explain how this works (not my explaination, google FTW):
First, you have to set the html and body elements height to 100%. This is because your header (or any other element) will need to reference it's containing element's height to properly calculate its own height. You only have to do this in the standards compliant browsers. (Firefox/Safari/Opera, etc).
html>body #header is using what's called a 'Child Selector' which is the '>' character. IE 6 does not recognize those characters, but fully CSS compliant browsers DO(yay Firefox). So we give the layer a minimum height of 100% (ensuring that if there isn't enough content, the layer will always be 100% of the height) and we set the actual height to 'auto' so that the layer will expand if there is more than enough content.
edit: I posted on userscripts as well with props to the RandomBeast
http://userscripts.org/scripts/show/29474
|
|
|
|