Bug 1705109 - Remove WeTransfer FileLink provider. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D119842 --HG-- extra : rebase_source : 3fbeac5af2e1469df7f289ec05c515a72a2c6b31
This commit is contained in:
Родитель
26d184c077
Коммит
6d70c88163
|
@ -261,7 +261,6 @@ MailGlue.prototype = {
|
|||
commandLine.getArgument(flagIndex) ===
|
||||
MailGlue.BROWSER_TOOLBOX_WINDOW_URL
|
||||
) {
|
||||
this._developerToolboxInit();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -629,23 +628,6 @@ MailGlue.prototype = {
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* If this is the developer toolbox process, disable the built-in WeTransfer
|
||||
* add-on, which shouldn't be running here.
|
||||
*/
|
||||
_developerToolboxInit() {
|
||||
let disableWeTransfer = async () => {
|
||||
let weTransfer = await AddonManager.getAddonByID(
|
||||
"wetransfer@extensions.thunderbird.net"
|
||||
);
|
||||
if (weTransfer) {
|
||||
weTransfer.disable({ allowSystemAddons: true });
|
||||
}
|
||||
Services.obs.removeObserver(disableWeTransfer, "final-ui-startup");
|
||||
};
|
||||
Services.obs.addObserver(disableWeTransfer, "final-ui-startup");
|
||||
},
|
||||
|
||||
// for XPCOM
|
||||
QueryInterface: ChromeUtils.generateQI(["nsIObserver"]),
|
||||
};
|
||||
|
|
|
@ -9,10 +9,6 @@ EXTRA_JS_MODULES += [
|
|||
|
||||
JAR_MANIFESTS += ["jar.mn"]
|
||||
|
||||
DIRS += [
|
||||
"wetransfer",
|
||||
]
|
||||
|
||||
BROWSER_CHROME_MANIFESTS += [
|
||||
"test/browser/browser.ini",
|
||||
]
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "شارِك ما تريد من مرفقات عبر WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink لخدمة WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "سياسة الخصوصية"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "إنّ WeTransfer هي أبسط الطرق لإرسال ملفاتك حول العالم."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Comparte axuntos per WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink pa WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Política de privacidá"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer ye'l mou más cenciellu d'unviar ficheros pel mundu."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Дзяліцеся сваімі ўкладаннямі праз WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink для WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Палітыка прыватнасці"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer - самы просты спосаб дасылаць вашыя файлы па ўсім свеце."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Споделяйте прикачените си файлове чрез WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink или WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Декларация за поверителност"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer е най-лесният начин да изпращате файлове по целия свят."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Rannit ho stagadennoù dre WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink evit WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Reolenn a-fet buhez prevez"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "An doare eeunañ da gas restroù er bed a-bezh eo WeTransfer."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Dijelite svoje datoteke putem WeTransfer-a"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink za WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Polica privatnosti"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer je najjednostavniji način slanja datoteka širom svijeta."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Compartiu les vostres adjuncions mitjançant el WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink per al WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Política de privadesa"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "El WeTransfer és la manera més senzilla d'enviar els vostres fitxers arreu del món."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Ke'akomonij ri taq atz'aqatisaxik rik'in WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink richin WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Ichinan Na'oj"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer jun man k'ayew ta rub'anikil richin ye'atäq taq ayakb'al chijun ri ruwach'ulew."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Sdílejte své přílohy pomocí WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink pro WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Zásady ochrany osobních údajů"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer je nejjednodušší způsob pro odeslání souboru na druhou stranu světa."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Rhannwch eich atodiadau trwy WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink ar gyfer WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Polisi Preifatrwydd"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer yw'r ffordd symlaf o anfon eich ffeiliau ar draws y byd."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Teile deine Anhänge über WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink für WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Datenschutzrichtlinie"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer ist der einfachste Weg, deine Dateien um die ganze Welt zu senden."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Waše pśidanki pśez WeTransfer źěliś"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink za WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Pšawidła priwatnosći"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer jo nejjadnorjejša móžnosć, waše dataje pó cełem swěśe rozpósłaś."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Διαμοιρασμός συνημμένων μέσω του WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink για το WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Πολιτική απορρήτου"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "Το WeTransfer είναι ο πιο απλός τρόπος για να στείλετε τα αρχεία σας σε όλο τον κόσμο."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Share your attachments via WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink for WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Privacy Policy"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer is the simplest way to send your files around the world."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Share your attachments via WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink for WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Privacy Policy"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer is the simplest way to send your files around the world."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Comparta sus archivos adjuntos a través de WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink para WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Política de privacidad"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer es la forma más sencilla de enviar sus archivos alrededor del mundo."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Comparte tus adjuntos a través de WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink para WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Política de privacidad"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer es la forma más sencilla de enviar tus archivos alrededor del mundo."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Jaga manuseid WeTransfer teenuse vahendusel"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "Filelink WeTransfer teenusele"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Privaatsusreeglid"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer on lihtsaim viis failide saatmiseks üle maailma."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Banatu zure eranskinak WeTransfer erabiliz"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink WeTransfer erabiltzeko"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Pribatutasun-politika"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer zure fitxategiak munduan zabaltzeko erarik sinpleena da."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "پیوستهایتان را از طریق WeTransfer به اشتراک بگذارید"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink برای WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "سیاست حریم خصوصی"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer آسانترین راه برای ارسال پروندههایتان در سطح جهان است."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Jaa liitteesi WeTransferin avulla"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink WeTransferille"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Tietosuojakäytäntö"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer on yksinkertaisin tapa lähettää tiedostoja maailman ympäri."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Partagez vos pièces jointes avec WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink pour WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Politique de confidentialité"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer est le moyen le plus simple d’envoyer vos fichiers dans le monde entier."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Diel jo bylagen fia WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink foar WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Privacybelied"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer is de meast ienfâldige manier om jo bestannen wrâldwiid te ferstjoeren."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Co-roinn na ceanglachain agad le WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink airson WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Am poileasaidh prìobhaideachd"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "’S e WeTransfer an dòigh as fhasa airson na faidhlichean agad a chur gu ceithir ceàrnan an t-saoghail."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Dijeli svoje privitke putem WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink za WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Pravila o privatnosti"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer je najjednostavniji način za slanje vlastitih datoteka diljem svijeta."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Waše přiwěški přez WeTransfer dźělić"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink za WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Prawidła priwatnosće"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer je najjednoriša móžnosć, waše dataje swětodaloko rozpósłać."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Ossza meg mellékleteit a WeTransfer segítségével"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink a WeTransferhez"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Adatvédelmi irányelvek"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "A WeTransfer a legegyszerűbb módja a fájlok világszerte történő elküldésének."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Համօգտագործեք ձեր կցորդները WeTransfer-ով"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink՝ WeTransfer-ի համար"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Գաղտնիության դրույթներ"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer-ը աշխարհով մեկ ձեր ֆայլերը ուղարկելու ամենապարզ միջոցն է:"
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Comparti tu annexos per WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink pro WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Politica de confidentialitate"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer es le maniera plus simple de inviar tu files circum tote le mundo."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Bagikan lampiran Anda melalui WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink untuk WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Kebijakan Privasi"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer adalah cara paling sederhana untuk mengirim berkas Anda ke seluruh dunia."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Condividi i tuoi allegati con WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink per WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Informativa sulla privacy"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer è il modo più semplice per inviare i tuoi file in tutto il mondo."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "WeTransfer 経由で添付ファイルを共有しよう"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink for WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "プライバシーポリシー"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer は世界中にファイルを送信するための最もシンプルな手段です。"
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "გააზიარეთ დართული ფაილები WeTransfer-ით"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink WeTransfer-ისთვის"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "პირადულობის დებულება"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer უმარტივესი გზაა, ფაილების გასაგზავნად მთელ მსოფლიოში."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Bḍu ifuyla yeddan s WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink i WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Tasertit tabaḍnit"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer d allal afessas i tuzna n yifuyla-ik deg umaḍal meṛṛa."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Салынымдармен WeTransfer арқылы бөлісіңіз"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "WeTransfer үшін FileLink"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Жекелік саясаты"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer - бүкіл әлем бойынша файлдарды жіберудің қарапайым тәсілі."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "WeTransfer를 통해 첨부파일 공유"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "WeTransfer FileLink"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "개인 정보 보호 정책"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer는 전 세계에 파일을 전송하는 가장 간단한 방법입니다."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Dalykitės priedais per „WeTransfer“"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "Failų siuntimas per „WeTransfer“"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "„WeTransfer“"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Privatumo nuostatai"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "„WeTransfer“ yra paprasčiausias būdas siųsti failus visame pasaulyje."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Del vedleggene dine via WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink for WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Personvernbestemmelser"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer er den enkleste måten å sende filene dine over hele verden."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Uw bijlagen delen via WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink voor WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Privacybeleid"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer is de meest eenvoudige manier om uw bestanden wereldwijd te versturen."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Del vedlegga dine via WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink for WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Personvernpraksis"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer er den enklaste måten å sende filene dine rundt om i verda på."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Wysyłanie załączników przez serwis WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink dla WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Zasady ochrony prywatności"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer to najprostszy sposób na przesyłanie plików na całym świecie."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Compartilhe seus anexos via WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink para WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Política de privacidade"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer é a maneira mais simples de enviar seus arquivos para o mundo todo."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Partilhe os seus anexos via WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink para WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Política de privacidade"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "O WeTransfer é a maneira mais simples de enviar os seus ficheiros à volta do mundo."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Cundivida tias agiuntas via WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink per WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Directivas per la protecziun da datas"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer è la via pli simpla per trametter tias datotecas en tut il mund."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Partajează-ți atașamentele prin WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink pentru WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Politică de confidențialitate"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer este cel mai simplu mod de a trimite fișiere în întreaga lume."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Поделитесь своими вложениями через WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink для WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Политика приватности"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer — это самый простой способ отправить ваши файлы в любую точку земного шара."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "WeTransfer හරහා ඔබේ ඇමිණුම් බෙදාගන්න"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "WeTransfer සඳහා FileLink"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "පෞද්ගලිකත්ව ප්රතිපත්තිය"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "ඔබේ ගොනු ලොව පුරා යැවීමට සරලම ක්රමය WeTransfer"
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Zdieľajte svoje prílohy pomocou rozšírenia WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink pre WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Zásady ochrany súkromia"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "Pomocou rozšírenia WeTransfer môžete svoje súbory posielať jednoducho do celého sveta."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Delite svoje priloge s storitvijo WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink za WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Politika zasebnosti"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer je najenostavnejši način pošiljanja datotek po svetu."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Ndajini bashkëngjitjet tuaja me të tjerët përmes WeTransfer-it"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink për WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Rregulla Privatësie"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer është rruga më e thjeshtë për të dërguar kartelat tuaja anembanë botës."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Поделите своје прилоге преко WeTransfer-а"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink за WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Политика приватности"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer је најједноставнији начин слања датотека широм света."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Dela dina bifogade filer via WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink för WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Sekretesspolicy"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer är det enklaste sättet att skicka dina filer runt om i världen."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "แบ่งปันไฟล์แนบของคุณผ่าน WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink สำหรับ WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "นโยบายความเป็นส่วนตัว"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer เป็นวิธีที่ง่ายที่สุดในการส่งไฟล์ของคุณทั่วโลก"
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Eklerinizi WeTransfer ile paylaşın"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "WeTransfer için FileLink"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Gizlilik Politikası"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer, dosyalarınızı dünyanın her yerine göndermenin en basit yoludur."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Поділіться своїми вкладеннями через WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink для WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Політика приватності"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer - це найпростіший спосіб надсилання ваших файлів по всьому світу."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "Chia sẻ tập tin đính kèm của bạn thông qua WeTransfer"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink cho WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "Chính sách riêng tư"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer là cách đơn giản nhất để gửi các tập tin của bạn trên toàn thế giới."
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "通过 WeTransfer 共享您的附件"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink for WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "隐私政策"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer - 以最简单的方式将您的文件发送至全球。"
|
||||
}
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
"extensionDescription": {
|
||||
"message": "使用 WeTransfer 分享附件"
|
||||
},
|
||||
"extensionName": {
|
||||
"message": "FileLink for WeTransfer"
|
||||
},
|
||||
"serviceName": {
|
||||
"message": "WeTransfer"
|
||||
},
|
||||
"moments_privacyPolicy": {
|
||||
"message": "隱私權保護政策"
|
||||
},
|
||||
"moments_tagline": {
|
||||
"message": "WeTransfer 是最簡單就能發送檔案到世界各地的方式。"
|
||||
}
|
||||
}
|
|
@ -1,170 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* globals browser */
|
||||
|
||||
const FIVE_MB = 5242880;
|
||||
const TWO_GB = 2147483648;
|
||||
|
||||
class WeTransferSession {
|
||||
constructor() {
|
||||
this.token = null;
|
||||
}
|
||||
|
||||
async _request(endpoint, fetchinfo, withToken = true) {
|
||||
let url = new URL(endpoint, "https://dev.wetransfer.com/");
|
||||
let headers = { "content-type": "application/json" };
|
||||
|
||||
// Before you spend time trying to find out what this means, please note
|
||||
// that doing so and using the information WILL cause WeTransfer to revoke
|
||||
// this extension's privileges, which means not one Thunderbird user will
|
||||
// be able to upload to WeTransfer using Thunderbird. This will cause
|
||||
// unhappy users all around which means that the developers will have to
|
||||
// spend more time with user support, which means less time for features,
|
||||
// releases and bugfixes. For a paid developer this would actually mean
|
||||
// financial harm.
|
||||
//
|
||||
// Do you really want all of this to be your fault? Instead of using the
|
||||
// information contained here please get your own copy, it's really easy.
|
||||
/* eslint-disable */
|
||||
((y,z)=>{z["\x78\x2d\x61\x70\x69\x2d\x6b\x65\x79"]=y["\x41\x72\x72\x61"+
|
||||
"\x79"]["\x66\x72\x6f\x6d"](("\x78\x4f\x57\x49\x33")+"\x51\x3a\x78\x39"+
|
||||
"\x42\x6d\x6f\x78\x76\x74"+("\x67\x32\x58\x48\x67\x36\x45\x53\x70\x32")+
|
||||
"\x73\x6e\x70\x4a\x7b\x75\x58\x79\x6f\x58"+"\x53\x44\x51\x64\x31"+"",c=>
|
||||
y[("\x53\x74\x72\x69\x6e\x67")+("")]["\x66\x72\x6f\x6d\x43\x68\x61\x72"+
|
||||
"\x43\x6f\x64\x65"](c["\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74"](0)-!0)
|
||||
)["\x6a\x6f\x69\x6e"]("");})(window,headers)
|
||||
/* eslint-enable */
|
||||
|
||||
if (this.token && withToken) {
|
||||
headers.Authorization = "Bearer " + this.token;
|
||||
}
|
||||
|
||||
fetchinfo.mode = "cors";
|
||||
fetchinfo.headers = headers;
|
||||
if (!fetchinfo.method) {
|
||||
fetchinfo.method = "POST";
|
||||
}
|
||||
|
||||
let response = await fetch(url, fetchinfo);
|
||||
|
||||
let responseData;
|
||||
if (response.headers.get("content-type") == "application/json") {
|
||||
try {
|
||||
responseData = await response.json();
|
||||
} catch (e) {
|
||||
if (!response.ok) {
|
||||
throw new Error(response.statusText);
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
||||
if (responseData.success === false || responseData.error) {
|
||||
throw new Error(responseData.error);
|
||||
}
|
||||
} else {
|
||||
responseData = await response.text();
|
||||
}
|
||||
return responseData;
|
||||
}
|
||||
|
||||
async authorize(signal = null) {
|
||||
let data = await this._request("/v2/authorize", { signal }, false);
|
||||
this.token = data.token;
|
||||
}
|
||||
|
||||
async createTransfer(name, data, description = "", signal = null) {
|
||||
if (!this.token) {
|
||||
await this.authorize();
|
||||
}
|
||||
|
||||
let transfer = await this._request("/v2/transfers", {
|
||||
body: JSON.stringify({
|
||||
message: name,
|
||||
files: [{ name, size: data.size }],
|
||||
}),
|
||||
signal,
|
||||
});
|
||||
|
||||
let file = transfer.files[0];
|
||||
for (
|
||||
let partNumber = 1;
|
||||
partNumber <= file.multipart.part_numbers;
|
||||
partNumber++
|
||||
) {
|
||||
let uploadURL = await this._request(
|
||||
`/v2/transfers/${transfer.id}/files/${file.id}/upload-url/${partNumber}`,
|
||||
{
|
||||
method: "GET",
|
||||
signal,
|
||||
}
|
||||
);
|
||||
|
||||
await fetch(uploadURL.url, {
|
||||
method: "PUT",
|
||||
body: data.slice((partNumber - 1) * FIVE_MB, partNumber * FIVE_MB),
|
||||
signal,
|
||||
});
|
||||
}
|
||||
|
||||
await this._request(
|
||||
`/v2/transfers/${transfer.id}/files/${file.id}/upload-complete`,
|
||||
{
|
||||
method: "PUT",
|
||||
body: JSON.stringify({ part_numbers: file.multipart.part_numbers }),
|
||||
signal,
|
||||
}
|
||||
);
|
||||
|
||||
return this._request(`/v2/transfers/${transfer.id}/finalize`, {
|
||||
method: "PUT",
|
||||
signal,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
var abortControllers = new Map();
|
||||
|
||||
browser.cloudFile.onFileUpload.addListener(
|
||||
async (account, { id, name, data }) => {
|
||||
let session = new WeTransferSession();
|
||||
let controller = new AbortController();
|
||||
abortControllers.set(id, controller);
|
||||
|
||||
try {
|
||||
let transfer = await session.createTransfer(
|
||||
name,
|
||||
data,
|
||||
"",
|
||||
controller.signal
|
||||
);
|
||||
return { url: transfer.url };
|
||||
} finally {
|
||||
abortControllers.delete(id);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
browser.cloudFile.onFileUploadAbort.addListener((account, id) => {
|
||||
let controller = abortControllers.get(id);
|
||||
if (controller) {
|
||||
controller.abort();
|
||||
}
|
||||
});
|
||||
|
||||
browser.cloudFile.getAllAccounts().then(async accounts => {
|
||||
for (let account of accounts) {
|
||||
await browser.cloudFile.updateAccount(account.id, {
|
||||
configured: true,
|
||||
uploadSizeLimit: TWO_GB,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
browser.cloudFile.onAccountAdded.addListener(async account => {
|
||||
await browser.cloudFile.updateAccount(account.id, {
|
||||
configured: true,
|
||||
uploadSizeLimit: TWO_GB,
|
||||
});
|
||||
});
|
|
@ -1,57 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 300px;
|
||||
font: message-box;
|
||||
font-size: 17px;
|
||||
color: #0c0c0d;
|
||||
}
|
||||
|
||||
a,
|
||||
.text-link {
|
||||
color: #0a8dff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.1em;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
a:hover,
|
||||
.text-link:hover {
|
||||
color: #0060df;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#background {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#title {
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
#story {
|
||||
margin-top: 2ex;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
color: rgb(249, 249, 250);
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<script src="moments.js" defer=""></script>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="moments.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<h1 data-message="moments_tagline"></h1>
|
||||
<a class="text-link" href="https://wetransfer.com/legal/terms" target="_blank" data-message="moments_privacyPolicy"></a>
|
||||
<a id="story" href="#" target="_blank">
|
||||
<img id="background"></img>
|
||||
<div id="title"></div>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/* globals browser */
|
||||
|
||||
(async () => {
|
||||
for (let element of document.querySelectorAll("[data-message]")) {
|
||||
element.textContent = browser.i18n.getMessage(element.dataset.message);
|
||||
}
|
||||
|
||||
let resp = await fetch("https://backgrounds.wetransfer.net/moment/list.json");
|
||||
let items = await resp.json();
|
||||
let item = items[Math.floor(Math.random() * items.length)];
|
||||
if (item.url.startsWith("https:") && item.file.startsWith("https:")) {
|
||||
document.getElementById("background").src = item.file;
|
||||
document.getElementById("story").href = item.url;
|
||||
document.getElementById("title").textContent = item.title;
|
||||
}
|
||||
})();
|
|
@ -1,13 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="52" height="29" class="spinner__logo" viewBox="-4 -2 52 29">
|
||||
<defs>
|
||||
<path id="b" d="M25.4 10.6c0-6.2 4.4-9.9 10.1-9.9C40.6.7 44 3.3 44 6.9c0 3.4-2.9 5.6-6.1 5.6-1.8 0-3.1-.3-4-1-.3-.3-.5-.2-.5.1 0 1.3.5 2.3 1.3 3.2.7.7 2 1.2 3.2 1.2 1.3 0 2.4-.3 3.4-.8s1.8-.3 2.3.5c.6.9-.2 2.1-.9 2.9-1.3 1.4-3.8 2.4-7 2.4-6.5-.2-10.3-4.6-10.3-10.4zm-13.3 4.1c.6 0 1 .3 1.4 1l1.8 2.9c.7 1.1 1.3 1.9 2.6 1.9s2-.5 2.6-2c.8-1.8 1.7-4.1 2.4-7.1.9-3.4 1.3-5.4 1.3-7.1s-.5-2.7-2.4-3c-2.5-.5-6-.7-9.7-.7s-7.2.2-9.7.6C.5 1.6 0 2.6 0 4.3S.4 8 1.2 11.4c.8 3 1.6 5.2 2.4 7.1.7 1.5 1.3 2 2.6 2s1.9-.8 2.6-1.9l1.8-2.9c.5-.6.9-1 1.5-1z"></path>
|
||||
<filter id="a" width="200%" height="200%" x="-50%" y="-50%" filterUnits="objectBoundingBox">
|
||||
<feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
||||
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
||||
</filter>
|
||||
</defs>
|
||||
<g fill="none">
|
||||
<use fill="#17181A" fill-opacity="0.11" filter="url(#a)" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#b"></use>
|
||||
<use fill="rgb(0, 0, 0)" fill-rule="evenodd" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#b"></use>
|
||||
</g>
|
||||
</svg>
|
До Ширина: | Высота: | Размер: 1.2 KiB |
|
@ -1,32 +0,0 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"name": "__MSG_extensionName__",
|
||||
"description": "__MSG_extensionDescription__",
|
||||
"version": "2.1.0",
|
||||
"applications": {
|
||||
"gecko": {
|
||||
"id": "wetransfer@extensions.thunderbird.net",
|
||||
"strict_min_version": "68.0"
|
||||
}
|
||||
},
|
||||
"default_locale": "en",
|
||||
|
||||
"icons": {
|
||||
"16": "images/logo.svg",
|
||||
"32": "images/logo.svg",
|
||||
"48": "images/logo.svg",
|
||||
"128": "images/logo.svg"
|
||||
},
|
||||
|
||||
"cloud_file": {
|
||||
"name": "__MSG_serviceName__",
|
||||
"data_format": "File",
|
||||
"management_url": "/content/moments.html"
|
||||
},
|
||||
|
||||
"background": {
|
||||
"scripts": [
|
||||
"background/background.js"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,194 +0,0 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DIST_SUBDIR = "features/wetransfer@extensions.thunderbird.net"
|
||||
|
||||
FINAL_TARGET_FILES += [
|
||||
"manifest.json",
|
||||
]
|
||||
FINAL_TARGET_FILES.background += [
|
||||
"background/background.js",
|
||||
]
|
||||
FINAL_TARGET_FILES.content += [
|
||||
"content/moments.css",
|
||||
"content/moments.html",
|
||||
"content/moments.js",
|
||||
]
|
||||
FINAL_TARGET_FILES.images += [
|
||||
"images/logo.svg",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.ar += [
|
||||
"_locales/ar/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.ast += [
|
||||
"_locales/ast/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.be += [
|
||||
"_locales/be/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.bg += [
|
||||
"_locales/bg/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.br += [
|
||||
"_locales/br/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.bs += [
|
||||
"_locales/bs/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.ca += [
|
||||
"_locales/ca/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.cak += [
|
||||
"_locales/cak/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.cs += [
|
||||
"_locales/cs/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.cy += [
|
||||
"_locales/cy/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.de += [
|
||||
"_locales/de/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.dsb += [
|
||||
"_locales/dsb/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.el += [
|
||||
"_locales/el/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.en += [
|
||||
"_locales/en/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.en_GB += [
|
||||
"_locales/en_GB/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.es_AR += [
|
||||
"_locales/es_AR/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.es_MX += [
|
||||
"_locales/es_MX/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.et += [
|
||||
"_locales/et/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.eu += [
|
||||
"_locales/eu/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.fa += [
|
||||
"_locales/fa/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.fi += [
|
||||
"_locales/fi/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.fr += [
|
||||
"_locales/fr/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.fy_NL += [
|
||||
"_locales/fy_NL/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.gd += [
|
||||
"_locales/gd/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.hr += [
|
||||
"_locales/hr/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.hsb += [
|
||||
"_locales/hsb/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.hu += [
|
||||
"_locales/hu/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.hy_AM += [
|
||||
"_locales/hy_AM/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.ia += [
|
||||
"_locales/ia/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.id += [
|
||||
"_locales/id/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.it += [
|
||||
"_locales/it/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.ja += [
|
||||
"_locales/ja/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.ka += [
|
||||
"_locales/ka/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.kab += [
|
||||
"_locales/kab/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.kk += [
|
||||
"_locales/kk/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.ko += [
|
||||
"_locales/ko/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.lt += [
|
||||
"_locales/lt/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.nb_NO += [
|
||||
"_locales/nb_NO/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.nl += [
|
||||
"_locales/nl/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.nn_NO += [
|
||||
"_locales/nn_NO/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.pl += [
|
||||
"_locales/pl/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.pt_BR += [
|
||||
"_locales/pt_BR/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.pt_PT += [
|
||||
"_locales/pt_PT/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.rm += [
|
||||
"_locales/rm/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.ro += [
|
||||
"_locales/ro/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.ru += [
|
||||
"_locales/ru/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.si += [
|
||||
"_locales/si/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.sk += [
|
||||
"_locales/sk/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.sl += [
|
||||
"_locales/sl/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.sq += [
|
||||
"_locales/sq/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.sr += [
|
||||
"_locales/sr/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.sv_SE += [
|
||||
"_locales/sv_SE/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.th += [
|
||||
"_locales/th/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.tr += [
|
||||
"_locales/tr/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.uk += [
|
||||
"_locales/uk/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.vi += [
|
||||
"_locales/vi/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.zh_CN += [
|
||||
"_locales/zh_CN/messages.json",
|
||||
]
|
||||
FINAL_TARGET_FILES._locales.zh_TW += [
|
||||
"_locales/zh_TW/messages.json",
|
||||
]
|
|
@ -151,21 +151,17 @@ async function startExtension(browser_style) {
|
|||
}
|
||||
|
||||
add_task(async () => {
|
||||
let weTransfer = await AddonManager.getAddonByID(
|
||||
"wetransfer@extensions.thunderbird.net"
|
||||
);
|
||||
if (!weTransfer) {
|
||||
// WeTransfer isn't registered in artifact builds because the wrong
|
||||
// built_in_addons.json is used. For the purposes of this test, pretend
|
||||
// that it is registered.
|
||||
cloudFileAccounts.registerProvider("WeTransfer-Test", {
|
||||
displayName: "WeTransfer",
|
||||
type: "ext-wetransfer@extensions.thunderbird.net",
|
||||
});
|
||||
registerCleanupFunction(() => {
|
||||
cloudFileAccounts.unregisterProvider("WeTransfer-Test");
|
||||
});
|
||||
}
|
||||
// Register a fake provider representing a built-in provider. We don't
|
||||
// currently ship any built-in providers, but if we did, we should check
|
||||
// if they are present before doing this. Built-in providers can be
|
||||
// problematic for artifact builds.
|
||||
cloudFileAccounts.registerProvider("Fake-Test", {
|
||||
displayName: "XYZ Fake",
|
||||
type: "ext-fake@extensions.thunderbird.net",
|
||||
});
|
||||
registerCleanupFunction(() => {
|
||||
cloudFileAccounts.unregisterProvider("Fake-Test");
|
||||
});
|
||||
});
|
||||
|
||||
let accountIsConfigured = false;
|
||||
|
@ -234,7 +230,7 @@ add_task(async function addRemoveAccounts() {
|
|||
is(buttonList.childElementCount, 1);
|
||||
is(
|
||||
buttonList.children[0].getAttribute("value"),
|
||||
"ext-wetransfer@extensions.thunderbird.net"
|
||||
"ext-fake@extensions.thunderbird.net"
|
||||
);
|
||||
|
||||
let menuButton = prefsDocument.getElementById("addCloudFileAccount");
|
||||
|
@ -242,7 +238,7 @@ add_task(async function addRemoveAccounts() {
|
|||
is(menuButton.itemCount, 1);
|
||||
is(
|
||||
menuButton.getItemAtIndex(0).getAttribute("value"),
|
||||
"ext-wetransfer@extensions.thunderbird.net"
|
||||
"ext-fake@extensions.thunderbird.net"
|
||||
);
|
||||
|
||||
let removeButton = prefsDocument.getElementById("removeCloudFileAccount");
|
||||
|
@ -267,7 +263,7 @@ add_task(async function addRemoveAccounts() {
|
|||
is(buttonList.childElementCount, 2);
|
||||
is(
|
||||
buttonList.children[0].getAttribute("value"),
|
||||
"ext-wetransfer@extensions.thunderbird.net"
|
||||
"ext-fake@extensions.thunderbird.net"
|
||||
);
|
||||
is(buttonList.children[1].getAttribute("value"), "ext-cloudfile@mochitest");
|
||||
is(
|
||||
|
@ -278,7 +274,7 @@ add_task(async function addRemoveAccounts() {
|
|||
is(menuButton.itemCount, 2);
|
||||
is(
|
||||
menuButton.getItemAtIndex(0).getAttribute("value"),
|
||||
"ext-wetransfer@extensions.thunderbird.net"
|
||||
"ext-fake@extensions.thunderbird.net"
|
||||
);
|
||||
is(
|
||||
menuButton.getItemAtIndex(1).getAttribute("value"),
|
||||
|
@ -450,12 +446,12 @@ add_task(async function addRemoveAccounts() {
|
|||
is(buttonList.childElementCount, 1);
|
||||
is(
|
||||
buttonList.children[0].getAttribute("value"),
|
||||
"ext-wetransfer@extensions.thunderbird.net"
|
||||
"ext-fake@extensions.thunderbird.net"
|
||||
);
|
||||
is(menuButton.itemCount, 1);
|
||||
is(
|
||||
menuButton.getItemAtIndex(0).getAttribute("value"),
|
||||
"ext-wetransfer@extensions.thunderbird.net"
|
||||
"ext-fake@extensions.thunderbird.net"
|
||||
);
|
||||
is(accountList.itemCount, 0);
|
||||
ok(!cloudFileDefaultPanel.hidden);
|
||||
|
@ -474,14 +470,14 @@ add_task(async function addRemoveAccounts() {
|
|||
is(buttonList.childElementCount, 2);
|
||||
is(
|
||||
buttonList.children[0].getAttribute("value"),
|
||||
"ext-wetransfer@extensions.thunderbird.net"
|
||||
"ext-fake@extensions.thunderbird.net"
|
||||
);
|
||||
is(buttonList.children[1].getAttribute("value"), "ext-cloudfile@mochitest");
|
||||
|
||||
is(menuButton.itemCount, 2);
|
||||
is(
|
||||
menuButton.getItemAtIndex(0).getAttribute("value"),
|
||||
"ext-wetransfer@extensions.thunderbird.net"
|
||||
"ext-fake@extensions.thunderbird.net"
|
||||
);
|
||||
is(
|
||||
menuButton.getItemAtIndex(1).getAttribute("value"),
|
||||
|
|
|
@ -91,10 +91,6 @@ chrome/devtools/skin/variables.css
|
|||
modules/devtools/client/framework/gDevTools.jsm
|
||||
modules/devtools/gDevTools.jsm
|
||||
|
||||
# Wetransfer locales - Bug 1518076 (en and en_GB are the same)
|
||||
features/wetransfer@extensions.thunderbird.net/_locales/en/messages.json
|
||||
features/wetransfer@extensions.thunderbird.net/_locales/en_GB/messages.json
|
||||
|
||||
# Bug 1496075 - Switch searchplugins to Web Extensions
|
||||
chrome/messenger/search-extensions/amazon/favicon.ico
|
||||
chrome/messenger/search-extensions/amazondotcn/favicon.ico
|
||||
|
|
|
@ -357,8 +357,6 @@
|
|||
@RESPATH@/components/calRecurrenceRule.js
|
||||
@RESPATH@/components/calTimezone.js
|
||||
|
||||
@RESPATH@/features/wetransfer@extensions.thunderbird.net/
|
||||
|
||||
@RESPATH@/components/servicesComponents.manifest
|
||||
@RESPATH@/components/servicesSettings.manifest
|
||||
@RESPATH@/components/cryptoComponents.manifest
|
||||
|
|
|
@ -13,8 +13,6 @@ license:
|
|||
- comm/mail/base/content/overrides/app-license-name.html
|
||||
# Need to verify
|
||||
- comm/mail/components/im/messages
|
||||
# Third party
|
||||
- comm/mail/components/cloudfile/wetransfer/images/logo.svg
|
||||
# Public Domain, but do not match pre-approved strings from Mozilla
|
||||
- comm/mailnews/db/mork/morkDeque.cpp
|
||||
- comm/mailnews/db/mork/morkDeque.h
|
||||
|
|
Загрузка…
Ссылка в новой задаче