I have a custom phtml pages in Magento. As far I know Magento uses jQuery and prototype libraries.
For example, if I need external jQuery/jQueryUI, I need t
After AlexB post I used this work around.
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
if (!("console" in window) || !("firebug" in console) && !is_chrome)
{
var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
"group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
window.console = {};
for (var i = 0; i < names.length; ++i)
window.console[names[i]] = function() {}
}
As you can see, the is_chrome var returns true or false, adding !is_chrome stops the code from running.