Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. javascript: (function() {
  2. var css =
  3. "a:focus, input:not(disabled):focus, textarea:focus, button:focus, select:focus { outline: 3px solid !important; transition: all linear 0.2s; }",
  4. head = document.head || document.getElementsByTagName("head")[0],
  5. style = document.createElement("style");
  6. style.type = "text/css";
  7. if (style.styleSheet) {
  8. style.styleSheet.cssText = css;
  9. } else {
  10. style.appendChild(document.createTextNode(css));
  11. }
  12. head.appendChild(style);
  13. var div = document.createElement("div");
  14. div.innerHTML = "Focus Enabled";
  15. div.style.position = "fixed";
  16. div.style.bottom = 0;
  17. div.style.right = 0;
  18. div.style.background = "blue";
  19. div.style.color = "white";
  20. document.body.appendChild(div);
  21. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement