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

Block app popup for google amp links #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

schrauger
Copy link

This hides the 'See reddit in...' popup from google links.

Adds a new (very specific) css rule for another popup. And adds support for Google Amp links that show instead of reddit links when viewing results from a google search.

google loads its own copy of reddit results, which has its own 'read in reddit app' nuisances
more specific selectors to make rule more important
@schrauger
Copy link
Author

You can test on this url

I got to that from searching google for "reddit stop asking app" and clicking on the first link. Google now loads reddit links on mobile searches through its special proxy-like service called AMP. This results in the page being loaded on a different domain and inside iframes, hence my changes in the manifest file.

Also adds another css rule for the 'See Reddit in...' link that shows up in Google AMP reddit pages.

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