Protect Eye

Set Background Color to protect eys.

  1. // ==UserScript==
  2. // @name Protect Eye
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.6
  5. // @description Set Background Color to protect eys.
  6. // @author You
  7. // @match http://*/*
  8. // @match https://*/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. window.onload = function() {
  15. var elements = document.querySelectorAll('*');
  16. for (var i = 0; i < elements.length; i++) {
  17. elements[i].style.setProperty('background-color', '#C7EDCC', 'important');
  18. elements[i].style.setProperty('color', 'black', 'important');
  19. }
  20. };
  21. })();