BOD Style

Jose Enrique Ayala Villegas

  1. // ==UserScript==
  2. // @name BOD Style
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1
  5. // @description Jose Enrique Ayala Villegas
  6. // @author You
  7. // @match https://bod.bodmillenium.com/E2F-BIN/E2VCNR01.PGM
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. document.onselectstart = function(){ return false;};
  13. document.onmousedown = function(e){
  14. if(e.target.className == 'boxtecla'){
  15. e.target.firstChild.style.color = "yellow";
  16. e.target.style.backgroundColor = "green";
  17. } else if(e.target.className == 'boxtecla_txt'){
  18. e.target.parentNode.style.backgroundColor = "green";
  19. e.target.style.color = "yellow";
  20. }
  21. };
  22. document.onmouseup = function(e){
  23. if(e.target.className == 'boxtecla'){
  24. e.target.firstChild.style.color = "";
  25. e.target.style.backgroundColor = "";
  26. } else if(e.target.className == 'boxtecla_txt'){
  27. e.target.parentNode.style.backgroundColor = "";
  28. e.target.style.color = "";
  29. }
  30. };
  31. document.onmouseout = document.onmouseup;
  32. })();