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!

Posted by: Commander GX
Bungie.Match.com: Our Johnson knows what the ladies like.


Posted by: the panzie man

Posted by: dazarobbo
Posted by: Iggyhopper
regex + innerHTML is bad. NOOOOOOOOOoooooooooooo
Ordinarily I'd agree, however:

- If it's a performance issue, then with large strings and 0 or more quantifiers I can see how. In this case it isn't. All were doing is replacing a very small string.

- If it's a security issue by way of XSS or something (like what David was saying), then, again, ordinarily that would be an issue. Here we're not even touching any HTML entities and this particular regex is able to get to everything. I concede that if it were a Javascript string literal within a script itself in the HTML, then it would be an issue.

- If it's a general concern that you should use a DOM parser and go modify the textContent value (again, as David was saying) rather than regex-ing straight HTML, that's open to debate (see the multiple arguments of stackoverflow for reference). Generally I would agree and go with the DOM (as I usually do with parsing HTML in PHP), but I think most of us here know the bungie.net HTML pretty well, so again, I don't think it's of great concern.


This post makes me wish I understood it.

I must learn.

  • 09.29.2011 4:41 AM 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: dazarobbo
Posted by: Iggyhopper
regex + innerHTML is bad. NOOOOOOOOOoooooooooooo
Ordinarily I'd agree, however:

- If it's a performance issue, then with large strings and 0 or more quantifiers I can see how. In this case it isn't. All were doing is replacing a very small string.

- If it's a security issue by way of XSS or something (like what David was saying), then, again, ordinarily that would be an issue. Here we're not even touching any HTML entities and this particular regex is able to get to everything. I concede that if it were a Javascript string literal within a script itself in the HTML, then it would be an issue.

- If it's a general concern that you should use a DOM parser and go modify the textContent value (again, as David was saying) rather than regex-ing straight HTML, that's open to debate (see the multiple arguments of stackoverflow for reference). Generally I would agree and go with the DOM (as I usually do with parsing HTML in PHP), but I think most of us here know the bungie.net HTML pretty well, so again, I don't think it's of great concern.
But editing innerHTML breaks event listeners of effected elements, which is the whole page. It could break other scripts depending on when it executes.

I just tried it. It broke the search bar. The nav bar is fine though.

So, you would need to cycle through the posts, and use replace only in the <p> tag.

pseudo code

foreach element in document.getElementsBy('p')
element.innerHTML = element.innerHTML.replace('blah', 'blah')

That will minimize collateral damage if there is any, but you're still using innerHTML.

[Edited on 09.29.2011 7:00 AM PDT]

  • 09.29.2011 6:43 AM PDT

Posted by: Commander GX
Bungie.Match.com: Our Johnson knows what the ladies like.


Posted by: DerRitter
Is there a script that makes the replies load automatically without having to refresh the page?


I think so. Give me a minute to look for it.

  • 09.29.2011 3:37 PM PDT

Why not stop by my File Share while you're here?

~Long Live Halo 2
Only regret is I didn't play more of it.

If you haven't noticed by now, I'm sort of a jerk.

Where did all the Stylish scripts go?

  • 10.08.2011 10:54 AM PDT

Posted by: AngryBrute1
Oh yeah, since somebody does not believe what YOU believe; that makes us vapid...
I cannot grasp that what you call "Something happened to nothing, and that nothing became something, and it was smaller than than a period."

A problem with the Trust System.

  • 10.10.2011 10:26 PM PDT

Five years older and wiser
The fires are burning, I'm fire, never tire
Slay warriors in the forests, and on hire

Wait people still use that? Infact did I even release it? I swear I just gave it to robby for a testing idea lol.

  • 10.11.2011 1:24 PM PDT

Posted by: Commander GX
Bungie.Match.com: Our Johnson knows what the ladies like.

I want one.

  • 10.11.2011 2:04 PM PDT

We're concerned

Cafe|MLP: FiM|Bnet Regulars|FCAW
Got a question, comment, or concern? PM me.

What is the script that allows you to see linked images without having to click on them?

  • 10.12.2011 6:40 PM PDT

Userscripts: {
  Shi Options: [Chrome, Firefox],
  Coup-5: [Chrome, Firefox, Opera]
}


Posted by: snipe champpppp
What is the script that allows you to see linked images without having to click on them?
Shi Options

Alternatively, Iggyhopper's BB Inliner

I don't know if there are any others that do the same.

  • 10.16.2011 8:52 AM PDT

We're concerned

Cafe|MLP: FiM|Bnet Regulars|FCAW
Got a question, comment, or concern? PM me.


Posted by: Tidus Zero

Posted by: snipe champpppp
What is the script that allows you to see linked images without having to click on them?
Shi Options

Alternatively, Iggyhopper's BB Inliner
Ahhh Thanks ^_^!

I don't know if there are any others that do the same.

  • 10.17.2011 3:16 PM PDT

Do you know what kind of hat I'm wearing?

A party hat; you don't get one. An honor will this party be, a party in your honor, for your honor. Some of Tfear's personal guards are going to be there. You'll be introduced shortly.

Prepare to die.

Can someone make a stylish script that replaces the annoying text when you create a new topic with this.

That would make my day ^^

EDIT: The sendbox script seems to malfunctioning (or maybe it's because I'm using Google chrome)

[Edited on 10.24.2011 12:11 PM PDT]

  • 10.23.2011 1:03 PM PDT

Script idea for anyone who wants to give it a shot:

Web Of Trust provides an API which responds to requests for domain names. In the response, it provides some info about whether the site is trustworthy, reliable, etc...

A script could be written to make a query to the WOT API and get the details for a site upon clicking a link in a post. If the response indicates that it may not be trustworthy, display a prompt indicating it may not be safe, and asking if the user wants to continue.

http://www.mywot.com/wiki/API

  • 10.28.2011 1:00 AM PDT

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

Halo4ger.com - Founder/Admin.

@DerFlatulator

Reaching Perfection || Blueprint -- Action Sack Lead


Posted by: dazarobbo
Script idea for anyone who wants to give it a shot:

Web Of Trust provides an API which responds to requests for domain names. In the response, it provides some info about whether the site is trustworthy, reliable, etc...

A script could be written to make a query to the WOT API and get the details for a site upon clicking a link in a post. If the response indicates that it may not be trustworthy, display a prompt indicating it may not be safe, and asking if the user wants to continue.

http://www.mywot.com/wiki/API
Beyond my skills, but I'd like to note that a good extension of this would be to provide a simple warning indicator next to "untrustworthy" sites, achieved by sending a request for every single in-post link in a thread at load, if that's possible.

  • 10.31.2011 5:58 AM PDT

"Only a fool dismisses something outside of his realm of experience as an impossibility"

Find me at
Youtube
Halo: Reach
Xbox Live
Xfire

-removed-

[Edited on 11.04.2011 2:22 PM PDT]

  • 11.04.2011 2:18 PM PDT
Subject: .
  • gamertag: [none]
  • user homepage:

***Aberrant Designs***

Finished the fight on September 26,2007, 10:49pm EST
Remembered Reach on September 15th, 2010 9:30pm EST

So...looking for Coup d Bungie, because I unistalled it ages ago and want to try again.

I can't find it. I looked through the list and my eyes just failed me. Help.
Also, I use Safari. That's not a problem is it?

  • 11.12.2011 11:58 AM PDT

Goodbye...


Posted by: A Deaf Boy
Also, I use Safari. That's not a problem is it?

Yeah, it is. It only works for Firefox and Google Chrome. And I think they have a working script for Opera.

  • 11.14.2011 4:00 PM PDT
Subject: Script Central> All GM Scripts Here!

"Why concentrate on the negative when we can speak of the positive?"
My File Share
Try using the Search Bar next time.
Halo 2 was the best Halo game
A7x FoREVer!

I need a block user script, anyone have one?





[Edited on 11.19.2011 10:19 PM PST]

  • 11.19.2011 2:27 PM PDT
  • gamertag: [none]
  • user homepage:

:)

Is there a way to edit scripts on the fly with Google Chrome? Sometimes I like to edit scripts to suit my needs specifically, but ever since I switched to Chrome I haven't been able to find out how.

  • 11.25.2011 1:28 AM PDT

We're concerned

Cafe|MLP: FiM|Bnet Regulars|FCAW
Got a question, comment, or concern? PM me.

I downloaded All Forums....

What does it do?

  • 11.25.2011 4:53 PM PDT

#101111011110111100001# is a '7'.
●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
Greasemonkey Scripts
●▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬●
Posted by: Alec9224
Indeed. I haven't had XBL for a long time, but I still come on her everyday.

Posted by: snipe champpppp
I downloaded All Forums....

What does it do?
It adds the individual links for the game forums under the 'Community' tab.

  • 11.26.2011 7:40 AM PDT

We're concerned

Cafe|MLP: FiM|Bnet Regulars|FCAW
Got a question, comment, or concern? PM me.

Posted by: robby118
Posted by: snipe champpppp
I downloaded All Forums....

What does it do?
It adds the individual links for the game forums under the 'Community' tab.

Yeah, I figured out like a second after I posted that lol. Thanks anyways though

Is there any way I can edit the quick quote script so that quote is on the left and reply is on the right?

I often find myself hitting quote when I didn't want to because I am so used to reply being there >.<

  • 11.27.2011 6:21 PM PDT
Subject: .

Posted by: Commander GX
Bungie.Match.com: Our Johnson knows what the ladies like.

What the heck does Remember Remember do?

  • 12.03.2011 6:53 PM PDT

Supposedly, the posts that you reported.
Posted by: M94 Mushroom Man
What the heck does Remember Remember do?

  • 12.03.2011 7:09 PM PDT
Subject: Script Central> Forum/Grp links update; screenie enlarge; sigs v2.5

Don't -blam!- with Kerser!

Does navbar work with Chrome. I can't get it to work. It works fine in Firefox.

  • 12.04.2011 2:23 PM PDT