Greasy Fork镜像 支持简体中文。

店小秘[速卖通]列表显示全部🛠

2024/10/29 10:56

  1. // ==UserScript==
  2. // @name 店小秘[速卖通]列表显示全部🛠
  3. // @namespace Violentmonkey Scripts
  4. // @license MIT
  5. // @match https://www.dianxiaomi.com/smtProduct/*
  6. // @grant GM_xmlhttpRequest
  7. // @require https://update.gf.qytechs.cn/scripts/499487/1427818/%E5%BA%97%E5%B0%8F%E7%A7%98%E9%80%9A%E7%94%A8%E5%87%BD%E6%95%B0.js
  8. // @require https://update.gf.qytechs.cn/scripts/522088/1512255/%E6%89%A9%E5%B1%95%E5%8A%9F%E8%83%BD.js
  9. // @grant none
  10. // @version 1.13
  11. // @author -
  12. // @description 2024/10/29 10:56
  13. // ==/UserScript==
  14. var bnt = $(`<li class='showall'><a href="javascript:;">显示全部</a></li>`);
  15. const pushBnt = function(){
  16. bnt.on("click",async function(){
  17. $('#loading').modal('show');
  18. var url = 'https://www.dianxiaomi.com/smtProduct/pageList.htm'
  19. var data = smtPageListSearchData();
  20. data.pageSize = '300';
  21. let book = await tool.getTotalPage(url,data,op='POST');
  22. pages = book[0];
  23. for (var i = 1;i<book.length;i++){
  24. pages.find("#goodsContent tbody.xianshishujudate").append(book[i].find("#goodsContent tr.content"));
  25. }
  26. var html = pages.map(function(){return this.outerHTML}).toArray().join("");
  27. $('#pageList').html(html)
  28. $('#loading').modal('hide');
  29. });
  30. var hasList = !!$("#pageList");
  31. if(hasList && !$("li.showall").length){
  32. $("#upPage:has(*),#downPage:has(*)").append(bnt);
  33. }
  34. }
  35.  
  36. window.onload = function(){
  37. pushBnt();
  38. $(".in-container:eq(0)").append(single);
  39. const MYJ_PAGINATION_init_HOOK = unsafeWindow.MYJ_PAGINATION.init;
  40. unsafeWindow.MYJ_PAGINATION.init = function(option,id,call){
  41. MYJ_PAGINATION_init_HOOK(option,id,call);
  42. pushBnt();
  43. }
  44. }

QingJ © 2025

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