• Stars
    star
    128
  • Rank 281,044 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Read Medium stories with happy eyes!

ALERT!

Medium has completely changed their CSS framework, so this extension and the userstyle won't work any more.

The previous framework used desriptive class names like "u-backgroundBlueGrey"; but now everything is one to two letters long, e.g. "a b c"

I don't have the time, nor the patience to decrypt that mess. 😿


Darker Medium tags devDependency Status

Read Medium stories with happy eyes!

Screenshot

Contents

Features

  • Applies a customizable dark theme to all medium formatted stories.
  • Customize:
    • Header background.
    • Main Accent color.
    • Highlighting color.
    • Link color, hover and underline.
    • Hiding the "get updates" footer.
  • Adds syntax highlighting to code and styles embedded gists.
  • Medium story sites are automatically detected and styled.
  • The advantage of using this extension over Stylus or Stylish is that you install it, customize it and forget about it.
  • Please see this wiki page for a list of sites that were tested for this extension.
  • A user.css file is available, and once Stylus has implemented support for user.css files, it will be immediately usable and installable from this repository.

Security Concerns

This browser extension does not collect any personal data.

The only data stored is the user style preferences (the state of the extension, five colors & an underline setting). Absolutely nothing else is shared or tracked; not even Google Analytics.

Branding

Apologizes to the sites that use specific colors in their branding, this extension overrides all of your colors; and it definitely doesn't touch your logo!

For example, I love hackernoon.com, but your bright green header and banners make my eyes scream when I try to read your site at night. This web extension applies an overall dark theme to all sites including those bright headers.

Installation

Extension

Install it for:

Usercss

Stylus supports user.css file formats. When a "raw" version of darker-medium.user.css from this repository (link below) is opened in the browser, Stylus will prompt you to install the style. For more details, see the usercss documentation.

Install the main usercss

Install the extras usercss (Medium.com profile & topic page styling)

The advantages of using a usercss are as follows:

  • No intermediary domain is needed to host the usercss file.
  • Updates will be immediately available.
  • Style customization is built-in. The same customizations for the extension are also available.

The disadvantage of this specific usercss is:

  • Syntax highlighting is not applied to code snippets, because it requires JavaScript processing.
  • Medium stories on unlisted domains will not be styled. If you want to report an unstyled Medium domain, please look in the other issues section for more details. A list of currently supported sites can be found in the medium-sites.js file.

NOTE: The version number of the available web extension may lag behind the usercss because the usercss style needs updating to add more sites, while the web extension will detect them automatically.

Usage

Toggle the style (temporarily)

Click on the Darker Medium icon to toggle the dark style on and off temporarily for the visible page. This state is not stored; this may be added in a future update.

Toggle Darker

Customize accent colors

Open the Extension options (all settings are stored):

  • Enabled - This is a global toggle of the Darker Medium extension.
  • Header - Customize the background color of the page header.
  • Main - Customize the main accent color. This is overrides the branded color of the site.
  • Highlight - Customize the highlighted text background color. The text color is automatically adjusted as needed.
  • Link Color - Customize all link colors. This may include icons as well as links within the article.
  • Link Hover - Customize the link hover color.
  • Include link underline - Include or hide link underlines.
  • Hide Footer - Show or Hide the signup/get updates footer.
  • Reset - Restore the default settings.

Options

Contributing

If you would like to contribute to this repository, please refer to the contribution guidelines.

And don't worry if you've never contributed to an open-source project before, you can start by reading this friendly guide.

This project is bound by a Code of Conduct.

Reporting problems

gitter-image

