Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dark theme for devRant. Still a work in progress. Requires TamperMonkey / GreaseMonkey
// ==UserScript==
// @name devRant dark theme listing mode
// @namespace cosmicspace
// @version 0.1
// @description Make devRant listing black. Because white bg sucks.
// @author https://www.devrant.io/users/paulera
// @match www.devrant.io/*
// @grant GM_addStyle
// ==/UserScript==
(function() {
'use strict';
// it requires
// @grant GM_addStyle
// to be added to the script header so you can use the function
GM_addStyle (
".rantlist-bg * { background-color: #101010 ! important; } " +
".rantlist-title { color: #a0a0a0; } " +
".mobile-install-banner { display: none; } " +
".addcomment-btn { width: 179px; bottom: 20px; } " +
".btn-vote-circle { border: none } " +
".btn-vote-circle, .btn-vote-circle .icon { background-color: #333 ! important; } " +
".vote-state-upvoted .plusone, .vote-state-upvoted .plusone .icon { background-color: #007030 ! important; } " +
".vote-state-downvoted .minusone, .vote-state-downvoted .minusone .icon { background-color: #903030 ! important; } " +
".profile-avatar-circle { border: solid 2px #d0d0d0 } " +
".addrant-btn { bottom: 20px; left:20px } "
);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.