Question

there are already dozens of ways explained to disable the console.log function completely. I know... console.log = function() {} is probably the best known...

But what I could not find is a way to block a website´s script from accessing to the browser console totally while I still can use it. Also a lot of warnings appear in all sorts of scripts. And many pages just keep logging after developing. A really annoying example could be this site: https://www.mozilla.org/en-US/plugincheck/

One answer is to filter the output for my add-on by hand in the console´s built in filter, but that is not good if the add-on itself doesn't work (e.g. due to script-errors, which prevent the add-on from working at all). Anyway I don´t want to fill in a filter every time I restart the browser.

So I would like to have a permanent way to suppress every output coming from a website (even warnings, errors etc.) without blocking my add-on from logging.

If possible without using jQuery :) Any ideas?

Thanks, Paul

Was it helpful?

Solution

Console² allows to filter chrome and content messages.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top