Skip to content

Instantly share code, notes, and snippets.

@augustnmonteiro
Created January 2, 2018 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save augustnmonteiro/b61be08a74a8d50dc3824d29d0c2fa96 to your computer and use it in GitHub Desktop.
Save augustnmonteiro/b61be08a74a8d50dc3824d29d0c2fa96 to your computer and use it in GitHub Desktop.
Hide chat's from your telegram web
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";
}
});
@drezden-cell
Copy link

is it working now? I cannot run it in console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment