Last active
April 20, 2018 14:59
-
-
Save jaonoctus/ac8f31f6b855fb32c05fe24809ed4179 to your computer and use it in GitHub Desktop.
Delete all messages from campuse.ro (https://campuse.ro/messaging/)
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
messages = document.getElementsByClassName('row collapse table-body light-theme') | |
for (i = 0; i < messages.length; i++) { | |
messageHref = messages[i].children[1].children[0].getAttribute('href') | |
deleteLink = `https://campuse.ro${messageHref}delete/` | |
img = document.createElement('img') | |
img.src = deleteLink | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Open https://campuse.ro/messaging/ and run this script on chrome console (
Ctrl + Shift + i
)