Skip to content

Instantly share code, notes, and snippets.

@longzheng
Last active March 9, 2018 00:49
Show Gist options
  • Save longzheng/6b6746db0b72500bc0f8512869d0b3a6 to your computer and use it in GitHub Desktop.
Save longzheng/6b6746db0b72500bc0f8512869d0b3a6 to your computer and use it in GitHub Desktop.
Userscript to run speedtest.net at interval
// ==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