This add-on adds a download button on Docsend documents.
Get this extension on Firefox.
- A "Download" button is injected on the page.
- The page is reloaded to reload all images and avoid token expiration. The URL has a
#download
hash to know the button was pressed. - The navigation buttons are triggered to go through the whole presentation to load all the slides.
- The image urls are retrieved from the DOM.
- The images are loaded from the content script (to use cache) and assembled using jsPDF.
- The assembled PDF is converted to a Data URI and sent to the background script.
- The background script triggers the download. Those last two steps are necessary because of content script limitations.
- The user is redirected to the normal URL without hash.