Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jeyemwey/8562e09d300ab26871585eb54893a50e to your computer and use it in GitHub Desktop.
Save jeyemwey/8562e09d300ab26871585eb54893a50e to your computer and use it in GitHub Desktop.
// ==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