stefansundin / one-click-screenshot

:camera: Take full-page screenshots in Chrome and Firefox. NOTE: Use the built-in screenshot feature instead. In Firefox you can simply right-click and use "Take Screenshot". In Chrome you have to open the dev tools, enable device screen emulation, use the menu and click "Capture full size screenshot".
GNU General Public License v3.0
22 stars 7 forks source link

screenshot including Addressbar - possible? #6

Open dulhaver opened 7 years ago

dulhaver commented 7 years ago

just discovering your add-on on firefox.

by default the content of the entire website is captured. But I have a case where I want the Address Bar on the Top of the shot as well (because I want to see the URL).

How is that possible to achieve?

stefansundin commented 7 years ago

Hello.

Unfortunately I do not think this would be easy. I am using the captureVisibleTab API, and it only takes a screenshot of the content inside the tab.

However, if you don't need the exact graphics of the address bar, you could modify the code to print the URL at the top. The final screenshot is assembled using a canvas, so it should be possible to draw extra information on it.