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.

< Furaffinity Webcomic Autoloader SXについてのフィードバック

質問/コメント

§
投稿日: 2022/10/07

... 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

§
投稿日: 2022/10/07

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

返信を投稿

返信を投稿するにはログインしてください。