From ea469f6995808712f09a73ffa93044f4ec2ce6e3 Mon Sep 17 00:00:00 2001 From: 17ms <79069176+17ms@users.noreply.github.com> Date: Thu, 9 Mar 2023 19:55:31 +0200 Subject: [PATCH] removed reductant code --- visual/4c-gallery.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/visual/4c-gallery.js b/visual/4c-gallery.js index 2e8a796..e76d59a 100644 --- a/visual/4c-gallery.js +++ b/visual/4c-gallery.js @@ -6,7 +6,7 @@ // @namespace Violentmonkey Scripts // @match *://boards.4chan*.org/*/thread/* // @exclude *://boards.4chan*.org/*/catalog -// @version 1.1 +// @version 1.2 // ==/UserScript== // Shortcuts: decrease size, increase size, previous image, next image, jump to the source hash (i.e. post) @@ -110,10 +110,6 @@ const preloadImgs = async () => { await img.decode() imgs.push(img) } - - if (imgs.length > 0) { - imgElem.src = imgs[0].src - } } const keyUpEvent = async (e) => {