by _lce0 · 10y ago · 0 comments
var ampLink = document.querySelector('link[rel="amphtml"]');
if (ampLink) {
var href = ampLink.getAttribute('href');
if (href) {
location.replace(href, false);
}
}
EDIT: woa! this works really wall ;)Chrome: https://github.com/defunkt/dotjs