淘寶銷量排序

在淘寶天貓瀏覽商品時,自動為妳首選 [按銷量排序]。方便實用!

  1. // ==UserScript==
  2. // @name Sort by Sales in Taobao
  3. // @name:zh-CN 淘宝销量排序
  4. // @name:zh-TW 淘寶銷量排序
  5. // @description In Tmall or Taobao, automatically for you first choice [by sales order]. Convenient and practical!
  6. // @description:zh-CN 在淘宝天猫浏览商品时,自动为你首选 [按销量排序]。方便实用!
  7. // @description:zh-TW 在淘寶天貓瀏覽商品時,自動為妳首選 [按銷量排序]。方便實用!
  8.  
  9. // @author Moshel
  10. // @namespace https://hzy.pw
  11. // @homepageURL https://hzy.pw/p/1364
  12. // @supportURL https://github.com/h2y/link-fix
  13. // @icon https://hzy.pw/wp-content/uploads/2015/08/i-300x300.jpg
  14. // @license GPL-3.0
  15.  
  16. // @include /^https?://s.taobao.com/search\?.+/
  17. // @include /^https?://list.tmall.com/search_product.htm\?.+/
  18. // @grant none
  19. // @run-at document-start
  20.  
  21. // @date 08/05/2015
  22. // @modified 06/11/2016
  23. // @version 1.4.2
  24. // ==/UserScript==
  25.  
  26.  
  27. ! function() {
  28. "use strict";
  29.  
  30. var href = location.search;
  31.  
  32. /* 天猫搜索 */
  33. if (location.hostname === "list.tmall.com" && href.indexOf("sort=") < 0)
  34. href += "&sort=d";
  35. /* 淘宝搜索 */
  36. else if (location.hostname === "s.taobao.com" && href.indexOf("sort=") < 0)
  37. href += "&sort=sale-desc";
  38. /* 天猫淘宝店铺内搜索&分类浏览
  39. else if (location.search && href.indexOf("orderType=") < 0)
  40. href += "&orderType=hotsell_desc"; */
  41. else
  42. return;
  43.  
  44. /* 进行跳转 */
  45. if (href !== location.search)
  46. location.search = href;
  47.  
  48. }();

QingJ © 2025

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