Překlad webové stránky

Sekcia: Aplikácie & Desktop 08.10.2021 | 22:04
Avatar Šimon Hart Linux Mint  Používateľ

Zdravím, prosím o vyjádření, případně o pomoc. Léta jsem používal jeden odkaz k překladu celé webové stránky v prohlížeči. Nezáleželo na prohlížeči, všude to fungovalo. Nevytvářel jsem ho, ale jen někde velmi dávno ho sehnal na internetu. Ten odkaz jsem používal na liště a překlad pak proběhl v tom samém listu prohlížeče automaticky.

javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/?text='+t+'&hl=cs&langpair=auto|cs&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=cs&langpair=auto|cs&tbb=1&ie='+e;};

Ale gúggl zase něco změnil a přestal odkaz fungovat. Vyskočí jen nějaká chyba. Lze ten odkaz poupravit, aby znova fungovalo? nebo už je bezpředmětný? Předem děkuji za jakoukoliv pomoc a radu.

HP EliteDesk 800 G1, 32 GB, 1TB, nVIDIA GeForce GTX 1650
    • RE: Překlad webové stránky 08.10.2021 | 22:44
      Avatar LUcoRP Debian, *Ubuntu, Android  Administrátor

      V kode zamen http na https, cize kod bude nasledovny:

      javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='https://translate.google.com/?text='+t+'&hl=cs&langpair=auto|cs&tbb=1&ie='+e;}else{location.href='https://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&hl=cs&langpair=auto|cs&ie='+e;};

      git blame | Muj Desvorc je vetsi nez tvuj!
    • RE: Překlad webové stránky 08.10.2021 | 22:50
      Avatar Šimon Hart Linux Mint  Používateľ

      Zdraví, moc a moc děkuji

      HP EliteDesk 800 G1, 32 GB, 1TB, nVIDIA GeForce GTX 1650