GithubHelp home page GithubHelp logo

mottie / darker-medium Goto Github PK

View Code? Open in Web Editor NEW
125.0 7.0 18.0 350 KB

Read Medium stories with happy eyes!

License: MIT License

JavaScript 63.90% CSS 35.39% HTML 0.71%
medium medium-theme theme-customizer webextension

darker-medium's People

Contributors

chiragbhansali avatar mottie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

darker-medium's Issues

Bug caught: On some subpages of medium addon doesn't work

  • Browser: Checked on Webkit (Chrome + Brave)
  • Operating System: OSX & Windows 10
  • URL of the problem page:

No screenshot needed.

How to fix:
From my observation those sites have gr__medium_com class in a <html> tag so we can simply add in js/content.js:11:

...
HTML_MEDIUM_CLASS = /gr__medium_com/
...

and then
js/content.js:63;64

if (IS_MEDIUM.test(document.head.getAttribute("prefix"))
    || HTML_MEDIUM_CLASS.test(document.getElementsByTagName('html')[0].className)) {

and we're done but then there is another issue. Styles are not applied, because those sites has got way different class names than "normal" ones.

Highlighting makes non-bold text invisible

  • Browser: Chrome 69.0.3497.100
  • Operating System: Windows 10
  • URL of the problem page:
    All

N/A
When I highlight text with this activated, the text vanishes unless its bold. If it IS bold, then it highlights with the selected color (as seen in screenshots)

notdarkened
darkened

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.