docs: update the way to get cookie & fix issue #32
This commit is contained in:
parent
d6896001c3
commit
5a389246d3
15
README.md
15
README.md
@ -46,13 +46,18 @@ Genshin Impact Helper
|
|||||||
|
|
||||||
* 复制以下代码
|
* 复制以下代码
|
||||||
```
|
```
|
||||||
JSON.stringify({
|
var cookie = document.cookie;
|
||||||
Cookie: document.cookie
|
var ask = confirm('Cookie:' + cookie + '\n\n是否复制内容到剪切板?');
|
||||||
});
|
if (ask == true) {
|
||||||
|
copy(cookie);
|
||||||
|
msg = cookie;
|
||||||
|
} else {
|
||||||
|
msg = 'Cancel';
|
||||||
|
}
|
||||||
```
|
```
|
||||||
* 按`F12`,打开`开发者工具`,找到`Console`并点击
|
* 按`F12`,打开`开发者工具`,找到`Console`并点击
|
||||||
* 命令行粘贴代码并运行,获得类似`"{"Cookie":"xxxxxx"}"`的输出信息
|
* 命令行粘贴代码并运行,获得类似`Cookie:xxxxxx`的输出信息
|
||||||
* `xxxxxx`部分即为所需复制的`Cookie`
|
* `xxxxxx`部分即为所需复制的`Cookie`,点击确定复制
|
||||||
|
|
||||||
### 3. 添加 Cookie 至 Secrets
|
### 3. 添加 Cookie 至 Secrets
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user