NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name CNN remove video // @version 0.1 // @description Monitor all CNN pages for video elements and remove them // @author Braindongle // @match *://*.cnn.com/* // @grant none // @license MIT // ==/UserScript== // Yes, it runs every 200ms. The site is constantly trying to load video. // I suspect that the load of running this is way less than the alternative of // letting the videos play (function () { 'use strict'; function removeElements(elements) { var index; for (index = elements.length - 1; index >= 0; index--) { elements[index].parentNode.removeChild(elements[index]); } } function findMedia() { removeElements(document.querySelectorAll('[class^=media], .cnnVidplayer')); setTimeout(findMedia, 200); } findMedia(); })();