From c54417464c364474c297f9d2659f37f857344b39 Mon Sep 17 00:00:00 2001 From: Andrew Lorimer Date: Thu, 6 Jun 2019 19:01:51 +1000 Subject: [PATCH] add firefly message deleter prototype --- firefly-message-deleter.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 firefly-message-deleter.js 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 +} -- 2.43.2