[Return] [Bottom]

Posting mode: Reply

BBCode
(for deletion)
  • Allowed file types are: gif, jpg, jpeg, png, webp, webm, mp4
  • Maximum file size allowed is 25000 KB.
  • Images greater than 255 * 255 pixels will be thumbnailed.
  • 18 unique users in the last 30 minutes (including lurkers)




    First
    [1]
    Last

    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.

    [Top]

    Delete post: []
    First
    [1]
    Last