about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2022-03-15 01:30:30 +0300
committerManeraKai <manerakai@protonmail.com>2022-03-15 01:30:30 +0300
commitcd836df62f68d2d211701e2e1c14b7546c6c57c6 (patch)
treee700d02af39922d24dadd997cc6fca01a8a4b4e3 /src
parentAdded almost all Piped-Material settings (diff)
downloadlibredirect-cd836df62f68d2d211701e2e1c14b7546c6c57c6.zip
Added simpleertube #78
Diffstat (limited to 'src')
-rw-r--r--src/assets/images/peertube-icon.svg51
-rw-r--r--src/assets/javascripts/helpers/general.js1
-rw-r--r--src/assets/javascripts/helpers/peertube.js207
-rw-r--r--src/assets/javascripts/helpers/sendTargets.js4
-rw-r--r--src/instances/data.json1040
-rw-r--r--src/instances/get_instances.py12
-rw-r--r--src/instances/peertube.py13
-rw-r--r--src/manifest.json4
-rw-r--r--src/pages/background/background.js6
-rw-r--r--src/pages/options/general/general.html5
-rw-r--r--src/pages/options/imgur/imgur.html4
-rw-r--r--src/pages/options/instagram/instagram.html4
-rw-r--r--src/pages/options/maps/maps.html4
-rw-r--r--src/pages/options/medium/medium.html4
-rw-r--r--src/pages/options/peertube/peertube.html172
-rw-r--r--src/pages/options/peertube/peertube.js59
-rw-r--r--src/pages/options/pixiv/pixiv.html4
-rw-r--r--src/pages/options/reddit/reddit.html4
-rw-r--r--src/pages/options/search/search.html4
-rw-r--r--src/pages/options/sendTargets/sendTargets.html4
-rw-r--r--src/pages/options/tiktok/tiktok.html4
-rw-r--r--src/pages/options/translate/translate.html4
-rw-r--r--src/pages/options/twitter/twitter.html4
-rw-r--r--src/pages/options/wikipedia/wikipedia.html4
-rw-r--r--src/pages/options/youtube/youtube.html4
-rw-r--r--src/pages/options/youtubeMusic/youtubeMusic.html4
-rw-r--r--src/pages/popup/popup.html8
-rw-r--r--src/pages/popup/popup.js40
28 files changed, 1642 insertions, 36 deletions
diff --git a/src/assets/images/peertube-icon.svg b/src/assets/images/peertube-icon.svg
new file mode 100644
index 00000000..a92d909e
--- /dev/null
+++ b/src/assets/images/peertube-icon.svg
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   height="128"
+   viewBox="2799 -911 128 128"
+   width="128"
+   version="1.1"
+   id="svg10"
+   sodipodi:docname="peertube-icon.svg"
+   inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <defs
+     id="defs14" />
+  <sodipodi:namedview
+     id="namedview12"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     showgrid="false"
+     inkscape:zoom="2.6681399"
+     inkscape:cx="10.868995"
+     inkscape:cy="59.779474"
+     inkscape:window-width="1888"
+     inkscape:window-height="1060"
+     inkscape:window-x="32"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg10" />
+  <g
+     stroke-width="32"
+     id="g8"
+     transform="matrix(0.15060053,0,0,0.15060053,2402.9154,-761.2095)">
+    <path
+       d="m 2799,-911 v 341.344 l 256,-170.656"
+       fill="#211f20"
+       id="path2" />
+    <path
+       d="m 2799,-569.656 v 341.344 l 256,-170.656"
+       fill="#737373"
+       id="path4" />
+    <path
+       d="M 3055,-740.344 V -399 l 256,-170.656"
+       fill="#f1680d"
+       id="path6" />
+  </g>
+</svg>
diff --git a/src/assets/javascripts/helpers/general.js b/src/assets/javascripts/helpers/general.js
index cc094bd7..c542d88b 100644
--- a/src/assets/javascripts/helpers/general.js
+++ b/src/assets/javascripts/helpers/general.js
@@ -117,6 +117,7 @@ let allPopupFrontends = [
     "maps",
     "wikipedia",
     "medium",
+    "peertube",
     "sendTargets"
 ];
 
diff --git a/src/assets/javascripts/helpers/peertube.js b/src/assets/javascripts/helpers/peertube.js
new file mode 100644
index 00000000..8254a382
--- /dev/null
+++ b/src/assets/javascripts/helpers/peertube.js
@@ -0,0 +1,207 @@
+window.browser = window.browser || window.chrome;
+
+import commonHelper from './common.js'
+
+let targets = [];
+
+let redirects = {
+    "simpleertube": {
+        "normal": [
+            "https://tube.simple-web.org",
+            "https://tube.fr.tild3.org",
+            "https://stube.alefvanoon.xyz",
+            "https://st.phreedom.club",
+        ],
+        "tor": []
+    }
+}
+
+const getRedirects = () => redirects;
+const getCustomRedirects = function () {
+    return {
+        "simpleertube": {
+            "normal": [...simpleertubeNormalRedirectsChecks, ...simpleertubeNormalCustomRedirects]
+        },
+    };
+};
+
+function setRedirects(val) {
+    redirects.simpleertube = val;
+    browser.storage.local.set({ peertubeTargetsRedirects: redirects })
+    console.log("peertubeTargetsRedirects: ", val)
+    for (const item of simpleertubeNormalRedirectsChecks)
+        if (!redirects.simpleertube.normal.includes(item)) {
+            var index = simpleertubeNormalRedirectsChecks.indexOf(item);
+            if (index !== -1) simpleertubeNormalRedirectsChecks.splice(index, 1);
+        }
+    setSimpleertubeNormalRedirectsChecks(simpleertubeNormalRedirectsChecks);
+
+    for (const item of simpleertubeTorRedirectsChecks)
+        if (!redirects.simpleertube.normal.includes(item)) {
+            var index = simpleertubeTorRedirectsChecks.indexOf(item);
+            if (index !== -1) simpleertubeTorRedirectsChecks.splice(index, 1);
+        }
+    setSimpleertubeTorRedirectsChecks(simpleertubeTorRedirectsChecks);
+}
+
+let simpleertubeNormalRedirectsChecks;
+const getSimpleertubeNormalRedirectsChecks = () => simpleertubeNormalRedirectsChecks;
+function setSimpleertubeNormalRedirectsChecks(val) {
+    simpleertubeNormalRedirectsChecks = val;
+    browser.storage.local.set({ simpleertubeNormalRedirectsChecks })
+    console.log("simpleertubeNormalRedirectsChecks: ", val)
+}
+
+let simpleertubeTorRedirectsChecks;
+const getSimpleertubeTorRedirectsChecks = () => simpleertubeTorRedirectsChecks;
+function setSimpleertubeTorRedirectsChecks(val) {
+    simpleertubeTorRedirectsChecks = val;
+    browser.storage.local.set({ simpleertubeTorRedirectsChecks })
+    console.log("simpleertubeTorRedirectsChecks: ", val)
+}
+
+let simpleertubeNormalCustomRedirects = [];
+const getSimpleertubeNormalCustomRedirects = () => simpleertubeNormalCustomRedirects;
+function setSimpleertubeNormalCustomRedirects(val) {
+    simpleertubeNormalCustomRedirects = val;
+    browser.storage.local.set({ simpleertubeNormalCustomRedirects })
+    console.log("simpleertubeNormalCustomRedirects: ", val)
+}
+
+let simpleertubeTorCustomRedirects = [];
+const getSimpleertubeTorCustomRedirects = () => simpleertubeTorCustomRedirects;
+function setSimpleertubeTorCustomRedirects(val) {
+    simpleertubeTorCustomRedirects = val;
+    browser.storage.local.set({ simpleertubeTorCustomRedirects })
+    console.log("simpleertubeTorCustomRedirects: ", val)
+}
+
+let disable;
+const getDisable = () => disable;
+function setDisable(val) {
+    disable = val;
+    browser.storage.local.set({ disablePeertubeTargets: disable })
+}
+
+let protocol;
+const getProtocol = () => protocol;
+function setProtocol(val) {
+    protocol = val;
+    browser.storage.local.set({ peertubeTargetsProtocol: val })
+    console.log("peertubeTargetsProtocol: ", val)
+}
+
+function changeInstance(url) {
+    let protocolHost = `${url.protocol}//${url.host}`;
+
+    let simpleertubeList = [
+        ...redirects.simpleertube.normal,
+        ...redirects.simpleertube.tor,
+        ...simpleertubeNormalCustomRedirects,
+        ...simpleertubeTorCustomRedirects,
+    ];
+
+    if (!simpleertubeList.includes(protocolHost)) return;
+
+    let instancesList;
+    if (protocol == 'normal') instancesList = [...simpleertubeNormalRedirectsChecks, ...simpleertubeNormalCustomRedirects];
+    else if (protocol == 'tor') instancesList = [...simpleertubeTorRedirectsChecks, ...simpleertubeTorCustomRedirects];
+
+    console.log("instancesList", instancesList);
+    let index = instancesList.indexOf(protocolHost);
+    if (index > -1) instancesList.splice(index, 1);
+
+    if (instancesList.length === 0) return null;
+
+    let randomInstance = commonHelper.getRandomInstance(instancesList);
+    return `${randomInstance}${url.pathname}${url.search}`;
+}
+
+function redirect(url, type, initiator) {
+
+    let protocolHost = `${url.protocol}//${url.host}`;
+
+    if (disable) return null;
+    if (initiator && ([...redirects.simpleertube.normal, ...simpleertubeNormalCustomRedirects].includes(initiator.origin) || targets.includes(initiator.host))) return null;
+    if (!targets.includes(protocolHost)) return null;
+
+    if (type != "main_frame") return null;
+
+    let instancesList;
+    if (protocol == 'normal') instancesList = [...simpleertubeNormalRedirectsChecks, ...simpleertubeNormalCustomRedirects];
+    if (protocol == 'tor') instancesList = [...simpleertubeTorRedirectsChecks, ...simpleertubeTorCustomRedirects];
+    if (instancesList.length === 0) return null;
+    let randomInstance = commonHelper.getRandomInstance(instancesList);
+
+    if (url.host == 'search.joinpeertube.org') return randomInstance;
+
+    return `${randomInstance}/${url.host}${url.pathname}${url.search}`;
+}
+
+async function init() {
+    return new Promise(resolve => {
+        fetch('/instances/data.json').then(response => response.text()).then(data => {
+            let dataJson = JSON.parse(data);
+            browser.storage.local.get(
+                [
+                    "disablePeertubeTargets",
+                    "peertubeTargetsRedirects",
+
+                    "simpleertubeNormalRedirectsChecks",
+                    "simpleertubeNormalCustomRedirects",
+
+                    "simpleertubeTorRedirectsChecks",
+                    "simpleertubeTorCustomRedirects",
+
+                    "peertubeTargetsProtocol"
+                ],
+                r => {
+
+                    targets = ['https://search.joinpeertube.org', ...dataJson.peertube];
+
+                    disable = r.disablePeertubeTargets ?? true;
+
+                    protocol = r.peertubeTargetsProtocol ?? "normal";
+
+                    if (r.peertubeTargetsRedirects) redirects = r.peertubeTargetsRedirects;
+
+                    simpleertubeNormalRedirectsChecks = r.simpleertubeNormalRedirectsChecks ?? [...redirects.simpleertube.normal];
+                    simpleertubeNormalCustomRedirects = r.simpleertubeNormalCustomRedirects ?? [];
+
+                    simpleertubeTorRedirectsChecks = r.simpleertubeTorRedirectsChecks ?? [...redirects.simpleertube.tor];
+                    simpleertubeTorCustomRedirects = r.simpleertubeTorCustomRedirects ?? [];
+
+                    resolve();
+                }
+            )
+        });
+    });
+}
+
+export default {
+
+    getRedirects,
+    getCustomRedirects,
+    setRedirects,
+
+    getDisable,
+    setDisable,
+
+    getProtocol,
+    setProtocol,
+
+    getSimpleertubeNormalRedirectsChecks,
+    setSimpleertubeNormalRedirectsChecks,
+    getSimpleertubeTorRedirectsChecks,
+    setSimpleertubeTorRedirectsChecks,
+
+    getSimpleertubeTorCustomRedirects,
+    setSimpleertubeTorCustomRedirects,
+    getSimpleertubeNormalCustomRedirects,
+    setSimpleertubeNormalCustomRedirects,
+
+    changeInstance,
+
+    redirect,
+    init,
+};
diff --git a/src/assets/javascripts/helpers/sendTargets.js b/src/assets/javascripts/helpers/sendTargets.js
index 86e579be..4987b851 100644
--- a/src/assets/javascripts/helpers/sendTargets.js
+++ b/src/assets/javascripts/helpers/sendTargets.js
@@ -148,9 +148,7 @@ function redirect(url, type, initiator) {
     if (instancesList.length === 0) return null;
     let randomInstance = commonHelper.getRandomInstance(instancesList);
 
-    let pathName = url.pathname.replace(new RegExp(/@.*\/(?=video)/), "");
-
-    return `${randomInstance}${pathName}`;
+    return randomInstance;
 }
 
 async function init() {
diff --git a/src/instances/data.json b/src/instances/data.json
index 8a59e912..4b3f8787 100644
--- a/src/instances/data.json
+++ b/src/instances/data.json
@@ -339,5 +339,1043 @@
       "http://jx3dpcwedpzu2mh54obk5gvl64i2ln7pt5mrzd75s4jnndkqwzaim7ad.onion",
       "http://rimgo.lqs5fjmajyp7rvp4qvyubwofzi6d4imua7vs237rkc4m5qogitqwrgyd.onion"
     ]
