Created
November 6, 2013 16:17
-
-
Save tet3/7339052 to your computer and use it in GitHub Desktop.
GitHubInstallerBookmarklet.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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