Skip to content

Instantly share code, notes, and snippets.

@nor24o
nor24o / Tracking_number_from_ali.js
Last active December 3, 2024 05:08
A script to extract Tracking id from Aliexpress order list
//to use this js go to order list the open developer mote and paste the following code in the console:
//VARIANT 1 just tdisplay
var elems = Array.prototype.slice.call(document.querySelectorAll('.order-item'));
elems.forEach(function(elem) {
var status = elem.querySelector('.order-item-header-status-text');
var orderInfo = elem.querySelector('.order-item-header-right-info');
if (status && status.textContent === 'Awaiting delivery' && orderInfo) {
var orderIdText = orderInfo.textContent;