Created
July 31, 2016 16:51
-
-
Save loretoparisi/d2991d3b74568954dfeea1d00cc93068 to your computer and use it in GitHub Desktop.
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
| (function twitterRemoveCharLimit() { | |
| function hasClass(ele, cls) { | |
| return ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)')); | |
| } | |
| function removeClass(ele, cls) { | |
| if (hasClass(ele, cls)) { | |
| var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)'); | |
| ele.className = ele.className.replace(reg, ' '); | |
| } | |
| } | |
| var list = document.getElementsByClassName('tweet-action tweet-btn') | |
| for (var i = 0; i < list.length; i++) { | |
| removeClass(list[i], 'disabled') | |
| list[i].disabled = false | |
| } | |
| })() |
Author
Author
Bookmarklet
<a href='javascript:(function(){function hasClass(s,e){return s.className.match(RegExp("(\\s|^)"+e+"(\\s|$)"))}function removeClass(s,e){if(hasClass(s,e)){var a=RegExp("(\\s|^)"+e+"(\\s|$)");s.className=s.className.replace(a," ")}}for(var list=document.getElementsByClassName("tweet-action tweet-btn"),i=0;i<list.length;i++)removeClass(list[i],"disabled"),list[i].disabled=!1
})();'>Remove Tweet Char Limit</a>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uglyified with UglifyJS