Skip to content

Instantly share code, notes, and snippets.

@PCfromDCSnippets
Created June 21, 2016 00:50
Show Gist options
  • Save PCfromDCSnippets/d2c58f7372cbb119dd2e25b80b863191 to your computer and use it in GitHub Desktop.
Save PCfromDCSnippets/d2c58f7372cbb119dd2e25b80b863191 to your computer and use it in GitHub Desktop.
Download All Yammer Files (min)
javascript:!function(e){function a(e,a){var n=/.+\//,o=e.href&&e.href.replace(n,"")||"",r="https://www.yammer.com/api/v1/uploaded_files/"+o+"/download";return r}function n(e){var a=document.createElement("a");a.download="filename",a.target="_blank",a.href=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),delete a}var o=Array.from(e.querySelectorAll(".page-content .yj-tabular-data-name"));o.map(a).forEach(n)}(document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment