Skip to content

Instantly share code, notes, and snippets.

@fuzzykiller
Created January 17, 2017 09:59
Show Gist options
  • Save fuzzykiller/1f0acb6ba176d8fad25d70629c626eeb to your computer and use it in GitHub Desktop.
Save fuzzykiller/1f0acb6ba176d8fad25d70629c626eeb to your computer and use it in GitHub Desktop.

Revisions

  1. fuzzykiller created this gist Jan 17, 2017.
    15 changes: 15 additions & 0 deletions viglink.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # What is this

    Disqus decided to introduce some bs affiliate links (via https://disq.us/urlhttps://redirect.viglink.com). uBlock blocks this, so you won’t ever get to where you want to go.

    If you log in with a Disqus account, you may also be turn it off.

    When you’re at the “Page Not Found” screen, just click on this bookmarklet to continue to the actual link target.

    # Use it

    javascript:location.replace(location.search.substring(1).split("&").reduce((prev, curr) => {let x=curr.split("="); prev[x[0]]=decodeURIComponent(x[1]); return prev;}, {}).u)

    Drag this code to your bookmarks toolbar and give it an appropriate name.

    Tested on Firefox