Created
January 21, 2015 13:47
-
-
Save helllth/165bd276a5def34269d1 to your computer and use it in GitHub Desktop.
Bookmarklet to open issue by number (same window if already in the project)
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 val=prompt("Kundenportal Wuppertal\n\nIssue# eingeben",""); | |
if(val){ | |
var loc=window.location+" "; | |
if (loc.indexOf('https://github.com/cismet/wupp/issues')>-1) { | |
// window.alert('window.location'); | |
window.location='https://github.com/cismet/wupp/issues/'+escape(val); | |
} | |
else { | |
// window.alert('window.open'); | |
window.open('https://github.com/cismet/wupp/issues/'+escape(val)); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
create the bookmarklet easily
by dragging this Link to your Bookmark-Toolbaror use http://ted.mielczarek.org/code/mozilla/bookmarklet.html to create it on your own.