Skip to content

Instantly share code, notes, and snippets.

@Gergling
Created April 9, 2018 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gergling/27eb27e4c642d42dfe9caa3e3cde2603 to your computer and use it in GitHub Desktop.
Save Gergling/27eb27e4c642d42dfe9caa3e3cde2603 to your computer and use it in GitHub Desktop.
Canvas attachment for mischief
(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));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment