Dark Mode - OSRS Portal Shooting Stars Tracker

Dark mode for the shooting stars tracker page on OSRS Portal.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Dark Mode - OSRS Portal Shooting Stars Tracker
// @match       https://osrsportal.com/shooting-stars-tracker
// @grant       GM_addStyle
// @version     0.3
// @author      VS-W
// @license     MIT
// @description Dark mode for the shooting stars tracker page on OSRS Portal.
// @namespace   https://greasyfork.org/users/1190083
// ==/UserScript==

GM_addStyle(`
	body {
		background-color: #111;
		color: #ddd;
		font-family: 'RScape';
		padding: 0;
		margin: 0;
	}
	h3 {
		font-family: 'RScape';
		font-size: 1.8em;
	}
	#stars-track {
		margin-bottom: -50px;
	}
	#nnn, .toollink, .toollink:hover {
		color: #ddd;
		font-size: 1.5em;
	}
	.bmac-btn {
		margin-top: 0px;
		margin-bottom: 0px;
	}
	.MuiCheckbox-root {
		color: rgba(255, 255, 255, 0.54);
	}
	.styled-table th, .styledd-table th {
		border: 1px #ddd solid;
	}
	.styled-table th, .styled-table td, .styledd-table th, .styledd-table td {
		padding: .2em .8em;
		font-size: 1.5em;
	}
	.styled-table tbody tr:nth-of-type(2n), .styledd-table tbody tr:nth-of-type(2n){
		background-color: #222;
	}
	.styled-table thead tr , .styledd-table thead tr {
		background-color: #000;
		font-weight: bold;
	}
	.styled-table tbody tr, .styledd-table tbody tr {
		border-bottom: 1px solid #ccc;
	}
	.styled-table tbody tr td:nth-of-type(1), .styledd-table tbody tr td:nth-of-type(1) {
		border-left: 1px solid #ccc;
	}
	.styled-table tbody tr td:nth-of-type(6), .styledd-table tbody tr td:nth-of-type(6) {
		border-right: 1px solid #ccc;
	}
	.styled-table tbody tr:last-of-type, .styledd-table tbody tr:last-of-type {
		border-bottom: 1px solid #ccc;
	}
	.styled-table tbody tr td:nth-of-type(5), .styledd-table tbody tr td:nth-of-type(5) {
		text-align: center;
	}
` );