ShadeRoot Instagram

Eye-friendly magic in your browser for Instagram

目前為 2017-09-11 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

//
// Written by Glenn Wiking
// Script Version: 0.2.0b
// Date of issue: 08/29/17
// Date of resolution: 08/29/17
//
// ==UserScript==
// @name        ShadeRoot Instagram
// @namespace   SRIG
// @description Eye-friendly magic in your browser for Instagram
// @version     0.0.1a
// @icon        https://i.imgur.com/YKIGT79.png

// @include        http://*.instagram.*
// @include        https://*.instagram.*
// ==/UserScript==

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

ShadeRootIG(
	// BG 1
	'._2v79o {background-color: #1d2327 !important;}'
	+
	// BG2 
	'._f9sjj {background-color: #172e42 !important; border: 1px solid #104b84 !important;}'
	+
	'._68swa {background-color: #91bfd5 !important; padding: .1em !important; border-radius: 1em !important;}'
	+
	// COLOR 1
	'._hxmdu, ._mb54c {color: #c9d2d7 !important;}'
	+
	// FORM ITEMS BG
	'._ph6vk, ._sjplo, input, select, textarea {background: #1d496e !important;}'
	+
	'._sjplo, input, select, textarea {border: 1px solid #1a6aa5 !important; color: #d0e4ec !important;}'
);