Fix Infinite Scrolling on Chrome.
Conflicts: LICENSE builds/appchan-x.user.js builds/crx/script.js
This commit is contained in:
parent
711e22f831
commit
739bd5d1ef
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 4chan X - Version 1.2.41 - 2013-10-19
|
||||
* 4chan X - Version 1.2.41 - 2013-10-20
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
// ==/UserScript==
|
||||
|
||||
/*
|
||||
* 4chan X - Version 1.2.41 - 2013-10-19
|
||||
* 4chan X - Version 1.2.41 - 2013-10-20
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -10084,7 +10084,7 @@
|
||||
scroll: $.debounce(100, function() {
|
||||
var url;
|
||||
|
||||
if (InfiniScroll.isFetching || (doc.scrollTop <= doc.scrollHeight - (300 + window.innerHeight))) {
|
||||
if (InfiniScroll.isFetching || ((d.body.scrollTop || doc.scrollTop) <= doc.scrollHeight - (300 + window.innerHeight))) {
|
||||
return;
|
||||
}
|
||||
if (InfiniScroll.isDead) {
|
||||
|
||||
16269
builds/appchan-x.user.js
16269
builds/appchan-x.user.js
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
// Generated by CoffeeScript
|
||||
/*
|
||||
* 4chan X - Version 1.2.41 - 2013-10-19
|
||||
* 4chan X - Version 1.2.41 - 2013-10-20
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -10077,7 +10077,7 @@
|
||||
scroll: $.debounce(100, function() {
|
||||
var url;
|
||||
|
||||
if (InfiniScroll.isFetching || (doc.scrollTop <= doc.scrollHeight - (300 + window.innerHeight))) {
|
||||
if (InfiniScroll.isFetching || ((d.body.scrollTop || doc.scrollTop) <= doc.scrollHeight - (300 + window.innerHeight))) {
|
||||
return;
|
||||
}
|
||||
if (InfiniScroll.isDead) {
|
||||
|
||||
@ -12,7 +12,7 @@ InfiniScroll =
|
||||
InfiniScroll.scroll()
|
||||
|
||||
scroll: $.debounce 100, ->
|
||||
return if InfiniScroll.isFetching or (doc.scrollTop <= doc.scrollHeight - (300 + window.innerHeight))
|
||||
return if InfiniScroll.isFetching or ((d.body.scrollTop or doc.scrollTop) <= doc.scrollHeight - (300 + window.innerHeight))
|
||||
return InfiniScroll.notice() if InfiniScroll.isDead
|
||||
|
||||
# For once, lets respect 4chan's API rules.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user