export default function unredditifyLink(url) {
  if (!url) { return; }
  return url.replace(/^https?:\/\/(?:www\.)?reddit.com/, '');
}

export default function unredditifyLink(url) {
  if (!url) { return; }
  return url.replace(/^https?:\/\/(?:np\.)?(?:www\.)?reddit\.com\//, '/');
}

Fix bug in unredditify