FA Auto-Select Search Ratings

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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;});
	}
   
	});
})();