Merge branch 'dark-mode' into 'master'

Update options: add dark mode support
This commit is contained in:
magnolia1234 2022-09-17 13:02:33 +00:00
commit 14aadd4ebc
10 changed files with 31 additions and 49 deletions

View File

@ -12,6 +12,7 @@ Fix Grupo El Comercio
Fix Gruppo GEDI.it (login)
Fix L'Express.fr
Fix The Spectator UK (no amp)
Update options: add dark mode support
* v2.8.4.0 (2022-09-11)
Add PEI Media sites (opt-in to custom sites)

View File

@ -707,5 +707,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.8.4.7"
"version": "2.8.4.8"
}

View File

@ -1,13 +1,7 @@
html, body {
font-size: 100%;
padding-left: 0.5em;
padding-right: 0.5em;
}
button {
margin: 0.2em 0.2em 0.5em 0;
}
* {
box-sizing: border-box;
}

View File

@ -5,6 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bypass Paywalls Clean (setCookie/custom sites opt-in)</title>
<link rel="stylesheet" href="../options_all.css"/>
<link rel="stylesheet" href="opt-in.css"/>
<script src="opt-in.js"></script>
</head>

View File

@ -4,21 +4,11 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bypass Paywalls Clean Options</title>
<style>
#bypass_sites label {
display: block;
}
body {
font-size: 100%;
}
* {
box-sizing: border-box;
}
</style>
<link rel="stylesheet" href="options_all.css"/>
</head>
<body>
<h1>Options | <small><span id="version"></span><br><span id="version_new"></span></small></h1>
<br><a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/blob/master/changelog.txt" style="color:black" target="_blank">Changelog</a>
<br><a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/blob/master/changelog.txt" target="_blank">Changelog</a>
<div style="width:90%;">
<br>Most selected sites will have their cookies cleared (not all though).<br>
You should uncheck the sites (or add to excluded sites) for which you have an account or else you will be logged out at every visit.<br><br>

18
options/options_all.css Normal file
View File

@ -0,0 +1,18 @@
#bypass_sites label, #add_site label, #excluded_sites label {
display: block;
}
body {
font-size: 100%;
}
* {
box-sizing: border-box;
}
a {
color: black;
}
@media (prefers-color-scheme: dark) {
body, button, a, input, select, textarea {
background-color: #313131;
color: #bfbfbf;
}
}

View File

@ -4,17 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bypass Paywalls Clean Options Custom</title>
<style>
#bypass_sites label, #add_site label {
display: block;
}
body {
font-size: 100%;
}
* {
box-sizing: border-box;
}
</style>
<link rel="stylesheet" href="options_all.css"/>
</head>
<body>
<h2>Custom Sites</h2>

View File

@ -4,17 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bypass Paywalls Clean Options Excluded</title>
<style>
#excluded_sites label {
display: block;
}
body {
font-size: 100%;
}
* {
box-sizing: border-box;
}
</style>
<link rel="stylesheet" href="options_all.css"/>
</head>
<body>
<h2>Excluded Sites</h2>

View File

@ -3,25 +3,24 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="options_all.css"/>
<link rel="stylesheet" href="popup_switch.css"/>
<style>
body {
font-size: 100%;
text-align: center;
}
div {
margin: 10px;
box-sizing: border-box;
}
</style>
</head>
<body>
<div style="width:275px"><strong>Bypass Paywalls Clean <span id="version"></span></strong><span id="site_switch_span">&nbsp;&nbsp;</span></div>
<div><a href="options.html" style="color:black" target="_blank">Options</a> |
<a href="options_custom.html" style="color:black" target="_blank">Custom</a> |
<a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean" style="color:black" target="_blank">GitLab</a> |
<a href="https://twitter.com/Magnolia1234B" style="color:black" target="_blank">Twitter</a></div>
<div><a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/raw/master/changelog.txt" style="color:black" target="_blank">Changelog</a> |
<div><a href="options.html" target="_blank">Options</a> |
<a href="options_custom.html" target="_blank">Custom</a> |
<a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean" target="_blank">GitLab</a> |
<a href="https://twitter.com/Magnolia1234B" target="_blank">Twitter</a></div>
<div><a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/raw/master/changelog.txt" target="_blank">Changelog</a> |
<button id="clear_cookies" title="clear cookies (and local storage) for current site">clear cookies</button> |
<button id="button-close" title="close popup">close</button></div>
<div><span id="version_new"></span></div>

View File

@ -76,7 +76,6 @@ function showArchiveLinks() {
let elem = document.createElement('a');
elem.innerText = key;
elem.href = archive_array[key];
elem.style = 'color:black;';
elem.target = '_blank';
elem_div.appendChild(elem);
archive_id.appendChild(elem_div);