Last active
September 23, 2019 15:53
-
-
Save mknepprath/ef3ebe6599834e4e042e709dbc8592bb to your computer and use it in GitHub Desktop.
Open https://fast.com/ and paste into the console to start creating a log of your internet speed.
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
const recordedSpeeds = [] | |
setInterval(() => { | |
// Get internet speed | |
let speed = document.getElementById('speed-value').innerText | |
// Get speed units | |
const units = document.getElementById('speed-units').innerText | |
// Flatten speed if Kbps | |
if (units === 'Kbps') speed = "0" | |
// Display in console | |
console.log('='.repeat(Number(speed) / 5), speed) | |
// Save to array of internet speeds | |
recordedSpeeds[Date.now()] = speed | |
// Run the speed test again | |
document.getElementById('speed-progress-indicator').click() | |
}, 60000) // 1 minute | |
// Example output: | |
// ======== 42 | |
// =========== 59 | |
// ========= 47 | |
// ========== 51 | |
// ========== 53 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment