Chadnet Forum

Chadnet
Home | Log in | Sign up


Back Go to bottom

No. 1456 by g-gundam
[BUG] The Chadnet Wiki theme is not applied to the additions pages.
@john - Maybe you already know this, but the wiki additions pages do not honor the value of `localStorage['theme']`.

>Example

https://wiki.chadnet.org/theme (Change something here.)
https://wiki.chadnet.org/sep2022 (Reload after changing theme to see that nothing changed.)

>Screenshot

https://files.catbox.moe/cy0hes.png

No. 1459 by john
>>1456
oh I forgot to put it in the category file generator ... I thought I did this whew lel

No. 1460 by john
>>1456
it'll be fixed next time is uploaded ... I just ran the script to include this theme line in all files, forgot to actually add it to category generator each time it regenerates

No. 1461 by g-gundam
>>1460
Here's a new document you can add to the library to trigger an update.
https://files.catbox.moe/9rbtxh.pdf
It's the "Parasite Pill" document that's probably one of the better things to come out of imageboard culture in 2021. I think it deserves to be preserved for future generations.

No. 1462 by g-gundam
>>1461
I didn't see this document until 2021, but apparently the main theory was being talked about as early as 2019. This pastebin chronicles the history of #OPWORMPILL.
https://pastebin.com/biMabHp8

No. 1463 by g-gundam
>>1460
Have you considered using CSS variables to implement themes?
https://lukelowrey.com/css-variable-theme-switcher/
This would let you change more than one style attribute a time.

No. 1464 by g-gundam
>>1463
You also wouldn't have to reload the page to apply a theme.

No. 1465 by john
>>1461
This is interdasting but idk if ray peat would agree ... it attack sugars, etc. Idk

No. 1466 by john
>>1463
This is interesting, ty v much I will try something like this

No. 1469 by john
>>1456
online

No. 1470 by g-gundam
>>1469
Now change your theme(name) function so that it doesn't reload the page.

function theme(name) { localStorage.setItem('theme', name); document.body.setAttribute('data-theme', name) }

No. 1471 by g-gundam
>>1469
A PSA for those trying this out and not seeing it work -- I had to Shift-Reload the page to make sure I wasn't getting a cached version of the old CSS before it started working as intended. If the theme changing doesn't seem to work, hold down Shift while clicking the reload button on your browser and try again.

No. 1472 by john
>>1470
oh ye shoot i forgot this is fixed nao

Go to top