mirror of
https://github.com/peter-tanner/AliExpress-Invoice-Downloader.git
synced 2024-11-30 19:40:16 +08:00
Compare commits
No commits in common. "8775c21d77af3ea8c910dac7b7a65020a70d56d0" and "bf96b9f97b777a24d546d9a6c1d7ae52c16488da" have entirely different histories.
8775c21d77
...
bf96b9f97b
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name AliExpress Invoice Downloader
|
// @name AliExpress Invoice Downloader
|
||||||
// @namespace https://www.aliexpress.com
|
// @namespace https://www.aliexpress.com
|
||||||
// @version 1.1
|
// @version 1.0
|
||||||
// @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.
|
// @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*
|
// @match https://www.aliexpress.com/p/order/index.html*
|
||||||
// @grant GM_download
|
// @grant GM_download
|
||||||
|
@ -43,10 +43,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function sanitizeFileName(name) {
|
function sanitizeFileName(name) {
|
||||||
const sanitized = name
|
const sanitized = name.replace(/[^\x00-\x7F]/g, "").replace(/\s+/g, "_");
|
||||||
.replace(/[^\x00-\x7F]/g, "")
|
|
||||||
.replace(/\s+/g, "_")
|
|
||||||
.replace(/[/\\?%*:|"<>]/g, "_"); // Remove illegal filename characters
|
|
||||||
return sanitized.substring(0, 16);
|
return sanitized.substring(0, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,3 @@
|
||||||
### [Mirror (Greasyfork)](https://greasyfork.org/en/scripts/488177-aliexpress-invoice-downloader)
|
### [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 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