delete gifs reddit

I have developed a little script that will delete the gifs from old reddit (might also work in new reddit, but untested). Helpfull for when you are a work and want to visit reddit, but gifs makes the situation a little complicated. // @author You

// ==UserScript==
// @name         delete gifs reddit
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  I have developed a little script that will delete the gifs from  old reddit (might also work in new reddit, but untested). Helpfull for when you are a work and want to visit reddit, but gifs makes the situation a little complicated. // @author       You
// @match        *.reddit.com/*
// @icon         https://www.google.com/s2/favicons?domain=reddit.com
// @grant        none
// ==/UserScript==

(function() {
   
    setInterval(function(){
      
    var images = document.getElementsByTagName('img');
var regex = /external-preview.redd.it/gm
    for (let image of images) {
  if(regex.test(image.src)){
      image.remove()
  }
}
    }, 1000);

})();// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        *.reddit.com/*
// @icon         https://www.google.com/s2/favicons?domain=reddit.com
// @grant        none
// ==/UserScript==

(function() {
   
    setInterval(function(){
      
    var images = document.getElementsByTagName('img');
var regex = /external-preview.redd.it/gm
    for (let image of images) {
  if(regex.test(image.src)){
      image.remove()
  }
}
    }, 1000);

})();