fuzzyworld

tools / files / userscripts / remove-video-SIMPSONS-WIKI / script.user.js

script.user.js

629 B · history · blame

1// ==UserScript==
2// @name Simpsons Wiki Remove Video
3// @namespace https://gitlab.com/PavelSafronov/tools
4// @version 0.1
5// @description Hide the video on Simpsons Wiki articles
6// @author Pavel Safronov
7// @match https://simpsons.fandom.com/wiki/*
8// @icon https://www.google.com/s2/favicons?domain=fandom.com
9// @grant none
10// ==/UserScript==
11
12(function() {
13 'use strict';
14
15 const videos = document.querySelectorAll('[itemprop="video"]');
16 if (videos) {
17 const video = videos[0];
18 if (video) {
19 video.style.display = "none";
20 }
21 }
22})();