Fixing things and refining design

This commit is contained in:
ManeraKai 2022-05-21 18:02:57 +03:00
parent 68f9fbb3f7
commit acb72ef1c8
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
39 changed files with 155 additions and 47 deletions

View File

@ -79,7 +79,7 @@ function initSearxCookies(test, from) {
...r.searxTorCustomRedirects, ...r.searxTorCustomRedirects,
...r.searxI2pRedirectsChecks, ...r.searxI2pRedirectsChecks,
...r.searxI2pCustomRedirects, ...r.searxI2pCustomRedirects,
].includes(protocolHost)) return; ].includes(protocolHost)) { resolve(); return; }
if (!test) { if (!test) {
let checkedInstances; let checkedInstances;
@ -125,7 +125,7 @@ function setSearxCookies() {
"searxTorCustomRedirects", "searxTorCustomRedirects",
], ],
r => { r => {
if (r.disableSearch || r.searchFrontend != 'searx', r.searchProtocol === undefined) { resolve(); return; } if (r.disableSearch || r.searchFrontend != 'searx') { resolve(); return; }
let checkedInstances; let checkedInstances;
if (r.searchProtocol == 'normal') checkedInstances = [...r.searxNormalRedirectsChecks, ...r.searxNormalCustomRedirects] if (r.searchProtocol == 'normal') checkedInstances = [...r.searxNormalRedirectsChecks, ...r.searxNormalCustomRedirects]
else if (r.searchProtocol == 'tor') checkedInstances = [...r.searxTorRedirectsChecks, ...r.searxTorCustomRedirects] else if (r.searchProtocol == 'tor') checkedInstances = [...r.searxTorRedirectsChecks, ...r.searxTorCustomRedirects]
@ -175,7 +175,7 @@ function initSearxngCookies(test, from) {
...r.searxngTorCustomRedirects, ...r.searxngTorCustomRedirects,
...r.searxngI2pRedirectsChecks, ...r.searxngI2pRedirectsChecks,
...r.searxngI2pCustomRedirects, ...r.searxngI2pCustomRedirects,
].includes(protocolHost)) return; ].includes(protocolHost)) { resolve(); return; }
if (!test) { if (!test) {
let checkedInstances; let checkedInstances;

View File

@ -126,14 +126,11 @@ function initSimplyTranslateCookies(test, from) {
...r.simplyTranslateNormalCustomRedirects, ...r.simplyTranslateNormalCustomRedirects,
...r.simplyTranslateTorRedirectsChecks, ...r.simplyTranslateTorRedirectsChecks,
...r.simplyTranslateTorCustomRedirects, ...r.simplyTranslateTorCustomRedirects,
...r.simplyTranslateI2pRedirectsChecks,
...r.simplyTranslateI2pCustomRedirects,
].includes(protocolHost)) { resolve(); return; } ].includes(protocolHost)) { resolve(); return; }
if (!test) { if (!test) {
let checkedInstances; let checkedInstances;
if (r.translateProtocol == 'normal') checkedInstances = [...r.simplyTranslateNormalRedirectsChecks, ...r.simplyTranslateNormalCustomRedirects] if (r.translateProtocol == 'normal') checkedInstances = [...r.simplyTranslateNormalRedirectsChecks, ...r.simplyTranslateNormalCustomRedirects]
else if (r.translateProtocol == 'tor') checkedInstances = [...r.simplyTranslateTorRedirectsChecks, ...r.simplyTranslateTorCustomRedirects] else if (r.translateProtocol == 'tor') checkedInstances = [...r.simplyTranslateTorRedirectsChecks, ...r.simplyTranslateTorCustomRedirects]
else if (r.translateProtocol == 'i2p') checkedInstances = [...r.simplyTranslateI2pRedirectsChecks, ...r.simplyTranslateI2pCustomRedirects]
for (const to of checkedInstances) { for (const to of checkedInstances) {
utils.copyCookie('simplyTranslate', from, to, 'from_lang'); utils.copyCookie('simplyTranslate', from, to, 'from_lang');
utils.copyCookie('simplyTranslate', from, to, 'to_lang'); utils.copyCookie('simplyTranslate', from, to, 'to_lang');

View File

@ -85,8 +85,8 @@ browser.webRequest.onBeforeRequest.addListener(
else if (details.initiator) else if (details.initiator)
initiator = new URL(details.initiator); initiator = new URL(details.initiator);
let newUrl = await youtubeHelper.redirect(url, details, initiator) let newUrl = await youtubeMusicHelper.redirect(url, details.type)
if (!newUrl) newUrl = await youtubeMusicHelper.redirect(url, details.type) if (!newUrl) newUrl = await youtubeHelper.redirect(url, details, initiator)
if (!newUrl) newUrl = await twitterHelper.redirect(url, initiator); if (!newUrl) newUrl = await twitterHelper.redirect(url, initiator);
if (!newUrl) newUrl = await instagramHelper.redirect(url, details.type, initiator); if (!newUrl) newUrl = await instagramHelper.redirect(url, details.type, initiator);
if (!newUrl) newUrl = await mapsHelper.redirect(url, initiator); if (!newUrl) newUrl = await mapsHelper.redirect(url, initiator);

View File

@ -54,6 +54,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>General</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_theme__">Theme</h4> <h4 data-localise="__MSG_theme__">Theme</h4>
<select id="theme"> <select id="theme">
@ -195,7 +199,6 @@
</div> </div>
<input id="sendTargets" type="checkbox"> <input id="sendTargets" type="checkbox">
</div> </div>
<hr>
</div> </div>
<script type="module" src="../init.js"></script> <script type="module" src="../init.js"></script>
<script type="module" src="./general.js"></script> <script type="module" src="./general.js"></script>

View File

@ -7,6 +7,10 @@ body.option(dir="auto")
+links('general') +links('general')
section.option-block section.option-block
.some-block.option-block
h1 General
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_theme__") Theme h4(data-localise="__MSG_theme__") Theme
select#theme select#theme
@ -167,9 +171,6 @@ body.option(dir="auto")
|Send Files |Send Files
input#sendTargets(type="checkbox") input#sendTargets(type="checkbox")
hr
script(type="module" src="../init.js") script(type="module" src="../init.js")
script(type="module" src="./general.js") script(type="module" src="./general.js")
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>Imgur</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Imgur</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-imgur" type="checkbox"> <input id="disable-imgur" type="checkbox">

View File

@ -1,13 +1,17 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title Imgur
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('imgur') +links('imgur')
section.option-block section.option-block
.some-block.option-block
h1 Imgur
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-imgur(type="checkbox") input#disable-imgur(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>Instagram</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Instagram</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-bibliogram" type="checkbox"> <input id="disable-bibliogram" type="checkbox">

View File

@ -1,13 +1,17 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title Instagram
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('instagram') +links('instagram')
section.option-block section.option-block
.some-block.option-block
h1 Instagram
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-bibliogram(type="checkbox") input#disable-bibliogram(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>LBRY/Odysee</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>LBRY/Odysee</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-lbry" type="checkbox"> <input id="disable-lbry" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title LBRY/Odysee
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('lbry') +links('lbry')
section.option-block section.option-block
.some-block.option-block
h1 LBRY/Odysee
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-lbry(type="checkbox") input#disable-lbry(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>Maps</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Maps</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-osm" type="checkbox"> <input id="disable-osm" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title Maps
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('maps') +links('maps')
section.option-block section.option-block
.some-block.option-block
h1 Maps
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-osm(type="checkbox") input#disable-osm(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>Medium</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Medium</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-medium" type="checkbox"> <input id="disable-medium" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title Medium
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('medium') +links('medium')
section.option-block section.option-block
.some-block.option-block
h1 Medium
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-medium(type="checkbox") input#disable-medium(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>PeerTube</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>PeerTube</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-peertube" type="checkbox"> <input id="disable-peertube" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title PeerTube
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('peertube') +links('peertube')
section.option-block section.option-block
.some-block.option-block
h1 PeerTube
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-peertube(type="checkbox") input#disable-peertube(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>Reddit</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Reddit</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-reddit" type="checkbox"> <input id="disable-reddit" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title Reddit
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('reddit') +links('reddit')
section.option-block section.option-block
.some-block.option-block
h1 Reddit
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-reddit(type="checkbox") input#disable-reddit(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>Search</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Search</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-search" type="checkbox"> <input id="disable-search" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title Search
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('search') +links('search')
section.option-block section.option-block
.some-block.option-block
h1 Search
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-search(type="checkbox") input#disable-search(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>Send Files</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Send Files</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-sendTargets" type="checkbox"> <input id="disable-sendTargets" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title Send Files
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('sendTargets') +links('sendTargets')
section.option-block section.option-block
.some-block.option-block
h1 Send Files
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-sendTargets(type="checkbox") input#disable-sendTargets(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>TikTok</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>TikTok</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-tiktok" type="checkbox"> <input id="disable-tiktok" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title TikTok
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('tiktok') +links('tiktok')
section.option-block section.option-block
.some-block.option-block
h1 TikTok
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-tiktok(type="checkbox") input#disable-tiktok(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>Translate</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Translate</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-simplyTranslate" type="checkbox"> <input id="disable-simplyTranslate" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title Translate
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('translate') +links('translate')
section.option-block section.option-block
.some-block.option-block
h1 Translate
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-simplyTranslate(type="checkbox") input#disable-simplyTranslate(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>General</title> <title>Twitter</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Twitter</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-nitter" type="checkbox"> <input id="disable-nitter" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title General title Twitter
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('twitter') +links('twitter')
section.option-block section.option-block
.some-block.option-block
h1 Twitter
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-nitter(type="checkbox") input#disable-nitter(type="checkbox")

View File

@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>Wikipedia</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-wikipedia" type="checkbox"> <input id="disable-wikipedia" type="checkbox">

View File

@ -8,6 +8,9 @@ body.option(dir="auto")
+links('wikipedia') +links('wikipedia')
section.option-block section.option-block
.some-block.option-block
h1 Wikipedia
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-wikipedia(type="checkbox") input#disable-wikipedia(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>Document</title> <title>YouTube</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>YouTube</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-invidious" type="checkbox"> <input id="disable-invidious" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title Document title YouTube
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('youtube') +links('youtube')
section.option-block section.option-block
.some-block.option-block
h1 YouTube
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-invidious(type="checkbox") input#disable-invidious(type="checkbox")

View File

@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg"> <link rel="icon" type="image/x-icon" href="../../../assets/images/libredirect.svg">
<link href="../../stylesheets/styles.css" rel="stylesheet"> <link href="../../stylesheets/styles.css" rel="stylesheet">
<title>Document</title> <title>YouTube Music</title>
</head> </head>
</html> </html>
<script type="module" src="../../../assets/javascripts/localise.js"></script> <script type="module" src="../../../assets/javascripts/localise.js"></script>
@ -55,6 +55,10 @@
</div> </div>
</section> </section>
<section class="option-block"> <section class="option-block">
<div class="some-block option-block">
<h1>YouTube Music</h1>
</div>
<hr>
<div class="some-block option-block"> <div class="some-block option-block">
<h4 data-localise="__MSG_enable__">Enable</h4> <h4 data-localise="__MSG_enable__">Enable</h4>
<input id="disable-beatbump" type="checkbox"> <input id="disable-beatbump" type="checkbox">

View File

@ -1,13 +1,16 @@
doctype html doctype html
html(lang="en") html(lang="en")
include ../../widgets/head.pug include ../../widgets/head.pug
title Document title YouTube Music
script(type="module" src="../../../assets/javascripts/localise.js") script(type="module" src="../../../assets/javascripts/localise.js")
body.option(dir="auto") body.option(dir="auto")
include ../../widgets/links.pug include ../../widgets/links.pug
+links('youtubeMusic') +links('youtubeMusic')
section.option-block section.option-block
.some-block.option-block
h1 YouTube Music
hr
.some-block.option-block .some-block.option-block
h4(data-localise="__MSG_enable__") Enable h4(data-localise="__MSG_enable__") Enable
input#disable-beatbump(type="checkbox") input#disable-beatbump(type="checkbox")

View File

@ -48,11 +48,11 @@
<h4>Medium</h4></a> <h4>Medium</h4></a>
<input id="disable-medium" type="checkbox"> <input id="disable-medium" type="checkbox">
</div> </div>
<div class="some-block" id="peertube"><a class="title" href="https://peertube.com"><img src="../../assets/images/peertube-icon.svg"> <div class="some-block" id="peertube"><a class="title" href="https://search.joinpeertube.org"><img src="../../assets/images/peertube-icon.svg">
<h4>PeerTube</h4></a> <h4>PeerTube</h4></a>
<input id="disable-peertube" type="checkbox"> <input id="disable-peertube" type="checkbox">
</div> </div>
<div class="some-block" id="lbry"><a class="title" href="https://lbry.com"><img src="../../assets/images/lbry-icon.png"> <div class="some-block" id="lbry"><a class="title" href="https://odysee.com/"><img src="../../assets/images/lbry-icon.png">
<h4>LBRY</h4></a> <h4>LBRY</h4></a>
<input id="disable-lbry" type="checkbox"> <input id="disable-lbry" type="checkbox">
</div> </div>
@ -108,6 +108,5 @@
<div class="space"></div> <div class="space"></div>
<script type="module" src="../options/init.js"></script> <script type="module" src="../options/init.js"></script>
<script type="module" src="./popup.js"></script> <script type="module" src="./popup.js"></script>
<script src="../../assets/javascripts/localise.js"></script>
</body> </body>
</html> </html>

View File

@ -94,6 +94,7 @@ utils.unify(true).then(r => {
if (!r) document.getElementById('unify_div').style.display = 'none'; if (!r) document.getElementById('unify_div').style.display = 'none';
else { else {
const unify = document.getElementById('unify'); const unify = document.getElementById('unify');
console.log('addlistner');
unify.addEventListener("click", () => utils.unify(false, unify)); unify.addEventListener("click", () => utils.unify(false, unify));
} }
}) })

View File

@ -63,13 +63,13 @@ html(lang="en")
input#disable-medium(type="checkbox") input#disable-medium(type="checkbox")
#peertube.some-block #peertube.some-block
a.title(href="https://peertube.com") a.title(href="https://search.joinpeertube.org")
img(src="../../assets/images/peertube-icon.svg") img(src="../../assets/images/peertube-icon.svg")
h4 PeerTube h4 PeerTube
input#disable-peertube(type="checkbox") input#disable-peertube(type="checkbox")
#lbry.some-block #lbry.some-block
a.title(href="https://lbry.com") a.title(href="https://odysee.com/")
img(src="../../assets/images/lbry-icon.png") img(src="../../assets/images/lbry-icon.png")
h4 LBRY h4 LBRY
input#disable-lbry(type="checkbox") input#disable-lbry(type="checkbox")
@ -124,4 +124,4 @@ html(lang="en")
script(type="module" src="../options/init.js") script(type="module" src="../options/init.js")
script(type="module" src="./popup.js") script(type="module" src="./popup.js")
script(src="../../assets/javascripts/localise.js") //- script(src="../../assets/javascripts/localise.js")

View File

@ -211,7 +211,7 @@ div.option-block h4 {
div.option-block h1 { div.option-block h1 {
margin: 0; margin: 0;
font-size: 28px; font-size: 28px;
color: var(--active); color: var(--text);
} }
div.option-block div { div.option-block div {