Add a "Remove Selected" button

This adds a second "Remove Selected" button to the top of the submission notifications pages.

  1. // ==UserScript==
  2. // @name Add a "Remove Selected" button
  3. // @namespace https://github.com/f1r3w4rr10r/fa-utils
  4. // @version 1.0.0
  5. // @description This adds a second "Remove Selected" button to the top of the submission notifications pages.
  6. // @author f1r3w4rr10r
  7. // @match https://www.furaffinity.net/msg/submissions/*
  8. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (async function () {
  14. "use strict";
  15.  
  16. const topButtonsContainer = document.querySelector(
  17. "section.gallery-section .aligncenter",
  18. );
  19.  
  20. const button = document.createElement("button");
  21. button.className = "standard remove-checked";
  22. button.type = "submit";
  23. button.name = "messagecenter-action";
  24. button.value = "remove_checked";
  25. button.textContent = "Remove Selected";
  26. topButtonsContainer.appendChild(button);
  27. })();