Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name PANDEMONIUM
- // @namespace REGNAT
- // @version SATANI
- // @description VITAE
- // @match anon.fm/feedback*
- // @match alcxemuct.accountant/feedback*
- // @match https://anon.fm/feedback*
- // @match https://alcxemuct.accountant/feedback*
- // @grant none
- // ==/UserScript==
- document.body.style.background = '#eee'
- const i = document.getElementsByTagName`img`[0];
- const ca = document.createElement`canvas`;
- [ca.width, ca.height] = [164, 62];
- const c = ca.getContext`2d`;
- i.addEventListener('load', doStuff);
- i.style.backgroundColor = '#fff';
- //i.style.padding = '10px';
- function doStuff() {
- const rx = Math.random()*ca.width |0 ;
- const ry = Math.random()*ca.height |0;
- const mrx = -ca.width+rx;
- const mry = -ca.height+ry;
- c.drawImage(i, rx, ry);
- c.drawImage(i, mrx, ry);
- c.drawImage(i, rx, mry);
- c.drawImage(i, mrx, mry);
- document.body.style.backgroundImage = `url(${ca.toDataURL()})` //d
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement