mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-30 09:57:52 +01:00
Shorts fix, logging fix
This commit is contained in:
1 parent
70d4fda075
commit
fb46b07db6
9 files changed
+71
-103
No files matched your search
@@ -1,11 +1,6 @@
|
||||
//--- Import Button Functions ---//
|
||||
import { getButtons } from "./src/buttons";
|
||||
|
||||
//--- Import State Functions ---//
|
||||
import { isShorts, setInitialState, initExtConfig } from "./src/state";
|
||||
|
||||
//--- Import Video & Browser Functions ---//
|
||||
import { getBrowser, isVideoLoaded, cLog } from "./src/utils";
|
||||
import { getBrowser, isVideoLoaded } from "./src/utils";
|
||||
import { addLikeDislikeEventListener, createSmartimationObserver, storageChangeHandler } from "./src/events";
|
||||
|
||||
await initExtConfig();
|
||||
@@ -27,7 +22,7 @@ async function setEventListeners(evt) {
|
||||
}
|
||||
} catch (exception) {
|
||||
if (!isSetInitialStateDone) {
|
||||
cLog("error");
|
||||
console.log("error");
|
||||
await setInitialState();
|
||||
}
|
||||
}
|
||||
@@ -49,5 +44,5 @@ s.src = chrome.runtime.getURL("menu-fixer.js");
|
||||
s.onload = function () {
|
||||
this.remove();
|
||||
};
|
||||
// see also "Dynamic values in the injected code" section in this answer
|
||||
|
||||
(document.head || document.documentElement).appendChild(s);
|
||||
Reference in new issue
Block a user