Img changer

changes most (some exeptions) images on a page

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Img changer
// @version      0.1
// @description  changes most (some exeptions) images on a page
// @author       Not you
// @match        *://*/*
// @grant        none
// @namespace https://greasyfork.org/users/12092
// ==/UserScript==
var src = "https://cloud.githubusercontent.com/assets/10279512/8022411/7ce67eb0-0c84-11e5-9017-6b87ae8eff87.jpg" 
/*CHANGE THE URL IN QUOTES TO A URL. URL MUST HAVE HTTPS:// BEFORE IT. NOT HTTP://
IF YOU CANNOT FIND ONE USE THIS: http://httpsimage.com/
THANK YOU
*/
function replace() {
var inputs = document.getElementsByTagName("input");
    var inputimgs = [];
    for(var i = 0;i < inputs.length;i ++) {
        if(inputs[i].type == "image") inputimgs = inputimgs.concat(inputs[i]);
    }
var imgs = document.getElementsByTagName("img");
//var imgs2 = imgs.concat(inputimgs);
for(var i = 0;i < imgs.length;i ++) {
    var width = imgs[i].clientWidth;
    var height = imgs[i].clientHeight;
    imgs[i].srcset = src;
    imgs[i].src = src;
    imgs[i].width = width;
    imgs[i].height = height;
    console.log(imgs[i]);
}
    for(var i = 0;i < inputimgs.length;i ++) {
    var width = inputimgs[i].clientWidth;
    var height = inputimgs[i].clientHeight;
    inputimgs[i].srcset = src;
    inputimgs[i].src = src;
    inputimgs[i].width = width;
    inputimgs[i].height = height;
    }
}

setInterval(replace(), 1000);