Skip to content

Instantly share code, notes, and snippets.

@vielhuber
Created November 29, 2024 14:08
Show Gist options
  • Save vielhuber/e3c19c97c62d42f3cf528c4828952286 to your computer and use it in GitHub Desktop.
Save vielhuber/e3c19c97c62d42f3cf528c4828952286 to your computer and use it in GitHub Desktop.
console console.log overwrite #js
// 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;
@Ivel20112
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment