Created
April 3, 2012 03:25
-
-
Save rakeshpai/2289061 to your computer and use it in GitHub Desktop.
Trying out with contents inlined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _errs=["##EC##"]; | |
window.onerror=function(){_errs.push(arguments)}; | |
(function(f,n){function r(d,a){d=d.contentWindow||d.contentDocument;d.document&&(d=d.document);d.open();d.write(a);d.close()}function s(d,a){a=(""+a).replace(/</g,"<").replace(/>/g,">").replace(/'/g,""");return"<input type='hidden' name='"+d+"' value='"+a+"' />"}function o(d){l&&clearTimeout(l);l=setTimeout(t,200);d._when=p;q.push(d);try{if("ot"==m){for(var a,h=d.callee,e=/function\s*([\w\-$]+)?\s*\(/i,c=[],b,k;h&&10>c.length;)b=e.test(h.toString())?RegExp.$1||"{anonymous}":"{anonymous}", | |
k=Array.prototype.slice.call(h.arguments||[]),c[c.length]=b+"("+i(k)+")",h=h.caller;a=c.join("\n");d._stack=a}}catch(g){}}function t(){var d=[],a,b,e,c,f=0,k,g=function(a,c){d.push(s(a+f,c))};try{for(;a=q.shift();){b=k=a.m||a[0]||a;e=a.u||a[1];c=a.l||a[2];if(!(k&&k instanceof Error)&&b&&"string"==typeof b&&e&&c&&("Error loading script"===b&&/Firefox/.test(navigator.userAgent)||/originalCreateNotification/.test(b)?f--:(g("type","onerr"),g("message",b),g("url",e),g("line",c),g("page",location.href), | |
g("when",a._when)),"ot"==m))g("method",m),g("stack",a._stack||"");f++}if(d.length){var j=n.createElement("iframe");j.src="javascript:false;";j.style.display="none";var i=n.getElementsByTagName("script")[0];i.parentNode.insertBefore(j,i);r(j,u+d.join("")+v);j.onload=function(){setTimeout(function(){try{j.parentNode.removeChild(j)}catch(a){}},10)}}}catch(l){}}if(f._errs&&_errs.shift){var u="<form method='post' action='https://errorception.com/projects/"+_errs.shift()+"/err'>",v="</form><script>document.getElementsByTagName('form')[0].submit()<\/script>", | |
q=[],p="before",l,b;try{x.y.z()}catch(w){b=w}for(var m=b.arguments&&b.stack?"ch":"string"===typeof b.message&&"undefined"!==typeof f&&f.opera?!b.stacktrace||-1<b.message.indexOf("\n")&&b.message.split("\n").length>b.stacktrace.split("\n").length?"o9":!b.stack?"o10a":0>b.stacktrace.indexOf("called from line")?"o10b":"o11":b.stack?"ff":"ot";b=_errs.shift();)o(b);p="after";_errs={push:o};var i=function(b){if("https:"==f.location.protocol)return"";for(var a=[],h=Array.prototype.slice,e=0;e<b.length;++e){var c= | |
b[e];void 0===c?a[e]="undefined":null===c?a[e]="null":c.constructor&&(c.constructor===Array?a[e]=3>c.length?"["+i(c)+"]":"["+i(h.call(c,0,1))+"..."+i(h.call(c,-1))+"]":c.constructor===Object?a[e]="#object":c.constructor===Function?a[e]="#function":c.constructor===String?a[e]='"'+c+'"':c.constructor===Number&&(a[e]=c))}return a.join(",")}}})(window,document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment