Created
June 25, 2019 16:20
-
-
Save MatMercer/bd3859cb77dbc63ec25c975556ec9d99 to your computer and use it in GitHub Desktop.
Cage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match *://*/* | |
// @grant none | |
// @require https://code.jquery.com/jquery-3.4.1.slim.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
jQuery(document).ready(() => { | |
var rand = () => { return (Math.floor(Math.random() * 500)) + 100}; | |
var url = (el) => { return "https://www.placecage.com/c/" + el.width + "/" + el.height;} | |
setInterval(() => {jQuery('img').each((idx, el) => {jQuery(el).attr("src", url(el))})}, 2000); | |
}); | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment