Created
November 29, 2024 14:08
-
-
Save vielhuber/e3c19c97c62d42f3cf528c4828952286 to your computer and use it in GitHub Desktop.
console console.log overwrite #js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// overwrite | |
let console_backup = console; | |
console = { | |
log: msg => {}, | |
info: msg => {}, | |
warn: msg => { | |
// only show specific errors | |
if (msg !== 'hide this specific warning') { | |
console_backup.warn(e); | |
} | |
}, | |
error: msg => { | |
// always show errors | |
console_backup.error(msg); | |
} | |
}; | |
// external function that produces warnings you want to suppress | |
fun(); | |
// reset | |
console = console_backup; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wenn du irgenwann mal zeit hast kannst du für venge io (https://venge.io/#) ein VG (coins) script machen wie du damals für anton app ein coins hack für browser console gemacht hast ich glaube das geht relativ gleich danke