// ==UserScript== // @name Hide Forum Images // @version 2026.1.28 // @author Adam Lui // @namespace https://adamlui.com // @description Hides images/videos from XenForo, vBulletin & Discourse forums. // @license MIT // @icon https://cdn.jsdelivr.net/gh/adamlui/userscripts@ccc23a5/hide-forum-images/assets/images/icons/private-eye/black/icon48.png // @icon64 https://cdn.jsdelivr.net/gh/adamlui/userscripts@ccc23a5/hide-forum-images/assets/images/icons/private-eye/black/icon64.png // @compatible chrome // @compatible firefox // @compatible opera // @compatible safari // @compatible edge // @match *://*/* // @downloadURL https://raw.githubusercontent.com/adamlui/userscripts/master/hide-forum-images/hide-forum-images.user.js // @updateURL https://raw.githubusercontent.com/adamlui/userscripts/master/hide-forum-images/hide-forum-images.user.js // @homepageURL https://github.com/adamlui/userscripts // @supportURL https://github.com/adamlui/userscripts/issues // @contributionURL https://ko-fi.com/adamlui // ==/UserScript== (() => { 'use strict' if (document.querySelector('[src*="vbulletin"], [src*="discourse"]') || /xenforo/i.test(document.querySelector('.copyright')?.textContent) ) { const style = document.createElement('style') style.textContent = `img, [style*="background-image"], [class*="avatar"], [class*="player"] { display:none !important }` document.head.append(style) } })()