Restore Downvote Arrows

Restores all arrows for those annoying sub-reddits that insist on having them hidden.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name           Restore Downvote Arrows
// @namespace      c3Zwcnj85t
// @description    Restores all arrows for those annoying sub-reddits that insist on having them hidden.
// @lastupdated    2012-06-24
// @version        1.1
// @license        GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @compatibility  Firefox 10.0
// @include        http://reddit.com/r/*
// @include        http://www.reddit.com/r/*
// @include        https://pay.reddit.com/r/*
// ==/UserScript==

// addGlobalStyle borrowed from http://diveintogreasemonkey.org/ - Thanks Mark
function addGlobalStyle(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);
}

addGlobalStyle('.arrow.down { display: block !important; visibility: visible !important; }');
addGlobalStyle('.arrow.downmod { display: block !important; visibility: visible !important; }');
addGlobalStyle('.arrow.up { display: block !important; visibility: visible !important; }');
addGlobalStyle('.arrow.upmod { display: block !important; visibility: visible !important; }');