Skip to content

Instantly share code, notes, and snippets.

@AfroThundr3007730
Last active June 20, 2026 03:26
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:(async()=>window.location.replace('https://safe.menlosecurity.com/'+window.location))()
;
// switch to wayback machine: πŸ—ƒοΈ
javascript:(async()=>window.location.replace('https://web.archive.org/'+window.location))()
;
// invert the current page: πŸŒ™
javascript:(async()=>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:(async()=>document.querySelector('.pdfViewer').style.filter = 'invert(1) hue-rotate(180deg)')()
;
// darken images on the current page: πŸ•ΆοΈ
javascript:(async()=>document.head.insertAdjacentHTML('beforeend','<style>img{filter:brightness(75%)}</style>'))()
;
// redirect twitch clips to clips.twitch.tv: 🎬
javascript:(async()=>window.location.replace(window.location.origin.replace('www','clips')+'/'+window.location.pathname.split('/')[3]))()
;
// prevent F5 and Ctrl+R on page: β›”
javascript:(async()=>document.addEventListener('keydown',e=>{if(e.key==='F5'||(e.ctrlKey&&e.key==='r'))e.preventDefault()}))()
;
// alert on page reload events: πŸ”„
javascript:(async()=>window.addEventListener('beforeunload',e=>e.preventDefault()))()
;
// show real clip date (requires API key): πŸ—“οΈ
javascript:(async()=>{const t='XXXXX',a='YYYYY',c=window.location.pathname.split('/').pop(),n=document.querySelector('.timestamp-metadata__bar + p');await fetch(`https://api.twitch.tv/helix/clips?id=${c}`,{headers:{Accept:'application/vnd.twitchtv.v5+json',Authorization:`Bearer ${a}`,'Client-ID':t},cache:'force-cache'}).then(t=>t.json()).then(a=>n.innerText=a.data[0]?.created_at)})()
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment