Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(function(links){
for (
var linkCount = links.length, i = 0;
i < linkCount;
i++
) if ((' ' + (links[i].getAttribute('rel') || '').replace(/[\s]/g, ' ') + ' ').indexOf(' noreferrer ') >= 0)
links[i].href = 'data:text/html;base64,' + btoa('<!doctype html><meta http-equiv="refresh" content="0;URL=\'' + encodeURI(links[i].href) + '\'">');
})(document.links);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.