AliExpress Ultra Efficient

Sort Price from Low to High, Put Items in View list All Automatically

< Σχολιασμός για τον κώδικα AliExpress Ultra Efficient

Αναφορά: Καλός - ο κώδικας λειτουργεί

§
Δημοσιεύτηκε: 30/11/2020
Επεξεργάστηκε: 30/11/2020

The script not only doesn't work, but also reloads the search page in a loop

MikhoulΔημιουργός
§
Δημοσιεύτηκε: 30/11/2020

It work I use it every day.

But the loop is normal since it add automatically the parameter to the URL and Aliexpress reload the website one time for each parameter, so 3-4 time in total.

What the script do is just change the URL by appending automatically url parameters.

§
Δημοσιεύτηκε: 30/11/2020

What these lines does?

if (window.location.href.indexOf("&SortType=default") > -1) // Vérifie si ""&SortType=default" existe ET si OUI l'enlève
{
location.href = location.href.replace(/(\&S(\w+)=(\w+)ault)/, ""); //Cherche "&SortType=default" et le remplace par RIEN
}

if (window.location.href.indexOf("&g=y") > -1) // Vérifie si "&g=y" existe ET si OUI l'enlève
{
location.href = location.href.replace(/(\&g)=(\y)/, ""); //Cherche "&g=y" et le remplace par RIEN
}

MikhoulΔημιουργός
§
Δημοσιεύτηκε: 30/11/2020

The first block verify if the sort order is on default mode and if it is it remove it.

The second block verify if the display is in "grid mode" and if it is it remove it.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.