Guest User

Untitled

a guest
Aug 20th, 2020
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.67 KB | None | 0 0
  1. --- popup_compiled.js   2020-03-25 16:20:59.494184195 +0200
  2. +++ /home/toquza/Downloads/google-translate-2.0.9/popup_compiled.js 2020-08-20 23:47:28.959769397 +0300
  3. @@ -127,7 +127,7 @@
  4.  xh.prototype.a=function(a,b,c,d){if(null!=d){for(var e=d.src,f=kf(),g=[],k=[],q=d.sentences,B=0;B<q.length;B++)g.push(q[B].orig),k.push(q[B].trans);g=g.join("");k=k.join("");q=mf("tl")[f].toUpperCase();B=mf("sl");var x=[],ib;for(ib in B)x.push([ib,B[ib]]);Te(c,{query:b,yb:k,xb:q,vb:e,wb:x,mb:d.dict,popup:a});d=dc("gtx-lang-selector",c);L(d,"change",r(this.f,this,a,b,c),!1,this);b=new af;d=dc("gtx-source-audio",c);td(b,d);ef(b,g,e);b=new af;d=dc("gtx-target-audio",c);td(b,d);ef(b,k,f);e="https://translate.google.com/?source=gtx_m#"+
  5.  e+"/"+f+"/"+encodeURIComponent(window.selection);a?(a=I("more"),a.setAttribute("href",e),c=new T("",void 0,4),sd(c,I("new-translation")),kd(I("new-translation"),!0),c=I("translate-page"),mc(a,Ze("MSG_OPEN_IN_TRANSLATE")),c.className="gtx-a",c.setAttribute("style","margin-left: 0px;"),kd(a,!0)):(a=ic(document,"a"),a.id="off",a.className="gtx-a",a.setAttribute("target","_blank"),mc(a,Ze("MSG_FOOTER_OPTIONS").toUpperCase()),a.setAttribute("href",chrome.runtime.getURL("options.html")),jc(c,a),a=ic(document,
  6.  "a"),a.id="more",a.setAttribute("class","gtx-a"),a.setAttribute("target","_blank"),mc(a,Ze("MSG_MORE")),a.setAttribute("href",e),a.setAttribute("style","color: #A2A2A2; float: right; padding-top: 16px;"),jc(c,a))}else mc(I("translation"),Ze("MSG_TRANSLATION_ERROR"))};xh.prototype.f=function(a,b,c,d){yh(b,r(this.a,this,a,b,c),"ls",d.target.value)};var zh=function(){};u(zh,O);n(zh);zh.prototype.ga=function(a){var b=a.h.Ma("SPAN",Fd(this,a).join(" "));Ah(this,b,a.m);return b};zh.prototype.K=function(a,b){b=zh.s.K.call(this,a,b);v(b);var c=wd(b),d=!1;y(c,Bh(this,null))?d=null:y(c,Bh(this,!0))?d=!0:y(c,Bh(this,!1))&&(d=!1);a.m=d;v(b,"The element cannot be null.");uc(b,"checked",null==d?"mixed":1==d?"true":"false");return b};zh.prototype.Aa=function(){return"checkbox"};
  7.  var Ah=function(a,b,c){if(b){v(b);var d=Bh(a,c);v(d);v(b);yd(b,d)||(Fa(Ch,function(e){e=Bh(this,e);v(b);e==d?zd(b,e):Bd(b,e)},a),uc(b,"checked",null==c?"mixed":1==c?"true":"false"))}};zh.prototype.v=function(){return"goog-checkbox"};var Bh=function(a,b){a=a.v();if(1==b)return a+"-checked";if(0==b)return a+"-unchecked";if(null==b)return a+"-undetermined";throw Error("Invalid checkbox state: "+b);};var Dh=function(a,b,c){c=c||zh.G();P.call(this,null,c,b);this.m=void 0!==a?a:!1};u(Dh,P);var Ch={jb:!0,sd:!1,td:null};h=Dh.prototype;h.ha=function(){return 1==this.m};h.Ua=function(a){a!=this.m&&(this.m=a,Ah(this.f,this.o(),this.m))};h.T=function(){Dh.s.T.call(this);this.Da&&rd(this).listen(this.o(),"click",this.cb);qd(this)};h.cb=function(a){a.h();var b=this.m?"uncheck":"check";this.a()&&!a.target.href&&N(this,b)&&(a.j(),this.Ua(this.m?!1:!0),N(this,"change"))};
  8.  h.Ca=function(a){32==a.keyCode&&(this.ia(a),this.cb(a));return!1};Od("goog-checkbox",function(){return new Dh});var Eh=xh.G(),Fh=chrome.extension.getBackgroundPage();document.addEventListener("DOMContentLoaded",function(){chrome.tabs.executeScript({code:"disposeWindowBubble();"});Gh();Hh();L(I("new-translation"),"click",Ih);mc(I("options-link"),Ze("MSG_FOOTER_OPTIONS"));mc(I("translate-link"),Ze("MSG_FOOTER_TRANSLATE"));Jh();chrome.runtime.connect()});
  9. -var Gh=function(){var a=I("search-bar"),b=$e(),c=I("text-input");sd(b,a);L(b,"action",Kh);L(c,"keypress",function(d){13==d.keyCode&&Kh()});Lh()},Hh=function(){var a=I("translate-page");mc(a,Ze("MSG_TRANSLATE_PAGE"));var b;chrome.tabs.query({active:!0,currentWindow:!0},function(c){b=c[0]});L(a,"click",function(){Fh.translate.getTranslateManager().attach(b.id);window.close()})},Jh=function(){chrome.tabs.executeScript({code:"window.getSelection().toString();",allFrames:!0},function(a){for(var b=0;b<
  10. +var Gh=function(){var a=I("search-bar"),b=$e(),c=I("text-input");sd(b,a);L(b,"action",Kh);L(c,"keypress",function(d){13==d.keyCode&&Kh()});Lh()},Hh=function(){var a=I("translate-page");mc(a,Ze("MSG_TRANSLATE_PAGE"));var b;chrome.tabs.query({active:!0,currentWindow:!0},function(c){b=c[0]});L(a,"click",function(){Fh.translate.getTranslateManager().attach(b.id);window.close()})},Jh=function(){if(!jf.loaded)setTimeout(Jh,5);else chrome.tabs.executeScript({code:"window.getSelection().toString();",allFrames:!0},function(a){for(var b=0;b<
  11.  a.length;b++)if(""!=a[b]){Mh(a[b],"popup");break}})},Ih=function(){Lh();kd(I("more"),!1);I("text-input").focus()},Lh=function(){I("text-input").value="";kd(I("search-bar"),!0);kd(I("new-translation"),!1);kd(I("more"),!1);Te(I("translation"))},Kh=function(){Mh(I("text-input").value,"input")},Mh=function(a,b){""!=a.trim()&&(kd(I("search-bar"),!1),yh(a,r(Eh.a,Eh,!0,a,I("translation")),b))};})();
  12.  
Add Comment
Please, Sign In to add comment