Bungie.net Community
This topic has moved here: Subject: Script Central> All GM Scripts Here!
  • Subject: Script Central> All GM Scripts Here!
Subject: Script Central> All GM Scripts Here!

AV=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
BG=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif

DOM manipulation through regular expressions is the worst thing ever.

Posted by: Skittles x
Oh, It's you... It's been a Loooong time...

Random Portal 2 references aside, Hello guys!

Do you remember that script I wrote a while back that never quite worked properly... then Bungie released the "New new new hawtness" and I sort of gave up on it? Well I promised I'd fix it, and I did... It just took me 2 years to do, lol. (A day and a half of work, but I've been putting it off)

So here you go!

Group Forum Menu 3.0

For those unfamiliar with the script, see my original post, here.

I've rewritten most of it. Now it uses Bungie's CSS for the most part and utilizes cookies for faster runtime and lower overhead (AJAX calls are only made if there is no cookie).

Additionally, since I am no longer relying on the asynchronous AJAX calls to get my data, I was able to sort the list! (On first load the list will not be sorted since it is being generated from the AJAX calls. Refresh to fix if it really bothers you.)

Here is a screenshot of the newest version.

I've got a bit of code cleanup to do, so there will likely be another version coming shortly. It will not add any features though, so I probably wont post about it.

