Create Bookmarklet (browser bookmark that executes Javsacript) to copy a given text to Clipboard.
This is the base javascript:
(function (text) {
var node = document.createElement('textarea')
var selection = document.getSelection()
node.textContent = text
document.body.appendChild(node)
selection.removeAllRanges()
node.select()
document.execCommand('copy')
selection.removeAllRanges()
document.body.removeChild(node)
})(`
*{{Context}}*
what, where, how to reproduce
*{{Goal}}*
desired behavior for the user, or the question to be answered
*{{QA}}*
AC and scenarios
*{{UX/UI}}*
wireframes, UI designs
*{{Solution space}}*
describing possibilities, starting points and discussion results
`)
Minify it (you can use UglifyJS to get something like this:
!function(e){...}}()
Prefix it with javascript:
:
javascript:!function(e){var n=document.createElement("textarea"),o=document.getSelection();n.textContent="\n*{{Context}}*\nwhat, where, how to reproduce\n\n*{{Goal}}*\ndesired behavior for the user, or the question to be answered\n\n*{{QA}}*\nAC and scenarios\n\n*{{UX/UI}}* \nwireframes, UI designs\n\n*{{Solution space}}* \ndescribing possibilities, starting points and discussion results\n\n",document.body.appendChild(n),o.removeAllRanges(),n.select(),document.execCommand("copy"),o.removeAllRanges(),document.body.removeChild(n)}();
h3. "What is the goal of the story?"
h4. Scenario's
h4. Detailing
Anything useful for implementation
javascript:!function(e){var n=document.createElement("textarea"),o=document.getSelection();n.textContent="h3. What is the goal of the story?\n\n h4. Scenario's\n * AC**\n * -Out of scope-\n\n h4. Detailing\n Anything useful for implementation \n\n",document.body.appendChild(n),o.removeAllRanges(),n.select(),document.execCommand("copy"),o.removeAllRanges(),document.body.removeChild(n)}();