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: [PATCH 01/17] Update Russian translation --- src/_locales/ru/messages.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/_locales/ru/messages.json b/src/_locales/ru/messages.json index 769c1ea..c371532 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": "Название настройки для 'Тема' (в настройках)." From 4ad9fd5971c525eba4af07b62cabe2b3b03af2bb Mon Sep 17 00:00:00 2001 From: fattalion Date: Tue, 20 Apr 2021 15:17:32 +0300 Subject: [PATCH 02/17] Add SimplyTranslate to README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dee955f..2f67717 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ ## About -A web extension that redirects _Twitter, YouTube, Instagram, Google Maps, Reddit & Google Search_ requests to privacy friendly alternatives - [Nitter](https://github.com/zedeus/nitter), [Invidious](https://github.com/iv-org/invidious), [FreeTube](https://github.com/FreeTubeApp/FreeTube), [Bibliogram](https://sr.ht/~cadence/bibliogram/), [OpenStreetMap](https://www.openstreetmap.org/) & Private Search Engines like [DuckDuckGo](https://duckduckgo.com) and [Startpage](https://startpage.com). +A web extension that redirects _Twitter, YouTube, Instagram, Google Maps, Reddit, Google Search, & Google Translate_ requests to privacy friendly alternatives - [Nitter](https://github.com/zedeus/nitter), [Invidious](https://github.com/iv-org/invidious), [FreeTube](https://github.com/FreeTubeApp/FreeTube), [Bibliogram](https://sr.ht/~cadence/bibliogram/), [OpenStreetMap](https://www.openstreetmap.org/), [SimplyTranslate](https://git.sr.ht/~metalune/simplytranslate_web) & Private Search Engines like [DuckDuckGo](https://duckduckgo.com) and [Startpage](https://startpage.com). It's possible to toggle all redirects on and off. The extension will default to using random instances if none are selected. If these instances are not working, you can try and set a custom instance from the list below. @@ -30,6 +30,7 @@ Privacy Redirect allows setting custom instances, instances can be found here: - [Nitter instances](https://github.com/zedeus/nitter/wiki/Instances) - [Invidious instances](https://github.com/iv-org/invidious/wiki/Invidious-Instances) - [Bibliogram instances](https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md) +- [SimplyTranslate instances](https://git.sr.ht/~metalune/simplytranslate_web#list-of-instances) - [OpenStreetMap tile servers](https://wiki.openstreetmap.org/wiki/Tile_servers) - Reddit alternatives: - [Libreddit](https://github.com/spikecodes/libreddit#instances) From 68a89b1c0cf234f9269bed465887ac3ec9da6196 Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 21:00:52 -0700 Subject: [PATCH 03/17] 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(+) diff --git a/src/assets/javascripts/helpers/reddit.js b/src/assets/javascripts/helpers/reddit.js index a21b328..53b309a 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 From 9fc3fccf655f947da848a3571dc3fa7a10d9a727 Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 21:07:32 -0700 Subject: [PATCH 04/17] 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(+) diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 87bc8dd..92502dc 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}`; } From bb6894cec54f746d76d8209ca25198881cf9d29b Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 22:16:41 -0700 Subject: [PATCH 06/17] 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(-) diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 92502dc..82f65a2 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}`; From 21ee6b8542af700dc3d81520c7e62bc2657cb2af Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 22:43:30 -0700 Subject: [PATCH 07/17] 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(-) diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 82f65a2..d3ec06c 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}`; } } From e3df6c4333c107240a45d6fbad933b54caa11139 Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 22:54:00 -0700 Subject: [PATCH 08/17] 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(-) diff --git a/src/pages/background/background.js b/src/pages/background/background.js index d3ec06c..fd0d55a 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 From 8e11c4885074b2029ec3705415f0191826eaf3ef Mon Sep 17 00:00:00 2001 From: Jason Kim Date: Thu, 22 Apr 2021 23:32:31 -0700 Subject: [PATCH 09/17] 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(-) diff --git a/src/pages/background/background.js b/src/pages/background/background.js index fd0d55a..4fa3693 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}`; } } From d1f27107a1430cb9e3fc1031a5a8763d9a56e23c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20Devos?= Date: Sun, 25 Apr 2021 14:45:43 +0000 Subject: [PATCH 10/17] Fix link for the Invidious instances list --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f67717..344c617 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ It's possible to toggle all redirects on and off. The extension will default to Privacy Redirect allows setting custom instances, instances can be found here: - [Nitter instances](https://github.com/zedeus/nitter/wiki/Instances) -- [Invidious instances](https://github.com/iv-org/invidious/wiki/Invidious-Instances) +- [Invidious instances](https://docs.invidious.io/Invidious-Instances.md) - [Bibliogram instances](https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md) - [SimplyTranslate instances](https://git.sr.ht/~metalune/simplytranslate_web#list-of-instances) - [OpenStreetMap tile servers](https://wiki.openstreetmap.org/wiki/Tile_servers) From cfd7c15306f130c7f22ef1bd5f58a39c2ba5486c Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 11 May 2021 10:23:31 -0400 Subject: [PATCH 11/17] update bibliogram instances closes #233 --- src/assets/javascripts/helpers/instagram.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/assets/javascripts/helpers/instagram.js b/src/assets/javascripts/helpers/instagram.js index 5020b4b..7759603 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", From a9e6411ca25cdbcda39138b4dbff3b9bfbff84c6 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 11 May 2021 10:26:02 -0400 Subject: [PATCH 12/17] update nitter instances (1) --- src/assets/javascripts/helpers/twitter.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/assets/javascripts/helpers/twitter.js b/src/assets/javascripts/helpers/twitter.js index 8ab8a81..f520d76 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", From 8a8fe35b6b58f4cbd6d4a13a0344c75c18ec60d2 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Tue, 11 May 2021 10:27:07 -0400 Subject: [PATCH 13/17] update nitter instances (2) --- src/assets/javascripts/remove-twitter-sw.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/assets/javascripts/remove-twitter-sw.js b/src/assets/javascripts/remove-twitter-sw.js index 58bec71..d431f1a 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; 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: [PATCH 14/17] Italian translation --- src/_locales/it/messages.json | 154 ++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 src/_locales/it/messages.json diff --git a/src/_locales/it/messages.json b/src/_locales/it/messages.json new file mode 100644 index 0000000..c5df2f4 --- /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" + } +} 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: [PATCH 15/17] Italian translation --- src/_locales/it/store.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/_locales/it/store.md diff --git a/src/_locales/it/store.md b/src/_locales/it/store.md new file mode 100644 index 0000000..f4af12d --- /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 🙂
  • +
+``` From 8e88786dc20677a97225ea2b608aab487b1dd58f Mon Sep 17 00:00:00 2001 From: bopol Date: Sat, 12 Jun 2021 19:07:37 +0200 Subject: [PATCH 16/17] Only append autoplay parameter if necessary --- src/pages/background/background.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/background/background.js b/src/pages/background/background.js index 87bc8dd..7c1e3a9 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) From 1cbaa3b4a5500dba412714a9d3dc05ed3d248db2 Mon Sep 17 00:00:00 2001 From: Gaurang Tandon <1gaurangtandon@gmail.com> Date: Wed, 16 Jun 2021 17:40:46 +0530 Subject: [PATCH 17/17] Fixed license link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2f67717..316ea17 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ Privacy Redirect allows setting custom instances, instances can be found here: ## License -[GPLv3](LICENSE.txt). +[GPLv3](LICENSE). ## Permissions