There is still a very minor bug that I intend to fix at some point as well. Just a visual thing... When you scroll over the "Private Groups" link in the menu, the arrow disappears. (You'll see when you download it). Probably easy to fix. =)


Enjoy.

edit: Userscripts.org seems to be having difficulties... Here is a direct link to use until they fix it.


yaaay

[Edited on 05.01.2011 6:43 PM PDT]

  • 05.01.2011 6:41 PM PDT
  • gamertag: tsassi
  • user homepage:

I have a serious problem with these greasemonkey scripts. Every time I use them for few hours, my internet connection slows down drastically.

For comparison I got these Speedtest results with my scripts on just a moment ago:

Download: 1.77 Mbps
Upload: Never ended but last number I saw before relodaing the page was 0.04 Mbps

These were few minutes after I had turned all my scripts off:

Download: 45.53 Mbps
Upload: 3.05 Mbps


That's quite a drastic change if you ask me. What's up with it?

  • 05.03.2011 8:50 AM PDT
Subject: Script Central> Reach Around Your Friends; Save Post


Posted by: Iggyhopper
Post is currently WIP due to new bungie site update with quote tags

First off, these are my scripts, in order of arrival.
Coup D Bungie
Coup D Bungie - Hex Codes
http://gallery.redvsbluewars.net/Coppermine/albums/userpics/1 0020/Title_Bars.JPG
Member TB - #27282C
Heroic Member TB - #323A3D
Legendary Member TB - #4C4C4C
Mythic Member TB - #103349
Forum Ninja TB - #3A2514
Forum Ninja TB Outline* - #DDAB78
Bungie Employee TB - #715C0D
Bungie Employee TB Outline* - #E4D57A
Superintendent TB - #3B4932
Superintendent TB Outline* - #8EAB7B
*Text is the same color

Requests
Default Text - #BBBBBB
Default Links - #71CAEF
Post Background - #1B1D1F

Thanks.

  • 05.03.2011 1:25 PM PDT
Subject: Script Central> All GM Scripts Here!

Posted by: tsassi2Are you using a shared internet connection? For example; a public wifi, university, or the likes. If you are it could be a high traffic time of day when your online.

If not, try deleting some obsolete or unneeded scripts.

  • 05.03.2011 10:22 PM PDT
  • gamertag: tsassi
  • user homepage:

Posted by: Luke35120
Posted by: tsassi2Are you using a shared internet connection? For example; a public wifi, university, or the likes. If you are it could be a high traffic time of day when your online.

If not, try deleting some obsolete or unneeded scripts.

I use private connection. I'm pretty sure it's the scripts. That's why I'm currently testing which of my scripts is the cause of that problem. I turned my coup off to see what happens.

  • 05.04.2011 3:51 AM PDT

Posted by: tsassi2
Posted by: Luke35120
Posted by: tsassi2Are you using a shared internet connection? For example; a public wifi, university, or the likes. If you are it could be a high traffic time of day when your online.

If not, try deleting some obsolete or unneeded scripts.

I use private connection. I'm pretty sure it's the scripts. That's why I'm currently testing which of my scripts is the cause of that problem. I turned my coup off to see what happens.
I'd suggest deleted the scripts you don't need.

  • 05.04.2011 7:49 AM PDT

Halo Waypoint Superintendent // Forger // Junior Games & Web Developer.

Halo4ger.com - Founder/Admin.

@DerFlatulator

Reaching Perfection || Blueprint -- Action Sack Lead

Can someone help me with HTML for the following:
Create a button (like the reply button), when clicked, it adds text to the post reply field.
I can get it to work via a message box... It's being odd...

  • 05.04.2011 7:54 AM PDT

Posted by: Der Flatulator6
Can someone help me with HTML for the following:
Create a button (like the reply button), when clicked, it adds text to the post reply field.
I can get it to work via a message box... It's being odd...

var btn = document.createElement("input");
btn.type = "button";
btn.value = "Hello World!";
btn.onclick = function(){

//Do stuff when the button is clicked

}

//Add btn to DOM here somewhere

You'll probably have some issues with the reply box when you hit the quote button too. Although I'm not exactly sure on this, I'm fairly sure that when the response comes back from the server, the entire box is re-rendered/re-added to the current DOM, replacing the old one. Meaning, if you had any variables in your script which referenced the original reply box, they are now lost. There's probably a good way to fix that, but I just did it by continually polling the page at regular intervals for the element, then adding the reference back to the script.

  • 05.04.2011 8:10 AM PDT

Posted by: Changsta inc
Racism isn't wrong if it's funny.

Wow. This is like trying to read a different language.

eye nead 2 edumahcate mah salf

  • 05.04.2011 8:30 AM PDT
  • gamertag: [none]
  • user homepage:

Talk to the Soul | ~B.B. | Know Your Duardo |  | Hero | ISFJ | 77135 | 94371

"It's not who I am underneath, but what I do that defines me."

Posted by: tsassi2
Posted by: Luke35120
Posted by: tsassi2Are you using a shared internet connection? For example; a public wifi, university, or the likes. If you are it could be a high traffic time of day when your online.

If not, try deleting some obsolete or unneeded scripts.

I use private connection. I'm pretty sure it's the scripts. That's why I'm currently testing which of my scripts is the cause of that problem. I turned my coup off to see what happens.
Coup usually has the longest loading times as it needs to load all of the images (which are usually gifs) from different websites.

  • 05.04.2011 2:14 PM PDT

Left here a long time ago.

Posted by: dazarobbo
You'll probably have some issues with the reply box when you hit the quote button too. Although I'm not exactly sure on this, I'm fairly sure that when the response comes back from the server, the entire box is re-rendered/re-added to the current DOM, replacing the old one.
This is exactly how ASP.NET (Bungie.net's framework) works, yes. Did some research on the subject while trying to crack the quote button.

Posted by: dazarobbo
Meaning, if you had any variables in your script which referenced the original reply box, they are now lost. There's probably a good way to fix that, but I just did it by continually polling the page at regular intervals for the element, then adding the reference back to the script.
Polling as in setTimeout/setInterval? Why not just get the element by ID again each time you use it? The ID never changes, so even when the element is replaced, var textbox = document.getElementById("ctl00_mainContent_postForm_skin _body") would return a valid reference.

  • 05.04.2011 2:18 PM PDT

Posted by: Nannerpus
Wow. This is like trying to read a different language.

eye nead 2 edumahcate mah salf
It is a different language, silly.

  • 05.04.2011 4:49 PM PDT

AV=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif
BG=http://avatar.coolclip.ru/albums/Avatars/Avatars%2090x90/A vatars_90x90_022.gif

Posted by: DavidJCobb
Posted by: dazarobbo
You'll probably have some issues with the reply box when you hit the quote button too. Although I'm not exactly sure on this, I'm fairly sure that when the response comes back from the server, the entire box is re-rendered/re-added to the current DOM, replacing the old one.
This is exactly how ASP.NET (Bungie.net's framework) works, yes. Did some research on the subject while trying to crack the quote button.

Posted by: dazarobbo
Meaning, if you had any variables in your script which referenced the original reply box, they are now lost. There's probably a good way to fix that, but I just did it by continually polling the page at regular intervals for the element, then adding the reference back to the script.
Polling as in setTimeout/setInterval? Why not just get the element by ID again each time you use it? The ID never changes, so even when the element is replaced, var textbox = document.getElementById("ctl00_mainContent_postForm_skin _body") would return a valid reference.
AJAX goes well with ASP.NET, ASP.net is set up for it quite well, which basically means you dont have to reload the whole page to get something changed or something to happen.

When you click quote. You say "I just want quote data." It gives you the quote data, and then you manipulate the textbox and add it in.

However, bungie.net, or ASP.net replaces the whole textarea. via HTML. This removes any references and events attached to it IIRC.


var textbox = get(...);

button.addEventListener(... function ... textbox = get(...); )

[Edited on 05.05.2011 1:38 AM PDT]

  • 05.05.2011 1:29 AM PDT

Posted by: DavidJCobb
Posted by: dazarobbo
Meaning, if you had any variables in your script which referenced the original reply box, they are now lost. There's probably a good way to fix that, but I just did it by continually polling the page at regular intervals for the element, then adding the reference back to the script.
Polling as in setTimeout/setInterval? Why not just get the element by ID again each time you use it? The ID never changes, so even when the element is replaced, var textbox = document.getElementById("ctl00_mainContent_postForm_skin _body") would return a valid reference.
That works, but for one specific script I wrote, the event handler for the keyup event must be bound to it [the textbox] for everything to work. That's why I need the constant polling (kinda hacky) to check if the element exists and rebind the event listener to it.

But yes, WebForms are kinda weird. Check out the raw response from the server on a postback if you haven't already. It's... interesting the way it's structured.

  • 05.05.2011 1:47 AM PDT
  • gamertag: [none]
  • user homepage:

Open this page
Then play this song
You're welcome

Is there a script that scrolls automatically back up to the top of your profile page when you use Coup? It's not a big deal, but it would be nice.

  • 05.09.2011 1:28 AM PDT
  • gamertag: [none]
  • user homepage:

Talk to the Soul | ~B.B. | Know Your Duardo |  | Hero | ISFJ | 77135 | 94371

"It's not who I am underneath, but what I do that defines me."

You could hit the "Home" key on your keyboard.
Posted by: TheMaverick444
Is there a script that scrolls automatically back up to the top of your profile page when you use Coup? It's not a big deal, but it would be nice.

  • 05.10.2011 8:27 PM PDT

Halo Waypoint Superintendent // Forger // Junior Games & Web Developer.

Halo4ger.com - Founder/Admin.

@DerFlatulator

Reaching Perfection || Blueprint -- Action Sack Lead

I know this is slightly off topic, but the API group is dead and I need a bit of tech help from people who might have some experience.
I am writing a VB app that pulls your Stats and gets Challenges (alerts you through the notification area when new challenges are available too :D)
I'll give you a couple of images to show my progress:
#1 | #2

I would like to add TOP commendations and medals for FF Matchmaking, MM, and Campaign.

Specifically, Commendations for MM :
How do I link the GameMetaData() to what the GetPlayerDetails() gives me?

EDIT: Never mind the above question. But for some reason when I try to save the data retrieved by the GetGameMetaData(identifier) function, It crashes, returning The maximum message size quota for incoming messages (65536) has been exceeded.
This usually does not happen...
The GetPLayerDetails() and GetCurrentGlobalChallenges() functions work flawlessly though........... HELP?



EDIT AAGAIIIN::

NEVER MIND. PROBLEM SOLVED...

[Edited on 05.12.2011 12:11 AM PDT]

  • 05.10.2011 11:59 PM PDT

Left here a long time ago.

Posted by: dazarobbo
That works, but for one specific script I wrote, the event handler for the keyup event must be bound to it [the textbox] for everything to work. That's why I need the constant polling (kinda hacky) to check if the element exists and rebind the event listener to it.
Tip: bind the listener to an ancestor node and before doing anything, check to make sure that the event.target.id equals that of the textarea. You won't need to re-bind whenever the textarea is replaced.

[Edited on 05.11.2011 3:03 AM PDT]

  • 05.11.2011 2:59 AM PDT
Subject: .
  • gamertag: tcEDGE
  • user homepage:

Here's a question:

Is there anyway to actually VIEW an old post made by a banned user.

  • 05.11.2011 11:10 AM PDT

Halo Waypoint Superintendent // Forger // Junior Games & Web Developer.

Halo4ger.com - Founder/Admin.

@DerFlatulator

Reaching Perfection || Blueprint -- Action Sack Lead

Posted by: Tcreavis
Here's a question:

Is there anyway to actually VIEW an old post made by a banned user.
I believe only mods can do that, they click 'Reveal' above the post.

  • 05.12.2011 12:10 AM PDT

The distance between insanity and genius is measured only by success.

OTK

I need your clothes, your boots and your mobility scooter


Posted by: Tcreavis
Here's a question:

Is there anyway to actually VIEW an old post made by a banned user.
You can look at their post history and see it on there.

  • 05.12.2011 12:15 AM PDT
  •  | 
  • Exalted Legendary Member


Posted by: ian1706

Posted by: Tcreavis
Here's a question:

Is there anyway to actually VIEW an old post made by a banned user.
You can look at their post history and see it on there.
You can only see part of it that way.

  • 05.16.2011 5:01 PM PDT

Posted by: Big Black Bear
What are we supposed to be discussing here?


"Nothing in the 'Verse can stop me."

Is there a working time zone convertor around?

  • 05.18.2011 5:25 AM PDT

The distance between insanity and genius is measured only by success.

OTK

I need your clothes, your boots and your mobility scooter

I don't think there is. I was trying to find one the other week too.

  • 05.18.2011 8:52 AM PDT

Posted by: Big Black Bear
What are we supposed to be discussing here?


"Nothing in the 'Verse can stop me."

Posted by: ian1706
I don't think there is. I was trying to find one the other week too.

I'd be happy with it and a working Chrome version of the sentbox. If only.

  • 05.18.2011 9:28 AM PDT