reference icon indicating copy to clipboard operation
reference copied to clipboard

Cheatsheet request: make printer friendly

Open hereisderek opened this issue 2 years ago • 1 comments

first of all, thanks for providing this beautifully styled awesome quick reference tool.

I'm wondering if there's a best way to make the page printer friendly? currently if you print directly it's gonna lose all of the styling/page arrengment, or with a big chunk of the space for title etc.

hereisderek avatar Aug 12 '23 11:08 hereisderek

for the timebeing, im just using this script to remove the header and footer

const array = [
	"body > header",
	"body > div.mx-auto.flex.flex-wrap.md\\:py-5.flex-col.md\\:flex-row.items-center > div.flex.flex-col.w-full.mx-auto.text-center.my-8",
	"body > footer"
].map((x) => document.querySelector(x)).forEach((e)=> e.style.display = "none")

or if you prefer you could use my script here: https://greasyfork.org/en/scripts/474285-cheatsheets-header-footer-removal

hereisderek avatar Aug 31 '23 11:08 hereisderek