Compare commits

...

2 Commits

Author SHA1 Message Date
8775c21d77 Add example to readme 2024-06-27 02:29:02 +08:00
0ff76556a2 Replace windows illegal filename characters with '_'. 2024-06-27 02:23:29 +08:00
3 changed files with 11 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name AliExpress Invoice Downloader
// @namespace https://www.aliexpress.com
// @version 1.0
// @version 1.1
// @description Adds download buttons to the Aliexpress order page (https://www.aliexpress.com/p/order/index.html) and a bulk download button to download all invoices on the order page to save time.
// @match https://www.aliexpress.com/p/order/index.html*
// @grant GM_download
@ -43,7 +43,10 @@
}
function sanitizeFileName(name) {
const sanitized = name.replace(/[^\x00-\x7F]/g, "").replace(/\s+/g, "_");
const sanitized = name
.replace(/[^\x00-\x7F]/g, "")
.replace(/\s+/g, "_")
.replace(/[/\\?%*:|"<>]/g, "_"); // Remove illegal filename characters
return sanitized.substring(0, 16);
}

View File

@ -5,3 +5,9 @@
### [Mirror (Greasyfork)](https://greasyfork.org/en/scripts/488177-aliexpress-invoice-downloader)
Adds download buttons to the Aliexpress order page (https://www.aliexpress.com/p/order/index.html) and a bulk download button to download all invoices on the order page to save time.
Adds a red "download all invoices" button in the bottom left corner
Adds a button to each order to download individual invoices quickly without needing to open the "order details" page
![order button image](image.png)

BIN
image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB