User:Tancre/2/hackpact/Tags Highlighter

From XPUB & Lens-Based wiki
< User:Tancre‎ | 2‎ | hackpact

Unspatial Spaces

1D

<!DOCTYPE html>
<html>
<head>
	<title>1D Space</title>
</head>
<body style="display: none">
</body>
</html>

Non-Spatial

<!DOCTYPE html>
<html style="width: 0px">
<head>
	<title>Non-spatial Space</title>
</head>
</html>

DOM Annihilator

document.documentElement.remove()


Infinite Spaces

2D

3D

Auto Scrolling

function pageScroll() {
    window.scrollBy(0,10);
    scrolldelay = setTimeout(pageScroll,10);
}

pageScroll();
var all = document.getElementsByTagName('*');


Tags Highliter

function tagHighliter(){
  
  for (var i = 1; i < all.length; i++) {
    var s = all[i].style

    const r = Math.floor(Math.random() * 256);
    const g = Math.floor(Math.random() * 256);
    const b = Math.floor(Math.random() * 256);
    s.borderColor = 'rgb('+ g +','+ b + ',' + r + ')';
    //s.background = 'rgb('+ r +','+ g + ',' + b + ')';
    s.borderStyle = 'dashed';
    s.borderWidth = '4px';
    //s.fontSize = '200px';
  }
}

tagHighliter();

var interval = setInterval(function () { tagHighliter(); }, 10000);