Skip to content

Commit

Permalink
More fixes to new layout
Browse files Browse the repository at this point in the history
  • Loading branch information
NC22 committed May 8, 2023
1 parent 3bb3ace commit 274a595
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions extension/lib/kellyShowRate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 274a595

Please sign in to comment.