Last active
May 9, 2025 13:43
Revisions
-
lptn revised this gist
May 3, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,7 @@ Hot to use 1. Open Compare Reports page, e.g. https://gtmetrix.com/compare/a4lhVShE/ek3wqm50 and switch to `Waterfall` tab. 1. Copy paste js code to dev tools console. 1. Use results. ## How results looks like  -
lptn revised this gist
May 3, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ Hot to use ========== 1. Open Compare Reports page, e.g. https://gtmetrix.com/compare/a4lhVShE/ek3wqm50 and switch to `Waterfall` tab. 1. Copy paste js code to dev tools console. 1. Use results. -
lptn revised this gist
May 3, 2018 . 1 changed file with 6 additions and 7 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,19 +1,18 @@ function returnRefinedURL(url) { return url.replace(new RegExp("=\\w+"),"").replace("?&","?").replace("&&","&"); } testsAndRequests = []; document.querySelector('.report-waterfall').contentWindow.document.querySelectorAll('.vsc-initialized table .netTable').forEach((table, index) => { table.querySelectorAll('.netFullHrefLabel.netHrefLabel.netLabel ').forEach((row, rowIndex) => { if (rowIndex === 0) { testsAndRequests.push([]); } testsAndRequests[index].push(row.textContent); }); }); firstTestRequests = testsAndRequests[0].map(returnRefinedURL); secondTestRequests = testsAndRequests[1].map(returnRefinedURL); console.log('In A not in B: ', firstTestRequests.filter(x => !secondTestRequests.includes(x))); console.log('In B not in A: ', secondTestRequests.filter(x => !firstTestRequests.includes(x))); -
lptn revised this gist
May 3, 2018 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ Hot to use ========== 1. Open Compare Reports page, e.g. https://gtmetrix.com/compare/a4lhVShE/ek3wqm50 1. Copy paste js code to dev tools console. 1. Use results -
lptn created this gist
Jan 11, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ function returnRefinedURL(url) { return url.replace(new RegExp("=\\w+"),"").replace("?&","?") .replace("&&","&") } testsAndRequests = [] document.querySelector('.report-waterfall').contentWindow.document.querySelectorAll('.vsc-initialized table .netTable').forEach((table, index) => { table.querySelectorAll('.netFullHrefLabel.netHrefLabel.netLabel ').forEach((row, rowIndex) => { if (rowIndex === 0) { testsAndRequests.push([]) } testsAndRequests[index].push(row.textContent); }) }) firstTestRequests = testsAndRequests[0].map(returnRefinedURL); secondTestRequests = testsAndRequests[1].map(returnRefinedURL); console.log('In A not in B: ', firstTestRequests.filter(x => !secondTestRequests.includes(x))); console.log('In B not in A: ', secondTestRequests.filter(x => !firstTestRequests.includes(x)))