I hereby claim:
- I am jasmindreasond on github.
- I am jasmindreasond (https://keybase.io/jasmindreasond) on keybase.
- I have a public key ASAgFrQ6ZlTJdnmEQ15cpsiprOkUiN2mYbPJhOTlWNxkigo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
A Pen by Gilles Castel on CodePen.
| // Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom) | |
| // Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right. | |
| // Click "Copy ID" and paste that instead of LAST_MESSAGE_ID. | |
| // Copy / paste the below script into the JavaScript console. | |
| // If you're in a DM you will receive a 403 error for every message the other user sent (you don't have permission to delete their messages). | |
| var before = 'LAST_MESSAGE_ID'; | |
| clearMessages = function(){ | |
| const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, ""); | |
| const channel = window.location.href.split('/').pop(); |
| /** | |
| https://github.com/JackieApkon/ | |
| By Jackie Apkon | |
| License : MIT | |
| Thanks very much Keter by the help with the bitmask | |
| EXAMPLE: | |
| channel_perm(channelID, { |
| <!DOCTYPE html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| var globalTag = null; | |
| var pageNum = null; |