Skip to content

Instantly share code, notes, and snippets.

View tagawa's full-sized avatar

Daniel Davis tagawa

View GitHub Profile
@tagawa
tagawa / usurp-tco.js
Created January 30, 2012 06:26 — forked from GarrettS/usurp-tco.js
UsurpTCO
(function() {
if (window.location.hostname === "twitter.com") {
var tcoToLinkTitleURL = function(ev) {
var target = ev.target, dataURI = target.getAttribute("data-expanded-url");
if (/^https?:\/\/t.co\//.test(target.href) && dataURI) target.href = dataURI;
};
document.addEventListener("mousedown", tcoToLinkTitleURL, true);
}
})();