Sankaku Complex (Idol) Gallery Overlay
⚠ NSFW ⚠
Not Safe For Work! The contents of this UserScript contain features and additions for an adult and explicitly pornographic website. Please be advised.
Ever been bothered by how Sankaku Complex's 3DPD image board, idol.sankakucomplex.com, is not only an awful and sucky way to masturbate — but also unsupported by most, third-party, image board-related software?
I have— so here's a UserScript library you can run with Tampermonkey/Greasemonkey to overlay a useful (but kinda' ugly) image gallery. We are at the first version of Galleria, where it works yet isn't in its most convenient state.
idol.sankakucomplex.com
F or G — or click the Toggle Gallery button at the bottomW/A/Up/Left to go the previous, and S/D/Down/Right to go to the next postsEsc, F, or G to leave or toggle the gallery viewNOTE: the UserScript will generally only try to auto-scroll the view (to load more posts) only when the gallery is upon, but switching to a recently loaded post and immediately closing the gallery may cause the post fetching sub-routine to run a couple times still.
While chan.sankakucomplex.com provides public, beta access to an in-development version of the image board website — with a slick user interface, and a convenient, gallery view — the idol.sankakucomplex.com portion receives no such treatment.
Furthermore, the image board has tight, network security policies in-place that discourage most image board viewers and downloaders.
I believe the server uses the HTTP session cookies in conjuction with the Referer[sic] HTTP header to prevent cross-loading of post (media) resources from a client location other than the posts' page itself. In other words, an AJAX request to a post's, scraped image link fails — while I have no reason to believe this would fail from the post's page itself, I haven't tried that, but it definitely fails from the search page.
As such, my current, naive solution is to simply make an iframe to hold the entire post's page and switch it as the Galleria user moves between posts.
Finally, the search page for idol.sankakucomplex.com auto-pages — and while we could disable it and paginate traditionally, I've instead writting a simple loader routine that can periodically scroll to the bottom of the page — and ensure that we have enough posts available in the buffer for the user to keep looking ahead.
The gallery is designed with minimal intrusion of the original site's functions in mind, as well as easy navigation:
This is the most incomplete, MVP version of the gallery as it is missing many quality-of-life features. Some features that would improve this plugin:
iframe to remove unneeded contentglobalStore