Script for Archival Proxying? Javascript Rewrite?

Sudrien sudrien at fusemail.com
Wed Jun 28 15:32:05 EDT 2006


First, somebody messed with
http://mousehole.rubyforge.org/wiki/wiki.pl?UserScripts in a bad way.

Second, It looks like it is pretty easy to do  a dom-based  replace, but
what about a javascript?

Example; On this one site, there is a Slide.js. The URL is always the same.

The code looks like this:

-----------
var slide_maxsec = -1;
var slide_sec = -1;
var slideDoneImage = new Image;
slideDoneImage.src = "/images/bg/bg_unit.gif";
function slideshow() {
  if(slide_maxsec >= 0) {
    slide_sec++;

    if(slide_sec < slide_maxsec) {
      var buttonName = "slide_button_" + slide_sec;
      document.images[buttonName].src = slideDoneImage.src;
      setTimeout("slideshow()", 1000);
    }
    else {
      document.slideform.submit();
    }
  }
  else {
    setTimeout("slideshow()", 1000);
  }
}
-------

IT IS REALLY SLOW, so I'd like to replace the setTimeout("slideshow()",
1000); with  setTimeout("slideshow()", 300);




Third - I see http request headers in the terminal when I have 1.2
running. Does that mean I could accerss the body and, say, writhe that
information to disk? or database?  So I can have a perminent record of
what I read/saw without to a "save Page as..." everywhere. I mean, the
ruby whould be able to handle it, but I can't see whwere to access the
information.


That was a lot at once. But thank you.

-Sudrien






More information about the Mousehole-scripters mailing list