Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.     if (({}).toString.call(window.opera) === '[object Opera]') {
  2.      (function () {
  3.        var x = Error.prototype.toString;
  4.        Error.prototype.toString = function () {
  5.          var msg = '';
  6.          try {
  7.            msg = x.apply(this, arguments);
  8.            if (typeof (window.onerror) === "function") {
  9.              window.onerror(msg, typeof (this) === 'object' ? this.stack : '', '');
  10.            }
  11.          } catch (e) {}
  12.          return msg;
  13.        };
  14.      }());
  15.    }