-  }
+  },
+  "peertube": [
+    "https://tube.chocoflan.net",
+    "https://videos.ritimo.org",
+    "https://videos.ephphatha.church",
+    "https://xueq.in",
+    "https://video.cerclearistote.com",
+    "https://computerstuff.mooo.com",
+    "https://3.600900.su",
+    "https://video.greenmycity.eu",
+    "https://peertubemirror.satoshishop.de",
+    "https://przej.me",
+    "https://tube.motuhake.xyz",
+    "https://peertube.otakufarms.com",
+    "https://pt.mezzo.moe",
+    "https://tube.dsocialize.net",
+    "https://vidz.mk-l.info",
+    "https://peertube.today",
+    "https://tube.valinor.fr",
+    "https://synergy-tube.co.za",
+    "https://video.pourpenser.pro",
+    "https://videos.npo.city",
+    "https://live2.codinglab.ch",
+    "https://video.linux.it",
+    "https://poketnetpeertube.site",
+    "https://bee-tube.fr",
+    "https://vid.prometheus.systems",
+    "https://peertube.cirkau.art",
+    "https://tube.nx12.net",
+    "https://live.toobnix.org",
+    "https://redundant2.peertube.support",
+    "https://peertube.ignifi.me",
+    "https://docker.videos.lecygnenoir.info",
+    "https://poketnetpeertube.online",
+    "https://auf1.gegenstimme.tv",
+    "https://video.barcelo.cf",
+    "https://videotube.duckdns.org",
+    "https://peertube.1001solutions.net",
+    "https://peertube.razorserver.fr",
+    "https://hitchtube.fr",
+    "https://tv.based.quest",
+    "https://peertube.beardedtek.com",
+    "https://casnocensure.site",
+    "https://tub.funs.vn",
+    "https://creemoseducacioninclusiva.uma.es",
+    "https://videos.yeswiki.net",
+    "https://videos.meme.moe",
+    "https://tube.lrk.sh",
+    "https://peertube.teneriffe.nohost.me",
+    "https://peertube.rainynight.city",
+    "https://peertube.magnox.me",
+    "https://peertube.autogestioncitoyenne.org",
+    "https://stream.dynacloud.ynh.fr",
+    "https://video.r3s.nrw",
+    "https://peertube.semweb.pro",
+    "https://v.mbius.io",
+    "https://aktivtube.com",
+    "https://peertube.offerman.com",
+    "https://peertube.okko.io",
+    "https://url404.org",
+    "https://sneedtube.com",
+    "https://venuse.nastub.cz",
+    "https://poast.tv",
+    "https://testube.distrilab.fr",
+    "https://peertube.rse43.com",
+    "https://tube.9minuti.it",
+    "https://podlibre.video",
+    "https://pire.artisanlogiciel.net",
+    "https://libremedia.video",
+    "https://vid.lelux.fi",
+    "https://v.wolfskaempf.de",
+    "https://peertube.chevro.fr",
+    "https://peertube.minecloud.ro",
+    "https://media.econoalchemist.com",
+    "https://video.qoto.org",
+    "https://videomensoif.ynh.fr",
+    "https://s9.gegenstimme.tv",
+    "https://peertube.2i2l.net",
+    "https://peertube.biz",
+    "https://peertube.maxweiss.io",
+    "https://peertube.chatinbit.com",
+    "https://peertube.ffs2play.fr",
+    "https://videos.denshi.live",
+    "https://s19.gegenstimme.tv",
+    "https://peertube.swarm.solvingmaz.es",
+    "https://film.node9.org",
+    "https://peertube.mi-site.net",
+    "https://tube.nowtech.io",
+    "https://videos.mattwilson.org",
+    "https://raptube.antipub.org",
+    "https://video.cm-en-transition.fr",
+    "https://y.melonia.se",
+    "https://tube.koweb.fr",
+    "https://peertube.genma.fr",
+    "https://tv.generallyrubbish.net.au",
+    "https://tempetube.com",
+    "https://video.travisshears.xyz",
+    "https://videos.codingotaku.com",
+    "https://foss.tube",
+    "https://peertube.ssvo.de",
+    "https://peertube.satoshishop.de",
+    "https://ua.peertube.red",
+    "https://peertube.zwindler.fr",
+    "https://videos.fsci.in",
+    "https://pixel.ated.io",
+    "https://swebbtube.se",
+    "https://video.dnfi.no",
+    "https://videos.denshi.org",
+    "https://peertube.revelin.fr",
+    "https://video.wsf2021.info",
+    "https://peertube.b38.rural-it.org",
+    "https://armstube.com",
+    "https://peertube.ti-fr.com",
+    "https://video.turbo.chat",
+    "https://tube.toldi.eu",
+    "https://review.peertube.biz",
+    "https://peertube.am-networks.fr",
+    "https://video.chbmeyer.de",
+    "https://video.rs-einrich.de",
+    "https://p2ptv.ru",
+    "https://peertube.dsmouse.net",
+    "https://peertube.librenet.co.za",
+    "https://h3h3.club",
+    "https://watch.snoot.tube",
+    "https://tube.freepeople.fr",
+    "https://watch.rt4mn.org",
+    "https://video.lrose.de",
+    "https://video.chalec.org",
+    "https://galileo.news",
+    "https://dud175.inf.tu-dresden.de",
+    "https://media.zat.im",
+    "https://peertube.fenarinarsa.com",
+    "https://peertube.gardion.de",
+    "https://ias-peertube.iosb.fraunhofer.de",
+    "https://visionon.tv",
+    "https://polskijutub.mkljczk.pl",
+    "https://peertube.parleur.net",
+    "https://peertube.noussommes.org",
+    "https://exode.me",
+    "https://tube-rennes.beta.education.fr",
+    "https://megatube.lilomoino.fr",
+    "https://zapping.no-ip.info",
+    "https://video.anartist.org",
+    "https://peertube.home.x0r.fr",
+    "https://whitedissidenttv.com",
+    "https://peertube.marud.fr",
+    "https://freetubehub.live",
+    "https://peertube.librelabucm.org",
+    "https://tube4.apolut.net",
+    "https://mtube.mooo.com",
+    "https://skeptube.fr",
+    "https://tube.villejuif.fr",
+    "https://pocketnetpeertube1.nohost.me",
+    "https://videos.hyphalfusion.network",
+    "https://videos.fromouter.space",
+    "https://pocketnetpeertube11.nohost.me",
+    "https://tube.1o1.io",
+    "https://peertube.aventer.biz",
+    "https://video.bhscs2.club",
+    "https://videos.rights.ninja",
+    "https://videos.piecemaker.rocks",
+    "https://tube.die-rote-front.de",
+    "https://v.endpoint.ml",
+    "https://pertur.be",
+    "https://tube.pilgerweg-21.de",
+    "https://freediverse.com",
+    "https://pocketnetpeertube2.nohost.me",
+    "https://peertube.bubbletea.dev",
+    "https://pt.maciej.website",
+    "https://pt.nospy.net",
+    "https://thevideoverse.com",
+    "https://peertube.art3mis.de",
+    "https://open.movie",
+    "https://tube.rfc1149.net",
+    "https://tube.radiomercure.fr",
+    "https://video.3cmr.fr",
+    "https://medias.debrouillonet.org",
+    "https://vid.thatswhathappened.tv",
+    "https://peertube.1984.cz",
+    "https://tube.sp4ke.com",
+    "https://videos.tormentasolar.win",
+    "https://pt.nix.uno",
+    "https://peertube.terranout.mine.nu",
+    "https://videos.openmandriva.org",
+    "https://peertube.thirdworld.finance",
+    "https://video.vanderwarker.photos",
+    "https://tube.ac-amiens.fr",
+    "https://peertube.soykaf.org",
+    "https://tube.interhacker.space",
+    "https://video.firehawk-systems.com",
+    "https://tube.otter.sh",
+    "https://re-wizja.re-medium.com",
+    "https://replay.jres.org",
+    "https://videonaute.fr",
+    "https://peertube.lagob.fr",
+    "https://peertube.gcaillaut.fr",
+    "https://peertube.hellsite.net",
+    "https://peertube.hosnet.fr",
+    "https://live.people-world-life.de",
+    "https://kujoe.tube",
+    "https://video.extremelycorporate.ca",
+    "https://nattyvideo.com",
+    "https://video.zarchbox.ovh",
+    "https://video-vision.elemsys.com",
+    "https://videos.ysarris.xyz",
+    "https://video.sgiath.dev",
+    "https://videos.b4tech.org",
+    "https://video.off-investigation.fr",
+    "https://tube.source.news",
+    "https://tube.oraclefilms.com",
+    "https://tube.childrenshealthdefense.eu",
+    "https://stream.litera.tools",
+    "https://peertube.kriom.net",
+    "https://peertube.grosist.fr",
+    "https://peertube.gemlog.ca",
+    "https://peer.nuxlight.xyz",
+    "https://nettube.uc-netcorsoft.de",
+    "https://live.solari.com",
+    "https://live.codinglab.ch",
+    "https://dud-video.inf.tu-dresden.de",
+    "https://peertube.negativezero.link",
+    "https://media-test.interior.edu.uy",
+    "https://media.interior.edu.uy",
+    "https://bitcast.online",
+    "https://peertube.la-scic.fr",
+    "https://phoenixproject.group",
+    "https://peertube.sebu77.com",
+    "https://www.orion-hub.fr",
+    "https://quantube.win",
+    "https://tv.orion-serv.fr",
+    "https://tube.sloth.network",
+    "https://peertube.iselfhost.com",
+    "https://video.interru.io",
+    "https://tube.cnr.it",
+    "https://tube.alado.space",
+    "https://share.peertube.support",
+    "https://peertube.dtmf.ca",
+    "https://tube.tr4sk.me",
+    "https://peertube.dk",
+    "https://tube.ponsonaille.fr",
+    "https://peertube.ares.bioxis-server.fr",
+    "https://tube.int5.net",
+    "https://videos.davidpeach.me",
+    "https://peertube.jackbot.fr",
+    "https://videos.redeyes.site",
+    "https://stream.nuemedia.se",
+    "https://peertube.wiredentrypoint.xyz",
+    "https://videos.lemnoslife.com",
+    "https://s17.gegenstimme.tv",
+    "https://s16.gegenstimme.tv",
+    "https://peertube.virtual-assembly.org",
+    "https://peertube.arch-linux.cz",
+    "https://tube.digitalesozialearbeit.de",
+    "https://tube.spdns.org",
+    "https://tube.onlinekirche.net",
+    "https://peertube.freeagility.rocks",
+    "https://tube.systerserver.net",
+    "https://peertube.redpill-insight.com",
+    "https://tube.22decembre.eu",
+    "https://video.berzs.xyz",
+    "https://video.aqr.af",
+    "https://invoice.peertube.biz",
+    "https://videos-passages.huma-num.fr",
+    "https://pt.sfunk1x.com",
+    "https://video.antopie.org",
+    "https://vtr.chikichiki.tube",
+    "https://fedimovie.com",
+    "https://peertube.frontmediatique.fr",
+    "https://videos.thinkerview.com",
+    "https://tube.doctors4covidethics.org",
+    "https://yoba.tv",
+    "https://tube.mediainformationcenter.de",
+    "https://peertube.communecter.org",
+    "https://peer.madiator.com",
+    "https://peertube.librosphere.fr",
+    "https://queermotion.org",
+    "https://video.audiovisuel-participatif.org",
+    "https://peertube.vip",
+    "https://tube.levelxstudios.org",
+    "https://videos.jacksonchen666.com",
+    "https://video.eutychia.org",
+    "https://video.team-lcbs.eu",
+    "https://video.liveitlive.show",
+    "https://vid.plantplotting.co.uk",
+    "https://video.telemillevaches.net",
+    "https://p.nogafa.org",
+    "https://furred.tv",
+    "https://vault.mle.party",
+    "https://tv.pirati.cz",
+    "https://peertube.therealblue.de",
+    "https://tv.stoopid.club",
+    "https://pt.gboaonline.org",
+    "https://tube.nuxnik.com",
+    "https://tube.froth.zone",
+    "https://peertube.ethibox.fr",
+    "https://www.freetubehub.live",
+    "https://tube.communia.org",
+    "https://tube.03281.fspfc.org",
+    "https://peertube.dragonborn.app",
+    "https://ai-tube.ch",
+    "https://buddhist.tv",
+    "https://video.citizen4.eu",
+    "https://vid.dimitri.ge",
+    "https://video.matomocamp.org",
+    "https://media.fsfe.org",
+    "https://flytandemeistring.space",
+    "https://xn--modervr-jxa.space",
+    "https://watch.daspr.io",
+    "https://video.windfluechter.org",
+    "https://peertube.pixificial.xyz",
+    "https://pocketnetpeertube10.nohost.me",
+    "https://tube.io18.top",
+    "https://peertube.remerge.net",
+    "https://video.wuatek.is",
+    "https://tube.geekyboo.net",
+    "https://notretube.asselma.eu",
+    "https://canal.facil.services",
+    "https://ukva.li",
+    "https://pt.gordons.gen.nz",
+    "https://tube.misterbanal.net",
+    "https://free-streams.com",
+    "https://peertube.fomin.site",
+    "https://peertube.kenjiyon.xyz",
+    "https://tube.g1zm0.de",
+    "https://video.ellijaymakerspace.org",
+    "https://videos.benpro.fr",
+    "https://tube.fait.ch",
+    "https://peertube.automat.click",
+    "https://peertube.expi.studio",
+    "https://crank.recoil.org",
+    "https://tube.flokinet.is",
+    "https://vids.jaguarmundi.com",
+    "https://peertube.education-forum.com",
+    "https://apathy.tv",
+    "https://pocketnetpeertube9.nohost.me",
+    "https://lfbu.nl",
+    "https://tube.benzo.online",
+    "https://peertube.paladyn.org",
+    "https://fightforinfo.com",
+    "https://tube.ulne.be",
+    "https://video.rubdos.be",
+    "https://tube.tuxfriend.fr",
+    "https://anarchy.tube",
+    "https://nsfw.vger.cloud",
+    "https://tube.elemac.fr",
+    "https://tube.nocturlab.fr",
+    "https://comic.bot.nu",
+    "https://videos.optoutpod.com",
+    "https://videos.bik.opencloud.lu",
+    "https://tube.zveronline.ru",
+    "https://videos.aadtp.be",
+    "https://videos.gunfreezone.net",
+    "https://videos.globenet.org",
+    "https://peertube.chantierlibre.org",
+    "https://tube.pawelko.net",
+    "https://video.lycee-experimental.org",
+    "https://tube.klardenken.tv",
+    "https://tube.nemsia.org",
+    "https://serv2.wiki-tube.de",
+    "https://tube2.apolut.net",
+    "https://pt01.lehrerfortbildung-bw.de",
+    "https://videos.buceoluegoexisto.com",
+    "https://tube.exozy.me",
+    "https://video.benetou.fr",
+    "https://bideoak.argia.eus",
+    "https://video.hainry.fr",
+    "https://vid.addyadds.us",
+    "https://video.gresille.org",
+    "https://peertube.tangentfox.com",
+    "https://puffy.tube",
+    "https://tube.kher.nl",
+    "https://peertube.kevread.fr",
+    "https://perceptiontravel.tv",
+    "https://watch.ocaml.org",
+    "https://videos.yesil.club",
+    "https://peertube.kleph.eu",
+    "https://tube.missbanal.net",
+    "https://pityu.flaki.hu",
+    "https://tv.catalpafestival.fr",
+    "https://pony.tube",
+    "https://peertube.umeahackerspace.se",
+    "https://tube.okcinfo.news",
+    "https://stream.conesphere.cloud",
+    "https://www.rocaguinarda.tv",
+    "https://videos.wirtube.de",
+    "https://tube.tinfoil-hat.net",
+    "https://livegram.net",
+    "https://peertube.ketchup.noho.st",
+    "https://video.ustim.ru",
+    "https://merci-la-police.fr",
+    "https://pocketnetpeertube7.nohost.me",
+    "https://tube.noise.rocks",
+    "https://video.rhizome.org",
+    "https://dnk.video",
+    "https://video.medienzentrum-harburg.de",
+    "https://video.metaccount.de",
+    "https://video.libreti.net",
+    "https://leopard.tube",
+    "https://peertube.skorpil.cz",
+    "https://peertube.scyldings.com",
+    "https://gade.o-k-i.net",
+    "https://peerlook.ru",
+    "https://peertube.mobilsicher.de",
+    "https://tube.emy.plus",
+    "https://video.jigmedatse.com",
+    "https://video.amiga-ng.org",
+    "https://peertube.espace.si",
+    "https://videos.supertuxkart.net",
+    "https://pt.borgcube.eu",
+    "https://mp-tube.de",
+    "https://oldpcmuseum.ru",
+    "https://socialwebtube.com",
+    "https://kraut.zone",
+    "https://www.birkeundnymphe.de",
+    "https://birkeundnymphe.de",
+    "https://v.kisombrella.top",
+    "https://peertube.w.utnw.de",
+    "https://tube.sp-codes.de",
+    "https://tube.apolut.net",
+    "https://tube.mfraters.net",
+    "https://tube.pyngu.com",
+    "https://peertube.troback.com",
+    "https://peertube.ucy.de",
+    "https://peertube.aukfood.net",
+    "https://peertube.bridaahost.ynh.fr",
+    "https://peertube.myrasp.eu",
+    "https://ptube.horsentiers.fr",
+    "https://watch.softinio.com",
+    "https://peertube.plataformess.org",
+    "https://tv1.gomntu.space",
+    "https://phijkchu.com",
+    "https://tube.arthack.nz",
+    "https://tv.atmx.ca",
+    "https://tube.superseriousbusiness.org",
+    "https://videos.petch.rocks",
+    "https://kino.kompot.si",
+    "https://play.rosano.ca",
+    "https://tube.kockatoo.org",
+    "https://peertube.cabaal.net",
+    "https://sovran.video",
+    "https://stream.k-prod.fr",
+    "https://tube.tylerdavis.xyz",
+    "https://video.marcorennmaus.de",
+    "https://peertube.ecologie.bzh",
+    "https://peertube.atsuchan.page",
+    "https://peertube.vlaki.cz",
+    "https://video-cave-v2.de",
+    "https://peertube.keazilla.net",
+    "https://vids.tekdmn.me",
+    "https://piraten.space",
+    "https://tube.bstly.de",
+    "https://web-fellow.de",
+    "https://peertube.alpharius.io",
+    "https://ptb.lunarviews.net",
+    "https://ovaltube.codinglab.ch",
+    "https://video.wilkie.how",
+    "https://videos.ahp-numerique.fr",
+    "https://auf1.eu",
+    "https://tube.toontoet.nl",
+    "https://video.gyt.is",
+    "https://peertube.0x5e.eu",
+    "https://turkum.me",
+    "https://peertube.jensdiemer.de",
+    "https://tube.futuretic.fr",
+    "https://libra.syntazia.org",
+    "https://peertube.thenewoil.xyz",
+    "https://peertube.beeldengeluid.nl",
+    "https://tv.lumbung.space",
+    "https://vid.dascoyote.xyz",
+    "https://peertube.cuatrolibertades.org",
+    "https://orgdup.media",
+    "https://videos.hush.is",
+    "https://tube.ebin.club",
+    "https://tube.tpshd.de",
+    "https://video.ozgurkon.org",
+    "https://video.progressiv.dev",
+    "https://video.migennes.net",
+    "https://irrsinn.video",
+    "https://pocketnetpeertube4.nohost.me",
+    "https://video.omniatv.com",
+    "https://comf.tube",
+    "https://peertube.orthus.link",
+    "https://pocketnetpeertube6.nohost.me",
+    "https://pocketnetpeertube5.nohost.me",
+    "https://peertube.radres.xyz",
+    "https://darkvapor.nohost.me",
+    "https://tube.chaoszone.tv",
+    "https://media.over-world.org",
+    "https://tube.avensio.de",
+    "https://peertube.klaewyss.fr",
+    "https://video.cpn.so",
+    "https://sender-fm.veezee.tube",
+    "https://peertube.takeko.cyou",
+    "https://tube.chatelet.ovh",
+    "https://hyperreal.tube",
+    "https://peertube.kalua.im",
+    "https://tv.undersco.re",
+    "https://video.selea.se",
+    "https://twctube.twc-zone.eu",
+    "https://tv.neue.city",
+    "https://tv.piejacker.net",
+    "https://videos.shmalls.pw",
+    "https://peertube.iriseden.eu",
+    "https://tube.tardis.world",
+    "https://video.shitposter.club",
+    "https://tv.mattchristiansenmedia.com",
+    "https://tube.hackerscop.org",
+    "https://videos.capas.se",
+    "https://peertube.kx.studio",
+    "https://videos.3d-wolf.com",
+    "https://tube.octaplex.net",
+    "https://video.076.ne.jp",
+    "https://stream.elven.pw",
+    "https://juggling.digital",
+    "https://my.bunny.cafe",
+    "https://videos.rampin.org",
+    "https://bitcointv.com",
+    "https://videos.lucero.top",
+    "https://media.gzevd.de",
+    "https://video.resolutions.it",
+    "https://tube.cms.garden",
+    "https://a.metube.ch",
+    "https://peertube.luckow.org",
+    "https://mani.tube",
+    "https://video.linuxtrent.it",
+    "https://video.demokratischer-sommer.de",
+    "https://tube.bachaner.fr",
+    "https://video.comune.trento.it",
+    "https://peertube.red",
+    "https://tube.org.il",
+    "https://tv.pirateradio.social",
+    "https://peertube.eu.org",
+    "https://peertube.mxinfo.fr",
+    "https://tube.frischesicht.de",
+    "https://videos.traumaheilung.net",
+    "https://peertube1.zeteo.me",
+    "https://conspiracydistillery.com",
+    "https://peertube.chemnitz.freifunk.net",
+    "https://video.apps.thedoodleproject.net",
+    "https://peertube.robonomics.network",
+    "https://hpstube.fr",
+    "https://video.blast-info.fr",
+    "https://peertube.bubuit.net",
+    "https://tube.aerztefueraufklaerung.de",
+    "https://video.cybre.town",
+    "https://the.jokertv.eu",
+    "https://climatejustice.video",
+    "https://wikileaks.video",
+    "https://video.cnt.social",
+    "https://fair.tube",
+    "https://tube.lokad.com",
+    "https://videos.benjaminbrady.ie",
+    "https://peertube.bgzashtita.es",
+    "https://vid.rajeshtaylor.com",
+    "https://video.binarydad.com",
+    "https://tube.pmj.rocks",
+    "https://gary.vger.cloud",
+    "https://video.guerredeclasse.fr",
+    "https://tube.wehost.lgbt",
+    "https://tube.novg.net",
+    "https://ptmir5.inter21.net",
+    "https://ptmir4.inter21.net",
+    "https://ptmir3.inter21.net",
+    "https://peertube.habets.house",
+    "https://tube.yapbreak.fr",
+    "https://peertube.ctseuro.com",
+    "https://spectra.video",
+    "https://live.nanao.moe",
+    "https://peertube.inapurna.org",
+    "https://watch.libertaria.space",
+    "https://video.triplea.fr",
+    "https://videos.monstro1.com",
+    "https://tube.darknight-coffee.org",
+    "https://video.catgirl.biz",
+    "https://peertube.westring.digital",
+    "https://peertube.hackerfraternity.org",
+    "https://vulgarisation-informatique.fr",
+    "https://videos.thisishowidontdisappear.com",
+    "https://video.islameye.com",
+    "https://tube.kotur.org",
+    "https://v.szy.io",
+    "https://peertube.euskarabildua.eus",
+    "https://video.veloma.org",
+    "https://vidcommons.org",
+    "https://regarder.sans.pub",
+    "https://tube.rhythms-of-resistance.org",
+    "https://tube-bordeaux.beta.education.fr",
+    "https://video.lespoesiesdheloise.fr",
+    "https://peertube.luga.at",
+    "https://peertube.roflcopter.fr",
+    "https://ptube.rousset.nom.fr",
+    "https://peertube.swrs.net",
+    "https://tube.shanti.cafe",
+    "https://videos.cloudron.io",
+    "https://vid.werefox.dev",
+    "https://tube.seditio.fr",
+    "https://video.thinkof.name",
+    "https://video.p3x.de",
+    "https://video.codingfield.com",
+    "https://tv.adn.life",
+    "https://peertube.functional.cafe",
+    "https://peertube.br0.fr",
+    "https://video.bards.online",
+    "https://video.toot.pt",
+    "https://videos.archigny.net",
+    "https://peertube.logilab.fr",
+    "https://peertube.gruezishop.ch",
+    "https://videos.pzelawski.xyz",
+    "https://peertube.zoz-serv.org",
+    "https://videos.stadtfabrikanten.org",
+    "https://archive.vidicon.org",
+    "https://peertube.gargantia.fr",
+    "https://tube.melonbread.xyz",
+    "https://tube.grap.coop",
+    "https://webtv.vandoeuvre.net",
+    "https://peertube.european-pirates.eu",
+    "https://video.potate.space",
+    "https://video.fhtagn.org",
+    "https://videos.scanlines.xyz",
+    "https://kirche.peertube-host.de",
+    "https://v.lor.sh",
+    "https://peertube.be",
+    "https://peertube.linuxrocks.online",
+    "https://grypstube.uni-greifswald.de",
+    "https://wiwi.video",
+    "https://peertube.tv",
+    "https://video.soi.ch",
+    "https://peertube.newsocial.tech",
+    "https://peertube.cpge-brizeux.fr",
+    "https://tube.distrilab.fr",
+    "https://kinowolnosc.pl",
+    "https://videos.trom.tf",
+    "https://videos.john-livingston.fr",
+    "https://melsungen.peertube-host.de",
+    "https://evangelisch.video",
+    "https://tube.anufrij.de",
+    "https://videos.mastodont.cat",
+    "https://graeber.video",
+    "https://flim.txmn.tk",
+    "https://video.taboulisme.com",
+    "https://media.undeadnetwork.de",
+    "https://eduvid.org",
+    "https://tube.dragonpsi.xyz",
+    "https://veezee.tube",
+    "https://peertube.nicolastissot.fr",
+    "https://s2.veezee.tube",
+    "https://tubes.jodh.us",
+    "https://tube.lucie-philou.com",
+    "https://video.odayacres.farm",
+    "https://tube.schule.social",
+    "https://unfilter.tube",
+    "https://tube.systest.eu",
+    "https://tube.xd0.de",
+    "https://tube.xy-space.de",
+    "https://studios.racer159.com",
+    "https://exo.tube",
+    "https://mirametube.fr",
+    "https://fediverse.tv",
+    "https://video.kicik.fr",
+    "https://xxivproduction.video",
+    "https://sdmtube.fr",
+    "https://digitalcourage.video",
+    "https://tvox.ru",
+    "https://video.kuba-orlik.name",
+    "https://peer.azurs.fr",
+    "https://video.ecole-89.com",
+    "https://tube.kai-stuht.com",
+    "https://video.fbxl.net",
+    "https://live.libratoi.org",
+    "https://video.p1ng0ut.social",
+    "https://watch.deranalyst.ch",
+    "https://video.discord-insoumis.fr",
+    "https://peertube.forsud.be",
+    "https://video.pcf.fr",
+    "https://kumi.tube",
+    "https://tube.rsi.cnr.it",
+    "https://peertube.dc.pini.fr",
+    "https://peertube.simounet.net",
+    "https://peertube.bilange.ca",
+    "https://befree.nohost.me",
+    "https://watch.ignorance.eu",
+    "https://tube.schleuss.online",
+    "https://tube-corse.beta.education.fr",
+    "https://tube-creteil.beta.education.fr",
+    "https://tube.saumon.io",
+    "https://tube-paris.beta.education.fr",
+    "https://videos.judrey.eu",
+    "https://theater.ethernia.net",
+    "https://watch.tubelab.video",
+    "https://lastbreach.tv",
+    "https://tube.abolivier.bzh",
+    "https://video.coales.co",
+    "https://film.k-prod.fr",
+    "https://peertube.francoispelletier.org",
+    "https://videos.danksquad.org",
+    "https://v.phreedom.club",
+    "https://peertube.tweb.tv",
+    "https://peertube.lestutosdeprocessus.fr",
+    "https://video.mycrowd.ca",
+    "https://kodcast.com",
+    "https://video.altertek.org",
+    "https://ruraletv.ovh",
+    "https://videos.weblib.re",
+    "https://tube.oisux.org",
+    "https://peertube.louisematic.site",
+    "https://tv2.cocu.cc",
+    "https://tv1.cocu.cc",
+    "https://periscope.numenaute.org",
+    "https://clap.nerv-project.eu",
+    "https://tube.lacaveatonton.ovh",
+    "https://peertube.tspu.edu.ru",
+    "https://p.lu",
+    "https://serv3.wiki-tube.de",
+    "https://serv1.wiki-tube.de",
+    "https://tube.traydent.info",
+    "https://video.lavolte.net",
+    "https://peertube.public.cat",
+    "https://peertube.anduin.net",
+    "https://peertube.r5c3.fr",
+    "https://mountaintown.video",
+    "https://ptmir1.inter21.net",
+    "https://tube.foxden.party",
+    "https://fotogramas.politicaconciencia.org",
+    "https://peertube.pl",
+    "https://peertube.manalejandro.com",
+    "https://www4.mir.inter21.net",
+    "https://video.csc49.fr",
+    "https://peertube.social.my-wan.de",
+    "https://tube.wolfe.casa",
+    "https://tube.linkse.media",
+    "https://video.dresden.network",
+    "https://peertube.zapashcanon.fr",
+    "https://40two.tube",
+    "https://tube.amic37.fr",
+    "https://video.comptoir.net",
+    "https://kino.schuerz.at",
+    "https://peertube.tiennot.net",
+    "https://tututu.tube",
+    "https://peertube.interhop.org",
+    "https://tube.picasoft.net",
+    "https://www.wiki-tube.de",
+    "https://videos.pair2jeux.tube",
+    "https://video.stuartbrand.co.uk",
+    "https://video.internet-czas-dzialac.pl",
+    "https://thecool.tube",
+    "https://tube.troopers.agency",
+    "https://tv.bitma.st",
+    "https://peertube.chtisurel.net",
+    "https://videos.testimonia.org",
+    "https://peertube.informaction.info",
+    "https://video.mass-trespass.uk",
+    "https://peertube.cipherbliss.com",
+    "https://peertube.stemy.me",
+    "https://daschauher.aksel.rocks",
+    "https://video.mstddntfdn.online",
+    "https://tube.cyano.at",
+    "https://peertube.koehn.com",
+    "https://tube.nox-rhea.org",
+    "https://peertube.securitymadein.lu",
+    "https://tube.rita.moe",
+    "https://tuktube.com",
+    "https://v.basspistol.org",
+    "https://mojotube.net",
+    "https://mytube.kn-cloud.de",
+    "https://tube.nuagelibre.fr",
+    "https://video.nogafam.es",
+    "https://peertube.stream",
+    "https://videos.leslionsfloorball.fr",
+    "https://player.ojamajo.moe",
+    "https://ftsi.ru",
+    "https://video.cigliola.com",
+    "https://xxx.noho.st",
+    "https://peertube.stefofficiel.me",
+    "https://video.eradicatinglove.xyz",
+    "https://canard.tube",
+    "https://videos.jordanwarne.xyz",
+    "https://tube.jeena.net",
+    "https://video.mundodesconocido.com",
+    "https://tube.cloud-libre.eu",
+    "https://videos.coletivos.org",
+    "https://peertube.nogafa.org",
+    "https://peertube.xwiki.com",
+    "https://tuvideo.encanarias.info",
+    "https://cinema.yunohost.support",
+    "https://peertube.s2s.video",
+    "https://peertube.travelpandas.eu",
+    "https://peertube.runfox.tk",
+    "https://video.sdm-tools.net",
+    "https://peertube.anzui.dev",
+    "https://video.up.edu.ph",
+    "https://video.igem.org",
+    "https://worldofvids.com",
+    "https://peertube.underworld.fr",
+    "https://peertube.pi2.dev",
+    "https://video.pony.gallery",
+    "https://tube.skrep.in",
+    "https://tube.others.social",
+    "https://videos.ubuntu-paris.org",
+    "https://tube-poitiers.beta.education.fr",
+    "https://streamsource.video",
+    "https://vid.wildeboer.net",
+    "https://battlepenguin.video",
+    "https://peertube.cloud.sans.pub",
+    "https://refuznik.video",
+    "https://tube.shela.nu",
+    "https://video.1146.nohost.me",
+    "https://peertube.davigge.com",
+    "https://videos.tankernn.eu",
+    "https://vod.ksite.de",
+    "https://tube.grin.hu",
+    "https://media.inno3.cricket",
+    "https://video.livecchi.cloud",
+    "https://tube.cryptography.dog",
+    "https://peertube.zergy.net",
+    "https://vid.ncrypt.at",
+    "https://videos.tcit.fr",
+    "https://video.valme.io",
+    "https://peertube.patapouf.xyz",
+    "https://video.violoncello.ch",
+    "https://peertube.gidikroon.eu",
+    "https://tubedu.org",
+    "https://watch.breadtube.tv",
+    "https://video.exodus-privacy.eu.org",
+    "https://tilvids.com",
+    "https://peertube.devloprog.org",
+    "https://peertube.designersethiques.org",
+    "https://testtube.florimond.eu",
+    "https://tube.gnous.eu",
+    "https://tube-lille.beta.education.fr",
+    "https://peertube.monlycee.net",
+    "https://tube.plomlompom.com",
+    "https://tube-outremer.beta.education.fr",
+    "https://tube-dijon.beta.education.fr",
+    "https://tube-reims.beta.education.fr",
+    "https://tube-limoges.beta.education.fr",
+    "https://tube-versailles.beta.education.fr",
+    "https://peertube.r2.enst.fr",
+    "https://tube-orleans-tours.beta.education.fr",
+    "https://spacepub.space",
+    "https://peertube.devol.it",
+    "https://tube-clermont-ferrand.beta.education.fr",
+    "https://tube-nice.beta.education.fr",
+    "https://tube-montpellier.beta.education.fr",
+    "https://tube-nancy.beta.education.fr",
+    "https://tube-aix-marseille.beta.education.fr",
+    "https://tube-nantes.beta.education.fr",
+    "https://tube-grenoble.beta.education.fr",
+    "https://tube-amiens.beta.education.fr",
+    "https://peertube.gardeludwig.fr",
+    "https://media.privacyinternational.org",
+    "https://tube-normandie.beta.education.fr",
+    "https://tube.port0.xyz",
+    "https://tube1.it.tuwien.ac.at",
+    "https://tube.aquilenet.fr",
+    "https://peertube.lyceeconnecte.fr",
+    "https://tube-education.beta.education.fr",
+    "https://vids.roshless.me",
+    "https://tube-toulouse.beta.education.fr",
+    "https://peertube.netzbegruenung.de",
+    "https://plextube.nl",
+    "https://peertube.atilla.org",
+    "https://tube.opportunis.me",
+    "https://nanawel-peertube.dyndns.org",
+    "https://tube-strasbourg.beta.education.fr",
+    "https://tube.graz.social",
+    "https://tube-besancon.beta.education.fr",
+    "https://vid.garwood.io",
+    "https://kolektiva.media",
+    "https://peertube.ichigo.everydayimshuflin.com",
+    "https://petitlutinartube.fr",
+    "https://video.lundi.am",
+    "https://tube.florimond.eu",
+    "https://peertube.it",
+    "https://peertube.taxinachtegel.de",
+    "https://peertube.scic-tetris.org",
+    "https://peertube.lagvoid.com",
+    "https://pt.diaspodon.fr",
+    "https://video.mugoreve.fr",
+    "https://tube.portes-imaginaire.org",
+    "https://peervideo.ru",
+    "https://p.eertu.be",
+    "https://video.hardlimit.com",
+    "https://peertube.debian.social",
+    "https://tube.piweb.be",
+    "https://peertube.su",
+    "https://video.hackers.town",
+    "https://tube.fdn.fr",
+    "https://tv.datamol.org",
+    "https://peertube.demonix.fr",
+    "https://videos.hauspie.fr",
+    "https://lexx.impa.me",
+    "https://mplayer.demouliere.eu",
+    "https://video.liberta.vip",
+    "https://peertube.gcfamily.fr",
+    "https://video.ploud.fr",
+    "https://tube.plaf.fr",
+    "https://tube.nah.re",
+    "https://dreiecksnebel.alex-detsch.de",
+    "https://tube.hoga.fr",
+    "https://videos.festivalparminous.org",
+    "https://tube.thechangebook.org",
+    "https://lepetitmayennais.fr.nf",
+    "https://medias.pingbase.net",
+    "https://video.oh14.de",
+    "https://mytube.madzel.de",
+    "https://monplaisirtube.ddns.net",
+    "https://video.okaris.de",
+    "https://video.blender.org",
+    "https://peertube.020.pl",
+    "https://tube.azbyka.ru",
+    "https://greatview.video",
+    "https://media.krashboyz.org",
+    "https://toobnix.org",
+    "https://video.emergeheart.info",
+    "https://tube.kdy.ch",
+    "https://widemus.de",
+    "https://video.nesven.eu",
+    "https://vidz.dou.bet",
+    "https://tube.rebellion.global",
+    "https://videos.koumoul.com",
+    "https://tube.undernet.uy",
+    "https://peertube.opencloud.lu",
+    "https://peertube.ch",
+    "https://tube.tappret.fr",
+    "https://peertube.snargol.com",
+    "https://peertube.desmu.fr",
+    "https://peertube.rainbowswingers.net",
+    "https://tube.nx-pod.de",
+    "https://video.monsieurbidouille.fr",
+    "https://tube.crapaud-fou.org",
+    "https://lostpod.space",
+    "https://www.videos-libr.es",
+    "https://video.vny.fr",
+    "https://peervideo.club",
+    "https://tube.taker.fr",
+    "https://tube.kicou.info",
+    "https://peertube.co.uk",
+    "https://video.fitchfamily.org",
+    "https://video.fdlibre.eu",
+    "https://peer.philoxweb.be",
+    "https://peertube.sl-network.fr",
+    "https://peertube.dynlinux.io",
+    "https://v.kretschmann.social",
+    "https://videos.funkwhale.audio",
+    "https://watch.44con.com",
+    "https://tube.danq.me",
+    "https://tube.calculate.social",
+    "https://peertube.laas.fr",
+    "https://video.ploud.jp",
+    "https://conf.tube",
+    "https://tube.extinctionrebellion.fr",
+    "https://peertube.f-si.org",
+    "https://video.subak.ovh",
+    "https://peertube.floss-marketing-school.com",
+    "https://peertube.slat.org",
+    "https://peertube.uno",
+    "https://tube.ksl-bmx.de",
+    "https://tube.tchncs.de",
+    "https://peertube.kosebamse.com",
+    "https://yunopeertube.myddns.me",
+    "https://peertube.anon-kenkai.com",
+    "https://tube.maiti.info",
+    "https://video.lemediatv.fr",
+    "https://pt.laurentkruger.fr",
+    "https://peertube.artica.center",
+    "https://indymotion.fr",
+    "https://video.farci.org",
+    "https://tube.fede.re",
+    "https://peertube.mygaia.org",
+    "https://peertube.livingutopia.org",
+    "https://tube.anjara.eu",
+    "https://video.latavernedejohnjohn.fr",
+    "https://peertube.pcservice46.fr",
+    "https://alttube.fr",
+    "https://video.coop.tools",
+    "https://video.cabane-libre.org",
+    "https://peertube.openstreetmap.fr",
+    "https://videos.alolise.org",
+    "https://scitech.video",
+    "https://peertube.freeforge.eu",
+    "https://peertube.togart.de",
+    "https://tube.postblue.info",
+    "https://videos.domainepublic.net",
+    "https://repro.video",
+    "https://videos.side-ways.net",
+    "https://videos.pueseso.club",
+    "https://media.assassinate-you.net",
+    "https://videos.squat.net",
+    "https://peertube.makotoworkshop.org",
+    "https://peertube.serveur.slv-valbonne.fr",
+    "https://video.netsyms.com",
+    "https://video.writeas.org",
+    "https://videos.adhocmusic.com",
+    "https://vid.y-y.li",
+    "https://diode.zone",
+    "https://peertube.nomagic.uk",
+    "https://video.rastapuls.com",
+    "https://video.mantlepro.com",
+    "https://peertube.musicstudio.pro",
+    "https://peertube.we-keys.fr",
+    "https://artitube.artifaille.fr",
+    "https://peertube.fr",
+    "https://peertube.nayya.org",
+    "https://peertube.amicale.net",
+    "https://aperi.tube",
+    "https://tube.ac-lyon.fr",
+    "https://video.lw1.at",
+    "https://www.yiny.org",
+    "https://video.typica.us",
+    "https://videos.lescommuns.org",
+    "https://dialup.express",
+    "https://peertube.1312.media",
+    "https://skeptikon.fr",
+    "https://video.blueline.mg",
+    "https://tube.homecomputing.fr",
+    "https://video.tedomum.net",
+    "https://video.g3l.org",
+    "https://fontube.fr",
+    "https://peertube.gaialabs.ch",
+    "https://peertube.qtg.fr",
+    "https://tube.p2p.legal",
+    "https://troll.tv",
+    "https://videos.iut-orsay.fr",
+    "https://peertube.solidev.net",
+    "https://videos.cemea.org",
+    "https://video.passageenseine.fr",
+    "https://peertube.touhoppai.moe",
+    "https://share.tube",
+    "https://peertube.heraut.eu",
+    "https://peertube.gegeweb.eu",
+    "https://framatube.org",
+    "https://tube.conferences-gesticulees.net",
+    "https://peertube.datagueule.tv",
+    "https://video.lqdn.fr",
+    "https://video.colibris-outilslibres.org",
+    "https://peertube3.cpy.re",
+    "https://peertube2.cpy.re",
+    "https://peertube.cpy.re"
+  ]
 }
