ShadeRoot Bol.com

Eye-friendly magic in your browser for bol.com

当前为 2016-03-09 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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;}'
);