ABS

Untitled

posted Mar 6, 2019, 10:47 PM by ABS BLACKOUT LLC

/* Copyright 2011 Google Inc. All Rights Reserved. */ (function(){var d,k=function(a){return a.replace(/^\s+|\s+$/g,"")},t=function(a){if(a&&a.tagName){var b=a.tagName.toLowerCase();if("input"===b||"textarea"===b)return!0}if(document.designMode&&"on"===document.designMode.toLowerCase())return!0;for(;a;a=a.parentNode)if(a.isContentEditable)return!0;return!1},u=function(a,b){var c=new XMLHttpRequest;c.open("GET",a,!0);c.onload=function(){var a=null;200===this.status&&(a=c.response);return b(a)};c.send()},v=/[0-9A-Za-z]/,y=function(){u(chrome.runtime.getURL("content.min.css"), function(a){var b=function(b){this.K=b.instanceId;this.J=a;b=document.createElement("div");var c=document.createElement("a");c.target="_blank";this.F=b.cloneNode(!1);this.B=document.createElement("audio");this.B.R=!0;this.b=b.cloneNode(!1);this.b.id="gdx-bubble-host";this.D=this.b.createShadowRoot?this.b.createShadowRoot():this.b.webkitCreateShadowRoot();var f=document.createElement("style");f.innerHTML=this.J;this.D.appendChild(f);this.a=b.cloneNode(!1);this.a.id="gdx-bubble-main";this.D.appendChild(this.a); this.g=b.cloneNode(!1);this.g.id="gdx-bubble-query-row";this.C=b.cloneNode(!1);this.C.id="gdx-bubble-query";this.i=b.cloneNode(!1);this.i.id="gdx-bubble-audio-icon";this.g.appendChild(this.C);this.g.appendChild(this.i);this.l=b.cloneNode(!1);this.l.id="gdx-bubble-meaning";this.f=b.cloneNode(!1);this.f.id="gdx-bubble-options-tip";this.f.innerHTML='Tip: Didn\'t want this definition pop-up? Try setting a trigger key in Extension Options.';this.m=b.cloneNode(!1);this.m.id="gdx-bubble-more"; this.h=c.cloneNode(!1);this.m.appendChild(this.h);this.c=b.cloneNode(!1);this.c.id="gdx-bubble-attribution";this.s=c.cloneNode(!1);this.v=b.cloneNode(!1);this.c.appendChild(this.s);this.c.appendChild(this.v);this.w=b.cloneNode(!1);this.w.id="gdx-bubble-close";this.a.appendChild(this.w);this.a.appendChild(this.g);this.a.appendChild(this.l);this.a.appendChild(this.f);this.a.appendChild(this.c);this.a.appendChild(this.m);this.A=b.cloneNode(!1);this.D.appendChild(this.A);this.I=w(b,"up");this.H=w(b,"down"); x(this)}.bind(this);chrome.runtime.sendMessage({type:"initialize"},b)}.bind(this))},z=[];d=y.prototype;d.J="";d.u=0;d.F=null;d.B=null;d.b=null;d.D=null;d.a=null;d.g=null;d.C=null;d.i=null;d.l=null;d.f=null;d.w=null;d.m=null;d.h=null;d.c=null;d.s=null;d.v=null;d.A=null;d.I=null;d.H=null;d.o=null;d.G=null; var x=function(a){a.G=a.N.bind(a);window.addEventListener("resize",a.j.bind(a));document.addEventListener("mouseup",a.P.bind(a));document.addEventListener("dblclick",a.L.bind(a));document.addEventListener("keydown",a.O.bind(a));a.w.onclick=a.j.bind(a);a.i.onclick=function(){this.B.play()}.bind(a);a.f.querySelector("a").onclick=function(){chrome.runtime.sendMessage({type:"openOptionsPage"},function(){});return!1};var b=function(a){a.preventDefault();a.stopPropagation()};a.i.onmousedown=b;a.w.onmousedown= b;chrome.runtime.onMessage.addListener(D);chrome.runtime.onMessage.addListener(a.G)},w=function(a,b){var c=a.cloneNode(!1),g=a.cloneNode(!1);a=a.cloneNode(!1);c.id="gdx-arrow-main";"up"===b?(g.id="gdx-bubble-arrow-inner-up",a.id="gdx-bubble-arrow-outer-up"):(g.id="gdx-bubble-arrow-inner-down",a.id="gdx-bubble-arrow-outer-down");c.appendChild(g);c.appendChild(a);return c},E=function(a,b,c,g){this.top=a;this.right=b;this.bottom=c;this.left=g},F=function(a){a.a.style.left="0";a.a.style.top="0";var b= a.a.offsetWidth,c=a.a.offsetHeight,g=[window.pageXOffset,window.pageYOffset],f=g[0],e=[a.o.left+f,a.o.top+g[1]],n=a.o.bottom-a.o.top,A=e[0]+(a.o.right-a.o.left)/2;g=f+document.documentElement.offsetWidth;var l=A-b/2;l+b>g&&(l=g-b);lh.top&&h.bottom>b.top&&b.leftf&&e+24+5e.rangeCount)return;f=e.getRangeAt(0);e=k(e.toString())}else document.selection&&(f=document.selection.createRange(),e=k(f.text));if(!(!e||1===e.length&&127>=e.charCodeAt(0)&&!e.match(v)||"dblclick"===c&&-1!==e.indexOf(" "))){a.u++;var n=a.u;J(a,b)||H(a,f);"false"===g.enableHttps&&0===location.href.lastIndexOf("https",0)?G(a,n):(window.setTimeout(function(){n=== this.u&&(this.l.innerHTML="Searching...",this.g.className="display-none",this.f.className="display-none",this.m.className="display-none",this.c.className="display-none",document.documentElement.appendChild(this.b),F(this))}.bind(a),300),chrome.runtime.sendMessage({type:"fetch_raw",eventKey:n,instanceId:a.K,query:e},a.M.bind(a)))}}}};y.prototype.P=function(a){J(this,a)||this.j();var b=function(b){K(this,a,"mouseup",b.options)}.bind(this);chrome.runtime.sendMessage({type:"options"},b)}; y.prototype.L=function(a){var b=function(b){K(this,a,"dblclick",b.options)}.bind(this);chrome.runtime.sendMessage({type:"options"},b)};var D=function(a,b,c){"get_selection"===a.type&&(a=k(window.getSelection().toString()))&&c({selection:a})};y.prototype.N=function(a){"hide"===a.type&&a.instanceId===this.K&&this.j()};var M=M||!1; if(!M){if(window.gdxBubbleInstance){var N=window.gdxBubbleInstance;chrome.runtime.onMessage.removeListener(D);chrome.runtime.onMessage.removeListener(N.G);N.j()}window.gdxBubbleInstance=new y};})();

1-1 of 1