SHARE
TWEET

unresponsive script error

shape5 Feb 20th, 2016 12 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var f=this,k=function(a,b){var c=a.split("."),d=f;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b},m=function(a,b){function c(){}c.prototype=b.prototype;a.o=b.prototype;a.prototype=new c;a.m=function(a,c,g){for(var t=Array(arguments.length-2),h=2;h<arguments.length;h++)t[h-2]=arguments[h];return b.prototype[c].apply(a,t)}};var n=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};m(n,Error);var aa=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")},q=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},r=function(a,b){return a<b?-1:a>b?1:0};var v=function(a,b){b.unshift(a);n.call(this,aa.apply(null,b));b.shift()};m(v,n);var w=function(a,b,c){if(!a){var d="Assertion failed";if(b)var d=d+(": "+b),e=Array.prototype.slice.call(arguments,2);throw new v(""+d,e||[]);}};var x;a:{var y=f.navigator;if(y){var z=y.userAgent;if(z){x=z;break a}}x=""}var A=function(a){return-1!=x.indexOf(a)};var B=function(){return A("Opera")||A("OPR")};var ba=B(),C=A("Trident")||A("MSIE"),ca=A("Edge"),D=A("Gecko")&&!(-1!=x.toLowerCase().indexOf("webkit")&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),E=-1!=x.toLowerCase().indexOf("webkit")&&!A("Edge"),da=E&&A("Mobile"),F=function(){var a=f.document;return a?a.documentMode:void 0},G;
  2. a:{var H="",J=function(){var a=x;if(D)return/rv\:([^\);]+)(\)|;)/.exec(a);if(ca)return/Edge\/([\d\.]+)/.exec(a);if(C)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(E)return/WebKit\/(\S+)/.exec(a);if(ba)return/(?:Version)[ \/]?(\S+)/.exec(a)}();J&&(H=J?J[1]:"");if(C){var K=F();if(null!=K&&K>parseFloat(H)){G=String(K);break a}}G=H}
  3. var L=G,M={},N=function(a){if(!M[a]){for(var b=0,c=q(String(L)).split("."),d=q(String(a)).split("."),e=Math.max(c.length,d.length),g=0;0==b&&g<e;g++){var t=c[g]||"",h=d[g]||"",l=RegExp("(\\d*)(\\D*)","g"),I=RegExp("(\\d*)(\\D*)","g");do{var p=l.exec(t)||["","",""],u=I.exec(h)||["","",""];if(0==p[0].length&&0==u[0].length)break;b=r(0==p[1].length?0:parseInt(p[1],10),0==u[1].length?0:parseInt(u[1],10))||r(0==p[2].length,0==u[2].length)||r(p[2],u[2])}while(0==b)}M[a]=0<=b}},ea=f.document,fa=ea&&C?F()||
  4. ("CSS1Compat"==ea.compatMode?parseInt(L,10):5):void 0;var O;if(!(O=!D&&!C)){var P;if(P=C)P=9<=Number(fa);O=P}O||D&&N("1.9.1");C&&N("9");var ga=A("Safari")&&!((A("Chrome")||A("CriOS"))&&!B()&&!A("Edge")||A("Coast")||B()||A("Edge")||A("Silk")||A("Android"))&&!(A("iPhone")&&!A("iPod")&&!A("iPad")||A("iPad")||A("iPod"));var ia=function(a){var b=window;if(da&&ga&&b){b.focus();var c=0,d=null,d=b.setInterval(function(){a.closed||5==c?(b.clearInterval(d),ha(a)):(a.close(),c++)},150)}else a.close(),ha(a)},ha=function(a){if(!a.closed&&a.document&&a.document.body)if(a=a.document.body,w(null!=a,"goog.dom.setTextContent expects a non-null value for node"),"textContent"in a)a.textContent="Please close this window.";else if(3==a.nodeType)a.data="Please close this window.";else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=
  5. a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data="Please close this window."}else{for(var b;b=a.firstChild;)a.removeChild(b);w(a,"Node cannot be null or undefined.");a.appendChild((9==a.nodeType?a:a.ownerDocument||a.document).createTextNode("Please close this window."))}};var Q,R=function(a){a=a||[];for(var b=[],c=0,d=a.length;c<d;++c){var e=String(a[c]||"");e&&b.push(e)}if(!b.length)return null;Q?Q.reset.call(Q):Q=shindig.sha1();Q.update.call(Q,b.join(" "));return Q.digestString.call(Q).toLowerCase()},ja=function(a,b,c){this.i=String(a||"");this.f=String(b||"");this.a=String(c||"");this.b={};this.j=this.l=this.g=this.h="";this.c=null};
  6. ja.prototype.evaluate=function(){var a={},b="";try{b=String(document.cookie||"")}catch(t){}for(var b=b.split("; ").join(";").split(";"),c=0,d=b.length;c<d;++c){var e=b[c],g=e.indexOf("=");-1!=g?a[e.substr(0,g)]=e.substr(g+1):a[e]=null}this.b=a;if(this.b.SID)if(this.f=this.f.split(".")[0].split("@")[0],a="",a=0==this.i.indexOf("https://")?"SAPISID":"APISID",this.g=String(this.b[a]||""))if(a="",a=0==gadgets.rpc.getOrigin(String(window.location.href)).indexOf("https://")?"SAPISID":"APISID",this.h=String(this.b[a]||
  7. "")){b=String(this.b.LSOLH||"").split(":");c=b.length;if(1==c||4==c)this.l=b[0];if(3==c||4==c)a=String(b[c-3]||""),b=String(b[c-1]||""),(c=R([a,this.h]).substr(0,4))&&c==b&&(this.j=a);this.a&&(a=this.a.indexOf("."),-1!=a&&(a=this.a.substr(0,a)||"",this.a=a+"."+R([this.g,this.i,this.f,this.l,this.j,a]).substr(0,4)));a=R([this.g,this.i,this.f,this.a]);this.a&&(a=a+"."+this.a);this.c=a}else this.c="";else this.c=""};
  8. var ka=function(a,b,c){a=new ja(a,b,c);a.evaluate();return a},S=function(a,b,c){c=c||la(this);var d=null;if(a){a=String(a);var e=a.indexOf(".");-1!=e&&(d=a.substr(e+1))}b=ka(c,b,d).c;if(null==a||""==a)a=b==a;else if(null==b||b.length!=a.length)a=!1;else{d=c=0;for(e=a.length;d<e;++d)c|=a.charCodeAt(d)^b.charCodeAt(d);a=0==c}return a},T=function(a,b,c){c=c||la(this);c=ka(c);if(String(a)!=c.c)throw Error("Unauthorized request");b=String(b);a=parseInt(b,10);String(a)==b&&0<=a?(b=c.j)?(b=b.split("|"),
  9. a=b.length<=a?null:b[a]||null):a=null:a=null;return a},la=function(a){a=String(a.origin||"");if(!a)throw Error("RPC has no origin.");return a};k("checkSessionState",S);k("getVersionInfo",T);var U,V,W,X,Y,Z,ma=window,na=(window.location.href||ma.location.href).match(/.*(\?|#|&)usegapi=([^&#]+)/)||[];
  10. "1"===decodeURIComponent(na[na.length-1]||"")?(W=function(a,b,c,d,e,g){U.send(b,e,d,g||gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)},X=function(a,b){U.register(a,b,gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)},Y=function(a){var b=/^(?:https?:\/\/)?[0-9.\-A-Za-z]+(?::\d+)?/.exec(a),b=gapi.iframes.makeWhiteListIframesFilter([b?b[0]:null]);W("..","oauth2callback",gadgets.rpc.getAuthToken(".."),void 0,a,b)},V=function(){oa()},Z=function(){W("..","oauth2relayReady",gadgets.rpc.getAuthToken(".."));X("check_session_state",
  11. pa);X("get_versioninfo",qa)}):(W=function(a,b,c,d,e){gadgets.rpc.call(a,b+":"+c,d,e)},X=function(a,b){gadgets.rpc.register(a,b)},Y=function(a){gadgets.rpc.getTargetOrigin("..")==gadgets.rpc.getOrigin(a)&&W("..","oauth2callback",gadgets.rpc.getAuthToken(".."),void 0,a)},V=function(){Z()},Z=function(){W("..","oauth2relayReady",gadgets.rpc.getAuthToken(".."));X("check_session_state",S);X("get_versioninfo",T)});
  12. var oa=function(){var a=Z;window.gapi.load("gapi.iframes",function(){U=gapi.iframes.getContext().getParentIframe();a()})},ra=function(a){window.setTimeout(function(){Y(a)},1)},pa=function(a){var b,c;a&&(b=a.session_state,c=a.client_id);return S(b,c,U.getOrigin())},qa=function(a){return T(a.xapisidHash,a.sessionIndex,U.getOrigin())};k("oauth2callback",ra);
  13. k("oauth2verify",function(a,b){var c=window.open("javascript:void(0);",a),d;if(c&&!c.closed&&(d=c.oauth2callbackUrl))return window.timeoutMap=window.timeoutMap||{},window.realSetTimeout=window.realSetTimeout||window.setTimeout,window.setTimeout=function(a,b){try{var d=a,h=!1,l;a=function(){if(!h){h=!0;try{window.timeoutMap[String(l)]=void 0,delete window.timeoutMap[String(l)]}catch(a){}return d.call(this)}};var I=c.setTimeout(a,b);l=window.realSetTimeout(a,b);window.timeoutMap[String(l)]=I;return l}catch(p){}return window.realSetTimeout(a,
  14. b)},window.realClearTimeout=window.realClearTimeout||window.clearTimeout,window.clearTimeout=function(a){try{var b=window.timeoutMap[String(a)];b&&c.clearTimeout(b)}catch(d){}try{window.timeoutMap[String(a)]=void 0,delete window.timeoutMap[String(a)]}catch(d){}window.realClearTimeout(a)},ra(String(d)),"keep_open"!=b&&ia(c),!0;c&&!c.closed&&ia(c);return!1});window.addEventListener?window.addEventListener("load",V,!1):window.attachEvent("onload",V);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top