User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
karma99
offline
Link
 
Originally posted by athrun340
can somebody help me??

this is the no blue boxes for unspent SP script


I'll have a crack, seeing as it's one of mine


You need to set the players ID's at the top of the script for the players who you want to hide the blue boxes for.

Your player's ID's are 256743,330912 and 598768, so if you want to hide blue boxes for all 3 you need to change this...
var players=new Array('123456','234567');
into this...
var players=new Array('256743','330912','598768');

That help?
 
athrun340
offline
Link
 
^like this? its still not working

Originally posted by
// ==UserScript==
// @name GLB No SP Blue
// @namespace www.goallineblitz.com
// @description Removes blue boxes from leveled players with unspent SP
// @include http://goallineblitz.com/game/home.pl
// ==/UserScript==

// Add player id's here Array('123456'); for just 1, Array('123456','234567','345678'); etc for more
var players=new Array('256743','330912','598768');
//////////////////////////////////////////

window.setTimeout(function(){

var divs=getElementsByClassName('content_container_sp player_box',document.getElementById('players');
if (divs)
{
for(i=0;i<divs.length;i++)
{
for(ii=0;ii<players.length;ii++)
{
if(divs.innerHTML.split('<a href="/game/player.pl?player_id='+players[ii]).length>1)
{
divs.setAttribute('class','content_container player_box');
}
}
}
}
});

function getElementsByClassName(classname, par)
{
var a=[];
var re = new RegExp('\\b' + classname + '\\b');

var els = par.getElementsByTagName("*");

for(var i=0,j=els.length; i<j; i++)
{
if(re.test(els.className))
{
a.push(els);
}
}
return a;
};p/quote]
 
karma99
offline
Link
 
I assuming you don't actually have p/quote] at the end of the script and that's just a "pasting" issue posting it?
 
athrun340
offline
Link
 
Originally posted by karma99
I assuming you don't actually have p/quote] at the end of the script and that's just a "pasting" issue posting it?


yup

maybe i need to add asterisk at the end of http://goallineblitz.com/game/home.pl ?
 
karma99
offline
Link
 
Aha, pasted it in and tried it, you've lost a bracket in yout travels!

var divs=getElementsByClassName('content_container_sp player_box',document.getElementById('players'));

Note the double close bracket at the end
 
athrun340
offline
Link
 
Originally posted by karma99
Aha, pasted it in and tried it, you've lost a bracket in yout travels!

var divs=getElementsByClassName('content_container_sp player_box',document.getElementById('players'));

Note the double close bracket at the end


its still not working.. wait maybe its because I have mozilla firefox version 2?
 
karma99
offline
Link
 
Originally posted by athrun340
Originally posted by karma99

Aha, pasted it in and tried it, you've lost a bracket in yout travels!

var divs=getElementsByClassName('content_container_sp player_box',document.getElementById('players'));

Note the double close bracket at the end


its still not working.. wait maybe its because I have mozilla firefox version 2?


Nope, I have 2.0.0.15 and it's fine
I'd uninstall the script, download it again, open it from the Manager User Scripts and make the change to the player ID's at the top (touch nothing else!) then save it and hit refresh on your home page.
 
athrun340
offline
Link
 
yay it worked.. the problem was there was no space in between the word "more" and "var".. I was editing it using notepad and for some reason notepad didn't format the script.. it was just a straight line

anyway, thx for helping me karma99 and randombeast
 
karma99
offline
Link
 
Originally posted by athrun340
yay it worked.. the problem was there was no space in between the word "more" and "var".. I was editing it using notepad and for some reason notepad didn't format the script.. it was just a straight line

anyway, thx for helping me karma99 and randombeast


No worries, got to keep the customers happy
Incidentally I highly recommend Notepad 2 http://www.flos-freeware.ch/notepad2.html for script editing, keeps nice formatting, highlights the javascript and makes the whole thing much easier.
 
beaverstubble
offline
Link
 
could someone please post the script again for the new email notification. have it at work, but would like it at home. just can't seem to find it.
 
karma99
offline
Link
 
Originally posted by beaverstubble
could someone please post the script again for the new email notification. have it at work, but would like it at home. just can't seem to find it.


http://glbscripts.myfreeforum.org/about21.html
 
beaverstubble
offline
Link
 
Originally posted by karma99
Originally posted by beaverstubble

could someone please post the script again for the new email notification. have it at work, but would like it at home. just can't seem to find it.


http://glbscripts.myfreeforum.org/about21.html


thanks mate.
 
Klunck
offline
Link
 
Has anyone made a script that organizes your roster according to date of contract expiring?
 
sdt74
offline
Link
 
Well, i installed most scripts available and everything worked fine. I turned off my computer and the next day when i turned it back on and got to GLB, the greasemonkey was still installed but the scripts were gone?
Anyone experiencing this problem?

Thanks in advance for any reply.
 
Jax_beezie
offline
Link
 
Here is a question is it possible with this script to get a list of threads a person has posted in....would make it easier to find the threads i have posted in when looking for a team and recruiting and such....not sure of possible but wont happen if i dont ask
 
Page:
 


You are not logged in. Please log in if you want to post a reply.