Skip to content

Instantly share code, notes, and snippets.

@Blumed
Last active January 12, 2026 23:21
Show Gist options
  • Select an option

  • Save Blumed/96911bbda1e24364bce3a446dd4303de to your computer and use it in GitHub Desktop.

Select an option

Save Blumed/96911bbda1e24364bce3a446dd4303de to your computer and use it in GitHub Desktop.
Opens google page insight using the current page you're on
const bookmarklet = { name: "bookmarklet__google-page-insight-current-page?", version: "1.0.02" };
try {
const currentSite = window.location.href;
window.open('https://pagespeed.web.dev/report?url=' + currentSite, '_blank', 'noopener,noreferrer');
console.log(`${bookmarklet.name} : ${bookmarklet.version}`);
} catch (error){
console.log(`${bookmarklet.name} : ${bookmarklet.version} : ${error}`);
}
// Paste the one line below into your bookmark url field for this code to work
javascript:(function(){const bookmarklet={name:"bookmarklet__google-page-insight-current-page?",version:"1.0.02"};try{const o=window.location.href;window.open("https://pagespeed.web.dev/report?url="+o,"_blank","noopener,noreferrer"),console.log(`${bookmarklet.name} : ${bookmarklet.version}`)}catch(o){console.log(`${bookmarklet.name} : ${bookmarklet.version} : ${o}`)}}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment