Greasy Fork

Greasy Fork is available in English.

Download Edge Store Extensions

Allows download extensions from Microsoft Edge Add-on Store in CRX format, to use in Chromium-based browsers.

当前为 2022-02-12 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Download Edge Store Extensions
// @namespace   http://greasyfork.icu/en/users/860785-delphox
// @match       https://microsoftedge.microsoft.com/addons/*
// @grant       none
// @run-at      document-start
// @version     1.0
// @description Allows download extensions from Microsoft Edge Add-on Store in CRX format, to use in Chromium-based browsers.
// @author      Delphox, Arnaud (Kiwi Browser)
// ==/UserScript==
(function() {
    Object.defineProperty(navigator, 'userAgent', {
        value: window.navigator.userAgent + ' Edg/' + window.navigator.appVersion.match(/Chrome\/(\d+(:?\.\d+)+)/)[1]
    });
    var _kb_setIntervalCnt = 0;
    var _kb_setInterval = window.setInterval(function() {
        var xpath = function(xpathToExecute) {
            var result = [];
            var nodesSnapshot = document.evaluate(xpathToExecute, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
            for (var i = 0; i < nodesSnapshot.snapshotLength; i++) {
                result.push(nodesSnapshot.snapshotItem(i));
            }
            return result;
        };
        xpath("//button[contains(@id,'getOrRemoveButton')]").forEach(function(individualButton) {
            individualButton.setAttribute('style', 'opacity: 1; background: rgb(0, 120, 212) !important; height: 60px; cursor: pointer !important;');
            individualButton.removeAttribute('disabled');
            individualButton.innerHTML = "<a href=https://edge.microsoft.com/extensionwebstorebase/v1/crx?response=redirect&acceptformat=crx3&x=id%3D" + individualButton.id.split('-')[1] + "%26installsource%3Dondemand%26uc target='_blank' style='color: white; text-decoration: none'><b>Get CRX</b><br>(Right click and <br>Save Link As)</a>";
        });
        if (_kb_setIntervalCnt++ >= 10) { window.clearInterval(_kb_setInterval); }
    }, 1000);
})();