NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Tag Change Checkbox Toggle // @namespace Tag Change Checkbox Toggle // @description Creates a link to quickly toggle the tag revert checkboxes en masse // @author DanielTepesKraus || https://www.derpibooru.org/profiles/DanielTepesKraus // @include https://*derpibooru.org/*tag_changes* // @include *derpibooru.org*tag_changes* // @include https://*trixiebooru.org/*tag_changes* // @include *trixiebooru.org/*tag_changes* // @version 1.0 // @grant none // ==/UserScript== for (var i of document.querySelectorAll('input[type="checkbox"]')) { i.checked = false; } var ToggleVar = 0 document.getElementsByClassName("block__header")[0].innerHTML += "<a href='javascript:return_false;' id='SelectAllLink'>Select All</a>" var SetFunct = document.getElementById("SelectAllLink"); SetFunct.onclick = makeSelected; function makeSelected() { if (ToggleVar === 0){ for (var i of document.querySelectorAll('input[type="checkbox"]')) { i.checked = true; } ToggleVar = 1; return; }else{ for (var i of document.querySelectorAll('input[type="checkbox"]')) { i.checked = false; } ToggleVar = 0; } }