From 98d99c663adea399a974d9d04d93024da36d34b1 Mon Sep 17 00:00:00 2001 From: Johnson Sun Date: Sun, 8 Oct 2023 20:01:35 +0800 Subject: [PATCH] Fix paper id option for filename format This feature is originally added in commit 69aa42d, but accidentally removed in commit 05185b1. --- chrome/content.js | 1 + firefox/content.js | 1 + 2 files changed, 2 insertions(+) diff --git a/chrome/content.js b/chrome/content.js index 0a16756..8359be3 100644 --- a/chrome/content.js +++ b/chrome/content.js @@ -82,6 +82,7 @@ async function addCustomLinksAsync(id, articleInfo) { .replace('${publishedYear}', articleInfo.publishedYear) .replace('${updatedYear}', articleInfo.updatedYear) .replace('${version}', articleInfo.version) + .replace('${paperid}', id) ; const directURL = `https://arxiv.org/pdf/${id}.pdf`; const directDownloadLiId = "arxiv-utils-direct-download-li"; diff --git a/firefox/content.js b/firefox/content.js index a38bfd4..0ac153b 100644 --- a/firefox/content.js +++ b/firefox/content.js @@ -83,6 +83,7 @@ async function addCustomLinksAsync(id, articleInfo) { .replace('${publishedYear}', articleInfo.publishedYear) .replace('${updatedYear}', articleInfo.updatedYear) .replace('${version}', articleInfo.version) + .replace('${paperid}', id) ; const directURL = `https://arxiv.org/pdf/${id}.pdf`; const directDownloadLiId = "arxiv-utils-direct-download-li";