{"size": 3910, "ext": "js", "max_stars_repo_path": "js/script.js", "max_stars_repo_name": "koffiisen/WLocker", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/script.js", "max_issues_repo_name": "koffiisen/WLocker", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/script.js", "max_forks_repo_name": "koffiisen/WLocker", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 39.8979591837, "max_line_length": 186, "alphanum_fraction": 0.4363171355}
var isBrave = false;
if (window.Brave && navigator.brave && navigator.brave.isBrave) {
    isBrave = 'probable';//or some other value, as you wish
    navigator.brave.isBrave().then(function (r) {
        if (r) isBrave = true;
    });
}

// Chrome 1 - 79
var isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
// Edge (based on chromium) detection
var isEdgeChromium = isChrome && (navigator.userAgent.indexOf("Edg") != -1);


var dt = detect.parse(navigator.userAgent);

const btn = $('#dl');
setTimeout(function () {
    if (isEdgeChromium) {
        btn.empty();
        setTimeout(function () {
            btn.append(
                '<a target="_blank" class="btn btn-success btn-xl js-scroll-trigger" href="https://microsoftedge.microsoft.com/addons/detail/mcfgoopgfpeholmnfgekajdkjkbhbhjd">' +
                '            <img style="width: 30px;height: 30px" src="img/edgec.png">' +
                '                Download for Edge Chromium' +
                '</a>'
            )
        }, 200);

    } else {
        setTimeout(function () {
            if (isBrave) {
                btn.empty();
                setTimeout(function () {
                    btn.append(
                        '<a class="btn btn-success btn-xl js-scroll-trigger" href="#chromeURL">' +
                        '            <img style="width: 30px;height: 30px" src="img/brave.png">' +
                        '                Download for Brave' +
                        '</a>'
                    )
                }, 200);
            }
        }, 1200);
        setTimeout(function () {
            if (dt.browser.family.toLowerCase().includes("chrome")) {
                btn.empty();
                setTimeout(function () {
                    btn.append(
                        '<a class="btn btn-success btn-xl js-scroll-trigger" href="#chromeURL">' +
                        '            <img style="width: 30px;height: 30px" src="img/chrome.svg">' +
                        '                Download for Chrome' +
                        '</a>'
                    )
                }, 200);

            }

            if (dt.browser.family.toLowerCase().includes("opera")) {
                btn.empty();
                setTimeout(function () {
                    btn.append(
                        '<a class="btn btn-success btn-xl js-scroll-trigger" href="#operaURL">' +
                        '            <img style="width: 30px;height: 30px" src="img/opera.svg">' +
                        '                Download for Opera' +
                        '</a>'
                    )
                }, 200);

            }

            if (dt.browser.family.toLowerCase().includes("edge")) {
                btn.empty();
                setTimeout(function () {
                    btn.append(
                        '<a target="_blank" class="btn btn-success btn-xl js-scroll-trigger" href="https://microsoftedge.microsoft.com/addons/detail/mcfgoopgfpeholmnfgekajdkjkbhbhjd">' +
                        '            <img style="width: 30px;height: 30px" src="img/edge.svg">' +
                        '                Download for Edge' +
                        '</a>'
                    )
                }, 200);

            }

            if (dt.browser.family.toLowerCase().includes("firefox")) {
                btn.empty();
                setTimeout(function () {
                    btn.append(
                        '<a target="_blank" class="btn btn-success btn-xl js-scroll-trigger" href="https://addons.mozilla.org/fr/firefox/addon/wlocker/">' +
                        '            <img style="width: 30px;height: 30px" src="img/firefox.png">' +
                        '                Download for Firefox' +
                        '</a>'
                    )
                }, 200);

            }
        }, 1500)
    }
}, 2000)