\ No newline at end of file
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py
index 80dcc080..13eb80a8 100644
--- a/src/instances/get_instances.py
+++ b/src/instances/get_instances.py
@@ -189,6 +189,18 @@ for item in rJson:
 mightyList['rimgo'] = rimgoList
 print('fetched Rimgo')
 
+# Peertube
+r = requests.get(
+    'https://instances.joinpeertube.org/api/v1/instances?start=0&count=1045&sort=-createdAt')
+rJson = json.loads(r.text)
+
+myList = []
+for k in rJson['data']:
+    myList.append('https://'+k['host'])
+
+mightyList['peertube'] = myList
+print('fetched Peertube')
+
 
 # Writing to file
 json_object = json.dumps(mightyList, ensure_ascii=False, indent=2)
diff --git a/src/instances/peertube.py b/src/instances/peertube.py
deleted file mode 100644
index 5815b0e6..00000000
--- a/src/instances/peertube.py
+++ /dev/null
@@ -1,13 +0,0 @@
-import requests
-import json
-from urllib.parse import urlparse
-
-r = requests.get(
-    'https://instances.joinpeertube.org/api/v1/instances?start=0&count=1045&sort=-createdAt')
-rJson = json.loads(r.text)
-
-myList = []
-for k in rJson['data']:
-    myList.append(k['host'])
-    
-print(myList)
diff --git a/src/manifest.json b/src/manifest.json
index d496a51f..6d36be6c 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -36,10 +36,6 @@
     "browser_style": false,
     "open_in_tab": true
   },
