Skip to content

Instantly share code, notes, and snippets.

@kidd kidd/github.js
Created Apr 16, 2013

What would you like to do?
interactive("github-clone-repo", null, function(I){
var document = I.buffer.document;
var url = document.URL;
var project = document.URL.match(/\/([^/]+\/[^/]+)/)[1];
var repoTitle = document.querySelectorAll(".js-current-repository");
cloneLink = "org-protocol://github-clone://" + project;
document.location = cloneLink;
set_protocol_handler("org-protocol", find_file_in_path("emacsclient"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.