Show Python 3 documentation by default

Automatically redirects Python 2 docs to Python 3.

// ==UserScript==
// @name         Show Python 3 documentation by default
// @namespace    http://jeremejevs.com/
// @author       Olegs Jeremejevs
// @description  Automatically redirects Python 2 docs to Python 3.
// @match        *://docs.python.org/2*
// @version      1.0
// ==/UserScript==

var tmp = document.location.pathname.split('/');
tmp[1] = '3';
document.location.replace(document.location.protocol + '//' + document.location.host + tmp.join('/'));
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元