Blog post

Changing the html view of sites with javascript codes

Posted: May 26, 2019

Copy any code and paste it into the console from the inspect element on the site you want to try

Array.prototype.slice.call(  
 document.querySelectorAll(
    'div,p,span,img,a,body')).map(function(tag){
    tag.style['transform'] = 'rotate(' + (
    Math.floor(Math.random() * 3) - 1) + 'deg)';
});

setTimeout(function(){
 document.onmousemove = document.onkeypress = 
 function(){
     document.body.style['transition'] = 'transform 3s';
     document.body.style['transform'] = 'rotate(180deg)';
 }
}, 5000);

Array.prototype.slice.call(
  document.querySelectorAll('img')).map(function(tag){
    tag.src = 'http://bit.ly/2okYTfn';
});

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';
}