I'm wanting to make a bookmarklet that would change a webpage from
http://user.tumblr.com/post/123456789
to
http://user.tumblr.com/liked/by/user
with just a click. I'm usually alright at frankensteining code together, and I've been looking at the Tumblr manual reblog button that uses "window.location" along with Bookmarklet to edit current URL and Replace end characters of current URL with bookmarklet
I can't see anything useable that would extract a subdomain into a variable and then place it in a new URL. I did stumble across this code:
^http://([^.]+)\.domain\.com
But I have no idea what that means or how to use it.