Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheatsheet request: make printer friendly #449

Open
hereisderek opened this issue Aug 12, 2023 · 1 comment
Open

Cheatsheet request: make printer friendly #449

hereisderek opened this issue Aug 12, 2023 · 1 comment
Assignees
Labels
request Cheatsheet request

Comments

@hereisderek
Copy link

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 hereisderek added the request Cheatsheet request label Aug 12, 2023
@hereisderek
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Cheatsheet request
Projects
None yet
Development

No branches or pull requests

2 participants