Skip to content

Instantly share code, notes, and snippets.

@xiupos
Created April 12, 2024 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xiupos/cac675e99f6fc60d5ab0bf24fa2c4641 to your computer and use it in GitHub Desktop.
Save xiupos/cac675e99f6fc60d5ab0bf24fa2c4641 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name arXiv quick read utilities (WIP)
// @match https://arxiv.org/abs/*
// @version 1
// @grant none
// ==/UserScript==
document.addEventListener("keydown", (e) => {
if (e.code === "Period") {
window.location = window.location.toString().replace('arxiv.org','ar5iv.org');
} else if (e.code === "Comma") {
window.location = window.location.toString().replace('/abs/','/pdf/');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment