[Slogger] HTML only saves images, too
Ken Schutte
kschutte at mit.edu
Sun Jan 29 19:57:04 EST 2006
Someone wrote:
> I tried the latest version of Slogger, and set it for "save HTML
> only", and it's still saving images and other files. The only
> difference between "HTML complete" and "HTML only" seems to be that
> "HTML complete" changes all the path names to point to local files,
> and "HTML only" leaves the files the way they were originally.
>
> When I put it on "save HTML only", I want it to literally save only
> the HTML of each page I visit.
>
> It might be nice if it rewrote relative paths to make them point to
> real paths (img src="/images/image.gif" becomes img
> src="http://www.example.com/images/image.gif"), but other than that, I
> want it to just save the HTML files and nothing else. (And I could
> probably do that with a custom javascript, right?)
Try this new one,
http://www.kenschutte.com/download/slogger/xpi/slogger-0.6.20060129.xpi
It should save HTML only and replace links with the full URL, like you
were saying. It was also doing this for text-only, which should not
now. But, I noticed that the "text only" saves don't work quite right,
either. It seems to broken a bit on FF too (File->Save Page As..., Text
only...). I'll have to see if there's a Mozilla bug submitted for this...
Side note, Slogger uses the Mozilla nsIWebBrowserPersist functions,
which have a lot of options, and it's kind of confusing what all the
flags do. I was also thinking of having a 4th option, "advanced", which
you can set arbitrary values for the saveDocument() function...
http://www.xulplanet.com/references/xpcomref/ifaces/nsIWebBrowserPersist.html
> Also, shouldn't the default profiles save logfiles with:
>
> <localfile>file://$localfileDir/$localfile</localfile>
>
> instead of
>
> <localfile>$Sloggerdir/whatever
>
> Then you could change the save directory without having to change the log files?
What you can do is change the value of $sloggerDir - but, this has to be
done using "about:config". Then, both will point to the new location.
The way it is now, $localfile will return the string (usually with
varaibles) stored as slogger.localfile. I could have it recursively
replace all variables, but in some cases, what you want would be
ambiguous, so I'm not sure the best way to handle it...
Ken
More information about the Slogger
mailing list