User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
manic
offline
Link
 
Originally posted by The Strategy Expert

But when I click on view scripts I don't see any entries for the "home page links"


GLB Team Links
 
Link
 
The only one that is listed is the delete button for inbox. Which doesnt make sense cause I'm also using the shift button to select multiple messages in my inbox, plus i have downloaded many greasemonkey scripts for myspace that also dont show up.
 
Link
 
alrite, need some help. can anyone tell me if there is anything wrong with this script, because it's not working (which means that there is something wrong so that was redundant. lol)

var container=document.getElementById('content')
container.innerHTML = container.innerHTML + '<input type="button" ' +
'value="Team Info" onClick="teaminfo();">' +
'<br><table><tr><td id="td1"></td><td id="td2"></td><td id="td3"></td>' +

'</tr><tr><td id="td4"></td><td id="td5"></td><td id="td6"></td>' +

'</tr><tr><td id="td7"></td></tr><tr><td id="td8"></td></tr></table>'


function teaminfo() {

//Get The Team ID

var teamid=prompt('Team ID:').value

var teamurl="http://goallineblitz.com/game/team.pl?team_id=" + teamid



//Get The Source Code

teamsource = new XMLHttpRequest();

teamsource.open("GET",teamurl);

teamsource.send(null);

if (teamsource.status==200) {

var teamdata = teamsource.responseText



//Table Cells

var td1=document.getElementById('td1')

var td2=document.getElementById('td2')

var td3=documnet.getElementById('td3')

var td4=document.getElementById('td4')

var td5=document.getElementById('td5')

var td6=document.getElementById('td6')

var td7=document.getElementById('td7')

var td8=document.getElementById('td8')



//Team Name

var name=teamdata.split('<div class="big_head subhead_head">')[1]

var name1=name.split('</div>')[0]



//Team Avatar

var avatar=teamdata.split('<div id="team_logo">')[1]

var avatar1=avatar.split('</div>')[0]



//Team Owner

var owner=teamdata.split('<div id="team_owner">Owned by')[1]

var owner1=owner.split('</div>')[0]



//Team GM's

var gm=teamdata.split('<div id="team_gms">GMs:')[1]

var gm1=gm.split('</div>')[0]



//Team Cash

var cash=teamdata.split('<div id="team_cash"><b>Cash</b>:')[1]

var cash1=cash.split('</div>')[0]



//Team Record

var record=teamdata.split('<div id="team_record"><b>Record</b>:')[1]

var record1=record.split('</div>')[0]



//Team League

var league=teamdata.split('<div id="team_league">')[1]

var league1=league.split('(')[0]



//Team Conference

var conference=league.split('(')[1]

var conference1=conference.split(')')[0]



//Team Chemistry

var chemistry=teamdata.split('<div id="chemistry">')[1]

var chemistry1=chemistry.split('</div></div></div></div>')[0] +
'</div></div></div></div>'



//Team Ratings

//Get The Compare Teams Source Code For The Ratings

var compareurl="http://goallineblitz.com/game/compare_teams.pl?team1=" + teamid +

"&team2=" + teamid

compare = new XMLHttpRequest();

compare.open("GET",compareurl);

compare.send(null);

if (compare.status==200) {

var comparedata = compare.responseText

var ratings=comparedata.split('<div class="ratings">')[1]

var ratings1=ratings.split('<div class="clear">')[0] + '</div>'

}



//Team Schedule

var schedule=teamdata.split('<div id="schedule_box">')[1]

var schedule1=schedule.split('</table></div>')[0] + '</table></div>'



//Team's Top Player Threats

var playerthreats=teamdata.split('<div id="top_players">')[1]

var playerthreats1=playerthreats.split('<div class="clear">') + '</div>



//Team's Starting Players

var starters=teamdata.split('<div id="starters">')[1]

var starters1=starters.split('<div class="clear">')[0] + '</div>'



//Insert The Info

td2.innerHTML = '<center><h2>' + name1 + '</h2></center><br>' + avatar1

td4.innerHTML = 'Owner: ' + owner1 + '<br>GMs: ' + gm1 +
'<br>Team Cash: ' + cash1 +

'<br>Record: ' + record1 + '<br>League: ' + league1 +
'<br>Conference: ' + conference1

td5.innerHTML = '<center>' + chemistry1 + '<br>' + ratings1

td6.innerHTML = schedule1

td7.innerHTML = playerthreats1

td8.innerHTML = starters1



}

}

 
jordan274
offline
Link
 
k this thread has convinced me to go back to using FF opposed to my much loved Opera
 
Link
 
lol very good choice
 
manic
offline
Link
 
