Skip to content

Instantly share code, notes, and snippets.

@tet3
Created November 6, 2013 16:17
Show Gist options
  • Save tet3/7339052 to your computer and use it in GitHub Desktop.
Save tet3/7339052 to your computer and use it in GitHub Desktop.
GitHubInstallerBookmarklet.js
javascript:(function(){
var isApex = false;
var sourceLangs = document.getElementsByClassName('lang');
for (var i = 0; i < sourceLangs.length; ++i) {
var l = sourceLangs[i];
if(l.innerHTML == 'Apex') {
isApex = true;
// alert('This is an Apex repo');
}
}
if(location.hostname != 'github.com' || isApex == false) {
alert('This is not a GitHub Apex repository!');
}
else {
window.open('https://githubsfdeploy.herokuapp.com/app/githubdeploy'+location.pathname);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment