Bookmarklet for easier Tumblr searching

Continuing the discussion from Skeletal gown with dragon’s tail/train:

I recently went on a Tumblr snipe-hunt to find the original source of an image, and after twenty minutes of looking through deleted or renamed blogs, layouts with bad fonts or colors, and layout with missing archive links I figured there had to be a better way. So I threw together the following bookmarklet to open up a Tumblr user’s Archive and Liked Posts page in one click. Just click the bookmarklet on any Tumblr post or blog’s front page.

javascript:
var URL=document.URL;
var splitslash=URL.split('/');
var splitdot=splitslash[2].split('.');
var user=splitdot[0];
var likes='http://www.tumblr.com/liked/by/'+user;
var archive='http://'+user+'.tumblr.com/archive';
if(user!="www"&&splitdot[1]=="tumblr"){
  window.open(archive,"_self");
  window.open(likes,"likes");
}

Edit: Added a check so that it will only work on subdomains of Tumblr and not just any old webpage.

3 Likes

Added a sanity check to make sure you’re on Tumblr and not just any random website.

1 Like

This topic was automatically closed after 1079 days. New replies are no longer allowed.