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

Update manifest permissions to match medium url #22

Closed
wants to merge 1 commit into from
Closed

Update manifest permissions to match medium url #22

wants to merge 1 commit into from

Conversation

rtelicak
Copy link

@rtelicak rtelicak commented Mar 7, 2018

Hi!
This if statement

if (document.querySelector('head meta[property="al:ios:app_name"][content="medium"]')) {
...
}

is no longer working, because they changed head meta tag to be ... content="Medium" .. (note the uppercase M), so the content script won't fire at all.

I've changed required permissions, its not good practice to ask permissions to all pages anyway.

@thebaer
Copy link
Owner

thebaer commented Mar 7, 2018

Hey, thanks for catching this and submitting the pull request! The only problem is that this means the extension won't work on custom domain publications, like https://hackernoon.com/.

I know it's not the best to ask permission for all sites, but I think the solution suggested in #15 is the best way to go. Feel free to tackle that if you want!

thebaer added a commit that referenced this pull request Mar 31, 2018
Now does a case-insensitive check for "Medium" in meta tag.

This addresses the issue brought up in #22.
@thebaer thebaer mentioned this pull request Mar 31, 2018
@thebaer thebaer self-requested a review March 31, 2018 13:42
Copy link
Owner

@thebaer thebaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #15 for the best solution to handle the "all sites" permission. Otherwise the Medium detection has been fixed with #23.

@thebaer
Copy link
Owner

thebaer commented Apr 18, 2018

Closing now. Best solution will be implementing #15.

@thebaer thebaer closed this Apr 18, 2018
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.

3 participants