It takes at least 4 clicks to get the PMID for a paper:
Click “…”
Click “Edit data”
Look for the PMID field, double-click the PMID, Cmd+C to copy
Click “Cancel”
This might not sound like an important complaint. However, you might consider that repetitive strain injury is a real thing that some of us are actually living with.
Solution
Can we do better? I think so. I got it down to just 2 clicks:
Right-click the PMID
Click “Copy”
How? My userscript pulls out the PMID from each paper and displays it in a clickable text element.
Step by step
Install the Tampermonkey extension for your web browser.
Install the script I wrote below and make sure it is turned on when you are visiting paperpile.com/app
I wrote another script to put the DOI in the title bar when we are reading a paper. This makes it easy to copy and paste the DOI into other apps — without going back to the Paperpile Library.
var dois = [...document.querySelectorAll("span")].filter(d => d.textContent.includes("doi:"))
if (dois.length > 0) {
var doi = dois[0].innerText.slice(4)
var el = document.getElementsByClassName("mp-stretcher")[0]
el.style.setProperty('user-select', 'all')
el.innerText = doi
}
You can run it by copying and pasting the code into the developer console.
Paperpile would be on another level if we could write our own Javascript extensions.
Thank you for your feedback, @slowkow. I’m pleased to say that in the new Paperpile web app, in beta, we listened to feedback from beta testers, and now you copy the PMID directly from the reference details in your library. You can do this by clicking on the dots menu beneath a reference, right-clicking on the PMID and copying it. And I’ve recorded your request for having the DOI accessible within the PDF viewer for consideration by the team in the future.