Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打开脚本后 爱企查,百度乐玩 网站无法正常打开 #136

Open
ye001226 opened this issue Feb 29, 2024 · 1 comment
Open

打开脚本后 爱企查,百度乐玩 网站无法正常打开 #136

ye001226 opened this issue Feb 29, 2024 · 1 comment

Comments

@ye001226
Copy link

如题

@ye001226
Copy link
Author

以下代码导致的原网页无法请求后的白屏

function resetAjax() {
if (window._hadResetAjax) return
window._hadResetAjax = true
var originOpen = originXHR.prototype.open
window.XMLHttpRequest = function () {
var realXHR = new originXHR()
realXHR.open = function (method, url) {
url.toString() && url.toString().indexOf('.m3u8') > 0 && checkM3u8Url(url.toString())
originOpen.call(realXHR, method, url)
}
return realXHR
}
XMLHttpRequest.UNSENT = 0;
XMLHttpRequest.OPENED = 1;
XMLHttpRequest.HEADERS_RECEIVED = 2;
XMLHttpRequest.LOADING = 3;
XMLHttpRequest.DONE = 4;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant