Skip to content

Instantly share code, notes, and snippets.

View JEuler's full-sized avatar
🍉

Ivan Terekhin JEuler

🍉
View GitHub Profile
@iamstuartwilson
iamstuartwilson / slack-file-killer.js
Last active August 8, 2018 20:58
Kill multiple slack files from your browser console. Simply paste this code when on the "https://[space].slack.com/files/[me]" page.
(function(){
$('#files_list > [data-file-id]').each(function(i) {
killIt($(this).attr('data-file-id'));
function killIt(id) {
console.log(id);
$.post('/api/files.delete', {
file: id,
token: boot_data.api_token