您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add AlphaXiv link to arXiv abstract page
当前为
// ==UserScript== // @name ToAlphaXiv // @name:zh-CN 跳转到AlphaXiv // @name:ja AlphaXivへ // @namespace http://tampermonkey.net/ // @version 2024-08-04 // @description Add AlphaXiv link to arXiv abstract page // @description:zh-cn 增加到 AlphaXiv 的链接 // @description:ja AlphaXiv へのリンクを付け加える。 // @author [email protected], [email protected] // @match https://arxiv.org/abs/* // @icon https://alphaxiv.org/icon.ico // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const createLink = function(name, url) { const link = document.createElement('a'); link.style.cssText = `display: inline-block; border-left: 2px solid #fff; padding-left: 10px; margin-left: 10px;`; link.target = '_blank'; link.href = url; link.textContent = name; return link; }; const href = window.location.href; const alphaXivEntry = createLink('AlphaXiv', href.replace('arxiv.org', 'alphaxiv.org')); const target = document.querySelector('.header-breadcrumbs'); target.appendChild(alphaXivEntry); })();