NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Millenicom Speedtest - Jitter
// @namespace milleni_jitter
// @description Millenicom Speedtest - Add jitter test
// @include http://milleni.speedtestcustom.com/*
// @include https://milleni.speedtestcustom.com/*
// @version 1.0
// @author Volkan K.
// @license MIT
// @run-at document-end
// ==/UserScript==
// Function : addScript()
// Source: http://userscripts.org/groups/51
function addScript(body, js, link) {
if (!body){
body = document.body;
}
var script = document.createElement('script');
if (!body) return;
script.type = 'text/javascript';
if ( (js=='') && (link!='') ){
script.src = link;
} else {
script.textContent = js;
}
body.appendChild(script);
//return script;
}
addScript(false,'window.ST_PARAMS.testConfiguration.testTypes=["ping", "jitter", "download", "upload"];');
document.getElementById("root").innerHTML="";
var tb=document.querySelector("script[src*='testBundle.js']");
var tb_original_src=tb.getAttribute("src");
var tb_original_html=tb.outerHTML;
//tb.setAttribute("src",tb_original_src+"#jitter");
tb.remove();
var new_el=document.body.appendChild(document.createElement("SCRIPT"));
new_el.setAttribute("src",tb_original_src);