dbm1175
|
Another Friends List ScriptI've created another script to add a Friends List to GLB. My script is a bit different from other GLB friends scripts in that:
It modifies all *other* users pages to have an "Add Friend" or "Delete Friend" link.
It stores the list of friends in a GreaseMonkey variable, so you don't have to edit the code.
It fires off asynchronous XML HTTP requests to each of your friend's home pages and then scrapes them for the user ID and time of last logon.
Feedback, suggestions, and comments welcome!
|
Serenity
|
I don't see any "add friend" links
|
StazNasty
|
| Serenity wrote: | | I don't see any "add friend" links |
+1
|
karma99
|
Excellent code commenting
|
dbm1175
|
RE: Serenity's Comment | Serenity wrote: | | I don't see any "add friend" links |
Serenity, could you post the messages from the error console that are shown when you load one of your friend's profile pages?
|
dbm1175
|
| karma99 wrote: | Excellent code commenting  |
Code it right... Or comment it well enough that someone else can.
|
Serenity
|
Re: RE: Serenity's Comment | dbm1175 wrote: | | Serenity wrote: | | I don't see any "add friend" links |
Serenity, could you post the messages from the error console that are shown when you load one of your friend's profile pages? |
It says
GM_getValue("friends") is undefined
On line 99
|
dbm1175
|
Re: RE: Serenity's Comment | Serenity wrote: |
It says
GM_getValue("friends") is undefined
On line 99 |
Thank you for your help Serenity! I forgot to go back and check what would happen under the conditions of a clean install!! DOAH.
I believe I have it corrected and I've uploaded a new version of the script.
|
Tim Harper
|
Added it and love having the players there for quick reference.
Tim Harper
|
raiderSGA
|
edit: got it .... works very nice, and very handy
|
dbm1175
|
RE: Order of Friends in ListI've gotten a few folks asking me about the order of the friends in the list. Because of the nature of the asynchronous XMLHTTP calls to each of your friends pages, they will show up in somewhat random order. Usually, if the GLB server is responding quickly, they will show up close to the order you added them in. But the script simply adds them to the page in the order the data comes back in.
|
dusk2k3
|
Is there a way to alter the code so that the friends list uses the GLB "Online"/"Offline" functionality?
|
dbm1175
|
RE: Online / Offline | dusk2k3 wrote: | | Is there a way to alter the code so that the friends list uses the GLB "Online"/"Offline" functionality? |
Good question! I'd not thought of that. I'll look into it and see if I can figure it out.
|
rlranger
|
wow thanks this is easier that the other one
|
mw54finest
|
You might consider hosting your screenshots at photobucket or something. It is taking a looooong time to load.
Thanks for the script!
|
DrewRyan66
|
..
|
Cohen Domination
|
Whenever you hit remove friend, it deletes everyone on the friend list and you have to go back and add everyone. Only bug I found.
|
mw54finest
|
Hey, not fair using me as a friend. I don't have any friends.
|
dotman15
|
for some reason my friends randomly get deleted at times and sometimes when i add a friend it shows up double. Just a couple bugs i noticed
|
|
|