main #8
4 changed files with 12 additions and 6 deletions
|
@ -1,5 +1,14 @@
|
|||
function onload() {
|
||||
redirect();
|
||||
if (!localStorage.getItem('chromeAccepted')) {
|
||||
redirect()
|
||||
}
|
||||
else {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
acceptDisclaimer() {
|
||||
sessionStorage.removeItem( 'chromeAccepted');
|
||||
}
|
||||
|
||||
function redirect() {
|
||||
|
|
|
@ -21,9 +21,6 @@ function disableSGA() {
|
|||
}
|
||||
|
||||
function toggleTheme() {
|
||||
// Obtains an array of all <link>
|
||||
// elements.
|
||||
// Select your element using indexing.
|
||||
if (!sessionStorage.getItem('sgaEnabled')) {
|
||||
enableSGA()
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ import Layout from "../layouts/fuckchrome/bsod.astro";
|
|||
</div>
|
||||
<div class="error-text">
|
||||
<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>Stop Code: EW_CHROME_YUCK</p>
|
||||
</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 style="font-size: smaller;">NET::EW_CHROME_YUCK</p>
|
||||
<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>
|
||||
</Layout>
|
||||
|
|
Loading…
Reference in a new issue