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('/'));

QingJ © 2025

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