From 274a59537c1f2ad63751b724efa11c987e231021 Mon Sep 17 00:00:00 2001 From: nradiowave Date: Mon, 8 May 2023 22:34:02 +0300 Subject: [PATCH] More fixes to new layout --- extension/lib/kellyShowRate.js | 6 ++++++ extension/manifest.v2.json | 2 +- extension/manifest.v3.json | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/extension/lib/kellyShowRate.js b/extension/lib/kellyShowRate.js index e4d3387..466fb67 100644 --- a/extension/lib/kellyShowRate.js +++ b/extension/lib/kellyShowRate.js @@ -208,6 +208,12 @@ function KellyShowRate() { if (handler.buttonsWraper.innerHTML.indexOf('ytd-segmented-like-dislike-button-renderer') != -1) { handler.buttonsWraper = handler.buttonsWraper.children[0]; + + if (handler.buttonsWraper && handler.buttonsWraper.children.length <= 1) { // style with addition "yt-smartimation" wraper + handler.buttonsWraper = handler.buttonsWraper.querySelector('#segmented-buttons-wrapper'); + handler.log('Env exception 3', true); + } + } else if (handler.buttonsWraper.innerHTML.indexOf('ytm-segmented-like-dislike-button-renderer') != -1) { handler.buttonsWraper = handler.buttonsWraper.querySelector('.segmented-buttons'); } else { diff --git a/extension/manifest.v2.json b/extension/manifest.v2.json index 0acfc6a..f69a0ba 100644 --- a/extension/manifest.v2.json +++ b/extension/manifest.v2.json @@ -24,7 +24,7 @@ "44": "env/img/icon44x44.png", "128": "env/img/icon128x128.png" }, "manifest_version" : 2, - "version": "1.1.5.7", + "version": "1.1.5.8", "name": "KellyC Show YouTube Dislikes", "description": "__MSG_ext_description__", "author" : "nradiowave", diff --git a/extension/manifest.v3.json b/extension/manifest.v3.json index 43cbfc5..cece29e 100644 --- a/extension/manifest.v3.json +++ b/extension/manifest.v3.json @@ -26,7 +26,7 @@ "*://catface.ru/*" ], "manifest_version" : 3, - "version": "1.1.5.7", + "version": "1.1.5.8", "name": "KellyC Show YouTube Dislikes", "description": "__MSG_ext_description__", "icons": {