Skip to content
Permalink
Browse files

Update arxiv xpath

  • Loading branch information...
GuyAglionby committed Apr 20, 2019
1 parent 5f1558e commit 5aaef7437eee535a60416659cbe6b5478217b624
Showing with 2 additions and 3 deletions.
  1. +2 −3 arXiv.org.js
@@ -9,10 +9,9 @@
"inRepository": true,
"translatorType": 12,
"browserSupport": "gcsv",
"lastUpdated": "2019-03-29 12:34:44"
"lastUpdated": "2019-04-20 11:32:16"
}


/*
***** BEGIN LICENSE BLOCK *****
@@ -115,7 +114,7 @@ function doWeb(doc, url) {
id = url.substring(p + 5, url.length - 4);
}
else {
id = ZU.xpathText(doc, '//td[contains(@class,"arxivid")]/a')
id = ZU.xpathText(doc, '//tr[td[text() = "Cite as:"]]//span[@class = "arxivid"]/a')
|| ZU.xpathText(doc, '//b[starts-with(normalize-space(text()),"arXiv:")]');
}
if (!id) throw new Error('Could not find arXiv ID on page.');

0 comments on commit 5aaef74

Please sign in to comment.
You can’t perform that action at this time.