FA Auto-Select Search Ratings

Selects all the checkboxes automatically for FurAffinity's search engine.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        FA Auto-Select Search Ratings
// @namespace    FurAffinity
// @version      1.0
// @description  Selects all the checkboxes automatically for FurAffinity's search engine.
// @author       JaysonHusky
// @match        https://www.furaffinity.net/search/
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// @require      https://greasyfork.org/scripts/12228/code/setMutationHandler.js
// ==/UserScript==

(function() {
    'use strict';
	// Delay the script until the page has fully loaded!
	$(document).ready(function(){ 
	
	// Find ALL the checkboxes and select them (It can be narrowed down to just the ratings if required)
	MarkAllBoxes([].slice.call(document.querySelectorAll('input[type="checkbox"][name*="rating"]')));

	// Set Mutuation Handler for them
	setMutationHandler(document, 'input[type="checkbox"]', MarkAllBoxes);

	// Function for Mutuation
	function MarkAllBoxes(nodes) {
		nodes.forEach(function(n){n.checked = true;});
	}
   
	});
})();