Jonathan Hogervorst
Less is more

Awesome Tweetie bookmarklet!

Tweetie for Mac is, in my opinion, the best Twitter client for Mac users. It’s a very beautiful application, just as you’d expect. But, there’s one disadvantage: after using Tweetie for a while, you hate the slow Twitter website.

But when do you use the Twitter website, when you own Tweetie? Well, a few weeks ago I wouldn’t have an answer to that question, but everything changed since Spotify launched in The Netherlands. The problem is that whenever you’d like to share a nice song on Twitter, you are sent to the Twitter website.

And that’s exactly what we don’t want. Tweeting a tweet via the Twitter site takes a long time and until that’s done, you have to leave the tab opened in your browser. Or, when you’d like to change some things in the tweet, it’s much prettier to do that in Tweetie than on the Twitter site.

So, what we want is an easy way to open those tweets in Tweetie. The best solution would be that the sender (Spotify in this case) opens Tweetie directly, but that’s not something we can decide. It would be possible to do some tricks with a browser extension in Safari, Chrome or Firefox, but I don’t like that solution: you have to create browser specific extensions and therefore you need to learn browser specific codes and all the things. What remains is simple: a JavaScript bookmarklet.

Atebits (the company behind Tweetie) offers a simple bookmarklet by themselves, but all it does is tweeting the location (URL) of the current page. That’s a nice bookmarklet and I use is often, so I wanted to add the functionality to my bookmarklet too.

After coding, trying and debugging for some time, I created a bookmarklet that does the following:

  • If you’re on the Twitter site on a page containing a tweet field, the entered tweet is sent to Tweetie and the tab closes automatically. This works only with tweets or mentions and not with DM’s (that’s a limitation of the URL Scheme of Tweetie).

    Note: if you have JavaScript disabled in your browser or on the Twitter site, the bookmarklet won’t work as expected!

  • If you’re somewhere else, the title and the URL of the page are sent to Tweetie in this form:

    “Title” (URL)

    The tab doesn’t close.

I can’t imagine that you wouldn’t like to use this bookmarklet. The only thing you have to do to install the bookmarklet, is dragging this link to your bookmark bar: Post with Tweetie.

When that’s done, you could test the bookmarklet by pressing it while you’re on this page. And if you’d like to test the bookmarklet on the Twitter site, here’s a tweet that opens on the Twitter site.

Tip: do you like the bookmarklet? Just use it to tell all your followers about it! Press the bookmarklet while you’re on this page and send the tweet to tell it to anybody.

Please leave a comment below if you have any suggestions or in case you experience problems with the bookmarklet. I tested the bookmarklet with the latest versions of Safari, Chrome and Firefox and I didn’t found major bugs.


Vaticaan draait totaal, maar dan ook echt totáál, door

Jezus Christus, wat een onzin. Nu de politie in België bezig is met het onderzoeken van de misdrijven in de katholieke kerk, maken de bisschoppen zich ineens zorgen over de slachtoffers. “Huh?!”, hoor ik je denken. Ja, dat dacht ik ook.

Eerst zit je met je gore tengels aan kinderen en dan stop je het in een grote doofpot. Oké, dat is verschrikkelijk en dat moet rechtgezet worden. Maar hoe, in hemelsnaam, kan je dan vrezen “dat slachtoffers van misbruik als gevolg van de inval niet meer durven te praten met de commissie-Adriaenssens, die in België onderzoek doet naar zedenschandalen in de kerk”?

En alsof dat nog niet onzinnig genoeg is, horen we nu ook medelijden te hebben met de bisschoppen die, zoals één of andere kardinaal beweerde, “tijdens de justitie-inval donderdag negen uur zijn vastgehouden zonder eten en drinken”. Loop toch niet te huilen, idioten! In Afrika hebben mensen dagenlang geen eten en ik eet ook wel eens negen uur achter elkaar niks! Zijn die zielige bisschoppen nu ineens slachtoffer geworden, bedoelen ze dat?

Ik weet het niet hoor. Eerst traumatiseer je honderden of duizenden kinderen, waarna je de zaak gewoon wegstopt alsof het niks is. Dan, zodra alles eindelijk bekend wordt, probeer je het alsnog weg te moffelen door zogenaamd bezorgd te zijn over de slachtoffers en bovendien zet je jezelf als slachtoffer van het onderzoek neer. Tja, ik moet zeggen dat het best slim is, maar waarom trappen wij er met z’n allen in?

Als er op GeenStijl of SpitsNieuws een post is over een gearresteerde pedofiel, staan er troepen met reaguurders klaar om eigenhandig de geslachtsdelen van de misdadiger te verwijderen. Maar nu tientallen kerkelijke mannetjes hetzelfde doen, moeten we het maar accepteren en de andere kant op blijven kijken, omdat de daders quasi-bezorgd over de slachtoffers praten?!

Wat een bullshit. Wat mij betreft gebruiken we dit hele gebeuren als reden om de hele katholieke kerk af te schaffen. Iemand bezwaar?


Lead, follow, or get out of the way.

Thomas Paine

That men do not learn very much from the lessons of history is the most important of all the lessons that history has to teach.

Aldous Huxley

Alleen ga je sneller. Samen kom je verder.

Afrikaans spreekwoord

Let me ask you something. Why are you alive? (…) You exist to continue your existence. What’s the point?

Mary (Equilibrium)

We asked for cash, not for ash!

Decode HTML entities in Objective-C (decodeHTMLEntities)

I needed a simple way to decode HTML entities in an Objective-C project. After googling for a few minutes, I decided to make my own thingy. It took some time to copy and paste all the entities, so I’d like to share it with everyone to save others some work!

decodeHTMLEntities:


You know, it’s true, when something exceeds your ability to understand how it works, it sort of becomes magical.

Jonathan Ive

We can’t solve problems by using the same kind of thinking we used when we created them.

Albert Einstein

volgende
Archief / RSS