Last active
February 21, 2023 22:40
-
-
Save andreineculau/d26503fa18aba5bbde6f9c40ada0da96 to your computer and use it in GitHub Desktop.
List all slack channels
This file contains hidden or 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
$$('div.p-channel_sidebar__channel').map(function(x) { | |
return [x.dataset.qaChannelSidebarChannelId, x.children[1].textContent]; | |
}).map(x => x.join(',')).join('\n') |
This file contains hidden or 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
$$('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