Greasy Fork is available in English.
阻止 多领国 网站在学习过程中因错误减少用户的血量,通过拦截并阻止相关的“移除心数”请求。/ Prevent the Duolingguo website from reducing the number of hearts for users during the learning process by intercepting and blocking related "remove heart count" requests.
当前为
// ==UserScript==
// @name 多领国 阻止血量减少 / DuoLingo Prevent Remove Heart
// @namespace https://space.bilibili.com/1569275826
// @match *://*.duolingo.cn/*
// @match *://*.duolingo.com/*
// @version 0.0.1
// @description 阻止 多领国 网站在学习过程中因错误减少用户的血量,通过拦截并阻止相关的“移除心数”请求。/ Prevent the Duolingguo website from reducing the number of hearts for users during the learning process by intercepting and blocking related "remove heart count" requests.
// @author 深海云霁
// @license MIT
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
(function () {
"use strict";
const originalFetch = window.fetch;
window.fetch = function (...args) {
if (args[0].includes("remove-heart")) {
return Promise.resolve(new Response(null, { status: 200 }));
}
return originalFetch(...args);
};
})();