Unborder

Injects some CSS to remove the default active state dotted border from objects

  1. // ==UserScript==
  2. // @name Unborder
  3. // @namespace binoc.software.projects.userscript.unborder
  4. // @description Injects some CSS to remove the default active state dotted border from objects
  5. // @include http://*
  6. // @include https://*
  7. // @version 1.1
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. function funcUnborder() {
  12. var style = document.createElement('style');
  13. style.type = 'text/css';
  14. style.id = 'binoc.software.projects.userscript.unborder';
  15. style.innerHTML = 'a:active, a:focus, input, object, canvas, embed, video, audio { outline:none; -moz-outline-style: none; } button::-moz-focus-inner { border: 0; }';
  16.  
  17. document.getElementsByTagName('head')[0].appendChild(style)
  18. }
  19.  
  20. window.onload = funcUnborder;