├── .gitignore
├── .prettierrc.json
├── .vscode
└── settings.json
├── LICENSE
├── README.md
├── assets
├── screenshot.jpg
└── storeIcon.png
├── icon.png
├── manifest.json
├── privacy_policy.md
└── scripts
└── content.js
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
--------------------------------------------------------------------------------
/.prettierrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "useTabs": true
3 | }
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.formatOnSave": true,
3 | "editor.defaultFormatter": "esbenp.prettier-vscode"
4 | }
5 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Julien Chaumond
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://chromewebstore.google.com/detail/arxiv-to-hf/icfbnjkijgggnhmlikeppnoehoalpcpp)
2 |
3 | # Arxiv to Huggingface
4 |
5 | Chrome extension to add a link from each Arxiv page to the corresponding HF Paper page
6 |
7 | ## Screenshot
8 |
9 | 
10 |
--------------------------------------------------------------------------------
/assets/screenshot.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/julien-c/arxiv-to-hf/233b15b28a9e742480777be8c8c55d8839f7420c/assets/screenshot.jpg
--------------------------------------------------------------------------------
/assets/storeIcon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/julien-c/arxiv-to-hf/233b15b28a9e742480777be8c8c55d8839f7420c/assets/storeIcon.png
--------------------------------------------------------------------------------
/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/julien-c/arxiv-to-hf/233b15b28a9e742480777be8c8c55d8839f7420c/icon.png
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "manifest_version": 3,
3 | "name": "ArXiv to HF",
4 | "version": "1.0",
5 | "content_scripts": [
6 | {
7 | "js": ["scripts/content.js"],
8 | "matches": [
9 | "https://arxiv.org/abs/*"
10 | ]
11 | }
12 | ],
13 | "icons": {
14 | "128": "icon.png"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/privacy_policy.md:
--------------------------------------------------------------------------------
1 | # arxiv-to-hf Privacy Policy
2 |
3 | **Effective Date: 2023-11-30**
4 |
5 | At arxiv-to-hf, we are committed to protecting your privacy. This Privacy Policy outlines our practices concerning the non-collection of personal information.
6 |
7 | ### Non-Collection of Personal Information
8 |
9 | arxiv-to-hf does not collect any personal information from our users. As a visitor to our website/application/service, you can engage in many activities without providing any personal information.
10 |
11 | ### Information Not Collected
12 |
13 | When you use our website/application/service, we do not collect any information such as:
14 |
15 | - Name
16 | - Address
17 | - Telephone number
18 | - Email address
19 | - Credit card information
20 | - Any other personal information that can be used to identify you
21 |
22 | ### Cookies and Tracking Technology
23 |
24 | Since we do not collect any personal information, we also do not use cookies or any tracking technology that can be used to personally identify you.
25 |
26 | ### Third-Party Links
27 |
28 | Our website/application/service may contain links to third-party websites. We are not responsible for the privacy practices or the content of these external websites. We recommend that you review the privacy policies of these third-party sites to understand their data collection and usage practices.
29 |
30 | ### Changes to Our Privacy Policy
31 |
32 | We reserve the right to modify this Privacy Policy at any time. If we decide to change our Privacy Policy, we will post those changes on this page and/or update the Privacy Policy modification date below.
33 |
34 | ### Contact Us
35 |
36 | If you have any questions regarding this Privacy Policy, please contact us at:
37 |
38 | timqian@t9t.io
39 |
40 | Please note that by using our website/application/service, you consent to our Non-Collection of Personal Information Policy.
41 |
42 | arxiv-to-hf takes your privacy concerns seriously and we strive to ensure that your experience with our website/application/service is as secure and satisfactory as possible.
43 |
44 | Thank you for choosing arxiv-to-hf.
45 |
--------------------------------------------------------------------------------
/scripts/content.js:
--------------------------------------------------------------------------------
1 | const SVG = `
71 | `;
72 |
73 | const arxivId = window.location.href.match(/\d+\.\d+/)?.[0];
74 | if (arxivId) {
75 | const div = document.querySelector("div.submission-history");
76 | if (div) {
77 | const aElem = document.createElement("a");
78 | aElem.href = `https://huggingface.co/papers/${arxivId}`;
79 | // aElem.target = "_blank";
80 | aElem.innerHTML =
81 | `${SVG}` + "HF Paper Page";
88 | div.appendChild(aElem);
89 | }
90 | } else {
91 | alert("arxid id not found");
92 | }
93 |
--------------------------------------------------------------------------------