Created
August 17, 2024 10:37
-
-
Save odtmusisi19/84d6f9faf3e5da5074e88ac0ab4405b8 to your computer and use it in GitHub Desktop.
gif blocker
This file contains hidden or 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 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