Last active
January 8, 2021 20:52
-
-
Save jasonseney/cdfd8981a903e54b35a9a5a0b3c141ab to your computer and use it in GitHub Desktop.
View Tumblr Post on the Dashboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var blog = window.location.hostname.match(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]+)\./)[1]; | |
| var postId = window.location.pathname.match(/\/(\d+)\/?/)[1]; | |
| window.location.href = `https://www.tumblr.com/blog/view/${blog}/${postId}`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bookmarklet Version
Copy → Paste this as the URL for a bookmark