Greasy Fork is available in English.

dark ok.ru

dark theme for odnoklassniki.ru

Forfatter
Баяр Гончикжапов
Daglige installasjoner
0
Totale installasjoner
155
Vurderinger
1 0 0
Versjon
0.2
Lagd
09.02.2021
Oppdatert
13.10.2021
Lisens
I/T
Gjelder

Тёмная тема для ok.ru

сгенерировано скриптом:

#!/bin/bash
rm /tmp/3.css
for f in css/*.css; do
[[ ! -f $f ]] && continue

sed 's/}/}\n/g;' "$f" > /tmp/0.css
#grep -e '{color:' -e ';color:' -e 'background:#' -e 'background-color:#' -e 'background-color:rgba' /tmp/0.css | sort --unique > /tmp/1.css
grep -e '{color:' -e ';color:' -e 'background:#' -e 'background-color:#' -e 'background-color:rgba' /tmp/0.css > /tmp/1.css
grep -v -e '{color:#fff' -e ';color:#fff' -e 'background:#000' -e 'background-color:#000' -e ':hover' -e '[0-9]\+%' -e '"' /tmp/1.css > /tmp/1b.css
sed 's/{/{\n/g; s/}/\n}/g; s/;/;\n/g' /tmp/1b.css > /tmp/2.css
grep -e '{' -e '^color:' -e 'background:#' -e 'background-color:' -e '}' /tmp/2.css >> /tmp/3.css

done

rm /tmp/5.sed
grep -e '^color:#' /tmp/3.css | sed 's/;//g' | sort --unique > /tmp/5c.css
grep -e '^background:#' /tmp/3.css | sed 's/;//g' | sort --unique > /tmp/5b.css
grep -e '^background-color:#' /tmp/3.css | sed 's/;//g' | sort --unique > /tmp/5bc.css
awk -F':' -v OFS='\t' '{print $2}' /tmp/5b.css /tmp/5bc.css /tmp/5c.css | sort --unique > /tmp/6.css
#sed 's/^/s\//g; s/#000$/#000\/color:#fff !important\/g/g' /tmp/5c.css > /tmp/5.sed
sed '
s/#[0-9][0-9abcdef][0-9][0-9abcdef][0-9][0-9abcdef]/#_fff !important/g
s/#[abcdef][0-9abcdef][abcdef][0-9abcdef][abcdef][0-9abcdef]/#_000 !important/g
s/#[abcdef][0-9abcdef][0-9abcdef][0-9abcdef][0-9abcdef][0-9abcdef]/#_722 !important/g
s/#[0-9abcdef][0-9abcdef][abcdef][0-9abcdef][0-9abcdef][0-9abcdef]/#_272 !important/g
s/#[0-9abcdef][0-9abcdef][0-9abcdef][0-9abcdef][abcdef][0-9abcdef]/#_227 !important/g
s/#000/#_fff !important/g
s/#222/#_eee !important/g
s/#333/#_ddd !important/g
s/#334/#_dde !important/g
s/#444/#_ccc !important/g
s/#666/#_aaa !important/g
s/#777/#_999 !important/g
s/#888/#_888 !important/g
s/#999/#_777 !important/g
s/#aaa/#_666 !important/g
s/#bbb/#_555 !important/g
s/#ccc/#_444 !important/g
s/#cfc/#_484 !important/g
s/#ddd/#_333 !important/g
s/#eee/#_222 !important/g
s/#f33/#_800 !important/g
s/#f55/#_822 !important/g
s/#fd4/#_883 !important/g
s/#fff/#_000 !important/g
s/#_/#/g
' /tmp/3.css > /tmp/7.css

sed ':z;N;$!bz; s/{\n/{/g; s/\n}/}/g; s/;\n/;/g' /tmp/7.css > /tmp/8.css
sort --unique < /tmp/8.css > /tmp/8u.css
sed '/^a/b; /background/b; s/color:#fff !important/color:#fff !important;background:#070707 !important/g' /tmp/8u.css > /tmp/9.css
sed 's/^/ css += "/g; s/$/";/g' /tmp/9.css > "/tmp/9.js"