Last active
January 12, 2026 23:21
-
-
Save Blumed/96911bbda1e24364bce3a446dd4303de to your computer and use it in GitHub Desktop.
Opens google page insight using the current page you're on
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
| 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