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
/* right click on an entry in the network log, select Copy All as Har | |
* type in console: x = [paste] | |
* paste the following JS code into the console | |
* copy the output, paste into a file | |
* then wget -i [that file] | |
*/ | |
(function(logObj, mime) { | |
var results = []; | |
logObj.log.entries.forEach(function (entry) { | |
if (mime && entry.response.content.mimeType !== mime) return; |
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
function filterOutliers(someArray) { | |
if(someArray.length < 4) | |
return someArray; | |
let values, q1, q3, iqr, maxValue, minValue; | |
values = someArray.slice().sort( (a, b) => a - b);//copy array fast and sort | |
if((values.length / 4) % 1 === 0){//find quartiles |