Restore Downvote Arrows

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

当前为 2014-05-24 提交的版本,查看 最新版本

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

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

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

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

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