您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Makes radio buttons and checkboxes larger. Applies to every webpage
- // ==UserScript==
- // @author ZSMTurker
- // @name ZSMTurker's Larger Radio Buttons and Checkboxes
- // @namespace https://greasyfork.org/users/2291
- // @description Makes radio buttons and checkboxes larger. Applies to every webpage
- // so turn it off if you don't need it, it can slow things down.
- // @match http://*/*
- // @match https://*/*
- // @require http://code.jquery.com/jquery-latest.min.js
- // @version 0.1
- // ==/UserScript==
- /* Function that injects CSS rules */
- function injectStyles( rule ) {
- var div = $( '<div />', {
- html: '­<style>' + rule + '</style>'
- } ).appendTo( 'body' );
- }
- /*Individual calls to add styles */
- injectStyles( 'input[type=radio] { width: 1.5em; height: 1.5em;}' );
- injectStyles( 'input[type=checkbox] { width: 1.5em; height: 1.5em;}' );