多领国阻止血量减少

阻止 多领国 网站在学习过程中因错误减少用户的血量,通过拦截并阻止相关的“remove-heart”请求。

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
深海云霁
日安装量
1
总安装量
631
评分
5 0 0
版本
0.0.6
创建于
2025-01-23
更新于
2025-02-03
大小
5.1 KB
许可证
MIT
适用于

脚本说明

  1. 中途退出的情况:

    • 如果您在学习过程中退出单元(例如点击退出按钮,而不是直接关闭浏览器或标签页),即使血量请求被拦截,前端界面依然可能显示血量减少。幸运的是,这种显示问题不会影响实际血量,因为后端血量保持不变。
    • 在退出后,刷新页面时,血量会恢复为正确的数值,确保您的学习数据始终准确。
  2. 正常完成学习的情况:

    • 如果您完成了整个单元并且有错误,DuoLingo 会根据错误的数量返还相应的血量。此时,前端显示的血量会自动更新,以反映后端的数据,无需任何额外操作。

Script Description

  1. When exiting midway:

    • If you exit the unit during study (for example, by clicking the exit button instead of directly closing the browser or tab), the front-end interface may still show a decrease in health even though the health request was blocked. Fortunately, this display issue does not affect your actual health points because the back-end health remains unchanged.
    • After exiting, when you refresh the page, the health display will return to the correct value to ensure your learning data remains accurate.
  2. When completing the lesson normally:

    • If you finish the entire unit and make some mistakes, DuoLingo will return the corresponding health points based on the number of errors. At this point, the front-end display will automatically update to reflect the back-end data, without requiring any extra action.

スクリプト説明

  1. 途中退出した場合:

    • 学習中にユニットを退出した場合(ブラウザやタブを直接閉じるのではなく、退出ボタンをクリックした場合など)、ヘルスのリクエストがブロックされていても、フロントエンドではヘルスが減少したように表示されることがあります。
      しかし、これは表示上の問題であり、バックエンドのヘルス値は変わりません。
    • 退出後にページをリフレッシュすると、ヘルスは正しい数値に戻り、学習データの正確さが保たれます。
  2. 学習を正常に完了した場合:

    • ユニットを最後まで完了し、間違いがあった場合、DuoLingo はミスの数に応じてヘルスを返還してくれます。
      このとき、フロントエンドのヘルス表示は自動的に更新され、追加の操作は必要ありません。

Descripción del script

  1. Al salir a mitad del proceso:

    • Si sales de la unidad durante el aprendizaje (por ejemplo, haciendo clic en el botón de salir en lugar de cerrar el navegador o la pestaña directamente), es posible que la interfaz muestre una reducción de salud incluso si la solicitud fue bloqueada. Afortunadamente, este problema visual no afecta tu salud real, ya que el valor del servidor permanece igual.
    • Después de salir, al actualizar la página, la salud volverá a su valor correcto, asegurando que tus datos de aprendizaje siempre sean precisos.
  2. Al completar la unidad normalmente:

    • Si completas la unidad y cometes errores, DuoLingo devolverá la salud correspondiente según la cantidad de fallos. En este caso, la interfaz se actualizará automáticamente para reflejar los datos del servidor, sin necesidad de ninguna acción adicional.