-  "web_accessible_resources": [
-    "assets/javascripts/helpers/youtube/piped-preferences.js",
-    "/assets/javascripts/helpers/translate/lingva-preferences.js"
-  ],
   "chrome_settings_overrides": {
     "search_provider": {
       "name": "LibRedirect",
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index 32da2632..6aebda6d 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -13,6 +13,7 @@ import imgurHelper from "../../assets/javascripts/helpers/imgur.js";
 import tiktokHelper from "../../assets/javascripts/helpers/tiktok.js";
 import pixivHelper from "../../assets/javascripts/helpers/pixiv.js";
 import sendTargetsHelper from "../../assets/javascripts/helpers/sendTargets.js";
+import peertubeHelper from "../../assets/javascripts/helpers/peertube.js";
 import generalHelper from "../../assets/javascripts/helpers/general.js";
 import youtubeMusicHelper from "../../assets/javascripts/helpers/youtubeMusic.js";
 
@@ -33,6 +34,7 @@ async function wholeInit() {
   await tiktokHelper.init()
   await pixivHelper.init()
   await sendTargetsHelper.init()
+  await peertubeHelper.init()
   await generalHelper.init()
 }
 await wholeInit();
@@ -74,6 +76,8 @@ browser.webRequest.onBeforeRequest.addListener(
 
     if (!newUrl) newUrl = sendTargetsHelper.redirect(url, details.type, initiator);
 
+    if (!newUrl) newUrl = peertubeHelper.redirect(url, details.type, initiator);
+
     if (!newUrl) newUrl = translateHelper.redirect(url);
 
     if (!newUrl) newUrl = searchHelper.redirect(url)
@@ -142,6 +146,8 @@ browser.webRequest.onResponseStarted.addListener(
 
       if (!newUrl) newUrl = wikipediaHelper.changeInstance(url)
 
+      if (!newUrl) newUrl = peertubeHelper.changeInstance(url)
+
       if (newUrl) {
         browser.tabs.update({ url: '/pages/errors/instance_offline.html' });
         setTimeout(() => browser.tabs.update({ url: newUrl }), 2000);
diff --git a/src/pages/options/general/general.html b/src/pages/options/general/general.html
index 3c3719a1..3653fe46 100644
--- a/src/pages/options/general/general.html
+++ b/src/pages/options/general/general.html
@@ -65,6 +65,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
@@ -207,6 +211,7 @@
       <div>Maps<input type="checkbox" id="maps" /></div>
       <div>Wikipedia<input type="checkbox" id="wikipedia" /></div>
       <div>Medium<input type="checkbox" id="medium" /></div>
+      <div>Peertube<input type="checkbox" id="peertube" /></div>
       <div>Send Files<input type="checkbox" id="sendTargets" /></div>
     </div>
     <hr>
diff --git a/src/pages/options/imgur/imgur.html b/src/pages/options/imgur/imgur.html
index 4a524e3a..6fb9bcf5 100644
--- a/src/pages/options/imgur/imgur.html
+++ b/src/pages/options/imgur/imgur.html
@@ -66,6 +66,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/instagram/instagram.html b/src/pages/options/instagram/instagram.html
index a1ffe574..9b7dfe0c 100644
--- a/src/pages/options/instagram/instagram.html
+++ b/src/pages/options/instagram/instagram.html
@@ -67,6 +67,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/maps/maps.html b/src/pages/options/maps/maps.html
index 242f50c5..fccb733b 100644
--- a/src/pages/options/maps/maps.html
+++ b/src/pages/options/maps/maps.html
@@ -67,6 +67,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/medium/medium.html b/src/pages/options/medium/medium.html
index 1d2dd1f7..93f7848d 100644
--- a/src/pages/options/medium/medium.html
+++ b/src/pages/options/medium/medium.html
@@ -66,6 +66,10 @@
       <a href="../medium/medium.html" class="selected">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/peertube/peertube.html b/src/pages/options/peertube/peertube.html
new file mode 100644
index 00000000..08b83b1a
--- /dev/null
+++ b/src/pages/options/peertube/peertube.html
@@ -0,0 +1,172 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+  <meta charset="UTF-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1.0">
+  <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg" />
+  <link href="../../stylesheets/styles.css" rel="stylesheet" />
+  <title>LibRedirect Options: TikTok</title>
+</head>
+
+<body class="option">
+  <section class="links">
+    <div class="title">
+      <svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="26px" viewBox="0 0 24 24"
+        width="26px" fill="currentColor">
+        <path
+          d="M19.14,12.94c0.04-0.3,0.06-0.61,0.06-0.94c0-0.32-0.02-0.64-0.07-0.94l2.03-1.58c0.18-0.14,0.23-0.41,0.12-0.61 l-1.92-3.32c-0.12-0.22-0.37-0.29-0.59-0.22l-2.39,0.96c-0.5-0.38-1.03-0.7-1.62-0.94L14.4,2.81c-0.04-0.24-0.24-0.41-0.48-0.41 h-3.84c-0.24,0-0.43,0.17-0.47,0.41L9.25,5.35C8.66,5.59,8.12,5.92,7.63,6.29L5.24,5.33c-0.22-0.08-0.47,0-0.59,0.22L2.74,8.87 C2.62,9.08,2.66,9.34,2.86,9.48l2.03,1.58C4.84,11.36,4.8,11.69,4.8,12s0.02,0.64,0.07,0.94l-2.03,1.58 c-0.18,0.14-0.23,0.41-0.12,0.61l1.92,3.32c0.12,0.22,0.37,0.29,0.59,0.22l2.39-0.96c0.5,0.38,1.03,0.7,1.62,0.94l0.36,2.54 c0.05,0.24,0.24,0.41,0.48,0.41h3.84c0.24,0,0.44-0.17,0.47-0.41l0.36-2.54c0.59-0.24,1.13-0.56,1.62-0.94l2.39,0.96 c0.22,0.08,0.47,0,0.59-0.22l1.92-3.32c0.12-0.22,0.07-0.47-0.12-0.61L19.14,12.94z M12,15.6c-1.98,0-3.6-1.62-3.6-3.6 s1.62-3.6,3.6-3.6s3.6,1.62,3.6,3.6S13.98,15.6,12,15.6z" />
+      </svg>
+      <a href="../general/general.html">General</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/youtube-icon.png" />
+      <a href="../youtube/youtube.html">YouTube</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/youtube-music-icon.png" />
+      <a href="../youtubeMusic/youtubeMusic.html">YT Music</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/twitter-icon.png" />
+      <a href="../twitter/twitter.html">Twitter</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/instagram-icon.png" />
+      <a href="../instagram/instagram.html">Instagram</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/tiktok-icon.png" />
+      <a href="../tiktok/tiktok.html">TikTok</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/reddit-icon.png" />
+      <a href="../reddit/reddit.html">Reddit</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/imgur-icon.png" />
+      <a href="../imgur/imgur.html">Imgur</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/pixiv-icon.svg" />
+      <a href="../pixiv/pixiv.html">Pixiv</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/wikipedia-icon.svg" />
+      <a href="../wikipedia/wikipedia.html">Wikipedia</a>
+    </div>
+    <div class="title">
+      <!-- https://markentier.tech/posts/2020/10/medium-icon-svg/ -->
+      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1770 1000" fill="currentColor">
+        <circle cx="500" cy="500" r="500" />
+        <ellipse ry="475" rx="250" cy="501" cx="1296" />
+        <ellipse cx="1682" cy="502" rx="88" ry="424" />
+      </svg>
+      <a href="../medium/medium.html">Medium</a>
+    </div>
+    <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html" class="selected">Peertube</a>
+    </div>
+    <div class="title">
+      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
+        <path d="M0 0h24v24H0V0z" fill="none" />
+        <path
+          d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" />
+      </svg>
+      <a href="../search/search.html">Search</a>
+    </div>
+    <div class="title">
+      <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+        <path d="M0 0h24v24H0V0z" fill="none" />
+        <path
+          d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z" />
+      </svg>
+      <a href="../translate/translate.html">Translate</a>
+    </div>
+    <div class="title">
+      <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+        <path
+          d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />
+      </svg>
+      <a href="../maps/maps.html">Maps</a>
+    </div>
+    <div class="title">
+      <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="currentColor">
+        <path
+          d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z" />
+      </svg>
+      <a href="../sendTargets/sendTargets.html">Send Files</a>
+    </div>
+  </section>
+
+  <section class="option-block">
+    <div class="some-block option-block">
+      <h4>Enable</h4>
+      <input id="disable-peertube" type="checkbox" checked />
+    </div>
+
+    <div class="some-block option-block">
+      <h4>Protocol</h4>
+      <select id="protocol">
+        <option value="normal">Normal</option>
+        <option value="tor">Tor</option>
+      </select>
+    </div>
+
+    <hr>
+
+    <div id="normal">
+      <div class="some-block option-block">
+        <h4>Default Instances</h4>
+      </div>
+      <div class="checklist" id="simpleertube-normal-checklist"></div>
+      <hr>
+      <div class="some-block option-block">
+        <h4>Custom Instances</h4>
+      </div>
+      <form id="custom-simpleertube-normal-instance-form">
+        <div class="some-block option-block">
+          <input id="simpleertube-normal-custom-instance" placeholder="https://simpleertube.com" type="url" />
+          <button type="submit" class="add" id="simpleertube-normal-add-instance">
+            <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="currentColor">
+              <path d="M0 0h24v24H0V0z" fill="none" />
+              <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
+            </svg>
+          </button>
+        </div>
+      </form>
+      <div class="checklist" id="simpleertube-normal-custom-checklist"></div>
+    </div>
+    <div id="tor">
+      <div class="some-block option-block">
+        <h4>Default Instances</h4>
+      </div>
+      <div class="checklist" id="simpleertube-tor-checklist"></div>
+      <hr>
+      <div class="some-block option-block">
+        <h4>Custom Instances</h4>
+      </div>
+      <form id="custom-simpleertube-tor-instance-form">
+        <div class="some-block option-block">
+          <input id="simpleertube-tor-custom-instance" placeholder="https://simpleertube.com" type="url" />
+          <button type="submit" class="add" id="simpleertube-tor-add-instance">
+            <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="currentColor">
+              <path d="M0 0h24v24H0V0z" fill="none" />
+              <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z" />
+            </svg>
+          </button>
+        </div>
+      </form>
+      <div class="checklist" id="simpleertube-tor-custom-checklist"></div>
+    </div>
+  </section>
+
+
+  <script type="module" src="../init.js"></script>
+  <script type="module" src="./peertube.js"></script>
+  <!-- <script src="../../assets/javascripts/localise.js"></script> -->
+</body>
+
+</html>
\ No newline at end of file
diff --git a/src/pages/options/peertube/peertube.js b/src/pages/options/peertube/peertube.js
new file mode 100644
index 00000000..a770af8f
--- /dev/null
+++ b/src/pages/options/peertube/peertube.js
@@ -0,0 +1,59 @@
+import peertubeHelper from "../../../assets/javascripts/helpers/peertube.js";
+import commonHelper from "../../../assets/javascripts/helpers/common.js";
+
+let disableTiktokElement = document.getElementById("disable-peertube");
+disableTiktokElement.addEventListener("change",
+    (event) => peertubeHelper.setDisable(!event.target.checked)
+);
+
+let protocolElement = document.getElementById("protocol")
+protocolElement.addEventListener("change",
+    (event) => {
+        let protocol = event.target.options[protocolElement.selectedIndex].value
+        peertubeHelper.setProtocol(protocol);
+        changeProtocolSettings(protocol);
+    }
+);
+
+function changeProtocolSettings(protocol) {
+    let normalDiv = document.getElementById("normal");
+    let torDiv = document.getElementById("tor");
+    if (protocol == 'normal') {
+        normalDiv.style.display = 'block';
+        torDiv.style.display = 'none';
+    }
+    else if (protocol == 'tor') {
+        normalDiv.style.display = 'none';
+        torDiv.style.display = 'block';
+    }
+}
+
+peertubeHelper.init().then(() => {
+    disableTiktokElement.checked = !peertubeHelper.getDisable();
+
+    let protocol = peertubeHelper.getProtocol();
+    protocolElement.value = protocol;
+    changeProtocolSettings(protocol);
+
+    commonHelper.processDefaultCustomInstances(
+        'simpleertube',
+        'normal',
+        peertubeHelper,
+        document,
+        peertubeHelper.getSimpleertubeNormalRedirectsChecks,
+        peertubeHelper.setSimpleertubeNormalRedirectsChecks,
+        peertubeHelper.getSimpleertubeNormalCustomRedirects,
+        peertubeHelper.setSimpleertubeNormalCustomRedirects
+    );
+
+    commonHelper.processDefaultCustomInstances(
+        'simpleertube',
+        'tor',
+        peertubeHelper,
+        document,
+        peertubeHelper.getSimpleertubeTorRedirectsChecks,
+        peertubeHelper.setSimpleertubeTorRedirectsChecks,
+        peertubeHelper.getSimpleertubeTorCustomRedirects,
+        peertubeHelper.setSimpleertubeTorCustomRedirects
+    )
+})
\ No newline at end of file
diff --git a/src/pages/options/pixiv/pixiv.html b/src/pages/options/pixiv/pixiv.html
index 8ccf90f9..b34f71a6 100644
--- a/src/pages/options/pixiv/pixiv.html
+++ b/src/pages/options/pixiv/pixiv.html
@@ -66,6 +66,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/reddit/reddit.html b/src/pages/options/reddit/reddit.html
index a867cd96..737e000e 100644
--- a/src/pages/options/reddit/reddit.html
+++ b/src/pages/options/reddit/reddit.html
@@ -66,6 +66,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/search/search.html b/src/pages/options/search/search.html
index 1724cc72..3f3659c8 100644
--- a/src/pages/options/search/search.html
+++ b/src/pages/options/search/search.html
@@ -66,6 +66,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/sendTargets/sendTargets.html b/src/pages/options/sendTargets/sendTargets.html
index 3c86e4e7..ab84a565 100644
--- a/src/pages/options/sendTargets/sendTargets.html
+++ b/src/pages/options/sendTargets/sendTargets.html
@@ -66,6 +66,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/tiktok/tiktok.html b/src/pages/options/tiktok/tiktok.html
index 4591c8bc..a6b6c6b5 100644
--- a/src/pages/options/tiktok/tiktok.html
+++ b/src/pages/options/tiktok/tiktok.html
@@ -66,6 +66,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/translate/translate.html b/src/pages/options/translate/translate.html
index 4ff00218..f451c830 100644
--- a/src/pages/options/translate/translate.html
+++ b/src/pages/options/translate/translate.html
@@ -66,6 +66,10 @@
             <a href="../medium/medium.html">Medium</a>
         </div>
         <div class="title">
+            <img src="../../../assets/images/peertube-icon.svg" />
+            <a href="../peertube/peertube.html">Peertube</a>
+        </div>
+        <div class="title">
             <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
                 <path d="M0 0h24v24H0V0z" fill="none" />
                 <path
diff --git a/src/pages/options/twitter/twitter.html b/src/pages/options/twitter/twitter.html
index 64952f9e..668ba3c3 100644
--- a/src/pages/options/twitter/twitter.html
+++ b/src/pages/options/twitter/twitter.html
@@ -67,6 +67,10 @@
             <a href="../medium/medium.html">Medium</a>
         </div>
         <div class="title">
+            <img src="../../../assets/images/peertube-icon.svg" />
+            <a href="../peertube/peertube.html">Peertube</a>
+        </div>
+        <div class="title">
             <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
                 <path d="M0 0h24v24H0V0z" fill="none" />
                 <path
diff --git a/src/pages/options/wikipedia/wikipedia.html b/src/pages/options/wikipedia/wikipedia.html
index 67a1cdfe..379d33ca 100644
--- a/src/pages/options/wikipedia/wikipedia.html
+++ b/src/pages/options/wikipedia/wikipedia.html
@@ -66,6 +66,10 @@
             <a href="../medium/medium.html">Medium</a>
         </div>
         <div class="title">
+            <img src="../../../assets/images/peertube-icon.svg" />
+            <a href="../peertube/peertube.html">Peertube</a>
+        </div>
+        <div class="title">
             <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
                 <path d="M0 0h24v24H0V0z" fill="none" />
                 <path
diff --git a/src/pages/options/youtube/youtube.html b/src/pages/options/youtube/youtube.html
index a88f9581..7b555504 100644
--- a/src/pages/options/youtube/youtube.html
+++ b/src/pages/options/youtube/youtube.html
@@ -67,6 +67,10 @@
       <a href="../medium/medium.html">Medium</a>
     </div>
     <div class="title">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <a href="../peertube/peertube.html">Peertube</a>
+    </div>
+    <div class="title">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
         <path d="M0 0h24v24H0V0z" fill="none" />
         <path
diff --git a/src/pages/options/youtubeMusic/youtubeMusic.html b/src/pages/options/youtubeMusic/youtubeMusic.html
index 8124c577..cc446ded 100644
--- a/src/pages/options/youtubeMusic/youtubeMusic.html
+++ b/src/pages/options/youtubeMusic/youtubeMusic.html
@@ -67,6 +67,10 @@
             <a href="../medium/medium.html">Medium</a>
         </div>
         <div class="title">
+            <img src="../../../assets/images/peertube-icon.svg" />
+            <a href="../peertube/peertube.html">Peertube</a>
+        </div>
+        <div class="title">
             <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
                 <path d="M0 0h24v24H0V0z" fill="none" />
                 <path
diff --git a/src/pages/popup/popup.html b/src/pages/popup/popup.html
index f52b52c9..981b604d 100644
--- a/src/pages/popup/popup.html
+++ b/src/pages/popup/popup.html
@@ -98,6 +98,14 @@
     <input id="disable-medium" type="checkbox" checked />
   </div>
 
+  <div id="peertube" class="some-block">
+    <a class="title" href="https://search.joinpeertube.org">
+      <img src="../../../assets/images/peertube-icon.svg" />
+      <h4>Peertube</h4>
+    </a>
+    <input id="disable-peertube" type="checkbox" checked />
+  </div>
+
   <div id="search" class="some-block">
     <a class="title" href="http://libredirect.onion">
       <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
diff --git a/src/pages/popup/popup.js b/src/pages/popup/popup.js
index 3b4f4161..fb25775b 100644
--- a/src/pages/popup/popup.js
+++ b/src/pages/popup/popup.js
@@ -16,6 +16,7 @@ import imgurHelper from "../../assets/javascripts/helpers/imgur.js";
 import tiktokHelper from "../../assets/javascripts/helpers/tiktok.js";
 import pixivHelper from "../../assets/javascripts/helpers/pixiv.js";
 import sendTargetsHelper from "../../assets/javascripts/helpers/sendTargets.js";
+import peertubeHelper from "../../assets/javascripts/helpers/peertube.js";
 import generalHelper from "../../assets/javascripts/helpers/general.js";
 
 let disableTwitterElement = document.getElementById("disable-nitter");
@@ -28,26 +29,28 @@ let disableSearchElement = document.getElementById("disable-search");
 let disableElement = document.getElementById("disable-simplyTranslate");
 let disableWikipediaElement = document.getElementById("disable-wikipedia");
 let disableMediumElement = document.getElementById("disable-medium");
+let disablePeertubeElement = document.getElementById("disable-peertube");
 let disableSendTargetsElement = document.getElementById("disable-sendTargets");
 let disableImgurElement = document.getElementById("disable-imgur");
 let disableTiktokElement = document.getElementById("disable-tiktok");
 let disablePixivElement = document.getElementById("disable-pixiv");
 
 async function wholeInit() {
-  await youtubeHelper.init()
-  await youtubeMusicHelper.init()
-  await twitterHelper.init()
-  await instagramHelper.init()
-  await mapsHelper.init()
-  await redditHelper.init()
-  await searchHelper.init()
-  await translateHelper.init()
-  await wikipediaHelper.init()
-  await imgurHelper.init()
-  await tiktokHelper.init()
-  await pixivHelper.init()
-  await sendTargetsHelper.init()
-  await mediumHelper.init()
+  await youtubeHelper.init();
+  await youtubeMusicHelper.init();
+  await twitterHelper.init();
+  await instagramHelper.init();
+  await mapsHelper.init();
+  await redditHelper.init();
+  await searchHelper.init();
+  await translateHelper.init();
+  await wikipediaHelper.init();
+  await imgurHelper.init();
+  await tiktokHelper.init();
+  await pixivHelper.init();
+  await sendTargetsHelper.init();
+  await peertubeHelper.init();
+  await mediumHelper.init();
 };
 
 wholeInit().then(() => {
@@ -64,6 +67,7 @@ wholeInit().then(() => {
   disableTiktokElement.checked = !tiktokHelper.getDisable();
   disablePixivElement.checked = !pixivHelper.getDisable();
   disableMediumElement.checked = !mediumHelper.getDisable();
+  disablePeertubeElement.checked = !peertubeHelper.getDisable();
 })
 
 disableTwitterElement.addEventListener("change",
@@ -118,6 +122,10 @@ disableMediumElement.addEventListener("change",
   event => mediumHelper.setDisable(!event.target.checked)
 );
 
+disablePeertubeElement.addEventListener("change",
+  event => peertubeHelper.setDisable(!event.target.checked)
+);
+
 disableSendTargetsElement.addEventListener("change",
   event => sendTargetsHelper.setDisable(!event.target.checked)
 );
@@ -153,9 +161,11 @@ function changeInstance() {
 
       if (!newUrl) newUrl = sendTargetsHelper.changeInstance(tabUrl);
 
+      if (!newUrl) newUrl = peertubeHelper.changeInstance(tabUrl);
+
       if (!newUrl) newUrl = imgurHelper.changeInstance(tabUrl);
 
-      if (!newUrl) newUrl = wikipediaHelper.changeInstance(tabUrl)
+      if (!newUrl) newUrl = wikipediaHelper.changeInstance(tabUrl);
 
       if (newUrl) {
         browser.tabs.update({ url: newUrl });