Skip to content

Instantly share code, notes, and snippets.

View ntninja's full-sized avatar
🐺
Permamently ill with ME/CFS – very slow to respond

Erin of Yukis ntninja

🐺
Permamently ill with ME/CFS – very slow to respond
View GitHub Profile
@freaktechnik
freaktechnik / l10n.js
Last active April 26, 2024 22:10
Drop-in script to localize HTML sites in WebExtensions like it was the Add-on SDK.
/**
* Translates a HTMl page in the web l10n style from the Add-on SDK with
* WebExtensions strings.
* Large parts of the logic are very similar to the SDK implmentation.
* All you have to do to use this in a document is load it.
*
* It supports some additional attributes:
* - The "translate" attribute is fully respected (see
* https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate)
* - "data-l10n-nocontent" means that the text content of the element
@RenautMestdagh
RenautMestdagh / draucla-seafile-css-theme.css
Last active January 23, 2025 05:28
dark theme for Seafile Community Edition v11.0.3 (Place inside Custom CSS setting input box)
@media (prefers-color-scheme: dark) {
:root {
--main-bg: #282a36;
--dark-bg: #202023;
--light-bg: #535667;
--main-font: #f8f8f2;
--light-font: #282a36;
--dark-font: #f8f8f2;
--main-theme: #ffe875;
--theme-font: #ffe875;