Shorts fix, logging fix

This commit is contained in:
Anarios committed 2025-09-06 15:21:37 +02:00
1 parent 70d4fda075
commit fb46b07db6
9 files changed
+71 -103

No files matched your search

+3 -8
View File
@@ -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);