From f1bfb87c126a0613591b3ce86f622aae57e4820a Mon Sep 17 00:00:00 2001 From: Johnson Sun Date: Sat, 6 Jan 2024 01:20:08 +0800 Subject: [PATCH] Drop support and tests for arXiv Vanity since it has been shutdown See: https://www.arxiv-vanity.com --- README.md | 4 ++-- chrome/background.js | 1 - firefox/background.js | 1 - tests/testcases.yaml | 5 ----- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 07e2a47..22b9fb5 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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/)) diff --git a/chrome/background.js b/chrome/background.js index 2cdc77a..1a65800 100644 --- a/chrome/background.js +++ b/chrome/background.js @@ -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 diff --git a/firefox/background.js b/firefox/background.js index 1edae0d..b9bb0cf 100644 --- a/firefox/background.js +++ b/firefox/background.js @@ -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 diff --git a/tests/testcases.yaml b/tests/testcases.yaml index 5da75e3..a459a1a 100644 --- a/tests/testcases.yaml +++ b/tests/testcases.yaml @@ -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