View e-hentai searches, thumbnails, and images on a single endless page.
BEN Bir türküm hile nasıl yapılıyo lann :smiley:
i sorta tweaked the script a bit to do this so that when you reach the end of the search results page the next page automatically loads. not sure if i am allowed to share this since it isn't my script, if the creator does not want me to let me know i'll delete this comment. i basically changed a few variables, added an if statement, and got rid of the if statements in get() leaving only the second part of it in. so~ this is what i changed:
change:
var wait = 1000
var auto = true;
add:
window.onscroll = function(ev) {
if ((window.innerHeight + window.pageYOffset) >= document.body.offsetHeight - 1 && currentPage.nextURL && ready) {
get();
}
};
change:
function get(){
var xhr = new XMLHttpRequest();
xhr.open("GET", currentPage.nextURL, true);
xhr.ontimeout = xhr.onerror = resume;
xhr.onload = function(){
currentPage = new page(xhr.responseText);
appendTo.appendChild(html2dom(currentPage.content));
currentPage.content = "";
if(currentPage.nextURL)
setTimeout(resume, wait);
else{
resume();
ready = false;
}
};
xhr.send();
}
probably caused a few bugs but at least i got auto auto :P
Can I make the autoload deature full auto????
thanks for this code, how can I make the autoload full auto without input for like int (500), I dont really need other feature