Skip to content

paperus v0.0.28

Choose a tag to compare

@github-actions github-actions released this 12 Nov 15:56
· 141 commits to main since this release

Six publishers walk into a test suite: EEEK, Seance, APES, ScienceIndirect, Nurture and the American Comical Society. Only their PDFs come out.

  • A PDF open in Firefox's viewer, where the site turns the extension
    away
    : Firefox lets no extension read its viewer, so the extension
    fetched the PDF's address itself, and some sites answered that with a
    web page (a check for robots, a login). The address is now loaded again
    in a tab out of sight and a copy of the PDF kept as Firefox receives it
    (new permissions in Firefox: webRequest, webRequestBlocking,
    webRequestFilterResponse). An expired signed address says so.
  • The extension saves IEEE Xplore's papers: their pages have no
    citation_* tags, so the popup took one for a page listing papers (its
    references) and offered those. Their details (DOI, authors, venue,
    pages, PDF link) are read from the page's own data now, and the PDF from
    the frame that IEEE's PDF link (stamp.jsp) shows it in.
  • Science's DOIs and ACS's titles, as the pages give them: of a
    page's dc.Identifier tags the extension read only the first, on
    Science's pages its own ID, not the DOI (saving worked by the DOI in
    the address); ACS's titles kept the line break inside their tag.
  • Page twins for the extension: publishers' pages as the extension
    sees them, without their content, with unrelated titles, invented
    authors and parody names, checked in extension/twins/pages/; npm test there (and in CI) reads each as the extension does. The first six:
    EEEK Xplore, Seance Advances, Phys. Rev. Lol., ScienceIndirect, npj
    Quantum Misinformation and ACS Fauxtonics. They catch this release's
    page bugs (IEEE, Science's DOI, ACS's title). Where a PDF link forwards
    (ScienceIndirect's page in between and check for robots, EEEK's frame),
    a twin's chain plays the network and the PDF is fetched as in the page.
  • ScienceDirect's PDFs in Firefox, saved from the article's page: its
    PDF link, opened in a tab out of sight, reaches the PDF; the extension's
    own fetch of that address gets a check for robots ("Security
    verification") instead. The PDF is now loaded again there and a copy
    kept as Firefox receives it, as for a PDF open in Firefox's viewer.
  • The paper's PDF, not its supplement: on a page without a
    citation_pdf_url (Science Advances) the extension took the first PDF
    link naming the paper's DOI, which could be the supplementary material
    (/doi/suppl/…/…_sm.pdf), and saved it as the paper. Supplements are
    passed over now, and the article's own PDF (/doi/pdf/<DOI>, or its
    reader's /doi/epdf/<DOI>) comes first.