Greasy Fork

arXiv Redirect

Slove the "Access Denied" problem in arXiv

目前为 2017-09-09 提交的版本。查看 最新版本

// ==UserScript==
// @name         arXiv Redirect
// @include      https://arxiv.org/*
// @version      0.2
// @description  Slove the "Access Denied" problem in arXiv
// @author       Daqing Liu

// @date         2017.09.09

// @namespace https://greasyfork.org/users/152128
// ==/UserScript==


var str;
str=document.getElementById("Access Denied").innerHTML;
if(str.indexOf(CheckStr)==-1){
    var url = window.location.toString();
    window.location = url.replace('https://arxiv.org/', 'http://cn.arxiv.org/');
}