Skip to content

Instantly share code, notes, and snippets.

@AfroThundr3007730
Last active February 17, 2026 20:32
Show Gist options
  • Select an option

  • Save AfroThundr3007730/15bc9a9cb024d778b2a1ac7d4fc93a3d to your computer and use it in GitHub Desktop.

Select an option

Save AfroThundr3007730/15bc9a9cb024d778b2a1ac7d4fc93a3d to your computer and use it in GitHub Desktop.
Browser bookmarklets
// switch to menlo proxy: πŸ”
javascript:(()=>window.location.replace('https://safe.menlosecurity.com/'+window.location))()
;
// switch to wayback machine: πŸ—ƒοΈ
javascript:(()=>window.location.replace('https://web.archive.org/'+window.location))()
;
// invert the current page: πŸŒ™
javascript:(()=>document.head.insertAdjacentHTML('beforeend','<style>html{filter:invert(1) hue-rotate(180deg)}img{filter:invert(1) hue-rotate(180deg)}</style>'))()
;
// invert the current pdf (pdfJS): πŸ“–
// also set pdfjs.viewerCssTheme=2
javascript:(()=>document.head.insertAdjacentHTML('beforeend','<style>.pdfViewer{filter:invert(1) hue-rotate(180deg)}img{filter:invert(1) hue-rotate(180deg)}</style>'))()
;
// darken images on the current page: πŸ•ΆοΈ
javascript:(()=>document.head.insertAdjacentHTML('beforeend','<style>img{filter:brightness(75%)}</style>'))()
;
// redirect twitch clips to clips.twitch.tv: 🎬
javascript:(()=>window.location.replace(window.location.origin.replace('www','clips')+'/'+window.location.pathname.split('/')[3]))()
;
// prevent F5 and Ctrl+R on page: β›”
javascript:(()=>document.addEventListener('keydown',e=>{if(e.key==='F5'||(e.ctrlKey&&e.key==='r'))e.preventDefault()}))()
;
// alert on page reload events: πŸ”„
javascript:(()=>window.addEventListener('beforeunload',e=>e.preventDefault()))()
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment