Skip to content

Instantly share code, notes, and snippets.

@odtmusisi19
Created August 17, 2024 10:37
Show Gist options
  • Select an option

  • Save odtmusisi19/84d6f9faf3e5da5074e88ac0ab4405b8 to your computer and use it in GitHub Desktop.

Select an option

Save odtmusisi19/84d6f9faf3e5da5074e88ac0ab4405b8 to your computer and use it in GitHub Desktop.
gif blocker
// ==UserScript==
// @name New Userscript
// @namespace https://staybrowser.com/
// @version 0.1
// @description Template userscript created by Stay
// @author You
// @match :///*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var images = document.querySelectorAll('img');
for (let img of images) {
if (img.src.endsWith('.gif')) {
console.log("Removing img with GIF:", img);
img.remove();
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment