Webtekno Dark Theme

Dark Theme For Webtekno.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Webtekno Dark Theme
// @name:tr      Webtekno Karanlık Tema
// @namespace    https://gitlab.com/mburakg/WebteknoDarkTheme
// @version      0.204
// @description  Dark Theme For Webtekno.com
// @description:tr Webtekno.com için Karanlık Tema
// @author       @mbrkg
// @match        https://www.webtekno.*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=webtekno.com
// @grant GM_addStyle
// @run-at document-start
// @include https://www.webtekno.*
// @license MIT
// ==/UserScript==

(function() {
    let css = "";
    if(false || document.location.href.indexOf("https://www.webtekno") == 0){
        css += `
             .content-timeline__time, .wt-container,.headline,.content-card__detail,.sidebar-social__item__caption{
                 background: black!important;
             }
             .content-timeline--underline, .underline, .content-title>h1,.content-body--right,.sidebar-social__item__count,.content-comments__sub-title span,.content-comments__item__author__name,.content-comments__item__message{
                 color: #bec9d3!important;
             }
             #wt-masthead{
                 display:none;
             }
             .sidebar-social__item{
                 border-right: 3px solid black!important;
             }
            .content-body > .content-body--right > .content-body__detail > div{
                background:#334!important;
            }
            .bottom-new-video{
                background:transparent!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);
    }
})();