Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13,581 changes: 13,581 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "papermemory",
"version": "1.1.0",
"version": "1.1.1",
"description": "N/A",
"main": "gulpfile.js",
"moduleDirectories": [
Expand Down
11 changes: 11 additions & 0 deletions src/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ const pushSyncPapers = async () => {
console.groupEnd();
};

const fetchArxivXML = async (paperId) => {
const arxivId = paperId.replace("Arxiv-", "").replace("_", "/");
const response = await fetch(
"https://export.arxiv.org/api/query?" +
new URLSearchParams({ id_list: arxivId })
);
return await response.text();
};

chrome.runtime.onMessage.addListener((payload, sender, sendResponse) => {
if (payload.type === "update-title") {
const { title, url } = payload.options;
Expand Down Expand Up @@ -377,6 +386,8 @@ chrome.runtime.onMessage.addListener((payload, sender, sendResponse) => {
tryDBLP(payload.paper, false).then(sendResponse);
} else if (payload.type === "try-unpaywall") {
tryUnpaywall(payload.paper, false).then(sendResponse);
} else if (payload.type === "fetch-arxiv-xml") {
fetchArxivXML(payload.arxivId).then(sendResponse);
}
return true;
});
Expand Down
10 changes: 10 additions & 0 deletions src/popup/html/modals/whatsnew.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ <h3 style="margin-bottom: 0px">What's new</h3>
<ul>
<li>
<strong>Current: </strong>
<a href="https://github.com/vict0rsch/PaperMemory/releases/tag/1.1.1"
>1.1.1</a
>
<em>(2025-11-15)</em>
<ul>
<li>
[dev] Hotfix Arxiv paper parsing after Arxiv enables CORS
restrictions.
</li>
</ul>
<a href="https://github.com/vict0rsch/PaperMemory/releases/tag/1.1.0"
>1.1.0</a
>
Expand Down
2 changes: 1 addition & 1 deletion src/popup/min/popup.min.html

Large diffs are not rendered by default.

11 changes: 1 addition & 10 deletions src/shared/js/utils/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ const flipAndAuthors = (authors) =>
// ----- Fetch -----
// -------------------

const fetchArxivXML = async (paperId) => {
const arxivId = paperId.replace("Arxiv-", "").replace("_", "/");
return fetch(
"https://export.arxiv.org/api/query?" +
new URLSearchParams({ id_list: arxivId })
);
};

const fetchCvfHTML = async (url) => {
let paperPage, text;
if (url.endsWith(".pdf")) {
Expand Down Expand Up @@ -379,8 +371,7 @@ const extractDataFromDCMetaTags = (dom) => {

const makeArxivPaper = async (url) => {
const arxivId = arxivIdFromURL(url);
const response = await fetchArxivXML(arxivId);
const xmlData = await response.text();
const xmlData = await sendMessageToBackground({ type: "fetch-arxiv-xml", arxivId });
const doc = new DOMParser().parseFromString(
xmlData.replaceAll("\n", ""),
"text/xml"
Expand Down
2 changes: 1 addition & 1 deletion src/shared/min/utils.min.js

Large diffs are not rendered by default.

6,208 changes: 0 additions & 6,208 deletions yarn.lock

This file was deleted.