mirror of
https://github.com/peter-tanner/AliExpress-Invoice-Downloader.git
synced 2024-11-30 11:30:17 +08:00
Compare commits
2 Commits
bf96b9f97b
...
8775c21d77
Author | SHA1 | Date | |
---|---|---|---|
8775c21d77 | |||
0ff76556a2 |
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user