# 1 Discord Token登录

{% hint style="danger" %}

### <mark style="background-color:red;">**注意Token会随着Discord账号密码改变而改变，使用账号密码登录后Token也会改变，使用Token登录并在Discord设置页面进行登出也会导致Token改变，老号的Token可能因时间太久而失效.**</mark>

{% endhint %}

{% hint style="danger" %}

### <mark style="background-color:red;">**如果使用Token登录不成功，需要使用账号密码进行登录，需获取Token可查看**</mark>

[2 Discord Token获取](/acc/discord-zhang-hao-xiang-guan/2-discord-token-huo-qu.md)
{% endhint %}

## [<mark style="background-color:green;">**Token登录视频教程（点击跳转）**</mark>](https://youtu.be/BbHh0Na41Es)

### **账号格式说明：**

* 邮箱账号（Discord账号）----密码----邮箱密码----手机号----昵称----注册日期----<mark style="background-color:red;">**Token**</mark>
* 123456\@ooopsmail.com----123456----123456----1 123456----ssssddd----2055/05/05----<mark style="background-color:red;">**OTY4Mzk4Mjc0NjY2NTM3.Ymu57A.1coyacZe6CmvJiF-7R3aPjeFoUkW0M**</mark>
* <mark style="background-color:red;">**那么这个账号的Token为：OTY4Mzk4Mjc0NjY2NTM3.Ymu57A.1coyacZe6CmvJiF-7R3aPjeFoUkW0M**</mark>

### 使用**Token登录的两种方式：**

{% tabs %}
{% tab title="第一种方式" %}

### <mark style="background-color:blue;">**第一种方式：**</mark> **扩展程序(Discord Token Login）登录，Chrome浏览器扩展程序下载地址**<https://chrome.google.com/webstore/detail/discord-token-login/ealjoeebhfijfimofmecjcjcigmadcai>

* <mark style="background-color:purple;">**步骤一：**</mark>**下载，安装扩展程序**

<figure><img src="/files/RKZSxHBEdmfAJpidIylr" alt=""><figcaption><p>安装插件</p></figcaption></figure>

* <mark style="background-color:purple;">**步骤二：**</mark>**在Discord登录页面**[**https://discord.com/login**](https://discord.com/login) **打开扩展程序并粘贴Token，点击Login，就登录成功了**

<figure><img src="/files/TdS3D3HcZGu8LRrvzEyZ" alt=""><figcaption><p>输入Token</p></figcaption></figure>

{% hint style="danger" %}

### <mark style="background-color:red;">**如果没反应，尝试打开Chrome浏览器开发者模式（快捷键F12或者CTRL+SHIFT+I），然后打开开发者模式左上角的移动设备模式（CTRL+SHIFT+M），然后再尝试。**</mark><img src="/files/CPb40qBeoy5kaBAmJ4Mf" alt="" data-size="original">

### <mark style="background-color:red;">**如果还不行，请尝试第二种方法，或者可能为Token失效了，需要采用账号密码进行登录。**</mark>

{% endhint %}
{% endtab %}

{% tab title="第二种方式" %}

### <mark style="background-color:blue;">**第二种方式：**</mark> **Chrome浏览器开发者模式代码登录，以下两串代码使用任何一种都可以，将账号Token替代进去就可以**

> ### <mark style="background-color:green;">**代码一：**</mark>
>
> ### **function login(token) {** **setInterval(() => {** **document.body.appendChild(document.createElement \`iframe\`).contentWindow\.localStorage.token = \`"${token}"\`** **}, 50);** **setTimeout(() => {** **location.reload();** **}, 2500);** **}**
>
> ### **login('复制Token替换这段文字')**

> ### <mark style="background-color:green;">**代码二：**</mark>
>
> ### **(function() {window\.t = "复制Token替换这段文字";window\.localStorage = document.body.appendChild(document.createElement \`iframe\`).contentWindow\.localStorage;window\.setInterval(() => window\.localStorage.token = \`"${window\.t}"\`); window\.location.reload();})();**

* <mark style="background-color:purple;">**步骤一：**</mark>**打开Chrome浏览器开发者模式（快捷键F12或者CTRL+SHIFT+I）**

  <figure><img src="/files/hNROpWk583rNc2xp5gqk" alt=""><figcaption><p>进入开发者模式</p></figcaption></figure>
* <mark style="background-color:purple;">**步骤二：**</mark>**清空Console（快捷键CTRL+L），然后将替换好Token的代码（代码一或者代码二都可以）输入到这里，按回车键即可登录**

  <figure><img src="/files/PKSWgeLj5P8StAjzyApn" alt=""><figcaption><p>清空Console</p></figcaption></figure>

  <figure><img src="/files/bFMRgSih9mmRm2K0oqsQ" alt=""><figcaption><p>清空完毕</p></figcaption></figure>

  <figure><img src="/files/ZMLjciFqSA9GojNzxPUE" alt=""><figcaption><p>输入代码</p></figcaption></figure>

{% hint style="danger" %}

### <mark style="background-color:red;">如果不行，可能为Token失效了，需要采用账号密码进行登录。</mark>

{% endhint %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://disyaoqing66.gitbook.io/acc/discord-zhang-hao-xiang-guan/1-discord-token-deng-lu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
