Skip to content

Instantly share code, notes, and snippets.

@Eskuero
Created December 18, 2017 17:07
Show Gist options
  • Save Eskuero/c3f40fddbc01539331569dcd85bb2c41 to your computer and use it in GitHub Desktop.
Save Eskuero/c3f40fddbc01539331569dcd85bb2c41 to your computer and use it in GitHub Desktop.
Script for Greasemonkey that will run every 3 seconds to replace every t.co url with the true location
// ==UserScript==
// @name Fix t.co links on Tweetdeck
// @include *tweetdeck.twitter.com*
// @version 1
// @grant none
// ==/UserScript==
setInterval(function() {
links = document.getElementsByClassName("url-ext");
for (i = 0; i < links.length; i++) {
links[i].href = links[i].getAttribute("data-full-url");
}
}, 3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment