diff --git a/README.md b/README.md index c936749..86ed40b 100644 --- a/README.md +++ b/README.md @@ -46,13 +46,18 @@ Genshin Impact Helper * 复制以下代码 ``` -JSON.stringify({ - Cookie: document.cookie -}); +var cookie = document.cookie; +var ask = confirm('Cookie:' + cookie + '\n\n是否复制内容到剪切板?'); +if (ask == true) { + copy(cookie); + msg = cookie; +} else { + msg = 'Cancel'; +} ``` * 按`F12`,打开`开发者工具`,找到`Console`并点击 -* 命令行粘贴代码并运行,获得类似`"{"Cookie":"xxxxxx"}"`的输出信息 -* `xxxxxx`部分即为所需复制的`Cookie` +* 命令行粘贴代码并运行,获得类似`Cookie:xxxxxx`的输出信息 +* `xxxxxx`部分即为所需复制的`Cookie`,点击确定复制 ### 3. 添加 Cookie 至 Secrets