github在线编辑/运行

github跳转github1s和gitpod

// ==UserScript==
// @name              github在线编辑/运行
// @namespace         http://tampermonkey.net/
// @version           1.0
// @description       github跳转github1s和gitpod
// @icon              data:image/x-icon;base64,AAABAAEAoK0AAAEAIAAAHQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAACgAAAArQgGAAAAN1F08wAAAAFzUkdCAdnJLH8AAAAJcEhZcwAACxMAAAsTAQCanBgAABylSURBVHic7V0HtFXVtZ2IitJUQKqgWAkgaFSwRizR2EAxdoOiRmOJGsUYwY5o1CAtKEVBBQsBEUFFQUTFgvQOAgbR2A0Wel1/zbfP9b8837t373PPuffc9/YaYw7/H4O8e/bZ8+y9+gK8ePHixYsXL168ePHixYsXL168ePHixYsXL168ePHixYsXL168ePHixYsXbK9opvid4mpFD0V/xWDFIEVPxa2K8xVtFXUU2+XlSaOTWopfKzoqblY8rBioeFzxqOIBxZ8VpyuaK6rn5zHLp5A8Oyp2URyluFHxnGK24jPFT4pNiq2KLYp1im8VSxVvKB5S/F7RRLEzDIGTLJUUlRU7KfZUtFfcpxivWKT4BmaNm2HWzLWvVnyhmKt4QdFVcYKirqJK8Pe8OApJt5uiHcwXP0+xQSEh8bVilOISRUNFNZjNTorwQ6uqaKq4QPGsYiUM0cKsl+9qCcwJeYqiAQypvWQQEq8RzKnFr/l7hCddWZiv6KZooaiRm2WVKfwIeGW2VvxNMQPZfWilYb1isuJKmFO1Sk5WVmDCE4D62hmKEYpViJ54xcHrmqcqdap9kZ9N2UFxgOJ6xXSEP+1ssU3xJox+zI+80HXjyISn3oGKexQfI95NKIm1inGKMxW1415oMakJY0i9EDxDLtdMnZEG2+EwenGFFuo9JytGK9YgtxuRApV5Gi1/hbmi4tYNqY/dAKOj5WO9BE/bDxR/gLl5KqSQfLwO+CJ4PeRrM1L4UtELxpURl+W4T/Abcei2YT68fytuU+wR03oTK9S5OisWIP8bURz/hfGvtUL0JKT/8mnFxgSss+SHR39qk4jXm1jhxvLo57WX75dfGng6PQmjl0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14jwUfTsuXMAOjluJAmJd5O8xgZE54YlPEfG94vrEteA8Lg/fC99M+eF+1UWAZLEkX+qjYRL0pjM+KL5o6Yx/FC4opikUws+8Y9uPGrC4HYEYKdTharguDdY5U9FZcD9OnhxVqewXvx+t3ORB+2Uz54rRPfukNYQqj9lHsD9M2pHk5QrNgXfsE62wQrLta8B78SefFixcvXrx48eLFixcvXrx48eLFixcvXrx48eLFixcvXrx48eLFixcvXrx48eLFixcvscj/AanWwXyk8KPeAAAAAElFTkSuQmCC
// @author            w__yi
// @match             https://*.github.com/*/*
// @require           https://cdn.bootcdn.net/ajax/libs/jquery/3.2.1/jquery.min.js
// @grant             none
// @charset		      UTF-8
// @license           GPL License
// ==/UserScript==

const util = (function () {

    function findTargetElement(targetContainer) {
        const body = window.document;
        let tabContainer;
        let tryTime = 0;
        const maxTryTime = 120;
        return new Promise((resolve, reject) => {
            let interval = setInterval(() => {
                tabContainer = body.querySelector(targetContainer);
                if (tabContainer) {
                    clearInterval(interval);
                    resolve(tabContainer);
                }
                if ((++tryTime) === maxTryTime) {
                    clearInterval(interval);
                    reject();
                }
            }, 500);
        });
    }

    return {
        findTargetEle: (targetEle) => findTargetElement(targetEle)
    }
})();

const _CONFIG_ = {
    matchData: {
        GitHub: /github/
    }
};

const consumer = (function () {

    class BaseConsumer {
        call() {
        }

        github1s() {
            let btn = document.createElement('button');
            btn.innerText = 'github1s'
            btn.className = 'btn btn-primary ml-2';
            btn.onclick = function () {
                window.open(`${"https://github1s.com" + window.location.pathname}`);
            };
            return btn;
        }

        gitpod() {
            let btn = document.createElement('button');
            btn.innerText = 'gitpod'
            btn.className = 'btn btn-primary ml-2';
            btn.onclick = function () {
                window.open(`${"https://gitpod.io/#" + window.location.href}`);
            };
            return btn;
        }
    }


    class GitHubConsumer extends BaseConsumer {
        call() {
            util.findTargetEle('.file-navigation')
                .then((container) => {
                    container.append(this.github1s());
                    container.append(this.gitpod());
                })
                .catch(e => console.warn("页面加载不成功!", e));
        }
    }

    return {
        callConsumer: (path) => {
            let mallCase = undefined;
            for (let pattern in _CONFIG_.matchData) {
                if (_CONFIG_.matchData[pattern].test(path)) {
                    mallCase = pattern;
                    break;
                }
            }
            if (mallCase === undefined) {
                return;
            }
            const targetConsumer = eval(`new ${mallCase}Consumer`);
            targetConsumer.call();
        }
    }

})();

(function () {
    consumer.callConsumer(window.location);
})();