Last active
December 16, 2015 04:48
-
-
Save dzoba/086f86d743ba3e21b6ab to your computer and use it in GitHub Desktop.
Slack doesn't provide an easy way to clear general channel history
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
// 1) Install this plugin: | |
// https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija/related?hl=en | |
// 2) Go to this page: | |
// https://my.slack.com/archives/general | |
// 3) Use this code: | |
setTimeout(function() { | |
$('.moscow_red.cursor_pointer').click() | |
setTimeout(function() { | |
$('#batch_delete_div .cursor_pointer')[0].click() | |
}, 50); | |
setTimeout(function(){ | |
$('.btn_danger').click() | |
}, 150); | |
setTimeout(function(){ | |
$('.dialog_go').click() | |
}, 350); | |
$('.generic_dialog').on('hidden.bs.modal', function (e) { | |
location.reload(); | |
}) | |
}, 3000); | |
// 4) Leave the tab open and go do something else for a while... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment