Skip to content

Commit

Permalink
Fix paper id option for filename format
Browse files Browse the repository at this point in the history
This feature is originally added in commit 69aa42d,
but accidentally removed in commit 05185b1.
  • Loading branch information
j3soon committed Oct 8, 2023
1 parent bd4ffef commit 98d99c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions chrome/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions firefox/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 98d99c6

Please sign in to comment.