Aliexpress sort by price

Sort by price by one click

目前为 2017-06-14 提交的版本。查看 最新版本

// ==UserScript==
// @name         Aliexpress sort by price
// @namespace    https://gf.qytechs.cn/scripts/29524-aliexpress-sort-by-price
// @version      0.0.2
// @description  Sort by price by one click
// @author       Mateusz Kula
// @match        https://www.aliexpress.com/*
// @run-at context-menu
// @homepageURL     http://kulam.pl
// @supportURL      http://kulam.pl/kontakt
// @icon            http://i.imgur.com/R5IP5KN.png
// ==/UserScript==

var targethost = "aliexpress.com"; //mozesz zmienic na "pl.aliexpress.com"
var freeshipping= "no";  //wyszukiwanie z darmowa wysylka, wartosci "yes" lub "no"
var pa=window.location.pathname;

if(pa.slice(0,7)=="/store/")
var number=pageConfig.storeId;

if(pa.slice(0,6)=="/item/")
var number=hid_storeId.value;

     var locationPathname = location.pathname.split('/');


if(number>1)
{
if(freeshipping=="yes")
    window.location.href= window.location.protocol+'//'+targethost+"/store/"+number+'/search?SortType=price_asc&isFreeShip=y&'+window.location.search+window.location.hash;
else
    window.location.href= window.location.protocol+'//'+targethost+"/store/"+number+'/search?SortType=price_asc&'+window.location.search+window.location.hash;
}
else
    alert("Wrong page.");

QingJ © 2025

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