manic
|
Ownership expiration day on team profile
Be sure to change the team id from 1002 to your own team id in both places
| Code: |
// ==UserScript==
// @name GLB Team Expiration
// @description Adds the day ownership expires to the team profile page for the owner.
// @include http://goallineblitz.com/game/team.pl?team_id=1002
// ==/UserScript==
GM_xmlhttpRequest({
method: 'GET',
url: 'http://goallineblitz.com/game/extend_team.pl?team_id=1002&action=Select',
headers: {
'User-agent': 'Mozilla/4.0 (compatible) Greasemonkey',
'Accept': 'application/atom+xml,application/xml,text/xml',
},
onload: function(expday) {
var response1=expday.responseText
var newmsg=response1.split('<b>Expiration Day:</b> ')
var newmsg1=newmsg[1].split('<br>')
var newmsgfinal=newmsg1[0]
var container=document.getElementById('team_owner')
container.innerHTML = '<b>Expiration Day:</b> ' + newmsgfinal + '<br>' + container.innerHTML
}
});
|
|
coyote4848
|
Can you walk me through this? I have no idea how to put a code in.
|
manic
|
| coyote4848 wrote: | | Can you walk me through this? I have no idea how to put a code in. |
http://www.fantasymvp.net/glb-expiration.user.js
After you install the script you will need to go to manager user scripts, click the script in the list and the included url to change the 9999 to your team id#, then click the edit button below the list of scripts to edit the script and replace the 9999 in it with your team id also..
|
Turbo5351
|
I still can not get this one to work. I only see one place to change my ID number
|
keithj
|
This doesn't seem to be working. Nothing is appearing for me.
|
ddcunderground
|
ok go to tools greasemonkey manage user scripts
select your GLB Expiration script and then select the included pages in the right half then click on edit as seen in the pic below
change the team_id to your team id
then back on the manage users script window (with GLB Expiration select) click on the edit button on the bottom of the window.
it will open your script editor find the line
// @include http://goallineblitz.com/game/team.pl?team_id=4518
change the team_id to your team id
go about 5 lines down and you will see this line
url: 'http://goallineblitz.com/game/extend_team.pl?team_id=4518&action=Select',
change the the team_id to your team id
that should do ya.
|
keithj
|
That worked. Thanks.
|
Turbo5351
|
After i change the id under the manage user scripts i hit add, then i select GLB Team Expiration and hit edit it opens up my desktop and i do not get the page that i have to have to adjust the next line. What am i doing wrong?
From what i can figure is when i hit edit it wants to know where i downloaded the script to to open and edit it. And i have no idea where the scripts download to.
|
pats4892
|
| Turbo5351 wrote: | After i change the id under the manage user scripts i hit add, then i select GLB Team Expiration and hit edit it opens up my desktop and i do not get the page that i have to have to adjust the next line. What am i doing wrong?
From what i can figure is when i hit edit it wants to know where i downloaded the script to to open and edit it. And i have no idea where the scripts download to. |
same here
|
ddcunderground
|
I believe when you are hitting edit if you have not edited a script before then it is asking what application you want to use to open the script. In the popup box after you hit edit Goto c:\windows\notepad.exe unless you have another text editor. DO NOT USE Microsoft Word that is in Microsoft Office or any parrellel (microsoft works, etc). The reason is that these add extra heading information that will inhibit your script from functioning.
|
Turbo5351
|
great i would try that but i clicked the wrong thing now it automatically opens a foxfire window when i hit edit i can not fix it back.
|
ddcunderground
|
ok so here is how you reset that
open firefox and in the address bar enter about:config
it will show you this screen
Click to see full size image
after you click ok I will be careful
find greasemonkey.editor
Click to see full size image
double click on it delete anything in the popup window and close firefox. when you attempt to edit it again it will prompt you for the app again.
|
Turbo5351
|
wow your great thanks for the help works now
|
|
|