I made this bookmarklet to download individual DB Paper documents in Markdown format, which is currently unsupported in Paper.
The interface only supports downloading individual documents in MSWord (.docx) format. While the global download option supports Markdown (.md) files, it doesn't work properly. I frequently find documents missing in the global dump.
Update, 04.06.16: Dropbox finally added the option to select Markdown as download format for individual docs. Which renders my bookmarklet useless, but is great!
- Create a new bookmark in your browser. It can be anything, like the page you're viewing currently.
- Right-Click the bookmark (in the bookmarks menu or bookmarks bar) and choose to edit the URL. In Safari, this option is called “Edit address”.
- Copy and paste the following code into the address field and confirm:
javascript:(function(){var u=window.location.href;u=u.split('#')[0];u=u.split('-');u=u[u.length-1];var d="https://paper.dropbox.com/pad/export?mode=single&format=md&localPadId={id}";d=d.replace('{id}',u);window.location.href=d;})();
- Navigate to any document in Paper and click the bookmark. The download should start promptly.
You'll find the minified version as well as the full code below
// Minified:
javascript:(function(){var u=window.location.href;u=u.split('#')[0];u=u.split('-');u=u[u.length-1];var d="https://paper.dropbox.com/pad/export?mode=single&format=md&localPadId={id}";d=d.replace('{id}',u);window.location.href=d;})();
// Raw Version:
javascript:(function(){
var u = window.location.href;
u = u.split('#')[0];
u = u.split('-');
u = u[u.length-1];
var d = "https://paper.dropbox.com/pad/export?mode=single&format=md&localPadId={id}";
d = d.replace('{id}', u);
window.location.href = d;
})();