Skip to content
This page is archived. The script relies on the old layout of the target websites. All archived pages

InPost tracking number to link converter

The code can be run in Violentmonkey extension for Google Chrome, Firefox, Microsoft Edge.

jQuery(function($) {
// manager.paczkomaty.pl
// allegro.pl
$('.number > span, div.jsAddPackage.jsonLabel li').each(function (index, item) {
item = $(item);
var value = $.trim(item.text());
if (/^\d{24}$/.test(value))
{
item.html(
$('<a/>')
.text(value)
.attr('href', 'https://twoj.inpost.pl/pl/znajdz-przesylke?parcel=' + value)
.attr('target', '_blank')
.get()
);
}
});
});