Skip to content

Instantly share code, notes, and snippets.

@zytzagoo
Created November 19, 2014 14:28
Show Gist options
  • Save zytzagoo/54694a8f65b7b87f9be1 to your computer and use it in GitHub Desktop.
Save zytzagoo/54694a8f65b7b87f9be1 to your computer and use it in GitHub Desktop.
Ran via devtools console to extract google mobile friendly tool's complete blocked/failed resource URIs (from the results page)
var jq = document.createElement('script');
jq.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
document.getElementsByTagName('head')[0].appendChild(jq);
setTimeout(function(){
jQuery.noConflict();
var lists = jQuery('.url-list');
lists.each(function(i,el) {
var $lis = jQuery(el).find('li');
$lis.each(function(i, li) {
console.log($(li).attr('title'));
});
});
}, 500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment