PCDVD - Dark Mode

PCDVD is a very famous forum in Taiwan and this style will improve the display quality.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name          PCDVD - Dark Mode
// @namespace     http://userstyles.org
// @description	  PCDVD is a very famous forum in Taiwan and this style will improve the display quality.
// @author        Tronic Lin
// @homepage      https://userstyles.org/styles/196482
// @match         http://pcdvd.com.tw/*
// @match         https://pcdvd.com.tw/*
// @match         http://*.pcdvd.com.tw/*
// @match         https://*.pcdvd.com.tw/*
// @run-at        document-start
// @version       1.2
// @license       MIT
// @grant         GM_addStyle
// ==/UserScript==

(function() {
let css = "";
css += `
*{
    font-family: "KaiGen Gothic TW", "Noto Sans CJK TC", "Microsoft YaHei", "Microsoft JhengHei", Helvetica !important;
}

.smallfont {
    font: 10pt  "KaiGen Gothic TW", "Noto Sans CJK TC", "Microsoft YaHei", "Microsoft JhengHei", Helvetica !important;
}

td, th, p, li {
    font: 12pt "KaiGen Gothic TW", "Noto Sans CJK TC", "Microsoft YaHei", "Microsoft JhengHei", Helvetica !important;
}

body
{
    background-color: #222425 !important;
    color: #e8e8e8 !important;
}

.page,
.alt2,
.alt2Active,
.panelsurround
{
    background-color: #2f2f2f !important;
}

.tcat,
.tfoot,
.alt1,
.alt1Active
{
    background-color: #222425 !important;
}

.tborder
{
    background-color: #555 !important;
}

a:link {
color: #ffb700 !important;
}

a:visited {
color: #ffb300 !important;
}


@media (min-width: 1200px){
    html{
        zoom: 125% !important;
    }

  td img{
        max-width: calc(100vw - 400pt) !important;
    }
}

@media (min-width: 1400px){
  td img{
        max-width: calc(100vw - 425pt) !important;
    }
}

@media (min-width: 1600px){
    html{
        zoom: 150% !important;
    }

  td img{
        max-width: calc(100vw - 700pt) !important;
    }
}
`;
   if (typeof GM_addStyle !== "undefined") {
  GM_addStyle(css);
} else {
  let styleNode = document.createElement("style");
  styleNode.appendChild(document.createTextNode(css));
  (document.querySelector("head") || document.documentElement).appendChild(styleNode);
}
})();