// ==UserScript== // @name 从Chrome插件市场下载crx文件 // @name:en download crx from chrome extention store // @namespace https://chrome.google.com/ // @version 2025-08-08 // @description 在chrome插件市场右上角添加一个下载crx文件的按钮 // @description:en Add a button to download crx files in the upper right corner of the chrome plugin market. // @match https://chrome.google.com/webstore/detail/* // @match https://chromewebstore.google.com/detail/* // @license MIT // @author QL // @icon https://fonts.gstatic.com/s/i/productlogos/chrome_store/v7/192px.svg // @grant none // @run-at document-end // @downloadURL https://update.greasyfork.icu/scripts/544987/download%20crx%20from%20chrome%20extention%20store.user.js // @updateURL https://update.greasyfork.icu/scripts/544987/download%20crx%20from%20chrome%20extention%20store.meta.js // ==/UserScript== (function() { 'use strict'; let version = "139.0.7258.67"; let appid = location.pathname.split('detail/')[1].split('/')[1]; let appname = location.pathname.split('detail/')[1].split('/')[0]; let downloadurl = `https://clients2.google.com/service/update2/crx?response=redirect&os=win&arch=x64&os_arch=x86_64&nacl_arch=x86-64&prod=chromecrx&prodchannel=&prodversion=${version}&lang=zh-CN&acceptformat=crx3,puff&x=id%3D${appid}%26installsource%3Dondemand%26uc`; let downloadInnerText = '下载CRX文件'; let html = `
${downloadInnerText}
`; setTimeout(() => document.body.insertAdjacentHTML('beforeend', html), 5000); })();