Last active
June 1, 2020 19:43
-
-
Save huihuimoe/d0309c494302c55e03f02741fd3f0b90 to your computer and use it in GitHub Desktop.
誠也の部屋 Dark Theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 誠也の部屋 Dark Theme | |
// @namespace https://github.com/huihuimoe | |
// @home https://huihui.cat/snippets/3 | |
// @version 0.2 | |
// @description 誠也の部屋 Dark Theme | |
// @author huihuimoe | |
// @match *://seiya-saiga.com/* | |
// @exclude *://seiya-saiga.com/cgi/joyful/* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
;(function() { | |
'use strict' | |
console.log('Dark mode loaded.') | |
const style = ` | |
/* Dark theme */ | |
body { | |
background: #000; | |
color: #fff; | |
} | |
a { | |
text-decoration: none; | |
color: #66c0f4 !important; | |
} | |
.a:focus { | |
outline: 0px none; | |
} | |
a:hover { | |
text-decoration: none; | |
color: #ccc !important; | |
} | |
table.table_hover tr:hover td { | |
background: #666 !important; | |
} | |
[bgcolor="#ffffff"] { | |
background: #000 !important; | |
} | |
table[background="image/back.gif"] { | |
background: transparent !important; | |
} | |
font[color="#0000ff"] { | |
color: #66c0f4; | |
} | |
font[color="#660000"] { | |
color: #AAFFFF; | |
} | |
/* ア カ サ タ ナ ハ マ ヤ・ラ・ワ */ | |
body > div > table > tbody > tr > th > table:nth-child(6) > tbody > tr > th > font > a:link{ | |
color: #0000FF !important; | |
} | |
body > div > table > tbody > tr > th > table:nth-child(6) > tbody > tr > th > font > a:visited{ | |
color: #0000FF !important; | |
} | |
body > div > table > tbody > tr > th > table:nth-child(6) > tbody > tr > th > font > a:hover{ | |
color: red !important; | |
} | |
`; | |
(document.head || document.documentElement).insertAdjacentHTML( | |
'beforeend', | |
'<style type="text/css">' + style + '</style>' | |
) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment