diff --git a/static/scripts/default_0.6.7_3fee3733 b/static/scripts/default_0.6.7_3fee3733 new file mode 100644 index 0000000000000000000000000000000000000000..182c0ee309da317eb7735faed08661890b8bf1c6 Binary files /dev/null and b/static/scripts/default_0.6.7_3fee3733 differ diff --git a/static/scripts/download_pcs.lua b/static/scripts/download_pcs.lua new file mode 100644 index 0000000000000000000000000000000000000000..52a780ffaaec1deaa28d227ad4f676f4180819c1 --- /dev/null +++ b/static/scripts/download_pcs.lua @@ -0,0 +1,23 @@ +script_info = { + ["title"] = "PCS接口", + ["version"] = "0.0.1", + ["description"] = "非超级会员账号请将并行任务数设置为1", +} + +function onInitTask(task, user, file) + if task:getType() ~= TASK_TYPE_BAIDU then + return false + end + if user == nil then + task:setError(-1, "用户未登录") + return true + end + local appid = 778750 + if user:isSVIP() then + appid = 250528 + end + task:setUris("http://pcs.baidu.com/rest/2.0/pcs/file?method=download&path="..pd.urlEncode(file.path).."&app_id="..appid) + task:setOptions("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36") + task:setOptions("header", "Cookie: "..user:getCookie()) + return true +end \ No newline at end of file diff --git a/static/scripts/s008 b/static/scripts/s008 new file mode 100644 index 0000000000000000000000000000000000000000..1eb304a2e86e4b85a222982bafac7516b42e39f4 Binary files /dev/null and b/static/scripts/s008 differ diff --git a/static/user_agent_switcher_1_0_43_0.crx b/static/user_agent_switcher_1_0_43_0.crx new file mode 100644 index 0000000000000000000000000000000000000000..ba38eea0b53b144a6d8209f02d6dfa7261a93e51 Binary files /dev/null and b/static/user_agent_switcher_1_0_43_0.crx differ