allow chrome users to exist (but not without annoyance)
This commit is contained in:
parent
c11ffd41fc
commit
c43c81c4fc
4 changed files with 12 additions and 6 deletions
|
@ -1,5 +1,14 @@
|
||||||
function onload() {
|
function onload() {
|
||||||
redirect();
|
if (!localStorage.getItem('chromeAccepted')) {
|
||||||
|
redirect()
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
acceptDisclaimer() {
|
||||||
|
sessionStorage.removeItem( 'chromeAccepted');
|
||||||
}
|
}
|
||||||
|
|
||||||
function redirect() {
|
function redirect() {
|
||||||
|
|
|
@ -21,9 +21,6 @@ function disableSGA() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleTheme() {
|
function toggleTheme() {
|
||||||
// Obtains an array of all <link>
|
|
||||||
// elements.
|
|
||||||
// Select your element using indexing.
|
|
||||||
if (!sessionStorage.getItem('sgaEnabled')) {
|
if (!sessionStorage.getItem('sgaEnabled')) {
|
||||||
enableSGA()
|
enableSGA()
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ import Layout from "../layouts/fuckchrome/bsod.astro";
|
||||||
</div>
|
</div>
|
||||||
<div class="error-text">
|
<div class="error-text">
|
||||||
<br>
|
<br>
|
||||||
<p>For more information about this issue and possible fixes, visit <a href="/nochrome" style="color=#ffffff;">https://nelle.observer/nochrome</a></p>
|
<p>For more information about this issue and possible fixes, and to never be redirected again, visit <a href="/nochrome" style="color=#ffffff;" onclick="acceptDisclaimer()">https://nelle.observer/nochrome</a></p>
|
||||||
<p>If you contact me about this, please give me this error:</p>
|
<p>If you contact me about this, please give me this error:</p>
|
||||||
<p>Stop Code: EW_CHROME_YUCK</p>
|
<p>Stop Code: EW_CHROME_YUCK</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -8,6 +8,6 @@ import Layout from "../layouts/fuckchrome/mobile-warn.astro";
|
||||||
<p>The website on <span style="font-weight: bold;">nelle.observer</span> is scared of chromium-based browsers, which yours seems to be of.</p>
|
<p>The website on <span style="font-weight: bold;">nelle.observer</span> is scared of chromium-based browsers, which yours seems to be of.</p>
|
||||||
<p style="font-size: smaller;">NET::EW_CHROME_YUCK</p>
|
<p style="font-size: smaller;">NET::EW_CHROME_YUCK</p>
|
||||||
<br>
|
<br>
|
||||||
<a href="/nochrome">Proceed to information (unsafe)</a>
|
<a href="/nochrome" onclick="acceptDisclaimer()">Proceed to information (unsafe) and to never be redirected again</a>
|
||||||
</main>
|
</main>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
|
Loading…
Reference in a new issue