Created
May 10, 2017 14:22
-
-
Save diogok/399d74ce9c70e434a48ce6f697ed293d to your computer and use it in GitHub Desktop.
Zendesk new request filler
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
location | |
.search | |
.match(/([^&=?]+)=([^&]+)/g) | |
.map(function(kv) { | |
return kv.split("=") | |
}).map(function(kv) { | |
document.getElementById(kv[0]).value = decodeURIComponent(kv[1]).replace("+", " ") | |
}); | |
// Usage: https://myohmy.zendesk.com/hc/pt-br/requests/[email protected]&request_custom_fields_77509687=Diogo+Silva&request_subject=Help+me |
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
eval(atob("bG9jYXRpb24uc2VhcmNoLm1hdGNoKC8oW14mPT9dKyk9KFteJl0rKS9nKS5tYXAoZnVuY3Rpb24oa3YpIHsgcmV0dXJuIGt2LnNwbGl0KCI9IikgfSkubWFwKGZ1bmN0aW9uKGt2KXtkb2N1bWVudC5nZXRFbGVtZW50QnlJZChrdlswXSkudmFsdWU9ZGVjb2RlVVJJQ29tcG9uZW50KGt2WzFdKS5yZXBsYWNlKCIrIiwiICIpfSk7")) | |
// why not... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment