Skip to content

Commit

Permalink
return abs for dl.acm.org
Browse files Browse the repository at this point in the history
  • Loading branch information
izhx committed Oct 12, 2023
1 parent cec95b8 commit bba3335
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Reading papers every day, I often receive various PDF links, which can be quite
- openaccess.thecvf.com
- proceedings.mlr.press
- papers.nips.cc
- dl.acm.org


可能的开发计划 / Possible future developments:
Expand Down
2 changes: 2 additions & 0 deletions chrome/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ chrome.action.onClicked.addListener(async (tab) => {
if (!url.endsWith(".pdf")) {
if (url.includes("openreview.net/pdf?id=")) {
openAbstract(url.replace("net/pdf?", "net/forum?"));
} else if (url.includes("dl.acm.org/doi/pdf/")) {
openAbstract(url.replace("/pdf/", "/"))
}

return;
Expand Down
5 changes: 3 additions & 2 deletions chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "EasyOA",
"description": "1. PDF back to abstract page; 2. Rename PDF page with paper title;",
"version": "0.2.3",
"version": "0.2.4",
"manifest_version": 3,
"background": {
"service_worker": "background.js"
Expand Down Expand Up @@ -44,6 +44,7 @@
"https://aclanthology.org/*",
"https://openaccess.thecvf.com/content/*",
"https://proceedings.mlr.press/*",
"https://papers.nips.cc/*"
"https://papers.nips.cc/*",
"https://dl.acm.org/doi/pdf/*"
]
}

0 comments on commit bba3335

Please sign in to comment.