mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-30 09:57:52 +01:00
Closes #472
This commit is contained in:
1 parent
1d2f89a38c
commit
43a7167e2b
4 files changed
+28
-16
No files matched your search
@@ -1,8 +1,9 @@
|
||||
import { getButtons } from "./buttons";
|
||||
import { likesDisabledState, extConfig, isMobile } from "./state";
|
||||
import { extConfig, isMobile, isLikesDisabled } from "./state";
|
||||
import { cLog, getColorFromTheme } from "./utils";
|
||||
|
||||
function createRateBar(likes, dislikes) {
|
||||
if (!likesDisabledState) {
|
||||
if (!isLikesDisabled()) {
|
||||
let rateBar = document.getElementById("ryd-bar-container");
|
||||
|
||||
const widthPx =
|
||||
@@ -61,7 +62,9 @@ function createRateBar(likes, dislikes) {
|
||||
} else {
|
||||
cLog("removing bar");
|
||||
let ratebar = document.getElementById("ryd-bar-container");
|
||||
ratebar.parentNode.removeChild(ratebar);
|
||||
if(ratebar) {
|
||||
ratebar.parentNode.removeChild(ratebar);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user