Skip to content

Instantly share code, notes, and snippets.

@helllth
Created January 21, 2015 13:47
Show Gist options
  • Save helllth/165bd276a5def34269d1 to your computer and use it in GitHub Desktop.
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)
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));
}
}
})();
@helllth
Copy link
Author

helllth commented Jan 21, 2015

create the bookmarklet easily by dragging this Link to your Bookmark-Toolbar or use http://ted.mielczarek.org/code/mozilla/bookmarklet.html to create it on your own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment