Topic on User talk:Cantaloa

Jump to navigation Jump to search
Czar.J (talkcontribs)

Hey there!

Was looking into using DarkMode for my wiki, but noticed the same issue described in that thread. I know it's only been a few days, but did you manage to toss it up on GitHub? Super appreciated if you could toss that my way, and thanks in advance for your time either way!



Cantaloa (talkcontribs)

Tossed it up real quick:

Just a simple cookie-based mechanism. 99% of the extension is just boilerplate around `$('button').on('click', toggleCookie)`. I just wanted something I could click to let me work on the wiki at night.

Lemme know if you need help. If you need other features, I can at least tell you what's possible since I've played with the MediaWiki hook API for a few days since I made this extension.

Cantaloa (talkcontribs)

Whoops, it was a private repository. I made it public just now.

Dnsbl1 (talkcontribs)

Thanks Cantaloa, it seems to works flawlessly on 1.34.2

Cantaloa (talkcontribs)

Awesome. Feel free point out any bugs or styling issues that you notice. I personally just use it on my local/personal wiki so I can read/edit at night. But I am happy to make modifications that can make the plugin more generally useful. Take care.

Gunnar.offel (talkcontribs)

i added the issue notice at GitHUB, the Timeless Skin have a issue behavoir with the modified extension that not appear in the older simpler version.

Perfect Reason (talkcontribs)

Hi! I just tried out your fix. Still works! Thanks!

However, I've found the following bug. Dark mode button, both in your version and original, works only for English interface of MediaWiki, whereas I also tried Ukrainian MediaWiki and nothing happens there when I press the button.

I don't expect you to fix it, of course, but if you happen to see the cause, I would be grateful.

P.S. I also tested Russian, Spanish and French interfaces. It doesn't work in those that translate "Dark mode" (Ukrainian, Spanish, French), and works in those that don't (English, Russian).

P.P.S. I've been using UniversalLanguageSelector extension to change interfaces quickly, and after I pressed the English version button, it confusingly started working in any other language now.

P.P.P.S. Yeah, now it works even when I'm accessing Ukrainian MediaWiki via TOR. Not sure whether it was a misreport, but if it was, sorry to bother.

Reply to "DarkMode persistence script"