Aliexpress sort by price

Sort by price by one click

  1. // ==UserScript==
  2. // @name Aliexpress sort by price
  3. // @namespace https://gf.qytechs.cn/scripts/29524-aliexpress-sort-by-price
  4. // @version 0.0.5
  5. // @description Sort by price by one click
  6. // @author Mateusz Kula
  7. // @match *.aliexpress.com/*
  8. // @run-at context-menu
  9. // @homepageURL https://kulam.pl
  10. // @supportURL https://kulam.pl/kontakt
  11. // @icon https://i.imgur.com/R5IP5KN.png
  12. // ==/UserScript==
  13.  
  14. var targethost = "aliexpress.com"; //mozesz zmienic na "pl.aliexpress.com"
  15. var freeshipping= "no"; //wyszukiwanie z darmowa wysylka, wartosci "yes" lub "no"
  16. var pa=window.location.pathname;
  17. var number=0;
  18. if(pa.slice(0,7)=="/store/")
  19. number=pageConfig.storeId;
  20. if(!(number>1))
  21. {number=pa.slice(7);}
  22.  
  23. if(pa.slice(0,6)=="/item/")
  24. number=hid_storeId.value;
  25.  
  26. var locationPathname = location.pathname.split('/');
  27. if(number>1)
  28. {
  29. if(freeshipping=="yes")
  30. window.location.href= window.location.protocol+'//'+targethost+"/store/"+number+'/search?SortType=price_asc&isFreeShip=y&'+window.location.search+window.location.hash;
  31. else
  32. window.location.href= window.location.protocol+'//'+targethost+"/store/"+number+'/search?SortType=price_asc&'+window.location.search+window.location.hash;
  33. }
  34. else
  35. alert("Wrong page.");

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址