1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-23 10:52:43 +01:00

Add more replace-able types

Reference:
https://en.wikipedia.org/wiki/M3U#Internet_media_types
This commit is contained in:
Raymond Hill 2023-11-07 07:53:37 -05:00
parent 1aa92c7570
commit ae24032607
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -679,10 +679,15 @@ const bodyFilterer = (( ) => {
const otherValidMimes = new Set([
'application/javascript',
'application/json',
'application/vnd.apple.mpegurl',
'application/mpegurl',
'application/vnd.api+json',
'application/xml',
'application/vnd.apple.mpegurl',
'application/vnd.apple.mpegurl.audio',
'application/x-mpegurl',
'application/xhtml+xml',
'application/xml',
'audio/mpegurl',
'audio/x-mpegurl',
]);
const BINARY_TYPES = fc.FONT | fc.IMAGE | fc.MEDIA | fc.WEBSOCKET;
const MAX_BUFFER_LENGTH = 3 * 1024 * 1024;