NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Special spoop // @namespace Spoop // @description A more advanced spoop! // @version 1 // @include *://boards.4chan.org/* // @grant none // @license MIT // ==/UserScript== putskelly = function(x, y) { const tag = document.createElement('img'); tag.setAttribute('src', `https://s.4cdn.org/image/skeletons/${Math.ceil(Math.random() * 23)}.gif`); tag.style = `position: fixed; left: ${(window.innerWidth-200)*x}px; top: ${(window.innerHeight-200)*y}px;`; document.body.appendChild(tag); } line = function(x1, y1, x2, y2) { var numpoints = 20 for(let i = 0; i < numpoints; i++) { putskelly(x1 - i/numpoints * (x1-x2), y1 - i/numpoints * (y1-y2)) } } line(0.5,0, 0.5,1) line(0,0.5, 1,0.5) line(0.5,0, 1,0) line(1,0.5, 1,1) line(0.5,1, 0,1) line(0,0.5, 0,0)