Created
June 5, 2016 20:53
-
-
Save jeyemwey/8562e09d300ab26871585eb54893a50e to your computer and use it in GitHub Desktop.
This file contains 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 Remove Brackets | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Replace ((($name))) with $name | |
// @author iamjannik.me | |
// @match https://tweetdeck.twitter.com/ | |
// @grant none | |
// ==/UserScript== | |
/** | |
* To do: | |
* - DM column | |
* - find any smarter way than just running the script again and again | |
*/ | |
(function() { | |
function removeBrackets(x) { | |
for (var i = 0; i < x.length; i++) { | |
x[i].innerText = x[i].innerText.replace(/\(\(\(/g, "").replace(/\)\)\)/g, ""); | |
} | |
} | |
setInterval(function() { | |
removeBrackets(document.getElementsByClassName("fullname")); //Tweet Columns | |
removeBrackets(document.getElementsByClassName("account-link txt-bold")); //Notification Column | |
}, 2000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment