Get of extension from Chrome-WebStore [chrome.google.com]

Add button for get .crx of extension or theme from Chrome-WebStore

< Feedback on Get of extension from Chrome-WebStore [chrome.google.com]

Question/comment

§
Posted: 2023-08-14

hi this doesn't seem to be working at the moment - any issues for anyone elsE?

I think some userscript managers do not allow userscript execution in https://chrome.google.com

§
Posted: 2023-08-14
Edited: 2023-08-14

as the author's page suggested, you can also use a bookmark link to add the button. Remember there is javascript: at the beginning.

javascript:(function(){var e,t,r,i,c=document.querySelector('[role="dialog"] div[role="button"][aria-label]');
c&&(t=c.className,(e=document.createElement("a")).className=t,(e=c.parentNode.insertBefore(e,c)).innerText="Get .crx file",
e.id="get-crx-file",c=(t=function(){var e=
"https://clients2.google.com/service/update2/crx?response=redirect&prodversion=49.0&x=id%3D%ID_EXTENSION%%26installsource%3Dondemand%26uc",
t=window.location.pathname.split("/").slice(-1);t&&(e=e.replace("%ID_EXTENSION%",t));
var r=document.title.split("-")[0].trim();r=r||t;return[r,e]}())[0],t=t[1],e.setAttribute("download",c+".crx"),
e.setAttribute("href",t),r="#get-crx-file {margin-right:2px; } #get-crx-file:hover {opacity:0.8; }",
(i=document.createElement("style")).type="text/css",i.styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),
e.style.marginRight="2px")})();

Post reply

Sign in to post a reply.