Skip to content

Instantly share code, notes, and snippets.

@MatMercer
Created June 25, 2019 16:20
Show Gist options
  • Save MatMercer/bd3859cb77dbc63ec25c975556ec9d99 to your computer and use it in GitHub Desktop.
Save MatMercer/bd3859cb77dbc63ec25c975556ec9d99 to your computer and use it in GitHub Desktop.
Cage
// ==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