NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @namespace https://openuserjs.org/users/CoverUp // @name Speedtest Ads Remover // @description Remove Ads from Speedtest // @copyright 2018, CoverUp (https://openuserjs.org/users/CoverUp) // @author CoverUp // @license MIT // @version 1.1.1 // @match https://www.speedtest.net/* // @include https://www.speedtest.net/* // @grant none // ==/UserScript== // ==OpenUserJS== // @author CoverUp // ==/OpenUserJS== (function () { 'use strict'; window.sacarframes = function () { console.log("Removing Ads.."); var iframes = document.getElementsByTagName('iframe'); while (iframes.length > 0) { iframes[0].remove(); } }; console.log("Speedtest Ads Remover 1.0.1"); var oldXHR = window.XMLHttpRequest; function newXHR() { var realXHR = new oldXHR(); realXHR.addEventListener("readystatechange", function () { if (realXHR.readyState == 4 && realXHR.status == 200) { console.log("Ajax call end"); setTimeout(window.sacarframes,1000); } }, false); return realXHR; } window.XMLHttpRequest = newXHR; })();