
Originally Posted by
mirdreams
Wow, that script is horribly broken - maybe you should inform the webmasters of this site that somebody might have disabled images (via Firefox options, Content, Load images automatically). This will already cause this script to go into an endless loop, entirely without Adblock Plus.
I suggest that you add the following filter to Adblock Plus to block this script (it doesn't seem to have any useful functions):
Code:
|http://www.nysspe.org/scripts/crawler_rand_2.js|
That's a little harsh. After stripping the content from a script it goes into an endless loop looking for it, and the script gets blamed!?
But I can see the point. I have an update that includes the below fix and some other minor improvements and will be contacting the Dynamic Drive site administrator with it shortly. It should only be a matter of time before it becomes the official version. You can fix your mod (crawler_rand_2.js) by adding this (red on the highlighted line near the beginning of its setup function):
Code:
Marq.prototype.setup = function(){
if(this.mq.setup) return;
this.mq.setup = this;
var s, cObj = this, exit = 10000;
if(this.c.style.height === 'auto')
this.c.style.height = this.m.offsetH . . .
And changing this near the end of that same setup function:
Code:
while(this.c.offsetWidth > this.w - s)
this.c.style.width = isNaN(this.cw[0])? this.w - s + 'px' : --this.cw[0] + this.cw[1];
to:
Code:
while(this.c.offsetWidth > this.w - s && --exit){
if(this.w < Math.max(1, s)){break;}
this.c.style.width = isNaN(this.cw[0])? this.w - s + 'px' : --this.cw[0] + this.cw[1];
}
Bookmarks