您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
An Arxiv Jumper to China Image Source
- // ==UserScript==
- // @name arxiv2cn
- // @name:zh arxiv2cn
- // @name:en arxiv2cn
- // @namespace arxiv2cn
- // @homepage arxiv2cn
- // @version 1.0
- // @author KyanChen
- // @description An Arxiv Jumper to China Image Source
- // @description:zh An Arxiv Jumper to China Image Source
- // @description:en An Arxiv Jumper to China Image Source
- // @include /^https?://(.*\.)?arxiv\.org/.*/
- // @run-at document-end
- // @license MIT License
- // ==/UserScript==
- window.onload=function () {
- let h0 = document.querySelector('#abs-outer > div.extra-services > div.full-text > ul');
- let h1 = document.querySelector('#abs-outer > div.extra-services > div.full-text > ul > li:nth-child(1)');
- let h2 = h1.cloneNode(h1);
- h2.children[0].text='arxiv2cn';
- h2.children[0].href = h2.children[0].href.replace('https://arxiv.org','http://xxx.itp.ac.cn');
- h0.insertBefore(h2,h0.children[0]);
- }();