Turns thumbnail titles into direct links and disables lazy-loading on ranking pages.
< Feedback on Pixiv Direct Links
"Novels are not affected, and the titles of ugoira animations just link to the mode=medium page (as do all other titles until the direct links are determined)."
You can determine the ugoira animations using the api. Too lazy to write it clean explanation but I am sure you can understand the code below. Extracted from latest Pixiv++ (currently partially broken due to Pixiv site changes).
var baseURL = datalist["illust480URL"];
baseURL = baseURL.replace(/(\/mobile\/)([^\/]+)$/gi, "/$2"); //Remove "Mobile" if one exists
metadata.illustBaseURL = baseURL.replace(/(\/\d+)[^\/]+\.(jpe?g|gif|png)(\?\d+)?$/gi, "$1." + datalist.illustExt); //Remove extra information
if (metadata.illustType == 3) //Ugoira
metadata.illustBaseURL = metadata.illustBaseURL.replace(/\/c\/\d+x\d+\/img-master\/(.+\/\d+)\..+/i, "/img-zip-ugoira/$1_ugoira1920x1080.zip");
Sign in to post a reply.