From 71519fca497f832f365a2db479b10e03d7038dd4 Mon Sep 17 00:00:00 2001 From: 17ms <79069176+17ms@users.noreply.github.com> Date: Tue, 21 Mar 2023 00:08:20 +0200 Subject: [PATCH] fixed aspect ratio for tiled workspaces --- visual/4c-gallery.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/visual/4c-gallery.js b/visual/4c-gallery.js index 34cb792..3509bc0 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.3 +// @version 1.3.1 // ==/UserScript== // Shortcuts: decrease size, increase size, previous image, next image, jump to the source hash (i.e. post) @@ -213,7 +213,7 @@ window.toggleGalleryVisibility = () => { } } -const ratioMultiplier = window.screen.availHeight / window.screen.availWidth +const ratioMultiplier = window.innerHeight / window.innerWidth createElements() let i = 0