Removes Amazon Prime overlay ad on Twitch streams. Check GitHub page for the demonstration image.
// ==UserScript== // @name Twitch.tv Prime Pop-up Remover // @namespace https://github.com/mirbyte/TwitchTV-Userscripts/edit/main/Amazon%20Prime%20Pop-up%20Remover.js // @match https://www.twitch.tv/* // @grant none // @version 1.1 // @author mirbyte // @description Removes Amazon Prime overlay ad on Twitch streams. Check GitHub page for the demonstration image. // @icon https://banner2.cleanpng.com/20180513/xie/kisspng-twitch-computer-icons-logo-5af8037d689af0.0981376915262032614285.jpg // ==/UserScript== (function() { 'use strict'; function ####Prime() { var primeOffersDiv = document.querySelector('.Layout-sc-1xcs6mc-0.bHAUON'); if (primeOffersDiv) { primeOffersDiv.remove(); } } document.addEventListener('DOMContentLoaded', ####Prime); // Watch for changes in the DOM var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutation) { ####Prime(); }); }); observer.observe(document.body, { subtree: true, childList: true }); })();