AliExpress Ultra Efficient

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

  1. // ==UserScript==
  2. // @name AliExpress Ultra Efficient
  3. // @namespace Mikhoul
  4. // @description Sort Price from Low to High, Put Items in View list All Automatically
  5. // @include http*://*.aliexpress.com/af/*
  6. // @include http*://*.aliexpress.com/w/*
  7. // @include http*://*.aliexpress.com/wholesale*
  8. // @version 1.01
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12.  
  13. // Prices Low to High
  14. if (window.location.href.indexOf("&SortType=price_asc") == -1) //vérifie si les prix sont ascendant ET si non les met ascendant dans l'url
  15. {
  16. var url = window.location.href;
  17. var priceAsc = "&SortType=price_asc";
  18. url += priceAsc;
  19. window.location = url;
  20. // alert("Alert #1 Price Ascendant");
  21. }
  22. if (window.location.href.indexOf("&SortType=default") > -1) // Vérifie si ""&SortType=default" existe ET si OUI l'enlève
  23. {
  24. location.href = location.href.replace(/(\&S(\w+)=(\w+)ault)/, ""); //Cherche "&SortType=default" et le remplace par RIEN
  25. }
  26. // Free Shipping
  27. if (window.location.href.indexOf("&isFreeShip=y") == -1) //vérifie si les SHIPPING est gratuit ET si non le met à gratuit
  28. {
  29. var url = window.location.href;
  30. var freeShip = "&isFreeShip=y";
  31. url += freeShip;
  32. window.location = url;
  33. // alert("Alert #2 Free Shipping");
  34. }
  35.  
  36. if (window.location.href.indexOf("&isFreeShip=n") > -1) // Vérifie si "&isFreeShip=n" existe ET si OUI l'enlève
  37. {
  38. location.href = location.href.replace(/(\&isF(\w+)=(n))/, ""); //Cherche "&isFreeShip=n" et le remplace par RIEN
  39. }
  40. // Seller sell in Quantity 1
  41. if (window.location.href.indexOf("&isRtl=yes") == -1) //vérifie si les articles sont pour Prix Unitaire Qt1 ET si non les met unitaires
  42. {
  43. var url = window.location.href;
  44. var priceRtlUnit = "&isRtl=yes";
  45. url += priceRtlUnit;
  46. window.location = url;
  47. // alert("Alert #3 1 Piece/RTL Only");
  48. }
  49. // View LIST instead of Gallery
  50. if (window.location.href.indexOf("&g=n") == -1) //vérifie si le mode List est actif ET si NON actif change l'url pour l'activer
  51. {
  52. var url = window.location.href;
  53. var modeList = "&g=n";
  54. url += modeList;
  55. window.location = url;
  56. // alert("Last Alert: Mode list");
  57. }
  58. if (window.location.href.indexOf("&g=y") > -1) // Vérifie si "&g=y" existe ET si OUI l'enlève
  59. {
  60. location.href = location.href.replace(/(\&g)=(\y)/, ""); //Cherche "&g=y" et le remplace par RIEN
  61. }
  62.  

QingJ © 2025

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