Originally posted by The Strategy Expert
The only one that is listed is the delete button for inbox. Which doesnt make sense cause I'm also using the shift button to select multiple messages in my inbox, plus i have downloaded many greasemonkey scripts for myspace that also dont show up.


you did install them, right? not just downloaded them somewhere..

go to tools -> addons and see what version of greasemonkey you have
 
manic
offline
Link
 
Originally posted by yomamathecableguy
alrite, need some help. can anyone tell me if there is anything wrong with this script, because it's not working (which means that there is something wrong so that was redundant. lol)


i think you are missing a ' at the end of the var playerthreats1 line, but dont think that is the problem you were looking for

Last edited Jun 9, 2008 17:22:13
 
Link
 
Originally posted by manic
Originally posted by The Strategy Expert

The only one that is listed is the delete button for inbox. Which doesnt make sense cause I'm also using the shift button to select multiple messages in my inbox, plus i have downloaded many greasemonkey scripts for myspace that also dont show up.


you did install them, right? not just downloaded them somewhere..

go to tools -> addons and see what version of greasemonkey you have


Yeah I dont know what happened. I just deleted all of the ones on there and tried to install them again, and now they are showing up and working. Maybe my computer was in a bad mood yesterday.
 
Link
 
This script will add a small chat box to the top of every GLB page (except the front page). It will automatically refresh. Anyone who has this script installed can chat with anyone else who has this script installed. It's more immediate and fast than PM's and the forum. Try it out:

http://userscripts.org/scripts/show/28130
 
Link
 
This one fits into the page a little better. it's not just like a tall building or something, it's a lot wider than the v.1.0 one. plus, it allows you to private chat with other users. even better, the private chats and the main chat are tabbed.

http://userscripts.org/scripts/show/28161
 
jordan274
offline
Link
 
Originally posted by yomamathecableguy
This one fits into the page a little better. it's not just like a tall building or something, it's a lot wider than the v.1.0 one. plus, it allows you to private chat with other users. even better, the private chats and the main chat are tabbed.

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


Might be better if you put it at the bottom of the page so it doesnt mess with the GLB page setups too much
 
Link
 
if you want it at the bottom, edit the code. in the last line (container.innerHTML), put container.innerHTML + '<center>'...etc. and take out the container.innerHTML at the end. so, the final line should be:

container.innerHTML = container.innerHTML + '<center>' + chatbox + '</center>'

btw jordan i love your avatar. lol
 
Link
 
trying to make "Hide" and "Show" buttons for the chat box, but i can't seem to get them to work. anyone see what's wrong? (i know this is like the 5th one today. lol)

function showchatbox() {
var container=document.getElementById('content')
var hideshow="<a href='javascript: showchatbox();'>Show</a> <a href='javascript: hidechatbox();'>Hide</a>"
var chatbox=hideshow + "<iframe src='http://www.planetminibox.com/box/chat/?f055dd60f70f354845d662dfc7dc10bf84bbbd9e' allowtransparency='true' frameborder='0' " + "scrolling='no' width='500' height='350' style='border: 2px solid #000000;'>Sorry, your browser does not support iframes required to view <a " +
"href='http://www.planetminibox.com/' title='MiniBox - The Free, advanced AJAX Shoutbox'>MiniBox Advanced Tagboard with Tabbed Private Messaging</a>" +
"</iframe>"
container.innerHTML = '<center>' + chatbox + '</center>' + container.innerHTML
}

function hidechatbox() {
var container=document.getElementById('content')
var hideshow="<a href='javascript: showchatbox();'>Show</a> <a href='javascript: hidechatbox();'>Hide</a>"
container.innerHTML = hideshow + container.innerHTML
}

var container=document.getElementById('content')
var hideshow="<a href='javascript: showchatbox();'>Show</a> <a href='javascript: hidechatbox();'>Hide</a>"
container.innerHTML = hideshow + container.innerHTML
 
Gazeruth
offline
Link
 
Hey all, firstly kudos to the guys writing these scripts, they're brilliant!

Anyone know how difficult it would be to make a script to display the current score on the Replay pages?

I like to watch the games play-by-play but watching the replays.. but I kinda lose track of the score at time.. would it be possible to do?

Cheers again all!
 
Link
 
Originally posted by Gazeruth
Hey all, firstly kudos to the guys writing these scripts, they're brilliant!

Anyone know how difficult it would be to make a script to display the current score on the Replay pages?

I like to watch the games play-by-play but watching the replays.. but I kinda lose track of the score at time.. would it be possible to do?

Cheers again all!


That's what post-it notes are for! Just write it down. Just kidding. I'm the same way and I think it was brought up very early on in the thread. There was one script that gave you a score update when you're watching the "Watch" play by play populate, but as far as getting a score on the dot play by play screens it hasn't been done yet that I know of, but it would be nice I agree.
 
Page:
 


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