Skip to content

Instantly share code, notes, and snippets.

@weiland
Last active August 29, 2015 14:04
Show Gist options
  • Save weiland/3adbfe05a16fc69d0da2 to your computer and use it in GitHub Desktop.
Save weiland/3adbfe05a16fc69d0da2 to your computer and use it in GitHub Desktop.
Bug Report Bookmarklet
(function() {
var CurrentPage = window.location.href;
var CurrentUserAgent = window.navigator.userAgent;
var MailTo = 'MITARBEITER@EMAIL';
var MailFrom = 'Pascal';
var MailBody = ('Hi, <br><br>'
+ 'Fehler: <br>'
+'Seite: ' + CurrentPage + '<br>'
+'System: ' + CurrentUserAgent + '<br>'
+'Vorgehensweise:'
+'<br><br>Ciao ' + MailFrom);
var BugReportUrl = 'mailto:' + MailTo + '?subject=Bug:&body=' +MailBody;
window.location.href=BugReportUrl;
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment