This library prepends the script name to the console log.
Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyfork.org/scripts/559379/1716612/console-with-scriptname.js
const console = {};
for (let name of ['log', 'debug', 'info', 'warn', 'error']) {
console[name] = function (...args) {
const prefix = `[${GM_info.script.name}]`;
window.console[name](prefix, ...args);
};
}