Help - Search - Members - Calendar
Full Version: Javascript problem on HydrogenAudio?
Hydrogenaudio Forums > Hydrogenaudio Forum > Site Related Discussion
Lear
The last couple of days or so, I get the following message from Mozilla when reading threads (but only from the "Active Topics" page, it seems, and not always):

QUOTE
A script on this page is causing Mozilla to run slowly. If it continues to run, your computer may become unresponsive.

Do you want to abort the script?


This with Mozilla 1.4 on Windows 2000. Anyone who knows what's causing this message?

This made be look a bit at the two of the scripts fetched by Mozilla (from the HA server), and they made me wonder a bit... First of all, one is obfuscated. I haven't decoded it yet, but it is called removeEvul.js. Another one, __utm.js, contains the name Urchin Tracking Module, which sound a bit odd to me... smile.gif Anyone who knows what they're about?
Lear
QUOTE(Lear @ Aug 6 2003, 11:47 AM)
Anyone who knows what's causing this message?

Found what it was: removeEvul.js (which, AFAICT, removes elements from the DOM that matches certain regular expressions. As a side note, one of regexps contains the text "phpBB"...). Blocking it seems to cause no bad side effects.
TrNSZ
QUOTE
The UTM Sensor is a small amount of JavaScript code that accomplishes two important functions. First, the Sensor negates the effects of caching by forcing at least one hit to progress to the original web server for each pageview. The impact on the server is minimal, and the details about the additional hit are logged into the normal web log files resulting in a more complete data set. Secondly, the UTM Sensor uniquely identifies each visitor by using client-side cookies to keep track of the first time and returning visitors. The cookie identifier is a communication tag only viewable to your web server in the same nature as session ids.

It seems that the HA board uses UTM to assist in user-tracking and providing information to track your movement through the board, giving the board an easier implementation of cookie tracking. Even if your browser cached the page, you should still show up in the "Users accessing this thread" information. =)

More information is available: http://help2.hostway.com/documents/unixpla.../Ch098.html#utm.

removeEvul.js is probably an attempt to protect somebodys source code.

I browse without any kind of scripting and everything is functional enough, but you have to do without some of the extras like the code buttons and clickable smilies when editing a message, for example.
TrNSZ
To clarify, in case anyone was worried, Urchin, as used by HA, is definately not Spyware or malicious in any way.
ScorLibran
I'm not super-knowledgable about Java (though I worked for Sun for 2 yrs unsure.gif ), but is this problem also why text is getting duplicated in posts?

I just did one of my normal mile-long posts in OT, and it ended up two miles long! blink.gif
TrNSZ
Not that I'm aware of. I've had a double post with all scripting disabled. I've also had a single post appear doubled just today. :-P
TrNSZ
Wow http://www.hydrogenaudio.org/forums/index....showtopic=11977 turned out bizarre with the multiple repeats inside the post.

Same exact thing was happening to my long posts today, not the short ones though. It's got to be something with the configuration of the new server or there may be a transparent caching proxy that is corrupting things.

I had to remove the full text and replace with some test text, then replace the entire post, and eventually after a few edits, everything normalized. But it's definately not related to browser-executed scripting.
CiTay
QUOTE(TrNSZ @ Aug 6 2003, 03:15 PM)
Wow http://www.hydrogenaudio.org/forums/index....showtopic=11977 turned out bizarre with the multiple repeats inside the post.

Yes, this is a formatting bug that first appeared with 1.2 RC1. Took me more than an hour yesterday to realize that i couldn't fix the MPC thread, no matter what i did. I posted on the Invision support forum about it and it seems that this stuff is fixed in RC2. Just waiting until Dibrom has time to update HA. Until then, people should refrain from making big posts or editing lengthy posts. I am not sure if those posts fix themselves, they might as well keep that messy formatting after the update.
sld
Erm, JavaScript and Java are two different things.
Dibrom
UTM is a part of the Urchin software we using for analyzing traffic on the different pages. As TrNSZ said, it's not malicious or sneaky or anything, it simply allows us to get around some common traffic analysis issues caused by proxies, caches, etc.

removeEvul.js is simply a clientside (DOM based) anti-goatse/tubgirl type removal script that I wrote for the board. It should prevent the negative effects of certain people *ahem*, spamming our boards again. Obviously, it's obfuscated to prevent people from easily working around it.

The double post bit, as CiTay said, appears to be some sort of issue with RC1. Unfortunately I don't have time to update toe RC2 right away.. I might get to it sometime later this week, but I'll be out of time almost the whole time, so it's rather uncertain.
Dibrom
To clarify further, it's probably the removeEvul script which is giving mozilla fits (I get the message occassionally now too), since it's based on regular expression. When I get back, I'll see if I can tighten things up a bit, or at least figure out what the problem is.
DAvenger
By the way ... Invision Board 1.2 FINAL has been released a while ago wink.gif
CiTay
QUOTE(DAvenger @ Aug 6 2003, 08:49 PM)
By the way ... Invision Board 1.2 FINAL has been released a while ago wink.gif

A while ago today, yes. laugh.gif I hope Dibrom has enough time this weekend to install it.
tumu
QUOTE(Dibrom)
it simply allows us to get around some common traffic analysis issues caused by proxies, caches, etc.


Normal HTTP methods for cache busting work fine with todays proxies and caches. There is absolutely, positively no need for substitutes of any kind. If anything, those substitutes just cause havoc in unseen configurations (namely non-Windos).

Oh well, this is not the first time standards are being suppressed by marketing hype. smile.gif

Dibrom, I did send you that PM about the caching issues. I encourage you to take it into serious reconsideration before resorting into 3rd party solutions..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.