From cf8ed72d1ab58e24a1ecc0e45ed34166d3417c1d Mon Sep 17 00:00:00 2001 From: KaMZeSs <83509865+KaMZeSs@users.noreply.github.com> Date: Tue, 25 Jun 2024 10:57:40 +0300 Subject: [PATCH 1/2] [VKBigChatStickers] update to 0.3 - update to the sticker icon position (#3) --- VKBigChatStickers/VKBigChatStickers.user.js | 22 ++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/VKBigChatStickers/VKBigChatStickers.user.js b/VKBigChatStickers/VKBigChatStickers.user.js index 9cfab2a..defac81 100644 --- a/VKBigChatStickers/VKBigChatStickers.user.js +++ b/VKBigChatStickers/VKBigChatStickers.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name VK Big Chat Stickers // @namespace https://github.com/Maks1mS/userscripts -// @version 0.2 +// @version 0.3 // @description Increases size of chat stickers // @author Maxim Slipenko // @match https://vk.com/* @@ -9,24 +9,28 @@ // @grant GM_addStyle // ==/UserScript== -(function() { +(function () { 'use strict'; const style = ` - img.StickerUGC { + .sticker_img_wrapper { width: 256px; height: 256px; } + img.StickerUGC { + height: 100%; + width: 100%; + } .StickersEmojiKeyboard-module__in--GCR5_:has(.StickersKeyboardGroupItem-module__in--CKjkC.StickersKeyboardGroupItem-module__inActive--iqstp > div[aria-label="Стикеры чата"]) .StickersKeyboard-module__keyboard--HhSGu.View-module__panel--WNKKi.View-module__panelSwitched--hg3jP { - --stickers-columns: 2 !important; - --stickers-size: 172px !important; + --stickers-columns: 2 !important; + --stickers-size: 172px !important; } .StickersEmojiKeyboard-module__in--GCR5_:has(.StickersKeyboardGroupItem-module__in--CKjkC.StickersKeyboardGroupItem-module__inActive--iqstp > div[aria-label="Стикеры чата"]) .Sticker-module__sticker--CtZU6.Sticker-module__tappable--M4lob.StickersKeyboardRow-module__sticker--m7W0R { - --sticker-size: 172px !important; - --sticker-scale: 2 !important; - width: 172px !important; - height: 172px !important; + --sticker-size: 172px !important; + --sticker-scale: 2 !important; + width: 172px !important; + height: 172px !important; } `; From 9cad4d315b84bccb913e622a66506a56dc34eb78 Mon Sep 17 00:00:00 2001 From: KaMZeSs <83509865+KaMZeSs@users.noreply.github.com> Date: Tue, 25 Jun 2024 12:32:42 +0300 Subject: [PATCH 2/2] [VKBigChatStickers] fix increasing stickers --------- Co-authored-by: Maxim Slipenko --- VKBigChatStickers/VKBigChatStickers.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKBigChatStickers/VKBigChatStickers.user.js b/VKBigChatStickers/VKBigChatStickers.user.js index defac81..4e9490e 100644 --- a/VKBigChatStickers/VKBigChatStickers.user.js +++ b/VKBigChatStickers/VKBigChatStickers.user.js @@ -13,7 +13,7 @@ 'use strict'; const style = ` - .sticker_img_wrapper { + .sticker_img_wrapper:has(.StickerUGC) { width: 256px; height: 256px; }