Created
April 18, 2024 14:24
-
-
Save JAffleck/8e63ccbb04ef296d41cee7d2345e122d to your computer and use it in GitHub Desktop.
PrintMe - Image remover, and table row/cell background clearer to save ink
This file contains 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
// To use this bookmarklet just urlencode this, and remove the comment lines, create a new bookmark and copy this into the url | |
javascript:(function(){ | |
//remove image elems | |
for (let i= document.images.length; i-->0;) | |
document.images[i].parentNode.removeChild(document.images[i]); | |
// make TR and TD elems background white | |
let tableElems = document.querySelectorAll('tr, td'); | |
for(let i=0; i<tableElems.length;i++) | |
tableElems[i].style.backgroundColor='white';})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment