mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-02 10:52:20 +01:00
Merge branch 'main' into main
This commit is contained in:
22 files changed
+371
-97
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 =
|
||||
@@ -88,7 +89,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