{"id":626,"date":"2025-02-08T10:19:01","date_gmt":"2025-02-08T02:19:01","guid":{"rendered":"http:\/\/106.15.39.204\/?p=626"},"modified":"2025-02-15T09:02:31","modified_gmt":"2025-02-15T01:02:31","slug":"%e8%8e%b7%e5%8f%96%e5%bd%93%e5%89%8d%e7%99%be%e5%ba%a6%e7%bd%91%e7%9b%98%e6%96%87%e4%bb%b6%e5%90%8d%e7%9a%84%e6%b2%b9%e7%8c%b4%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/datoumaomi.cn\/?p=626","title":{"rendered":"[\u8f6c\u8f7d\u5907\u4efd]\u83b7\u53d6\u5f53\u524d\u767e\u5ea6\u7f51\u76d8\u6587\u4ef6\u540d\u7684\u6cb9\u7334\u811a\u672c"},"content":{"rendered":"\n<p>\u6cb9\u7334\u811a\u672c\u5730\u5740<\/p>\n\n\n\n<p><a href=\"https:\/\/greasyfork.org\/scripts\/459748\">https:\/\/greasyfork.org\/scripts\/459748<\/a><\/p>\n\n\n\n<p>\u4f5c\u8005 \u00a0by Yanan<\/p>\n\n\n\n<p>\u4ee3\u7801\u5907\u4efd:2025\u5e742\u67088\u65e5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ ==UserScript==\n\/\/ @name         \u767e\u5ea6\u7f51\u76d8\u6587\u4ef6\u5217\u8868\u540d\u79f0\u63d0\u53d6\n\/\/ @namespace    http:\/\/tampermonkey.net\/\n\/\/ @version      0.1\n\/\/ @description  \u53ef\u63d0\u53d6\u767e\u5ea6\u7f51\u76d8\u6587\u4ef6\u540d\u79f0\u5217\u8868 \u652f\u6301\u4e00\u952e\u590d\u5236\u4e0e\u6570\u91cf\u7edf\u8ba1\n\/\/ @author       Yanan\n\/\/ @icon         https:\/\/www.google.com\/s2\/favicons?sz=64&amp;domain=tampermonkey.net\n\/\/ @grant        none\n\/\/ @run-at document-start\n\/\/ @match https:\/\/pan.baidu.com\/disk\/main*\n\/\/ @match https:\/\/pan.baidu.com\/s\/*\n\/\/ @license MIT\n\/\/ @downloadURL https:\/\/update.greasyfork.org\/scripts\/459748\/%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E6%96%87%E4%BB%B6%E5%88%97%E8%A1%A8%E5%90%8D%E7%A7%B0%E6%8F%90%E5%8F%96.user.js\n\/\/ @updateURL https:\/\/update.greasyfork.org\/scripts\/459748\/%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E6%96%87%E4%BB%B6%E5%88%97%E8%A1%A8%E5%90%8D%E7%A7%B0%E6%8F%90%E5%8F%96.meta.js\n\/\/ ==\/UserScript==\n\n(function() {\n    'use strict';\n\n    function copyToClip(content, message) {\n        var aux = document.createElement(\"textarea\");\n        aux.value = content;\n        document.body.appendChild(aux);\n        aux.select();\n        document.execCommand(\"copy\");\n        document.body.removeChild(aux);\n        if (message == null) {\n            alert(\"\u590d\u5236\u6210\u529f\");\n        } else{\n            alert(message);\n        }\n    }\n\n    const showResult = (str, list) => {\n        const div = document.createElement('DIV');\n        div.style.cssText = 'position: fixed; right:0; bottom: 0; height: 60vh; width: 30vw; display:flex; flex-direction: column; background: #fff; border: 2px dashed blue; z-index: 100000;'\n        const textArea = document.createElement('TEXTAREA');\n        textArea.style.cssText = 'width:100%; flex: 1; font-family: Arial; ';\n        const statics = document.createElement('DIV');\n        statics.style.cssText = 'display: flex; align-items: center; height: 30px; border-bottom: 1px solid #ccc; flex-shrink:0;';\n        statics.innerHTML = '\u5171\u8ba1\uff1a' + list.length + '\u6761\uff0c\u8bf7\u6838\u5bf9\uff01\uff01';\n        textArea.value = str;\n        const copy = document.createElement('BUTTON');\n        copy.innerHTML= '\u590d\u5236';\n        copy.style.cssText = 'position:absolute; right:20px;top:4px;'\n        copy.addEventListener('click', () => {\n            copyToClip(str);\n        })\n        div.appendChild(statics);\n        div.appendChild(textArea);\n        div.appendChild(copy);\n        document.body.appendChild(div);\n    }\n\n    \/\/ Your code here...\n    const originOpen = XMLHttpRequest.prototype.open;\n    XMLHttpRequest.prototype.open = function (_, url) {\n        console.log(url)\n        if (url.includes('api\/list') || url.includes('share\/list')) {\n            console.log('started to work', url);\n            this.addEventListener(\"readystatechange\", function () {\n                if (this.readyState === 4) {\n                    try {\n                    const r = typeof this.response === 'string' ? JSON.parse(this.response) : this.response;\n                    const listStr = r.list.map(e => e.server_filename).join('\\n');\n                    showResult(listStr,r.list);\n                    } catch(e) {\n                        console.log('\u63d2\u4ef6\u89e3\u6790\u9519\u8bef',e);\n                    }\n                }\n            });\n        }\n        originOpen.apply(this, arguments);\n    };\n})();<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6cb9\u7334\u811a\u672c\u5730\u5740 https:\/\/greasyfork.org\/scripts\/459748 \u4f5c\u8005 \u00a0by Yanan \u4ee3\u7801\u5907\u4efd:2025\u5e742\u67088\u65e5<\/p>\n","protected":false},"author":1,"featured_media":318,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[25],"class_list":["post-626","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-it","tag-it"],"_links":{"self":[{"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=\/wp\/v2\/posts\/626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=626"}],"version-history":[{"count":5,"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=\/wp\/v2\/posts\/626\/revisions"}],"predecessor-version":[{"id":633,"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=\/wp\/v2\/posts\/626\/revisions\/633"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=\/wp\/v2\/media\/318"}],"wp:attachment":[{"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=626"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/datoumaomi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}