Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

dark mode javascript

// Enter code directly in the console for instant dark mode.
var allDivs = document.querySelectorAll('div');

for(var i = 0; i < allDivs.length; i++){
  allDivs[i].style['background-color'] = 'black';
  allDivs[i].style['color'] = 'green';
  allDivs[i].style['font-family'] = 'Monospace';
}
 
PREVIOUS NEXT
Tagged: #dark #mode #javascript
ADD COMMENT
Topic
Name
6+3 =