Skip to content

Instantly share code, notes, and snippets.

@andreineculau
Last active February 21, 2023 22:40
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 andreineculau/d26503fa18aba5bbde6f9c40ada0da96 to your computer and use it in GitHub Desktop.
Save andreineculau/d26503fa18aba5bbde6f9c40ada0da96 to your computer and use it in GitHub Desktop.
List all slack channels
$$('div.p-channel_sidebar__channel').map(function(x) {
return [x.dataset.qaChannelSidebarChannelId, x.children[1].textContent];
}).map(x => x.join(',')).join('\n')
$$('div.p-channel_sidebar__channel').map(function(x) {
return {id: x.dataset.qaChannelSidebarChannelId, name: x.children[1].textContent};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment