4 ms·
No need for a browser extension, just throw this into your ~/.js var ampLink = document.querySelector('link[rel="amphtml"]'); if (ampLink) { var
by _lce0 10y ago
No need for a browser extension, just throw this into your ~/.js
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 ;)
- MicroBerto 10y agoInteresting - What browser / OS is that file meant for?
- _lce0 10y agoFirefox: https://github.com/rlr/dotjs-addon https://github.com/rlr/dotjs-addon Chrome: https://github.com/defunkt/dotjs https://github.com/defunkt/dotjs