ShadeRoot Bol.com

Eye-friendly magic in your browser for bol.com

目前為 2016-03-09 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//
// Written by Glenn Wiking
// Script Version: 1.0.0a
// Date of issue: 24/02/16
// Date of resolution: 25/02/16
//
// ==UserScript==
// @name        ShadeRoot Bol.com
// @namespace   SRBC
// @description Eye-friendly magic in your browser for bol.com
// @include     *bol.com/*
// @version     1.0.0a
// @icon		XX

// ==/UserScript==

function ShadeRootBC(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

ShadeRootBC (
	'html, body {background: #1D1919 !important;}'
	+
	'.constrain--light, .header-section--search {background-color: #0e1114 !important;}'
	+
	'.cookie-bar {border-bottom: 1px solid #0e1929 !important; background-color: #11222d !important; color: #bcd0d7 !important;}'
	+
	'.no-js .main-nav__item:active > .main-nav__link, .no-js .main-nav__item:hover > .main-nav__link {border-color: #0f242f !important;}'
	+
	'p {color: #bcd0d7 !important;}'
	+
	'.header-fixed .main-nav__link {border-color: #102539 !important;}'
	+
	'.header-fixed .main-nav__item--special .main-nav__link {background: #1E2B42;}'
	+
	'.header-fixed .main-nav__item {border-color: #0f2130 !important; background-color: #0f1520 !important;}'
	+
	'.main-nav__link, .main-nav__link span {color: #B7CFE7 !important;}'
	+
	'.header-fixed .main-nav {border-bottom: 1px solid #1f2f44 !important;}'
	+
	'.main-logo__svg {background-color: #3366CA !important; border-radius: 5px !important; padding: 2px !important;}'
	+
	'.marketing-banner {border-bottom: 1px solid #172839 !important;}'
	+
	'.header-fixed .large--is-visible {color: #36C !important; background: #000 !important;}'
	+
	'.header-fixed .is-locked .category-nav-btn, .header-fixed .is-open .category-nav-btn {color: #31312f !important; border-color: #0d151e !important; background: #193554 !important;}'
	+
	'#top_bar .top-bar__bdr {border-bottom: 1px solid #17283c !important;}'
	+
	'.search-input, .search-select {border-color: #243744 !important;}'
	+
	'.search_suggestions_completer {border: 1px solid #17232f !important; background: #142d47 !important;}'
	+
	'.search-input, .search-select {border-color: #243744 !important; background: #11222D !important;}'
	+
	'.search-select {background-color: #0f1520 !important; color: #3366CA !important;}'
	+
	'select {color: #B7CFE7 !important;}'
	+
	'.search-btn {border: 1px solid #112439 !important;}'
	+
	'#top_bar ul li a {color: #9bb2e1 !important;}'
	+
	'#top_bar ul li a:hover {color: #3366ca !important;}'
	+
	'.basket__btn-bg {border: 2px solid #0f53b9 !important; background: #3366ca !important;}'
);