多领国阻止血量减少

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

目前為 2025-01-26 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name:en DuoLingo Prevent Remove Heart
  3. // @name 多领国阻止血量减少
  4. // @namespace https://space.bilibili.com/1569275826
  5. // @match *://*.duolingo.cn/*
  6. // @match *://*.duolingo.com/*
  7. // @version 0.0.3
  8. // @description 阻止 多领国 网站在学习过程中因错误减少用户的血量,通过拦截并阻止相关的“remove-heart”请求。
  9. // @description:en Prevent the Duolingo website from reducing the number of hearts for users during the learning process by intercepting and blocking related "remove-heart" requests.
  10. // @author 深海云霁
  11. // @license MIT
  12. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. (function () {
  17. "use strict";
  18.  
  19. const originalFetch = window.fetch;
  20.  
  21. window.fetch = function (...args) {
  22. if (args[0].includes("remove-heart")) {
  23. return Promise.resolve(new Response(null, { status: 200 }));
  24. }
  25.  
  26. return originalFetch(...args);
  27. };
  28. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址