ShadeRoot Minds

Eye-friendly magic in your browser for Minds

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//
// Written by Glenn Wiking
// Script Version: 0.1.0a
// Date of issue: 26/09/16
// Date of resolution: 26/09/16
//
// ==UserScript==
// @name        ShadeRoot Minds
// @namespace   SRMI
// @version     0.1.0a
// @grant       none
// @icon        https://i.imgur.com/rtFIRg9.png
// @description	Eye-friendly magic in your browser for Minds

// @include     http://*.minds.com/*
// @include     https://*.minds.com/*

// ==/UserScript==

function ShadeRootMinds(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);
}

ShadeRootMinds(
	'a img, .m-thumb-image, .minds-video-thumbnail, .minds-blog-thumbnail, .minds-banner img, .minds-avatar img {opacity: .85;}'
	+ // LINK COLOR 1
	'a {color: #4690D6 !important;}'
	+
	'.mdl-color--grey-100 {background-color: rgb(28, 35, 30) !important;}'
	+ // COLOR 2
	'.minds-app minds-topbar, .minds-header-row, .mdl-menu__outline {background-color: rgb(28, 35, 30);}'
	+ // COLOR 1
	'.mdl-textfield input, .minds-search-bar, .m-title-block, .m-title-block-fixed {background-color: #37474F !important;}'
	+
	'.m-search-bar-suggestions-list, .minds-dropdown-menu, .mdl-menu, .m-merchant-legal {background: #37474F !important; border: 1px solid #26343B !important;}'
	+
	'.m-search-bar-suggestions-suggestion, .mdl-menu__item, .m-messenger-dockpane-tab, .m-album {border-bottom: 1px solid #26343B !important; color: #BBC5CA !important;}'
	+ //ITEM HOVER
	'.m-search-bar-suggestions-suggestion:hover, .mdl-menu__item:hover {background-color: rgb(36, 48, 54) !important;}'
	+ //TEXT COLOR 1 / LINK COLOR 2
	'.m-isomorphic-link, .mdl-card__title, .mdl-card__supporting-text, #message, #message a, #message span a, .m-comment-message, .m-content-sidebar-nav-item a, .mdl-tabs__tab-bar a span, .mdl-tabs__tab, .mdl-card__title, textarea {color: #BCCDD5 !important;}'
	+
	'.mdl-tabs__action-buttons > * button {color: #BCCDD5; border: 1px solid #BCCDD5;}'
	+ // COLOR 1
	'.mdl-card, .m-owner-block {background: #37474F !important;}'
	+ // COLOR 3
	'.mdl-card:not(.mdl-cell), .tabs, .m-action-tabs, .minds-avatar-hovercard {background: #28343B !important;}'
	+ // TEXT COLOR 2
	'.m-owner-block a, .mdl-menu__item, .mdl-card__title-text, .m-blurb, #search, .mdl-color-text--blue-grey-50, .mdl-color-text--blue-grey-300, .mdl-color-text--blue-grey-600 span, .wallet-grid .mdl-color-text--blue-grey-500, .wallet-grid label.mdl-color-text--blue-grey-600 {color: #BBC5CA !important;}'
	+ // TEXT COLOR 3
	'.m-owner-block span, .impressions-tag, strong, counter, .m-full-label, .minds-transaction-details p, .mdl-color-text--grey-600 {color: #E3E3E3 !important;}'
	+ // TEXT COLOR 4
	'.m-footer-nav-item a, .mdl-color-text--blue-grey-500 span, .1, .2, .3 {color: #90A4AE !important;}'
	+
	'.impressions-tag {background-color: #607D8B !important; font-size: .8em !important;}'
	+
	'.minds-subscribe-button, button.material-icons {color: #5D7986 !important; border: 1px solid #5D7986 !important;}'
	+
	'.m-messenger-dockpane-container {background: #37474F !important;}'
	+
	'.m-messenger-userlist-search, .m-messenger-userlist-search > input, .m-upload input, .mdl-cell input, select {background: rgb(40, 52, 59) !important; color: #BBC5CA !important;}'
	+
	'.m-messenger-userlist-search > input, .m-upload input {padding: 0 .5em !important;}'
	+
	'.m-messenger-dockpane-tab-ribbon {background: #28343B !important; border-bottom: 1px solid #5D7986 !important;}'
	+
	'.m-comments-composer form textarea, form textarea {background: #455A64 !important; border: 1px solid #5F7C8A !important;}'
	+
	'.m-horizontal-content-carousel {border-bottom: 1px solid #5D7986 !important;}'
	+
	'.minds-avatar {background-color: #28343B !important;}'
	+ // TEXT COLOR 5
	'.material-icons, .m-overgrown-material-icon, .m-inline-owner-block span, .is-boosted a {color: #C9D6DD !important;}'
	+
	'.mdl-button, .m-input, .username {color: #CFCFCF;}'
	+
	'.m-album-create input {border-color: #5D7986 !important; color: #BCCDD5 !important;}'
	+
	'.body h3, .router-link-active .body span {text-shadow: 0 0 5px #555 !important;}'
	+ // BORDER COLOR 1
	'.minds-group-join-button, .mdl-cell input, select, minds-form-tags-input, minds-comments .m-rich-embed {border: 1px solid #5D7986 !important;}'
	+ // BORDER COLOR 2
	'.m-group-info .m-group-info-name > div > span, .m-group-info .m-group-info-brief-description > div > span, .m-group-info .m-group-info-tags > div > span, .m-group-info .m-group-info-membership > div > span, .mdl-tabs__tab-bar, .m-input, .m-upload input {border-color: #38525F !important;}'
	+ // TEXT COLOR 6 / LABEL COLOR
	'.mdl-textfield__label {color: #718792 !important;}'
	+
	'.mdl-button--accent.mdl-button--accent.mdl-button--raised, .mdl-button--accent.mdl-button--accent.mdl-button--fab {background: #4690D6 !important;}'
	+
	'.progressbar {background-color: #0076B7 !important;}'
	+
	'.mdl-tabs__tab.is-active, .mdl-tabs__tab.is-active {border-bottom: 2px solid #0076B7;}'
	+
	'.mdl-button--colored {background: rgba(158, 158, 158, 0.2) !important;}'
	+
	'.m-albums-selector .mdl-card__title .mdl-button {padding: 0 6px !important;}'
	+
	'.body p {color: #90A4AE !important;}'
	+
	'.m-infinite-scroll-manual {color: #253238 !important;}'
	+
	'.minds-transaction-points .positive, .minds-wallet-points h2 {color: #2691EC !important;}'
	+
	'.minds-transaction-points .negative {color: #EC4226 !important;}'
	+
	'.minds-boost-points-input input {font-size: 18px !important; padding: 14px !important;}'
	+
	'.minds-card-navigation li :hover {background-color: #1D2529 !important;}'
	+
	'.m-content-sidebar-nav-item .is-active {border-left: 3px solid #0076B7 !important;}'
	+
	'.m-boost-button-fat, .mdl-card__actions .mdl-button--colored {background-color: #0076B7 !important; color: #C9D6DD !important; padding: 0 14px !important;}'
	+
	'.wallet-grid form, .m-rich-embed {background: #37474F !important;}'
	+
	'.username {color: #CFCFCF !important;}'
);