From: Andrew Lorimer Date: Thu, 6 Jun 2019 09:01:51 +0000 (+1000) Subject: add firefly message deleter prototype X-Git-Url: https://git.lorimer.id.au/scripts.git/diff_plain/c54417464c364474c297f9d2659f37f857344b39?ds=sidebyside;hp=055e9c5cda155aefc6c36116899cc5e978d17a5c add firefly message deleter prototype --- diff --git a/firefly-message-deleter.js b/firefly-message-deleter.js new file mode 100644 index 0000000..2e886fd --- /dev/null +++ b/firefly-message-deleter.js @@ -0,0 +1,15 @@ +// +// firefly-message-deleter.js +// +// Old announcements tend to pile up in Firefly, and this is my solution to +// delete them all at once. Run bulkClick() in the browser console. Currently +// one has to manually execute the code on each page (typically 10 items/page). +// Alternatively, use Greasemonkey/Tampermonkey. +// + +function bulkClick() { + for(let e of document.getElementsByClassName("ff-message-close")) { + e.click(); + } + location.reload(true); // 'true' ignores cache +}