google translate element per zupffwhy
Automatically inserts Google Translate Element into the page. Translate the entire page without leaving page or opening a new tab.
Tu pote usar iste extension solo sur Firefox
Metadatos del extension
Capturas de schermo
A proposito de iste extension
This add-on may not work on some pages due to the Content Security Policy settings or other security restrictions on those pages.
This add-on automatically inserts Google Translate Element into the page. Translate the entire page without leaving page or opening a new tab.
To translate without leaving pages or tabs, you need to add the following code on the options page. This executes the remote code for Google Translate Element. For this reason, this code cannot be included in the add-on. Because Mozilla doesn't allow add-ons to use remote scripts because they can create serious security vulnerabilities. So you need to enable this code on your own will. Do not use this code if you don't trust it or if you don't trust the Google Translate Element service. Adding code at your own discretion is the same as writing a script for Greasemonkey and its derived add-ons. If you live in China, the add-on may work if you change .com in the code to .cn.
The function to translate without leaving the page will not work on some pages that have a Content Security Policy. For example it works on Wikipedia, but it does not work on GitHub. If you want to use this function even on a page with a Content Security Policy, you need to write the following Content Security Policy on the Options page at your own will. If you live in China, the add-on may work if you change .com to .cn.
In addition, there is a function to translate the selected text or the entire page in a separate tab, separate window or sidebar. You can use any translation engine such as Google or Bing.
In Wikipedia articles, symbols such as [3] that indicate sources and annotations appear in sentences. This often breaks sentences, and translation engines often do strange translations. To improve this, use an add-on that can delete these symbols.
I invite you to explore and help me translate this add-on in Crowdin.
Please make a donation through Kampa! (You can donate a minimum of 15 yen (15 cents)), Amazon (Recipient Email: heyxedjn@kampa.me) or PayPal.Me or Bit Coin 3FvQjLuiqQzZeWAoZBtwBwEV8TzWcEYQvt.
Tags: Google Translate toolbar EN>RU, Google Translate, Mirai Translate, DeepL Translator, Yandex Translate, 百度翻译, Papago Translator, エキサイト 翻訳, Bing Microsoft Translator, Weblio 翻訳
------ Code ------
This add-on automatically inserts Google Translate Element into the page. Translate the entire page without leaving page or opening a new tab.
To translate without leaving pages or tabs, you need to add the following code on the options page. This executes the remote code for Google Translate Element. For this reason, this code cannot be included in the add-on. Because Mozilla doesn't allow add-ons to use remote scripts because they can create serious security vulnerabilities. So you need to enable this code on your own will. Do not use this code if you don't trust it or if you don't trust the Google Translate Element service. Adding code at your own discretion is the same as writing a script for Greasemonkey and its derived add-ons. If you live in China, the add-on may work if you change .com in the code to .cn.
The function to translate without leaving the page will not work on some pages that have a Content Security Policy. For example it works on Wikipedia, but it does not work on GitHub. If you want to use this function even on a page with a Content Security Policy, you need to write the following Content Security Policy on the Options page at your own will. If you live in China, the add-on may work if you change .com to .cn.
In addition, there is a function to translate the selected text or the entire page in a separate tab, separate window or sidebar. You can use any translation engine such as Google or Bing.
In Wikipedia articles, symbols such as [3] that indicate sources and annotations appear in sentences. This often breaks sentences, and translation engines often do strange translations. To improve this, use an add-on that can delete these symbols.
I invite you to explore and help me translate this add-on in Crowdin.
Please make a donation through Kampa! (You can donate a minimum of 15 yen (15 cents)), Amazon (Recipient Email: heyxedjn@kampa.me) or PayPal.Me or Bit Coin 3FvQjLuiqQzZeWAoZBtwBwEV8TzWcEYQvt.
Tags: Google Translate toolbar EN>RU, Google Translate, Mirai Translate, DeepL Translator, Yandex Translate, 百度翻译, Papago Translator, エキサイト 翻訳, Bing Microsoft Translator, Weblio 翻訳
------ Code ------
function modify_page(pagelanguage, includedlanguages) {
if (document.querySelector("#google_translate_element")) {
return false;
}
let url = "//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit";
let loc = new URL(window.location);
if (loc.protocol != "http:" && loc.protocol != "https:") {
url = "https:" + url;
}
let s = `function googleTranslateElementInit() {new google.translate.TranslateElement({pageLanguage: "${pagelanguage}", includedLanguages: "${includedlanguages}", layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true,}, "google_translate_element" );}`;
let elem = document.createElement("script");
elem.setAttribute("id", "google_translate_element");
elem.appendChild(document.createTextNode(s));
document.body.appendChild(elem);
elem = document.createElement("script");
elem.setAttribute("src", url);
document.body.appendChild(elem);
return true;
}
true;
------ Content Security Policy ------script-src 'unsafe-eval' 'unsafe-inline' translate.googleapis.com translate.google.com; style-src translate.googleapis.com; img-src translate.googleapis.com www.gstatic.com www.google.com translate.google.com;
Evaluta tu experientia
Supportar iste disveloppator
Le disveloppator de iste extension te demanda adjuta pro supportar su continuation del disveloppamento per un micre donation.
PermissionesSaper plus
Iste additivo debe:
- Obtener datos ab le area de transferentia
- Acceder al chronologia de navigation
- Surveliar le utilisation del extensiones e gerer le themas
- Monstra le notificationes pro te
- Acceder al schedas claudite recentemente
- Celar e monstrar le schedas del navigator
- Accede al schedas del navigator
- Acceder a tu datos pro tote le sitos web
Iste additivo pote alsi demandar de:
- Obtener datos ab le area de transferentia
- Acceder al chronologia de navigation
- Acceder al schedas claudite recentemente
- Celar e monstrar le schedas del navigator
Plus de informationes
- Ligamines del additivo
- Version
- 2.2024.403.0
- Dimension
- 380,14 KB
- Ultime actualisation
- 2 bulan yang lepas (3 Apr 2024)
- Categorias associate
- Licentia
- Tote le derectos es reservate
- Historia de versiones
- Etiquettas
Adder al collection
Altere extensiones ex zupffwhy
- Il ha non ha ancora evalutationes
- Il ha non ha ancora evalutationes
- Il ha non ha ancora evalutationes
- Il ha non ha ancora evalutationes
- Il ha non ha ancora evalutationes
- Il ha non ha ancora evalutationes