Skip to content

Instantly share code, notes, and snippets.

@oliverstech
Created September 4, 2021 10:36
Show Gist options
  • Save oliverstech/9214392aaf877168c576f6b4316caf0d to your computer and use it in GitHub Desktop.
Save oliverstech/9214392aaf877168c576f6b4316caf0d to your computer and use it in GitHub Desktop.
throwbin.io fix
if (window.location.hostname == "throwbin.io")
{
window.location.href = "https://api.throwbin.io/v1/paste" + window.location.pathname + "/download";
} else {
alert("Please open the broken throwbin.io link before running this bookmarklet.");
}

Fix throwbin.io with this simple API bookmarklet.

Here's the javascript:

javascript:if (window.location.hostname == "throwbin.io") { window.location.href = "https://api.throwbin.io/v1/paste" + window.location.pathname + "/download";} else { alert("Please open the broken throwbin.io link before running this bookmarklet."); }

To use:

  1. Bookmark any webpage and name it what you wish.
  2. Edit the bookmark and paste the above code in the URL box.
  3. Navigate to the broken throwbin.io link.
  4. Run the bookmarklet.
  5. Your browser will download the .txt file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment