g s fur art 3dcg f rp req p2p dis lit kaki lg
[Home] [Search] [RSS feed] [Thread List] [Catalog] [Admin]


   
Possible return for the "expand all" button?
[]
I loved the button on the old gurochan that automatically expanded all images. Was really useful on mobile so it didn't yank your view around every time you clicked on an image. Is there any way we can have that back? Or was that something unique to the previous website?
[]
ill add it to my to-do list :)
[]
Here's a user script that both limits images to screen width when expanded as well as an "expand all" besides the "gallery mode" checkbox:
// ==UserScript==
// @name Insert Helpers
// @description Adds some convenience features to guro.wtf
// @match *://img.guro.wtf/*domain=guro.wtf
// @grant none
// ==/UserScript==

(function() {
'use strict';

console.log("patching guro.wtf");

let on_viewer_page = window.location.pathname.endsWith("koko.php");

let previews = Array.from(document.querySelectorAll("img.postimg"));

let expandAll = function () {
for(let x of previews) {
x.click();
}
};

let style = document.createElement("style")
style.innerText = "img.postimg { max-width: 100%; } img.expandimg { max-width: 100%; }";
document.head.appendChild(style)

let galfuncs = document.getElementById("galfuncs");
if(galfuncs) {
var btn = document.createElement("button");
btn.innerText = "Expand all";
btn.style.margin = "4px";
btn.addEventListener("click", expandAll);
galfuncs.appendChild(btn);
}
})();
[]
This feature has been added to the offical script.

Delete Post:
First[0] Last

- GazouBBS + futaba + Pixmicat! + Kokonotsuba -
Kokonotsuba Copyright © 2005 - 2021 Kolyma Network LLC

Buy Kolyma Pincodes

All posts on this website are the responsibility of the individual poster and not the Kolyma Network, pursuant to the law of the Russian Federation.
All images belong to their respective copyright holders. DMCA Takedown requests not accepted.
1910 Блок, Бологое, Омск, Российская Федерация | LEGAL: kplaw@kolyma.org
Powered by KolymaNET