Download Extension from Chrome Web Store

Script meant for Ungoogled Chromium, but may be used with any browser to directly download Chrome Extensions from Chrome Web Store.

  1. // ==UserScript==
  2. // @name Download Extension from Chrome Web Store
  3. // @namespace laniusone
  4. // @match https://chrome.google.com/webstore/detail/*/*
  5. // @grant none
  6. // @icon https://www.chromium.org/_/rsrc/1354323194313/favicon.ico
  7. // @version 1.0
  8. // @author laniusone
  9. // @license BSD-3-Clause
  10. // @description Script meant for Ungoogled Chromium, but may be used with any browser to directly download Chrome Extensions from Chrome Web Store.
  11. // ==/UserScript==
  12. let bookmarklet = function () {location.href='https://clients2.google.com/service/update2/crx?response=redirect&acceptformat=crx2,crx3&prodversion='+(navigator.appVersion.match(/Chrome\/(\S+)/)[1])+'&x=id%'+'3D'+(document.querySelector('a[href^="https://chrome.google.com/webstore/report/"]').pathname.match(/[^\/]+\/*$/)[0])+'%'+'26installsource%'+'3Dondemand%'+'26uc';};
  13. button = document.createElement('button');
  14. button.type = 'button;'
  15. button.style.cssText = 'position: fixed; z-index: 9999; bottom: 2%; right: 2%; padding: 10px; color: white; background-color: blue; text-decoration: none;';
  16. button.onclick = bookmarklet;
  17. button.innerText = '+';
  18. button.id = 'custom-extension-download';
  19. document.body.appendChild(button);

QingJ © 2025

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