Added Option to Disable Logging By Default (#474)

* Added Option to Disable Logging By Default

* Added Userscript Support to Disable Logging

* Formatting and Fixed Compiling

* Updated Description of Setting Option

* Whitespace 😅

* Dot in Description of Setting option

* Typo in JAVASCRIPT
This commit is contained in:
Divyansh Agrawal authored and GitHub committed 2024-06-16 18:52:41 +02:00
1 parent 3d788b3d31
commit fbf00e474d
6 files changed
+66 -9

No files matched your search

+7 -5
View File
@@ -103,11 +103,13 @@ function isVideoLoaded() {
}
function cLog(message, writer) {
message = `[return youtube dislike]: ${message}`;
if (writer) {
writer(message);
} else {
console.log(message);
if (!extConfig.disableLogging){
message = `[return youtube dislike]: ${message}`;
if (writer) {
writer(message);
} else {
console.log(message);
}
}
}