Greasy Fork is available in English.

Reddit Dark Theme

It's a dark theme... for reddit...

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Reddit Dark Theme
// @version      0.3
// @description  It's a dark theme... for reddit...
// @icon         http://keycdn.mturkcrowd.com/data/avatars/l/0/132.jpg?1452627961
// @author       Danny Hinshaw
// @namespace    http://nulleffort.com/
// @match        https://www.reddit.com/*
// ==/UserScript==

(function() {
  'use strict';
  /*jshint esnext: true */

  // Set CSS sylesheet for Dark Theme
  const css = '#header { background-color: #393994; }'+
        'body { background-color: #0F0F14; }'+
        'a.title.may-blank.loggedin.outbound  { color: #5454A7; }'+
        'a.title.may-blank.loggedin.outbound:visited  { color: purple; }'+
        'a.title.may-blank.loggedin  { color: #5454A7; }'+
        'a.title.may-blank.loggedin:visited  { color: purple; }'+
        'a.title.may-blank  { color: #5454A7; }'+
        'a.title.may-blank:visited  { color: purple; }'+
        'a.title.may-blank.outbound  { color: #5454A7; }'+
        'a.title.may-blank.outbound:visited  { color: purple; }'+
        'p { color: #5454A7; }'+
        'div.listing-chooser.initialized, div.side { background-color: #222271 }',
        style = document.createElement('style');
  style.type = 'text/css';
  style.appendChild(document.createTextNode(css));
  document.head.appendChild(style);

  // Remove sidebar ads
  [].forEach.call(document.querySelectorAll('div.dfp-ad-container'), e => e.parentNode.remove());

  // Timeout to remove ad's that are loaded after the page has finished loading
  setTimeout(() => {

    // New 'organic' ad placed on frontpage
    [].forEach.call(document.querySelectorAll('.content div.spacer'), div => {
      const potentialAd = div.firstChild.firstChild;
      if (potentialAd && potentialAd.classList) {
        return potentialAd.classList.contains('promoted') ? div.remove() : null;
      }
    });

    [].forEach.call(document.querySelectorAll('p.tagline'), e => {
      if (e.innerText.includes('promoted')) e.parentNode.parentNode.remove();
    });
  }, 250);
})();