您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Selects all the checkboxes automatically for FurAffinity's search engine.
当前为
// ==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;}); } }); })();