Skip to content

Instantly share code, notes, and snippets.

@Bugaddr
Created April 29, 2026 09:52
Show Gist options
  • Select an option

  • Save Bugaddr/346e42ede88871515b5c2b42b7b4e9bf to your computer and use it in GitHub Desktop.

Select an option

Save Bugaddr/346e42ede88871515b5c2b42b7b4e9bf to your computer and use it in GitHub Desktop.
Collection of various bookmarklets

Bookmarklets collection

  1. Darken firefox pdfs

    javascript:(function(){var css='.textLayer{filter:invert(90%)!important;mix-blend-mode:screen!important;}.canvasWrapper canvas{filter:invert(90%)!important;}';var head=document.getElementsByTagName('head')[0];var style=document.createElement('style');if(!window.pdfInvertCounter){window.pdfInvertCounter=1;}else{window.pdfInvertCounter++;if(window.pdfInvertCounter%2==0){var css='.textLayer{filter:invert(0%)!important;mix-blend-mode:normal!important;}.canvasWrapper canvas{filter:invert(0%)!important;}';}}style.type='text/css';if(style.styleSheet){style.styleSheet.cssText=css;}else{style.appendChild(document.createTextNode(css));}head.appendChild(style);}());
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment