mw54finest
|
Private Team Forum Removerby yomamathecableguy
This removes the specified private team forum(s) from the main forum page.
http://userscripts.org/scripts/show/28573
|
mw54finest
|
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"
|
at the end. If you replace this with all forum1 reference, it will only remove the 2nd private forum from the list.
I am not a coder/developer so I am not sure how his script works. I suggest wait for yomamathecableguy to publish this script.
|
mw54finest
|
word of warning from vilita
| Vilita wrote: | 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
|
| Vilita wrote: | 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:
| Code: |
//Position of Team Forum (1,2,etc.)
var forum1 = "1"
var forums=getElementsByClassName('alternating_color2 forum',document)
forums[forum1].style.display="none"
|
This code would remove the Suggestions & Bugs forums 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.
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. |
|
mw54finest
|
Modified version:
http://glbscripts.myfreeforum.org/about40.html
|
|
|