Created
August 26, 2012 16:53
-
-
Save iambibhas/3481623 to your computer and use it in GitHub Desktop.
Twitter t.co link shortener bypasser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="http://t.co/acgTzWKR" class="twitter-timeline-link" target="_blank" data-expanded-url="http://tcrn.ch/NTr6S8" title="http://tcrn.ch/NTr6S8" dir="ltr" wotsearchprocessed="true"> | |
<span class="invisible">http://</span> | |
<span class="js-display-url">tcrn.ch/NTr6S8</span> | |
<span class="invisible"></span> | |
<span class="tco-ellipsis"> | |
<span class="invisible"> </span> | |
</span> | |
</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name T.co bypass | |
// @namespace http://userscripts.org/users/192333 | |
// @version 1 | |
// @include http*://*twitter.com/* | |
// @grant GM_deleteValue | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// @grant GM_info | |
// ==/UserScript== | |
si = window.setInterval(clearanchors, 2000); | |
function clearanchors(){ | |
anchors = document.getElementsByTagName('a') | |
for(i=0;i<anchors.length;i++){ | |
if(anchors[i].getAttribute('data-expanded-url') != null){ | |
anchors[i].setAttribute('href', anchors[i].getAttribute('data-expanded-url')); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Http:t.co/fhcGdhs