Created
January 2, 2018 23:31
-
-
Save augustnmonteiro/b61be08a74a8d50dc3824d29d0c2fa96 to your computer and use it in GitHub Desktop.
Hide chat's from your telegram web
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
var ids = document.querySelectorAll("[my-peer-link='dialogMessage.peerID']"); | |
var hideList = []; | |
Object.keys(ids).forEach(function(id) { | |
if (hideList.indexOf(ids[id].innerHTML) !== -1) { | |
ids[id].parentNode.parentNode.parentNode.parentNode.style.display = "none"; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is it working now? I cannot run it in console