Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option for hiding gifs #38

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

AlexanderEllis
Copy link

Here's a rough cut for the first option in #13 .

I found that Medium loads embedded gifs and Giphy links with an element with a progressiveMedia class, in which lives a preview thumbnail. If this thumbnail is a gif or a link to giphy, this hides it. This also hides the parent element, which is a aspectRatioPlaceholder.

I'd be interested in taking a look at the second implementation as well, but I figured I would start with this!

Before:
screen shot 2018-07-17 at 5 57 08 pm

After hideGifs():
screen shot 2018-07-17 at 5 57 23 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant