When outputting messages into the console, the source is also displayed (in Chrome Developer Tools it\'s on the right):
console.log(\"Foo\");
They are using setTimeout
to detach from the source:
setTimeout(console.log.bind(console, '\n%c' + s[0], s[1]));
for those who are still looking for this, you can use something like
function consoleWithNoSource(...params) {
setTimeout(console.log.bind(console, ...params));
}
consoleWithNoSource("Helloo....!")