If you are using Firefox, you can also use the Add-on "HackTheWeb" [1] that automates the suggestion by moron4hire.
Right-click on the page, and select "HackTheWeb". Whatever page element you hover your pointer over will be given a red border, and then you use hotkeys to perform actions.
To do the same thing as the example above, it would be: right-click on page, select HackTheWeb, point mouse at the content you want, hit "w" (widen) until you have the whole section you want, and then "i" (isolate) to remove everything else. From there you're ready to print to PDF.
For some reason I had to be viewing the actual README.md file, not looking at GitHub's auto-readme-display.
HackTheWeb also lets you view the element's javascript, show the xpath of element, and convert text to black on white (very useful for content whose text and background colors don't work well together).
I've used it for several years, and wouldn't want to give it up. It's based on the old Aardvark add-on that did the same kind of thing, but Aardvark wasn't updated as Firefox matured and eventually no longer worked.
Right-click on the page, and select "HackTheWeb". Whatever page element you hover your pointer over will be given a red border, and then you use hotkeys to perform actions.
To do the same thing as the example above, it would be: right-click on page, select HackTheWeb, point mouse at the content you want, hit "w" (widen) until you have the whole section you want, and then "i" (isolate) to remove everything else. From there you're ready to print to PDF.
For some reason I had to be viewing the actual README.md file, not looking at GitHub's auto-readme-display.
HackTheWeb also lets you view the element's javascript, show the xpath of element, and convert text to black on white (very useful for content whose text and background colors don't work well together).
I've used it for several years, and wouldn't want to give it up. It's based on the old Aardvark add-on that did the same kind of thing, but Aardvark wasn't updated as Firefox matured and eventually no longer worked.
[1] https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&c...