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

Automatically load AMP pages #2

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

Conversation

niutech
Copy link

@niutech niutech commented May 8, 2017

In this PR I added the auto mode to the options, which checks for an amphtml link as soon as the <head> is loaded, then it stops loading the full page and loads the AMP version instead. This method has a minimal overhead. I reformatted the code and fixed the typos too.

Timothy Cyrus and others added 3 commits October 20, 2016 13:56
Modified `amplified.js` to use ternary operators
Combined `querySelector`s in `amplified.js`
Minor Changes
Changed `ampTabs` from array to dictionary
Made indentation consistant
Added Case for "AMP version not detected"
Removed period from `default_title` to match other titles
Delete tab information if closed using `chrome.tabs.onRemoved`
@heubergen
Copy link

Hi @niutech
I just ported the extensions to firefox which is using the Webextensions API now.
May you wanna review your code and port it to firefox? I would be more than happy to merge it :)
Check the repo out here.

@niutech
Copy link
Author

niutech commented Jun 23, 2017

@heubergen For now I don't have time for it, but you can try doing it yourself, the code is CC0-licensed.

@heubergen
Copy link

I need to look at it again, just merging it seems not to work :)

@jpettitt
Copy link
Owner

jpettitt commented Mar 12, 2018

FYI I'm going to flip the base license on amplifier to MIT before I take any external commits.

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