Last active
August 29, 2015 14:04
-
-
Save weiland/3adbfe05a16fc69d0da2 to your computer and use it in GitHub Desktop.
Bug Report Bookmarklet
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
(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