What to do when t.co Goes Down

Twitter’s t.co service was down today, so after having to inspect element a few times to get the link URLs, I came up with this bookmarklet. The next time t.co goes down, use this to replace all the t.co urls with the proper URLS. Enjoy.

The Bookmarklet

De-tco Bookmarklet (Drag to your bookmarks bar)

The Code

    var x = document.querySelectorAll('a[data-expanded-url]');
    var l=x.length;
    for(var i=0; i<l; i++) {
        x[i].href = x[i].getAttribute('data-expanded-url');
    return false;