var GGC = {
    /*global document, chrome*/
    clone: function () {
        var paths = document.location.pathname.split('/');

        var owner = paths[1];
        var repo = paths[2];

        if (typeof owner === 'undefined' || typeof repo === 'undefined') {
            return;
        }

        var host = document.location.host;

        chrome.runtime.sendMessage({
            type: 'git-clone',
            host: host,
            owner: owner,
            repo: repo
        }, function (response) {
            // console.log(response);
        });
    }
};

(function () {
    /*global document, chrome*/

    chrome.runtime.sendMessage({
        type: "check-domain",
        location: document.location
    }, function (response) {
        if (response.matched === false) {
            return;
        }
        chrome.runtime.sendMessage({
            type: "check-auto-clone"
        }, function (response) {
            if (response.autoClone) {
                GGC.clone();
            } else {
                $('.pagehead-actions').append('<button id="__ggc-clone" class="btn btn-sm">Clone</button>')
                $("#__ggc-clone").click(function () {
                    GGC.clone();
                });
            }
        });

    });
}());


@@ -1033,24 +1033,26 @@
 $('.
-pagehead-actions
+only-with-full-nav
 ').a
@@ -1104,15 +1104,39 @@
 n-sm
-%22%3EClone
+ sidebar-button%22%3EClone with GGC
 %3C/bu

Change button location