你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/391223-furaffinity-webcomic-autoloader-sx/discussions/152588,源站連結 點此以跳轉。
Gives you the option to load all the subsequent comic pages on a FurAffinity comic page automatically.
< 脚本 Furaffinity Webcomic Autoloader SX 的反馈
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
... 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