PageBreak-less mode broken everywhere the latest release, and Chrome still doesn't work at all
![]() |
Hi, The latest release seems to have broken pageBreak-less mode on all browsers. When I scroll to the bottom with pageBreak = false set, nothing happens. Also, it still doesn't quite work on Chrome. When I scroll to the bottom it loads the next page as it should, but when I scroll to the next bottom it stops, you only get the first two pages. Please consider looking into this issue. This script is the only thing keeping me on Firefox! |
![]() |
The 4/30 update fixes the pageBreak=false issue. As for Chrome, I don't feel like installing it just for testing right now. Try adding |
![]() |
Thanks for fixing pageBreak = false so quick! Hm, on closer inspection, Chrome doesn't load the second page, it just loads the first page twice. I get an alert with a "page=3" url when I scroll to the bottom of the first page, and then it loads the first page again. Scrolling to the bottom again yields no alert. The paginator and line break are present at the bottom of both copies of the page. The first copy just has "Next >>" and the second copy has "<< Previous Next >>". |
![]() |
Fixed it! Disclaimer: I have almost zero javascript experience; I fixed it though a ton of Googling and sheer determination.
There were two problems: First, Second problem: The block commented "Register content" in With these two changes, it seems to work perfectly on Chrome. |
![]() |
First, fullPage.offsetHeight (used in testScrollPosition) returns an incorrect value on Chrome, god knows why. I replaced that with document.documentElement.scrollHeight and it returns the correct value on both Firefox and Chrome. Again, that's only from trying different values and finding one that worked; I don't know if there are reasons not to use that.I've been using this page as a reference, and it claims offsetHeight works on all browsers (which is why I picked it). It also says that scrollHeight doesn't work on Opera. Hmm, what to do... What are the incorrect values you were getting on Chrome? Does document.documentElement.offsetHeight get you the right values?
Second problem: The block commented "Register content" in appendNewContent throws on Chrome, I assume because of the unsafeWindow wackiness.Huh, I was under the impression that Chrome didn't have unsafeWindow and so wouldn't execute that block due to a previous "typeof unsafeWindow" check. What do you get in Chrome when you put alert(typeof unsafeWindow) at the top of the script?
I don't know what this block does, but Chrome seems to get by fine without it.It un-breaks certain minor JavaScript features provided by certain sites like Danbooru. Thanks for the info. |
![]() |
Here are the values of And on Firefox:
As you can see, Also, |
![]() |
As you can see, document.documentElement.scrollHeight is the only one that works on both. Perhaps you could use math.Max with fullPage.offsetHeight to support Opera as well?That'll have to do for now. The 5/6 update working for you? |
![]() |
Works perfectly. Thanks very much :)
|

