Skip to content

Instantly share code, notes, and snippets.

@Gergling
Created April 9, 2018 13:50

Revisions

  1. Gergling created this gist Apr 9, 2018.
    10 changes: 10 additions & 0 deletions mischief.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    (function (document) {
    var canvas = document.createElement('canvas');
    canvas.style.width='100%';
    canvas.style.height='100%';
    canvas.style.top=0;
    canvas.style.left=0;
    canvas.style.position='absolute';
    document.body.appendChild(canvas);
    return canvas;
    }(document));