Created
December 16, 2018 05:13
-
-
Save Last-Order/43199b7a701fc94e800c2de0ed021f1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Abema 强制 1080p | |
// @version 1.0.0 | |
// @run-at document-start | |
// @namespace Violentmonkey Scripts | |
// @match https://abema.tv/* | |
// @grant none | |
// ==/UserScript== | |
const open = XMLHttpRequest.prototype.open; | |
XMLHttpRequest.prototype.open = function () { | |
arguments[1] = arguments[1].replace('720/playlist.m3u8', '1080/playlist.m3u8') | |
open.apply(this, arguments); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
XMLHttpRequest.prototype.open拦截不到playlist.m3u8这个ajax请求,或许是用了fetch接口?