Customized Mangafox

By knaces Last update May 22, 2009 — Installed 3,281 times.

Why is the prefetching frame showed, and also, does it still work?

in
Subscribe to Why is the prefetching frame showed, and also, does it still work? 2 posts, 2 voices



Opaque Scriptwright
FirefoxMacintosh

Great script indeed, I like it.

I was wondering about the weird box on the bottom of all the pages I was reading so checked the DOM through Firebug to see what it was. Apparently you don’t hide your iframe too well after inserting. Extra CSS declarations would be nice, I added the following to the script locally:

iframe.style.border = '0px';
iframe.style.opacity = '0';

Then however I was wondering whether it would still work. Using the Net tab of Firebug I checked it with my additional code and without. Surprisingly, in both cases I did not find any mention of an extra page image being loaded!

Did mangafox break the script?

 
knaces Script's Author
FirefoxWindows

I don't hide it on purpose. I use to hide it but I figured a barely visible line would be ok to serve the purpose of telling you if prefetching is on since you can toggle it off (if your network speed is slower then your reading speed).
You need only iframe.style.display= 'none'; to hide it.

As for whether it works or not, it works for me as of now. The dom inspector will show the iframe has loaded correctly. You can also change iframe.style.height = '1px'; to 100px to see what page it actually trys to loads. As for firebug, not sure about that as I don't use it. It depends on if firebug proccesses the page AFTER greasemonkey or supports greasemonkey.

I've been mostly working on "mangafox chapter onepage" as i'm beginning to like it more then this script but I might come back to this and improve the prefetching to load only the next image (it loads the entire next page) at a later time. If there is any problems with this script though, I'll fix it right away.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel