visualstudio marketplace toolkit

visualstudio marketplace toolkit by Theo·Chan

  1. // ==UserScript==
  2. // @name visualstudio marketplace toolkit
  3. // @namespace http://tampermonkey.net/
  4. // @version 2025-06-05
  5. // @description visualstudio marketplace toolkit by Theo·Chan
  6. // @author Theo·Chan
  7. // @match *://marketplace.visualstudio.com/*
  8. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  9. // @license AGPL-3.0-or-later
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14. //--------------------------marketplace.visualstudio.com----download-------------------------------//
  15. let vsMarketDownloader = (function () {
  16. return {
  17. addDownloadBtn: function () {
  18. if (window.location.host.toUpperCase() !== 'MARKETPLACE.VISUALSTUDIO.COM') return false;
  19. let arr = window.location.href.split('?')[1].split('=')[1].split('.');
  20. let author = arr[0];
  21. let id = arr[1];
  22. var histories = document.querySelectorAll('tr.version-history-container-row');
  23. for (var i = 1; i < histories.length; i++) {
  24. let version = histories[i].firstChild.textContent;
  25. let a = document.createElement('a');
  26. a.className = 'bowtie-icon bowtie-install';
  27. a.style = 'margin-left: 1rem;'
  28. a.href = `https://marketplace.visualstudio.com/_apis/public/gallery/publishers/${author}/vsextensions/${id}/${version}/vspackage`;
  29. histories[i].firstChild.appendChild(a);
  30. }
  31. return true;
  32. }
  33. }
  34. })();
  35. setTimeout(() => {
  36. vsMarketDownloader.addDownloadBtn();
  37. }, 1200);
  38. }) ();

QingJ © 2025

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