Last active
March 9, 2018 00:49
-
-
Save longzheng/6b6746db0b72500bc0f8512869d0b3a6 to your computer and use it in GitHub Desktop.
Userscript to run speedtest.net at interval
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Run speedtest.net at interval | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description N/A | |
// @match http*://www.speedtest.net/* | |
// @author Long Zheng | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var days = 0; | |
var hours = 0; | |
var minutes = 5; | |
var seconds = 0; | |
var url = "https://www.speedtest.net/run"; | |
setTimeout ( function () { | |
window.location = url; | |
}, (((days * 24 + hours) * 60 + minutes) * 60 + seconds) * 1000 | |
); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment