Greasy Fork is available in English.

Furaffinity Webcomic Autoloader SX

Gives you the option to load all the subsequent comic pages on a FurAffinity comic page automatically.

< Feedback on Furaffinity Webcomic Autoloader SX

Question/comment

§
Posted: 07-10-2022

... Perhaps I looked into how javascript works and did it myself xD.
So if you want to add it here's what I did:

Added as Global variable: var lastLink = document.URL;

Then in getNextLink Method replaced second return with:
var currentLink = doc.getElementsByClassName("parsed_nav_links")[0].childNodes[4].href;
if(currentLink != lastLink)
{
lastLink = currentLink;
return currentLink;
}

... why did I do that it took 2 hours xD

§
Posted: 07-10-2022

Fixed bug that auto loading wasnt shown on first comic page because "last" and "first" is not filled:

function getNextLink(doc)
{
if(doc.getElementsByClassName("parsed_nav_links")[0].childNodes.length<2)
{
return null;
}
var currentLink = doc.getElementsByClassName("parsed_nav_links")[0].childNodes[doc.getElementsByClassName("parsed_nav_links")[0].childNodes.length-1].href;
if(currentLink != lastLink)
{
lastLink = currentLink;
return currentLink;
}
}

somehow it makes fun doin this :D

Post reply

Sign in to post a reply.