User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
Link
 
Nevermind, I got it.....duh
 
mw54finest
offline
Link
 
tools from Firefox menu, or
Right click on the monkey icon, then Manage User Scripts.
 
mw54finest
offline
Link
 
Originally posted by Vilita
What does it do?


"This removes the specified private team forum(s) from the main forum page"
Is the description of it. I have not installed it to see if it works. I thought this was what you were looking for.
 
Vilita
offline
Link
 
Originally posted by mw54finest
Originally posted by Vilita

What does it do?


"This removes the specified private team forum(s) from the main forum page"
Is the description of it. I have not installed it to see if it works. I thought this was what you were looking for.


Its part of what I'm looking for, I have it installed and don't see anywhere to specify what forums I want to remove.
 
Vilita
offline
Link
 
Originally posted by Vilita
Originally posted by mw54finest

Originally posted by Vilita


What does it do?


"This removes the specified private team forum(s) from the main forum page"
Is the description of it. I have not installed it to see if it works. I thought this was what you were looking for.


Its part of what I'm looking for, I have it installed and don't see anywhere to specify what forums I want to remove.


I've figured it out.

This script is pretty much useless, all it does is delete the forum in the first position on your list (or another position that you specify)

If you join a new team, or leave one, you have to recode the script every time. Additionally it does nothing to allow modifications to the other forums
 
mw54finest
offline
Link
 
That script by default removes the 1st private forum. I was able to remove the 1st and 2nd one by adding:

[code]
var forum2 = "2"
var forum2num=parseInt(forum2) - 2
var forum2final = 22 - forum2num

var forums=getElementsByClassName('alternating_color2 forum',document)

forums[forum2final].style.display="none"
[/code]

at the end. I am not a coder/developer so I am not sure how his script works. I suggest wait for yomamathecableguy to publish this script.
 
Vilita
offline
Link
 
I'm telling you how it works.

It only works if GLB never adds any new forums and you never join/leave any teams other than the ones you are on right now. Its positional so it will always remove the (22nd) forum in your list. So if GLB adds a new forum then the Africa forum will be gone from your list instead of the first team forum in your list etc.

The script is only hiding the 22nd table row and not looking for a specific forum.

So its use is minimal and people should be warned of this before installing as there is no documentation
 
mw54finest
offline
Link
 
You are correct. That is how the script is created.
I don't know if yomamathecableguy had any intention of publishing this script. I posted the link thinking that was what you were looking for.

Please as with anything, word of caution for all users.
Use scripts at your own risk!

Also added your comment to glbscripts forum.
Last edited Jun 22, 2008 21:50:53
 
Vilita
offline
Link
 
Great! If anyone is interested, as opposed to the base 21 used in the original script for team forum use you can simply re-code it as follows:

From "//Position of Team Forum (1,2,etc.)" and below:

//Position of Forum with Announcements at 0 (0,1,2 ...)
var forum1 = "1"
var forums=getElementsByClassName('alternating_color2 forum',document)
forums[forum1].style.display="none"



This code as-is would remove the Suggestions forum from your list for as long as they remain the 2nd and 3rd forum on the list. You can easily replace the # 1 in the first line of code with any of the following numbers to remove any of the GLB standard forums from your list, again, assuming no forums are added or removed to the list at which point it may have to be recoded. To remove multiple forums, simply copy and paste and change the '1' to the corresponding forum.

0- Announcements
1- Suggestions
2- Bugs
3- FAQs
4- GoalLineBlitz
5- Game Recaps

6- Teams Looking for Players
7- Players Looking for Teams
8- Team Press Releases
9- Trading Block

10- Free For All
11- Trash Talkin'
12- Introductions

13- USA
14- Canada
15- Europe East
16- Europe West
17- Oceania
18- South America
19- Southeast Asia
20- Africa

21-??? Team Forums in order of appearance


I have found this particularly useful to remove from my forum list the Regional Forums which I have no players playing in those league and hence no interest in. I have actually found this more useful then its intended use as a team forum remover as it is assumingly less likely that these number associations will change for the standard GLB forums, while the number associations for a players teams will change every time they join or leave a club, or a club grants forum access to the player.
Last edited Jun 22, 2008 22:07:39
 
Vilita
offline
Link
 
I've uploaded my version of the original script that idiot-proofs the process

http://userscripts.org/scripts/show/28951
 
mw54finest
offline
Link
 
Originally posted by Vilita
I've uploaded my version of the original script that idiot-proofs the process

http://userscripts.org/scripts/show/28951


Also added to http://glbscripts.myfreeforum.org/about40.html
 
Vilita
offline
Link
 
You should hit enter after the last line of your posts on that forum, the URL's kind of blend into the ads
 
mw54finest
offline
Link
 
Originally posted by Vilita
You should hit enter after the last line of your posts on that forum, the URL's kind of blend into the ads


You mean to tell me you don't have adblock+ installed? It wipes the ads clean so you don't see any.

I just checked with IE and I see your point now. But you really should install adblock+ add-on.
 
Vilita
offline
Link
 
Originally posted by mw54finest
Originally posted by Vilita

You should hit enter after the last line of your posts on that forum, the URL's kind of blend into the ads


You mean to tell me you don't have adblock+ installed? It wipes the ads clean so you don't see any.

I just checked with IE and I see your point now. But you really should install adblock+ add-on.


I don't go to porn or warez sites so I rarely see any ads to begin with
 
mw54finest
offline
Link
 
lol! you got me there! err, no I don't go to those sites either.

I made the URL bold. I also had to add ".", it wouldn't add space at the end.

Vilita, if you code, you should register there so you can post your codes.
 
Page:
 


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