collapseBots.js declutters talk pages by collapsing comments made by bots. It looks inside every section with a level 2 header (== ==
), grabs the last user signature, checks if they have a bot flag, and then collapses that section, with an option to "[show]". Note, this will not detect mass messages by non-bots nor bots that have had their flag removed. Since we grab the last signature and not the first, you won't miss sections at the wrong level, nor bot sections with human replies.
Installation
editTo install the script, add the following to your common.js page:
importScript('User:Opencooper/collapseBots.js'); // Backlink: [[User:Opencooper/collapseBots.js]]
License
editThis script and any associated files are licensed under Creative Commons Zero.