User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz > Greasemonkey Scripts > Greasemonkey Scripts (original thread)
Page:
 
Forest21
offline
Link
 
I've made two scripts recently that can both be found on this page- http://userscripts.org/users/54038/scripts

"Forum Page Links" adds seperate links to pages in a thread. If it has >10 then it will show the first seven and then the last three.
example- http://img165.imageshack.us/img165/8080/forumpagelinksexampleup6.png
"Watch Game Score" will show an update of the score so far on the play-by-play page whenever a TD or FG is made. Works the same when "watching" the plays appear as well.
example- http://img329.imageshack.us/img329/9374/watchgamescoreexamplepj9.png
Last edited May 27, 2008 12:26:12
 
tobias funke
offline
Link
 
Originally posted by Forest21
I've made two scripts recently that can both be found on this page- http://userscripts.org/users/54038/scripts

"Forum Page Links" adds seperate links to pages in a thread. If it has >10 then it will show the first seven and then the last three.
example- http://img165.imageshack.us/img165/8080/forumpagelinksexampleup6.png
"Watch Game Score" will show an update of the score so far on the play-by-play page whenever a TD or FG is made. Works the same when "watching" the plays appear as well.
example- http://img329.imageshack.us/img329/9374/watchgamescoreexamplepj9.png


You are a f*cking genius.
 
Link
 
hey i've been using javascript for a while so i figured i would try greasemonkey out. i made this script (kind of a test script) that places a navigation menu in the toolbar for glb. i can't figure out what's wrong with it though. probably some small mistake that i'm overlooking. any help?

http://www.sendspace.com/file/kv3hze
 
Forest21
offline
Link
 
http://www.sendspace.com/file/cv9eo4

The first parameter needed to be enclosed with ' since its a string and there was no need for the function declaration in front of the GM_registerMenuCommand.
 
Link
 
thanx a lot. the site i looked at told me that you needed function in front of it. thanx a lot though.
 
Forest21
offline
Link
 
The update to the stickies somewhat broke the "Forum Page Links" script. I updated the script on the original page - http://userscripts.org/scripts/show/27320

Should work fine now (thanks to russdwright for bringing it to my attention)
 
joryman
offline
Link
 
first, awesome scripts! second i updated the script (forum) and now it does not work
 
Forest21
offline
Link
 
How does it not work? Are the page links showing up for no threads or just the non-sticky threads?
 
joryman
offline
Link
 
no threads for me.
 
Forest21
offline
Link
 
Ok could you try it again? I just updated it. Also, what browser are you using?
 
joryman
offline
Link
 
just tried it again still not working. using firefox 2.0.0.14
 
Forest21
offline
Link
 
Ugh. I can't figure out what's wrong, it works fine on my end. Does your error console say anything (Tools>Error Console)?
 
joryman
offline
Link
 
Here it is, i deleted part of the error, it was irrelevant.

Error: document.getElementsByClassName is not a function
Source File: file:///C:/Documents%20and%20Settings/DELETED/Application%20Data/Mozilla/Firefox/Profiles/27by3vu9.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D/components/greasemonkey.js
Line: 366
 
Forest21
offline
Link
 
Ah. I see. Should be working now. I had changed the line from getELementsByClassName() to document.getElementsByTagName and when I switched it back I forgot to delete the 'document.' part.

http://userscripts.org/scripts/show/27320
 
joryman
offline
Link
 
it works now. Thank you its a great script.
 
Page:
 


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