Room 208

Elaborate Burn

Posts from #tumblr

And don’t let the door hit you on the way out

After ages of complaining about Tumblr, I finally went and did something about it. This is something I hacked up in a couple of hours using Tumblr’s JSON export and a static site generator. Maybe someday I’ll post the source code.

You know where to complain if something’s broken.

Tumblr has started making link posts point to an interstitial redirect on t.umblr.com, instead of directly to the actual page. In the spirit of Google’s incredibly annoying redirector, the URLs are hideous:

http://t.umblr.com/redirect?t=ZDEwZGUwNGIxMmVlNTAxMTNiOTAzYWQ
yYjY1ZTdmMjM2MzAwN2NmYSxFSnRleTUxQw%3D%3D&u=aHR0cDovL3d3dy5mL
W5vaXRhbWluYS5jb20%3D

t appears to be a Base64-encoded token specific to the post, while u is just the Base64-encoded URL. The redirector at least checks that the token matches the URL so that it can’t be used for phishing by setting an arbitrary target, which raises the question of why the URL is there in the first place, in a format that’s opaque to human readers.

Not following Google’s example, the redirect is performed as an HTML <meta> refresh. This is stupid for a multitude of reasons, not the least of which is that it confuses clients that aren’t Web browsers. Moreover, while Google waits until the link is clicked on to replace the URL, so the status bar remains useful, Tumblr doesn’t. This means that there’s no visible indication of where a link really points if you’re not on the dashboard.

What is the point of all this? Analytics, most likely, though of course given Tumblr’s remarkable lack of communication about its platform the real reason is anyone’s guess. What I do know is that it’s dumb.

@sunbinamra writes:

Hi! First off, thank you so much for the post about changing type of Tumblr post - I’ve managed to turn a couple of posts from text to photo. However, I’m a complete novice when it comes to codes, hacks, etc. and in both cases I end up with a blank ghost image at the beginning that I can’t seem to get rid of. Do you have any idea what might be causing this? Thanks again!

I suspect that since the post type conversion doesn’t have a value for the image field, Tumblr inserts a reference to a nonexistent image instead. (This isn’t your fault; it’s just a quirk of how the data is stored on the server.) Ordinarily, you’d be able to delete it using the dashboard, but the button to do so only appears when you hover over the image. Since the image doesn’t actually exist, it’s displayed with a height of zero pixels. Can’t really hover over that.

What you can do, though, is simulate a click on the delete button. To do this, open up the broken post’s edit page, and paste the following in the developer console:

$('.remove-button').first().click();

If you haven’t added any other images yet, the standard Upload photos and Add photo from web options should appear inside the edit form, indicating that Tumblr thinks there are no longer any images attached to the post. In either case, save once you’ve changed the images to your liking, and you should be on your merry way.

The internet is for functions that invisibly mess with HTML comments

In other news, I’ve discovered that the Tumblr dashboard defines a JavaScript function called Tumblr.porn(). It is, as you might expect, useless – not quite a no-op, but almost essentially so.

An anonymous correspondent writes:

I’m having issues with your most recent tutorial on changing post types because there never seems to be a request made to svc/post/update, even though I am recording requests and responses when saving the post and have tried many times. Any ideas? It’s a text post. Thanks for your time.

I’m not sure what might be causing this, so here’s one random guess – have you tried making a dummy change to the post before saving? If there are no changes, the dashboard code may detect that nothing’s changed and not bother making a request.

Download video Isn’t it great when your silly jokes cause UI …
Google Suggest introduces itself in the style of a Tumblr ask m…
Dear Tumblr, Why have you taken away the ability to upload inl…
An anonymous correspondent writes: I am begging you to do a…
Changing post types and the new dashboard
@adamrobezzoli writes: I saw your post (“Changing the type …
Dichotomy 4.1
I’m a Tumblr theme developer. I have various bug reports and fe…
Dichotomy 4.0
I poked around today to see if I could use the Tumblr API to ch…
Yeah, this isn’t a bad background for a login page. Not at all!
Dear Tumblr, Nice of you to only remember whether I’ve seen th…
Help break the latest version of Dichotomy
Anyone noticed how Tumblr doesn’t notify you about answers to q…
tumblr-utils: Utilities for dealing with Tumblr blogs
There’s a hideous irony in Tumblr warning their users to change…
It’s more than a little strange that Tumblr supports (well, “su…
Dichotomy 3.1
@usgmr writes: Woah, oneechan noticed me. haha. Anyway, rig…
noxki writes about Tumblr’s sticky controls: Anyway, work a…
So Tumblr added @-mentions not too long ago. Here’s what you t…
Dear Tumblr, Have you considered allowing more than one file i…
A brief follow-up to my previous post on customizing Dichotomy’…
Dichotomy now available in the Tumblr Theme Garden
Dichotomy 3.0
Dear Tumblr, Yes, yes, we all know you were acquired by Yahoo …
Dichotomy 2.5
Changing the type of an existing Tumblr post
I despise Tumblr’s lazy encouragement of uncontrolled quote pyr…
Dichotomy Moves to GitHub
Tumblr's Markdown Link is a Lie!
Dichotomy 2.4
Download video Is the word “excessive” not in the vocabulary …
Dichotomy 2.3
Thought of the day: Very slow, error-prone distributed implemen…
Yahoo Agrees to Buy Tumblr
Dichotomy 2.2
I cannot fathom why the Tumblr dashboard now redirects users to…
Dear Tumblr, Thank you for adding this new “sticky iframe” tha…
Dichotomy 2.1
I don’t know how I forgot to mention this in my litany of compl…
Today on The Road to Faust: Register an outrageous, yet believa…
Dear Tumblr, This new photo uploader is terrible. The one thin…
Dear Tumblr, Please stop calling window.focus() in you…
Dear Tumblr, Can we get support for alpha values in custom the…
I think my only hope for getting people to read my more substan…
Dear Tumblr, It would be really nice if your backup applicatio…
Download video Those of you who know me know that I’m not a h…
Dear Tumblr, Is there any particular reason that making even t…
So the default Tumblr theme (Redux) has a nipple CSS class for …
Dear Tumblr, I really miss the days when your login form still…
Dichotomy now has full support for custom colors. (OMG!!! Ponie…
@meursaultmustdie writes: ok I don’t know if it’s just me b…
Something's not right here
It that easy is not
Many [Tumblr users and readers] have fallen for the conspiracy …
@queentakesking wrote a post a while back on what would be need…
Lies, damned lies, and FAQ answers