This library prepends the script name to the console log.
Detta skript bör inte installeras direkt. Det är ett bibliotek för andra skript att inkludera med meta-direktivet // @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);
};
}