Last active
July 3, 2024 01:50
-
-
Save rudiedirkx/58679c4816d45dd98891 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
javascript: | |
alert((function(list) { | |
console.log(list); | |
var arr = []; | |
for (var host in list) arr.push(host + ': ' + list[host]); | |
arr.sort(function(a, b) { return parseInt(b.split(': ')[1]) - parseInt(a.split(': ')[1]); }); | |
return arr; | |
})(performance.getEntriesByType('resource').reduce(function(list, res) { | |
var host = res.name.match(/\/\/([^/]+)/)[1]; | |
list[host] ? (list[host]++) : (list[host] = 1); | |
return list; | |
}, {})).join("\n")); | |
void(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment