This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Amazon Invoice Download All | |
// @icon https://www.amazon.ca/favicon.ico | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0.0 | |
// @require https://code.jquery.com/jquery-3.6.0.min.js | |
// @description Download all invoices | |
// @author HR | |
// @include /.*\.amazon\.ca\/gp\/.*\/order\-history.*/ | |
// @grant none |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PNG toqutree::render(){ | |
auto height = (unsigned int) pow(2, root->dimension); | |
// Create an image four times as large, then crop later. | |
PNG* output = render(root); | |
PNG local = *output; | |
delete output; | |
return local; | |
} | |
PNG* toqutree::render(Node* root) { |