User:Tancre/2/hackpact/Tags Highlighter: Difference between revisions

From XPUB & Lens-Based wiki
< User:Tancre‎ | 2‎ | hackpact
Line 2: Line 2:
== Unspatial Spaces ==
== Unspatial Spaces ==
[[File:Screenshot_2019-12-03_UNSPACIAL_SPACES.png | 1000px]]
[[File:Screenshot_2019-12-03_UNSPACIAL_SPACES.png | 1000px]]
=== Non-Spatial ===
=== Empty space===
 
[[File:Empty.PNG | 400px]]
<source lang="html5">
=== Non-Spatial space===
 
[[File:non_spatial.PNG | 400px]]
<!DOCTYPE html>
=== 1D space ===
<html style="width: 0px">
[[File:1d.PNG | 400px]]
<head>
=== Invisible Space ===
<title>Non-spatial Space</title>
[[File:invisible.PNG | 400px]]
</head>
=== about:blank ===
</html>
[[File:about_blank.PNG | 400px]]
 
 
</source>


== DOM Annihilator ==
== DOM Annihilator ==

Revision as of 22:35, 3 December 2019

Unspatial Spaces

Screenshot 2019-12-03 UNSPACIAL SPACES.png

Empty space

Empty.PNG

Non-Spatial space

Non spatial.PNG

1D space

1d.PNG

Invisible Space

Invisible.PNG

about:blank

About blank.PNG

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);