fix: try fix subtitle in userscript

This commit is contained in:
Gabe
2025-10-14 22:41:18 +08:00
parent 562559a1b0
commit 2de10364f3
5 changed files with 24 additions and 9 deletions

View File

@@ -1,5 +1,3 @@
import { MSG_XHR_DATA_YOUTUBE } from "./config";
(function () {
const originalOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function (...args) {
@@ -8,7 +6,7 @@ import { MSG_XHR_DATA_YOUTUBE } from "./config";
this.addEventListener("load", function () {
window.postMessage(
{
type: MSG_XHR_DATA_YOUTUBE,
type: "KISS_XHR_DATA_YOUTUBE",
url: this.responseURL,
response: this.responseText,
},