// ==UserScript==
// @name Eza's Pixiv Fixiv
// @namespace https://inkbunny.net/ezalias
// @description Loads all manga pages at once in a simplified vertical layout
// @license MIT
// @license Public domain / No rights reserved
// @include *://www.pixiv.net/*/artworks/*
// @exclude *&dnr*
// @exclude *?comment*
// @version 2.12
// @downloadURL https://update.greasyfork.icu/scripts/4714/Eza%27s%20Pixiv%20Fixiv.user.js
// @updateURL https://update.greasyfork.icu/scripts/4714/Eza%27s%20Pixiv%20Fixiv.meta.js
// ==/UserScript==
// On manga pages, load all images without having to manually scroll to each one.
// Pixiv is terribly designed. Maybe it's a cultural Japanese thing, where they expect single-page click-and-wait browsing like it's still 1998. The site is just openly hostile to users' time and enjoyment.
// Eza's Image Glutton is no longer required for manga submissions, but it similarly redirects to single images on Pixiv and many other art sites.
// Should Pixiv Fixiv load real thumbnails? Pixiv provides them. It's not like Tumblr Scrape where you want to save the small images; they only exist to provide an overview.
// Using full-size images indicates when they're done loading.
// Finally wrapped my head around CSS classes being hierarchical in ";
// Replace HTML body with our custom HTML.
if( document.body.id == "fixed" ) { return; } else { document.body.id = "fixed"; } // If the page is already our replacement code - seriously, don't replace it again.
document.body.innerHTML = thumbnail_html + "
" + options_html + "
" + images_html + style_html; // Thumbnails, then options, then centered images
} )
//*/