FA Auto-Select Search Ratings

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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;});
	}
   
	});
})();