arxiv author link correction

correct the fragile author links

// ==UserScript==
// @name         arxiv author link correction
// @namespace    https://github.com/refraction-ray/general-scripts
// @version      0.1
// @description  correct the fragile author links
// @author       refraction-ray
// @match        https://arxiv.org/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
var a=document.querySelectorAll('div.list-authors > a');
if (a.length===0){
	a = document.querySelectorAll('p.authors > a');
}
if (a.length===0){
	a = document.querySelectorAll('div.authors > a');
}
var url1 = 'https://arxiv.org/search/?query=%22';
var url2 = '%22&searchtype=author&abstracts=show&order=-announced_date_first&size=50';
for (var i=0;i<a.length;i++) {
	a[i].href = url1+a[i].textContent.split(' ').join('+')+url2;
}
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址