What the script is meant to do, redirect to archive.org version of target website, in this case reddit.com, then stop.
What it actually does, endless recursion til timeout.
What I've tried, putting in a break clause, but I think my syntax was wrong.
if (url.indexOf('reddit.com') !== - 1) {
location.href='https://web.archive.org/web/*/'+location.href;
{break; }
}