GithubHelp home page GithubHelp logo

maximevaillancourt / change-my-view-new-tab Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 73 KB

Display a random top post from /r/changemyview on your New Tab page ๐Ÿง 

License: MIT License

HTML 25.64% JavaScript 37.26% CSS 37.09%

change-my-view-new-tab's People

Contributors

andrewbrey avatar maximevaillancourt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dogskool

change-my-view-new-tab's Issues

Headings in posts/comments are too big

Since the post/comment content HTML comes straight from Reddit and gets CSS applied from the extension itself, this can lead to formatting issues. For example, the heading in the post shown below is bigger than the post title itself:

2018-02-25-095925_697x664_scrot

Possible solution: posts/comments could be wrapped in a class which reduces the size of headings, something like this:

.reddit-content h1,
.reddit-content h2,
.reddit-content h3,
.reddit-content h4,
.reddit-content h5,
.reddit-content h6 {
  font-size: 0.9em;
}

NSFW posts are shown without warning

NSFW posts are currently displayed by default, and there is no way to prevent them from appearing.

Possible solutions:

  • Create a global setting to enable/disable NSFW posts
  • Show the post title anyway, but display a button to reveal the rest of the post
  • Hide the entire post behind a "I understand that this post might contain sensitive content" button

Links to [deleted] users are broken

In the post/comment headers, the links to /u/<username> break when a user "deletes" their post, which effectively creates a link to /u/[deleted].

Possible solution: simply detect when the username is equal to [deleted], in which case the anchor tag should be removed.

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.