Skip to content

Commit

Permalink
Drop support and tests for arXiv Vanity since it has been shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
j3soon committed Jan 5, 2024
1 parent f194b4b commit f1bfb87
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A collection of features that enhance your reading experience on ArXiv (and some
- Renames the title of PDF page to the paper's title.
- Adds a button and hotkey (`Alt+A`) to navigate back to Abstract page for arXiv, OpenReview, and more.
- Download PDF with paper's title as filename.
- Open the paper in extra services such as [ar5iv](https://ar5iv.labs.arxiv.org/) and [arXiv Vanity](https://www.arxiv-vanity.com/).
- Open the paper in extra services such as [ar5iv](https://ar5iv.labs.arxiv.org/).
- Works with Native Tab Search, and other plugins! (See the [Solution Descriptions](#solution-descriptions) section for more details)
- All required permissions are documented in detail.

Expand Down Expand Up @@ -72,7 +72,7 @@ For ArXiv PDF / abstract tabs:
- Renames the title to paper's title automatically in the background. (Originally is meaningless paper id, or start with paper id)
- Add an action button (or `Alt+A`) to open its corresponding abstract / PDF page. (Originally is hard to get back to abstract page from PDF page)
- Add a direct download link on abstract page, click it to download the PDF with the title as filename. (Originally is paper id as filename)
- Open the paper in extra services such as [ar5iv](https://ar5iv.labs.arxiv.org/) and [arXiv Vanity](https://www.arxiv-vanity.com/).
- Open the paper in extra services such as [ar5iv](https://ar5iv.labs.arxiv.org/).
- Better title even for bookmarks and the [OneTab](https://www.one-tab.com/) plugin!
- Firefox has [strict restrictions on PDF.js](https://bugzilla.mozilla.org/show_bug.cgi?id=1454760). So it doesn't work well with OneTab, the PDF renaming is achieved by intercepting requests and show the PDF in a container. The bookmark works well though.
- Works well with native tab search (credits: [@The Rooler](https://addons.mozilla.org/en-US/firefox/addon/arxiv-utils/reviews/1674567/))
Expand Down
1 change: 0 additions & 1 deletion chrome/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const TARGET_URL_REGEXP_REPLACE = [
[/^.*:\/\/(?:export\.|browse\.)?arxiv\.org\/pdf\/(\S*?)(?:\.pdf)?\/*(\?.*?)?(\#.*?)?$/, "https://arxiv.org/abs/$1"],
[/^.*:\/\/(?:export\.|browse\.)?arxiv\.org\/ftp\/(?:arxiv\/|([^\/]*\/))papers\/.*?([^\/]*?)\.pdf(\?.*?)?(\#.*?)?$/, "https://arxiv.org/abs/$1$2"],
[/^.*:\/\/ar5iv\.labs\.arxiv\.org\/html\/(\S*?)\/*(\?.*?)?(\#.*?)?$/, "https://arxiv.org/abs/$1"],
[/^.*:\/\/www\.arxiv-vanity\.com\/papers\/(\S*?)\/?(\?.*?)?(\#.*?)?$/, "https://arxiv.org/abs/$1"],
[/^.*:\/\/openreview\.net\/forum\?id=(\S*?)(&.*?)?(\#.*?)?$/, "https://openreview.net/pdf?id=$1"],
[/^.*:\/\/openreview\.net\/pdf\?id=(\S*?)(&.*?)?(\#.*?)?$/, "https://openreview.net/forum?id=$1"],
// Starting from 2022, NIPS urls may end with a `-Conference` suffix
Expand Down
1 change: 0 additions & 1 deletion firefox/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const TARGET_URL_REGEXP_REPLACE = [
[/^.*:\/\/(?:export\.|browse\.)?arxiv\.org\/pdf\/(\S*?)(?:\.pdf)?\/*(\?.*?)?(\#.*?)?$/, "https://arxiv.org/abs/$1"],
[/^.*:\/\/(?:export\.|browse\.)?arxiv\.org\/ftp\/(?:arxiv\/|([^\/]*\/))papers\/.*?([^\/]*?)\.pdf(\?.*?)?(\#.*?)?$/, "https://arxiv.org/abs/$1$2"],
[/^.*:\/\/ar5iv\.labs\.arxiv\.org\/html\/(\S*?)\/*(\?.*?)?(\#.*?)?$/, "https://arxiv.org/abs/$1"],
[/^.*:\/\/www\.arxiv-vanity\.com\/papers\/(\S*?)\/?(\?.*?)?(\#.*?)?$/, "https://arxiv.org/abs/$1"],
[/^.*:\/\/openreview\.net\/forum\?id=(\S*?)(&.*?)?(\#.*?)?$/, "https://openreview.net/pdf?id=$1"],
[/^.*:\/\/openreview\.net\/pdf\?id=(\S*?)(&.*?)?(\#.*?)?$/, "https://openreview.net/forum?id=$1"],
// Starting from 2022, NIPS urls may end with a `-Conference` suffix
Expand Down
5 changes: 0 additions & 5 deletions tests/testcases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,6 @@ navigation:
url2: https://arxiv.org/abs/1512.03385
title2: Deep Residual Learning for Image Recognition | Abstract
description: ar5iv -> arXiv
- url: https://www.arxiv-vanity.com/papers/1512.03385/
title: Deep Residual Learning for Image Recognition – arXiv Vanity
url2: https://arxiv.org/abs/1512.03385
title2: Deep Residual Learning for Image Recognition | Abstract
description: arxiv-vanity -> arXiv
- url: https://openreview.net/pdf?id=LcF-EEt8cCC
url2: https://openreview.net/forum?id=LcF-EEt8cCC
title2: Denoising Likelihood Score Matching for Conditional Score-based Data Generation | OpenReview
Expand Down

0 comments on commit f1bfb87

Please sign in to comment.