Dark theme pages

Alters the text of every web page to 16pt double-spaced white-on-black (console's) appearance, to help eyesight.

目前為 2020-09-27 提交的版本,檢視 最新版本

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Dark theme pages
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Alters the text of every web page to 16pt double-spaced white-on-black (console's) appearance, to help eyesight.
// @include *
// if a webpage is unsightly with this script, add it to this list of excludes. * needs to be next to only a (dot) . or (slash) / or at start or end.
// @exclude *://*.nzcity.co.nz/*
// @exclude *://printify.com/*
// @exclude *://picsplosion.com/*
// @exclude *://analytics.google.com/*
// @exclude *://support.google.com/*
// @author       rajkumar arulambalam thankJesusforlocallight
// @grant        none
// @run-at document-end
// ==/UserScript==

(function() {
    'use strict';



    function crawl(cube){
        var x2; var x3;

        for (x2 = 0;x2 < cube.length; x2++){

            if(cube[x2].nodeType == 1 ){ 
            cube[x2].style.lineHeight = 2;//line-height: 2;
            cube[x2].style.backgroundColor = "#000000"; //background
            if(cube[x2].tagName == "A"){cube[x2].style.color = "#aaaaff";}else{cube[x2].style.color = "#ffffff";} //text color
            // Copy and duplicate line below for additional style changes, such as border colors
            cube[x2].style.fontSize = "16pt";}// font size
            
            if(cube[x2].hasChildNodes() ){x3 = cube[x2].childNodes; crawl(x3, x3.length);}
        }
    }
function mp1 () {
var x1;
    document.body.style.backgroundColor = "#000000";
    document.body.style.color = "#ffffff";
    x1 = document.body.childNodes;
    crawl(x1);
}
setTimeout(mp1,100);
})();