Greasy Fork is available in English.

百度文库VVV下载

下载百度文库的doc或者pdf

// ==UserScript==
// @name         百度文库VVV下载
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  下载百度文库的doc或者pdf
// @author       Huohq
// @include      https://wenku.baidu.com/view/*
// @grant        none
// ==/UserScript==

(function() {
    window.downVVV=function(){
        var t=location.href
        t=t.replace(/baidu/,"baiduvvv");
        window.open(t);
    };
    var button = document.createElement("input"); //创建一个input对象(提示框按钮)
    button.setAttribute("type", "button");
    button.setAttribute("value", "下载VVV");
    button.style.width = "60px";
    button.style.align = "center";
    button.style.marginLeft = "250px";
    button.style.marginBottom = "10px";
    button.style.background = "#b46300";
    button.style.border = "1px solid " + "#b46300";//52
    button.style.color = "white";
    button.onclick=window.downVVV;
    var x = document.getElementById("doc-header-test");
    x.appendChild(button);
})();