Skip to content

Instantly share code, notes, and snippets.

@uadev
Created December 10, 2014 13:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save uadev/d91be5873c6d166baf35 to your computer and use it in GitHub Desktop.
Save uadev/d91be5873c6d166baf35 to your computer and use it in GitHub Desktop.
<a href="javascript:(function()%7Bfunction addTab(text) %7Bvar li %3D document.createElement('li')%3Bvar c %3D new ZeroClipboard(li)%3Bc.on('copy'%2C function(e) %7Be.clipboardData.setData('text%2Fplain'%2C text)%3Bli.innerHTML %3D 'Notes <small><b>(copied)<b><%2Fsmall>'%3B%7D)%3Bli.classList.add('tabnav-tab')%3Bli.innerText %3D 'Copy Notes'%3Bli.style.cursor %3D 'pointer'%3Bdocument.querySelector('.tabnav-tabs').appendChild(li)%3B%7D%3Bfunction getNotes() %7Breturn Array.prototype.map.call(document.querySelectorAll('.comment-body > p')%2Cfunction(c) %7Breturn '%5C%5C' %2B c.innerHTML%3B%7D).join("%5Cn")%7D%3BaddTab(getNotes())%7D)()">Get Release Notes</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment