ZSMTurker's Larger Radio Buttons and Checkboxes

Makes radio buttons and checkboxes larger. Applies to every webpage

  1. // ==UserScript==
  2. // @author ZSMTurker
  3. // @name ZSMTurker's Larger Radio Buttons and Checkboxes
  4. // @namespace https://greasyfork.org/users/2291
  5. // @description Makes radio buttons and checkboxes larger. Applies to every webpage
  6. // so turn it off if you don't need it, it can slow things down.
  7. // @match http://*/*
  8. // @match https://*/*
  9. // @require http://code.jquery.com/jquery-latest.min.js
  10. // @version 0.1
  11. // ==/UserScript==
  12.  
  13. /* Function that injects CSS rules */
  14. function injectStyles( rule ) {
  15. var div = $( '<div />', {
  16. html: '&shy;<style>' + rule + '</style>'
  17. } ).appendTo( 'body' );
  18. }
  19.  
  20. /*Individual calls to add styles */
  21. injectStyles( 'input[type=radio] { width: 1.5em; height: 1.5em;}' );
  22. injectStyles( 'input[type=checkbox] { width: 1.5em; height: 1.5em;}' );