Style issues

  • The profile & topic pages of Medium.com do not use the same css framework as the main stories pages. To make these pages dark, install the darker-medium-extras.user.css usercss style linked above (Stylus is needed).
  • If it's a public page, you'll only need to report the URL and any steps needed to show the problematic area.
  • If you need a membership to access the page, then please include the HTML and related CSS:
    • First, you'll need to right click on top of the element, and select "Inspect" or "Inspect Element".
    • The Developer Tools panel will open.
    • Make sure the highlighted element and the element above it are visible in the panel.
    • Look to the right side of that panel and you should find the "Styles" (or "Rules") tab.
    • Now look for the problematic style (usually a background-color or color).
    • Share the HTML/CSS by either:
  • If these instructions aren't clear enough, or you want to contact a person, use Gitter (click the button above) for this repository.

Other issues

  • Please report:
    • If public, and pertinent, please share the URL of the page with the problem.
    • Report any javascript error as seen in the development tools console (Press F12 to open it).
    • Any extra information as described in the issue template when a new issue is opened.
  • Do you know how to solve it? It'd be awesome if you contributed a fix!

More Repositories

1

tablesorter

Github fork of Christian Bach's tablesorter plugin + awesomeness ~
JavaScript
2,605
star
2

GitHub-userscripts

Userscripts to add functionality to GitHub
JavaScript
1,782
star
3

Keyboard

Virtual Keyboard using jQuery ~
JavaScript
1,773
star
4

javascript-number-formatter

Lightweight & Fast JavaScript Number Formatter
JavaScript
140
star
5

input-password-bullet

How to replace the input password bullet in most browsers
CSS
87
star
6

visualNav

A jQuery plugin that modifies a navigation menu to highlight / change when the menu's target smooth scrolls into view
HTML
68
star
7

Octopatcher

Arrgh Some Patchy Goodness to GitHub!
JavaScript
59
star
8

Kwicks

â›” Kwicks for jQuery - fork of jQuery Kwicks by Jeremy Martin
JavaScript
49
star
9

github-reserved-names

Get a list, or check if a user or organization name is reserved by GitHub
JavaScript
46
star
10

Misc-userscripts

Userscripts to add functionality to miscellaneous sites
JavaScript
30
star
11

Pointy

A jQuery plugin that dynamically points one element at another ~
JavaScript
26
star
12

Keycaster

A jQuery plugin that adds a keystroke and mouse visualizer to your browser window.
JavaScript
16
star
13

Pathslider

Numerical slider that follows a Bezier path
JavaScript
16
star
14

Jatt

Just another Tooltip
HTML
7
star
15

Unicode

HTML Escape Codes for UTF-8 (0-65,535)
JavaScript
6
star
16

ZenHub-userscripts

â›” BROKEN! Userscripts to add functionality to ZenHub
JavaScript
6
star
17

imageHighlighter

A jQuery plugin that highlight blocks of an image when hovering over a link.
JavaScript
6
star
18

css3-background-utilities

Prepend, append & remove multiple background images
JavaScript
5
star
19

FancySelector

Select replacement, but fancy!
JavaScript
5
star
20

imagesLoaded

Just a little script to run a callback when all images have completed loading; it ignores image load errors.
JavaScript
5
star
21

Presentations

Presentations for lightning talks
JavaScript
4
star
22

squeezeBox

SqueezeBox adds a whole page sliding accordion effect to your content
JavaScript
4
star
23

color-bundle

Rollup bundled version of Qix-/color
JavaScript
3
star
24

Vertical-Parallax

Vertical Parallax Demo
3
star
25

WebSearch

A jQuery plugin to add a search button to your site
JavaScript
3
star
26

progressIndicator

A jQuery plugin that allows manual control of a progress or loading indicator
JavaScript
3
star
27

join-non-empty-array

Join non-empty array elements into a string
JavaScript
3
star
28

is-regexp-string

Check if a string is a regular expression
JavaScript
3
star
29

todaysImage

A jQuery plugin that will take a group of images with a set date range, and show a random image based on the current date.
JavaScript
3
star
30

WebSearchUI

A jQuery UI Widget to add a search button to your site.
JavaScript
2
star
31

va-page-checker

Highlight web components, accessibility issues, and other issues on VA.gov pages
JavaScript
2
star