From 2a247f47729f9507c0fb66352c280443415cf6cb Mon Sep 17 00:00:00 2001 From: TotalCaesar659 <14265316+TotalCaesar659@users.noreply.github.com> Date: Fri, 16 Apr 2021 16:31:25 +0300 Subject: Update Russian translation --- src/_locales/ru/messages.json | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json index 769c1ea1..c371532e 100644 --- a/src/_locales/ru/messages.json +++ b/src/_locales/ru/messages.json @@ -31,6 +31,10 @@ "message": "Сервис поисковой системы", "description": "Название настройки (в настройках) поля сервиса поисковой системы." }, + "simplyTranslateInstance": { + "message": "Сервис SimplyTranslate", + "description": "Название настройки (в настройках) поля сервиса SimplyTranslate." + }, "disableNitter": { "message": "Перенаправление на Nitter", "description": "Название настройки для включения/выключения перенаправления на Nitter (в настройках и всплывающем окне)." @@ -55,6 +59,10 @@ "message": "Перенаправление поисковой системы", "description": "Название настройки для включения/выключения перенаправления поисковой системы (в настройках и всплывающем окне)." }, + "disableSimplyTranslate": { + "message": "Перенаправление на SimplyTranslate", + "description": "Название настройки для включения/выключения перенаправления на SimplyTranslate (в настройках и всплывающем окне)." + }, "theme": { "message": "Тема", "description": "Название настройки для 'Тема' (в настройках)." -- cgit 1.4.1 From 68a89b1c0cf234f9269bed465887ac3ec9da6196 Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 21:00:52 -0700 Subject: feat: add redd.it to reddit targets Although it doesn't work for teddit, add redd.it to the list of URLs to redirect. --- src/assets/javascripts/helpers/reddit.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/assets/javascripts/helpers/reddit.js b/src/assets/javascripts/helpers/reddit.js index a21b3288..53b309a7 100644 --- a/src/assets/javascripts/helpers/reddit.js +++ b/src/assets/javascripts/helpers/reddit.js @@ -4,6 +4,7 @@ const targets = [ "new.reddit.com", "amp.reddit.com", "i.redd.it", + "redd.it", ]; const redirects = [ // libreddit: privacy w/ modern UI -- cgit 1.4.1 From 9fc3fccf655f947da848a3571dc3fa7a10d9a727 Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 21:07:32 -0700 Subject: fix: don't redirect redd.it for teddit redd.it redirects don't work for teddit, so don't do it. --- src/pages/background/background.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 87bc8dda..92502dc2 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -482,6 +482,12 @@ function redirectReddit(url, initiator, type) { } else { return null; } + } else if (url.host === "redd.it") { + if (redditInstance.includes("teddit")) { + // As of 2021-04-22, redirects for teddit on redd.it links don't work: + // they take you to the home page. + return null; + } } return `${redditInstance}${url.pathname}${url.search}`; } -- cgit 1.4.1 From bb6894cec54f746d76d8209ca25198881cf9d29b Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 22:16:41 -0700 Subject: feat: support teddit by adding /comments hint Redirecting tedd.it links to teddit instances works when the link starts with "/comments". Add "/comments" to the path for teddit. --- src/pages/background/background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 92502dc2..82f65a20 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -484,9 +484,9 @@ function redirectReddit(url, initiator, type) { } } else if (url.host === "redd.it") { if (redditInstance.includes("teddit")) { - // As of 2021-04-22, redirects for teddit on redd.it links don't work: - // they take you to the home page. - return null; + // As of 2021-04-22, redirects for teddit redd.it links don't work out of + // the box. Prefixing the path with "/comments" seems to help. + return `${redditInstance}/comments${url.pathname}${url.search}`; } } return `${redditInstance}${url.pathname}${url.search}`; -- cgit 1.4.1 From 21ee6b8542af700dc3d81520c7e62bc2657cb2af Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 22:43:30 -0700 Subject: fix: add "/comments" prefix only if it's missing Although I have never seen it in the wild, it is possible to navigate to "redd.it/comments/...". This should redirect to "teddit.net/comments/..." in the case of instance teddit.net. However, the current code redirects it to "teddit.net/comments/comments/...". Fix it by avoiding adding the prefix if it's already there. --- src/pages/background/background.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 82f65a20..d3ec06ca 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -483,9 +483,15 @@ function redirectReddit(url, initiator, type) { return null; } } else if (url.host === "redd.it") { - if (redditInstance.includes("teddit")) { - // As of 2021-04-22, redirects for teddit redd.it links don't work out of - // the box. Prefixing the path with "/comments" seems to help. + if ( + redditInstance.includes("teddit") && + !url.pathname.startsWith("/comments/") + ) { + // As of 2021-04-22, redirects for teddit redd.it links don't work unless + // the path starts with "/comments". It appears that all links that + // don't start with "/comments" are interchangeable with the ones + // that do start with "/comments", so manually add that prefix if it is + // missing. return `${redditInstance}/comments${url.pathname}${url.search}`; } } -- cgit 1.4.1 From e3df6c4333c107240a45d6fbad933b54caa11139 Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 22:54:00 -0700 Subject: fix: add comments prefix if no nested path The previous fix failed to consider links like "redd.it/r/.../comments/...". Those don't really exist in the wild, and they don't work (when redirects are turned off). Still, play it safe and don't add "/comments" prefix unless the path has height 1. Now, redirects should work for - redd.it/foo - redd.it/comments/foo - redd.it/r/bar/comments/foo even though the only kind of native link that works is - redd.it/foo --- src/pages/background/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pages/background/background.js b/src/pages/background/background.js index d3ec06ca..fd0d55a2 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -485,7 +485,7 @@ function redirectReddit(url, initiator, type) { } else if (url.host === "redd.it") { if ( redditInstance.includes("teddit") && - !url.pathname.startsWith("/comments/") + !url.pathname.match(/^\/\S+\//) ) { // As of 2021-04-22, redirects for teddit redd.it links don't work unless // the path starts with "/comments". It appears that all links that -- cgit 1.4.1 From 8e11c4885074b2029ec3705415f0191826eaf3ef Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 23:32:31 -0700 Subject: fix: add comments prefix for /foo/ Links that end in trailing slash but don't have "/comments/" should add "/comments" prefix but don't because the regex match succeeds. Fix the regular expression to be more robust and add prefix for paths like - /foo/ - /////foo - /foo///// - ////foo//// and not add prefix for paths like - /comments/foo - /////comments/foo - /comments/////foo - ////comments////foo - ////comments////foo///// --- src/pages/background/background.js | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/pages/background/background.js b/src/pages/background/background.js index fd0d55a2..4fa36933 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -485,13 +485,16 @@ function redirectReddit(url, initiator, type) { } else if (url.host === "redd.it") { if ( redditInstance.includes("teddit") && - !url.pathname.match(/^\/\S+\//) + !url.pathname.match(/^\/+[^\/]+\/+[^\/]/) ) { - // As of 2021-04-22, redirects for teddit redd.it links don't work unless - // the path starts with "/comments". It appears that all links that - // don't start with "/comments" are interchangeable with the ones - // that do start with "/comments", so manually add that prefix if it is - // missing. + // As of 2021-04-22, redirects for teddit redd.it/foo links don't work. + // It appears that adding "/comments" as a prefix works, so manually add + // that prefix if it is missing. Even though redd.it/comments/foo links + // don't seem to work or exist, guard against affecting those kinds of + // paths. + // + // Note the difference between redd.it/comments/foo (doesn't work) and + // teddit.net/comments/foo (works). return `${redditInstance}/comments${url.pathname}${url.search}`; } } -- cgit 1.4.1 From cfd7c15306f130c7f22ef1bd5f58a39c2ba5486c Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 11 May 2021 10:23:31 -0400 Subject: update bibliogram instances closes #233 --- src/assets/javascripts/helpers/instagram.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/assets/javascripts/helpers/instagram.js b/src/assets/javascripts/helpers/instagram.js index 5020b4ba..77596035 100644 --- a/src/assets/javascripts/helpers/instagram.js +++ b/src/assets/javascripts/helpers/instagram.js @@ -11,9 +11,8 @@ const redirects = [ "https://bibliogram.nixnet.services", "https://bibliogram.ethibox.fr", "https://bibliogram.hamster.dance", - "https://bibliogram.kavin.rocks", "https://insta.trom.tf", - "https://bibliogram.hamster.dance", + "https://bib.actionsack.com" ]; const reservedPaths = [ "about", -- cgit 1.4.1 From a9e6411ca25cdbcda39138b4dbff3b9bfbff84c6 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 11 May 2021 10:26:02 -0400 Subject: update nitter instances (1) --- src/assets/javascripts/helpers/twitter.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/assets/javascripts/helpers/twitter.js b/src/assets/javascripts/helpers/twitter.js index 8ab8a814..f520d76f 100644 --- a/src/assets/javascripts/helpers/twitter.js +++ b/src/assets/javascripts/helpers/twitter.js @@ -20,9 +20,7 @@ const redirects = [ "https://nitter.snopyta.org", "https://nitter.42l.fr", "https://nitter.nixnet.services", - "https://nitter.13ad.de", "https://nitter.pussthecat.org", - "https://nitter.mastodont.cat", "https://nitter.dark.fail", "https://nitter.tedomum.net", "https://nitter.cattube.org", -- cgit 1.4.1 From 8a8fe35b6b58f4cbd6d4a13a0344c75c18ec60d2 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 11 May 2021 10:27:07 -0400 Subject: update nitter instances (2) --- src/assets/javascripts/remove-twitter-sw.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/assets/javascripts/remove-twitter-sw.js b/src/assets/javascripts/remove-twitter-sw.js index 58bec71a..d431f1a3 100644 --- a/src/assets/javascripts/remove-twitter-sw.js +++ b/src/assets/javascripts/remove-twitter-sw.js @@ -5,9 +5,7 @@ const nitterInstances = [ "https://nitter.snopyta.org", "https://nitter.42l.fr", "https://nitter.nixnet.services", - "https://nitter.13ad.de", "https://nitter.pussthecat.org", - "https://nitter.mastodont.cat", "https://nitter.dark.fail", "https://nitter.tedomum.net", "https://nitter.cattube.org", @@ -18,7 +16,7 @@ const nitterInstances = [ "https://nitter.cc", "https://nitter.vxempire.xyz", "https://nitter.unixfox.eu", - "https://bird.trom.tf", + "https://bird.trom.tf" ]; let disableNitter; -- cgit 1.4.1 From 7d9ad32ac6471f4aa31ccb34bc33efd5efd47b8d Mon Sep 17 00:00:00 2001 From: unbranched <39440265+unbranched@users.noreply.github.com> Date: Sun, 6 Jun 2021 09:54:49 +0000 Subject: Italian translation --- src/_locales/it/messages.json | 154 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 src/_locales/it/messages.json (limited to 'src') diff --git a/src/_locales/it/messages.json b/src/_locales/it/messages.json new file mode 100644 index 00000000..c5df2f4a --- /dev/null +++ b/src/_locales/it/messages.json @@ -0,0 +1,154 @@ +{ + "extensionName": { + "message": "Privacy Redirect", + "description": "Name of the extension." + }, + "extensionDescription": { + "message": "Reindirizza Twitter, YouTube, Instagram ed altri verso alternative rispettose della privacy.", + "description": "Description of the extension." + }, + "nitterInstance": { + "message": "Istanza di Nitter", + "description": "Label for Nitter instance field option (options)." + }, + "invidiousInstance": { + "message": "Istanza di Invidious", + "description": "Label for Invidious instance field option (options)." + }, + "bibliogramInstance": { + "message": "Istanza di Bibliogram", + "description": "Label for Bibliogram instance field option (options)." + }, + "osmInstance": { + "message": "Istanza di OpenStreetMap", + "description": "Label for OSM instance field option (options)." + }, + "redditInstance": { + "message": "Istanza di Reddit", + "description": "Label for Reddit instance field option (options)." + }, + "searchEngineInstance": { + "message": "Istanza del motore di ricerca", + "description": "Label for Search Engine instance field option (options)." + }, + "simplyTranslateInstance": { + "message": "Istanza di SimplyTranslate", + "description": "Label for SimplyTranslate instance field option (options)." + }, + "disableNitter": { + "message": "Reindirizzamenti Nitter", + "description": "Label for enable/disable Nitter redirects option (options & pop-up)." + }, + "disableInvidious": { + "message": "Reindirizzamenti Invidious", + "description": "Label for enable/disable Invidious redirects option (options & pop-up)." + }, + "disableBibliogram": { + "message": "Reindirizzamenti Bibliogram", + "description": "Label for enable/disable Bibliogram redirects option (options & pop-up)." + }, + "disableOsm": { + "message": "Reindirizzamenti OpenStreetMap", + "description": "Label for enable/disable OSM redirects option (options & pop-up)." + }, + "disableReddit": { + "message": "Reindirizzamenti Reddit", + "description": "Label for enable/disable Reddit redirects option (options & pop-up)." + }, + "disableSearchEngine": { + "message": "Reindirizzamenti motore di ricerca", + "description": "Label for enable/disable Search Engine redirects option (options & pop-up)." + }, + "disableSimplyTranslate": { + "message": "Reindirizzamenti SimplyTranslate", + "description": "Label for enable/disable SimplyTranslate redirects option (options & pop-up)." + }, + "alwaysProxy": { + "message": "Usa sempre il proxy per i video su Invidious", + "description": "Label for 'Always proxy videos through Invidious' option (options)." + }, + "onlyEmbeddedVideo": { + "message": "Reindirizza solo i video incorporati verso Invidious", + "description": "Label for 'Only redirect embedded video to Invidious' option (options)." + }, + "videoQuality": { + "message": "Qualità video di Invidious", + "description": "Label for 'Invidious Video Quality' option (options)." + }, + "removeTwitterSW": { + "message": "Rimuovi proattivamente il service worker di Twitter", + "description": "Label for 'Proactively remove Twitter service worker' option (options)." + }, + "invidiousDarkMode": { + "message": "Modalità scura di Invidious sempre attiva", + "description": "Label for 'Invidious dark mode always on' option (options)." + }, + "persistInvidiousPrefs": { + "message": "Mantieni le preferenze di Invidious (con cookie)", + "description": "Label for 'Persist Invidious preferences (as cookie)' option (options)." + }, + "generalTab": { + "message": "Generali", + "description": "General tab (options)." + }, + "advancedTab": { + "message": "Avanzate", + "description": "Advanced tab (options)." + }, + "exceptionsTab": { + "message": "Eccezioni", + "description": "Exceptions tab (options)." + }, + "exceptionsDescriptionP1": { + "message": "Inserisci un URL o espressione regolare da escludere dai reindirizzamenti.", + "description": "A description of the 'Exceptions' feature paragraph 1 (options)." + }, + "exceptionsDescriptionP2": { + "message": "Tutte le richieste verso o da un URL corrispondente all'eccezione saranno escluse dai reindirizzamenti.", + "description": "A description of the 'Exceptions' feature paragraph 2 (options)." + }, + "exceptionsDescriptionP3": { + "message": "Nota - Supporta le espressioni regolari JavaScript, esclusi gli slash.", + "description": "A description of the 'Exceptions' feature paragraph 3 (options)." + }, + "addException": { + "message": "Aggiungi eccezione", + "description": "'Add Exceptions' button (options)." + }, + "moreOptions": { + "message": "Altre opzioni", + "description": "More Options button (pop-up)." + }, + "privacy": { + "message": "Privacy", + "description": "Extension title - Privacy (pop-up)." + }, + "redirect": { + "message": "Reindirizza", + "description": "Extension title - Redirect (pop-up)." + }, + "version": { + "message": "Versione", + "description": "Version" + }, + "useFreeTube": { + "message": "Usa FreeTube al posto di Invidious quando possibile", + "description": "Label for 'Use FreeTube over Invidious when possible' option (options)." + }, + "nitterRandomPool": { + "message": "Gruppo di istanze Nitter casuali (separate da virgola)", + "description": "Label for 'Nitter random instance pool (comma-separated)' option (options)." + }, + "invidiousRandomPool": { + "message": "Gruppo di istanze Invidious casuali (separate da virgola)", + "description": "Label for 'Invidious random instance pool (comma-separated)' option (options)." + }, + "bibliogramRandomPool": { + "message": "Gruppo di istanze Bibliogram casuali (separate da virgola)", + "description": "Label for 'Bibliogram random instance pool (comma-separated)' option (options)." + }, + "randomInstancePlaceholder": { + "message": "Istanza casuale (nessuna selezione)", + "description": "Input placeholder for provider instance settings that select a random instance from a pool when none is selected" + } +} -- cgit 1.4.1 From 6875ad6dbbdb4b17951f27ee54ac2a7058e5edad Mon Sep 17 00:00:00 2001 From: unbranched <39440265+unbranched@users.noreply.github.com> Date: Sun, 6 Jun 2021 10:05:16 +0000 Subject: Italian translation --- src/_locales/it/store.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/_locales/it/store.md (limited to 'src') diff --git a/src/_locales/it/store.md b/src/_locales/it/store.md new file mode 100644 index 00000000..f4af12d2 --- /dev/null +++ b/src/_locales/it/store.md @@ -0,0 +1,33 @@ +# Extension Store (AMO & Chrome Web Store) Listing + +## Summary: + +``` +Una semplice estensione che reindirizza le richieste di Twitter, YouTube, Instagram e Google Maps verso alternative rispettose della privacy. +``` + +## Description: + +``` +Reindirizza le richieste di Twitter, YouTube, Instagram e Google Maps verso alternative rispettose della privacy - Nitter, Invidious, Bibliogram e OpenStreetMap. + +Permette di impostare istanze personalizzate, attivare/disattivare tutti i reindirizzamenti e altro. + +★ Maggiori informazioni: ℹ️ + + +Il codice sorgente di questa estensione è disponibile su Github. + +★ Dona: 👨🏻‍💻 +Se ti piace questa estensione e te lo puoi permettere, considera di offrirmi un caffè ☕️ ️per mostrare il tuo apprezzamento e supportare lo sviluppo del progetto. + +★ Permessi: ℹ️ +
    +
  • Si prega di notare che l'accesso a tutti gli eventi di navigazione web (tutti gli URL), non solo ai domini di destinazione, è necessario per permettere i reindirizzamenti dei video incorporati. Ad oggi non conosco un altro modo per fare i reindirizzamenti di iframe, sarò felice di ricevere suggerimenti al riguardo 🙂
  • +
+``` -- cgit 1.4.1 From 8e88786dc20677a97225ea2b608aab487b1dd58f Mon Sep 17 00:00:00 2001 From: bopol Date: Sat, 12 Jun 2021 19:07:37 +0200 Subject: Only append autoplay parameter if necessary --- src/pages/background/background.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 87bc8dda..7c1e3a9d 100644 --- a/src/pages/background/background.js +++ b/src/pages/background/background.js @@ -279,7 +279,9 @@ function redirectYouTube(url, initiator, type) { if (invidiousSubtitles) { url.searchParams.append("subtitles", invidiousSubtitles); } - url.searchParams.append("autoplay", invidiousAutoplay ? 1 : 0); + if (invidiousAutoplay) { + url.searchParams.append("autoplay", 1); + } return `${ invidiousInstance || commonHelper.getRandomInstance(invidiousRandomPool) -- cgit 1.4.1