kopia lustrzana https://github.com/TeamNewPipe/NewPipeExtractor
Merge pull request #1302 from FineFindus/fix/throttling-function-regex
[YouTube] add new deobfuscation function name regexpull/1322/merge
commit
1b8864afb8
|
@ -28,6 +28,13 @@ final class YoutubeThrottlingParameterUtils {
|
|||
|
||||
// CHECKSTYLE:OFF
|
||||
private static final Pattern[] DEOBFUSCATION_FUNCTION_NAME_REGEXES = {
|
||||
/*
|
||||
* Matches the following text, where we want m85:
|
||||
*
|
||||
* m85=function( ... return Y[45]
|
||||
*/
|
||||
Pattern.compile("([A-Za-z0-9_\\$]{2,})=function.*return [A-Z]\\[\\d+\\]"),
|
||||
|
||||
|
||||
/*
|
||||
* Matches the following text, where we want SDa and the array index accessed:
|
||||
|
|
|
@ -35,10 +35,10 @@
|
|||
"cross-origin"
|
||||
],
|
||||
"date": [
|
||||
"Tue, 11 Feb 2025 21:20:44 GMT"
|
||||
"Thu, 10 Jul 2025 21:45:34 GMT"
|
||||
],
|
||||
"expires": [
|
||||
"Tue, 11 Feb 2025 21:20:44 GMT"
|
||||
"Thu, 10 Jul 2025 21:45:34 GMT"
|
||||
],
|
||||
"origin-trial": [
|
||||
"AmhMBR6zCLzDDxpW+HfpP67BqwIknWnyMOXOQGfzYswFmJe+fgaI6XZgAzcxOrzNtP7hEDsOo1jdjFnVr2IdxQ4AAAB4eyJvcmlnaW4iOiJodHRwczovL3lvdXR1YmUuY29tOjQ0MyIsImZlYXR1cmUiOiJXZWJWaWV3WFJlcXVlc3RlZFdpdGhEZXByZWNhdGlvbiIsImV4cGlyeSI6MTc1ODA2NzE5OSwiaXNTdWJkb21haW4iOnRydWV9"
|
||||
|
@ -56,10 +56,10 @@
|
|||
"ESF"
|
||||
],
|
||||
"set-cookie": [
|
||||
"YSC\u003d-HZn8W-65YI; Domain\u003d.youtube.com; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone",
|
||||
"__Secure-ROLLOUT_TOKEN\u003dCNz89uH5v5DP1AEQ5bPQrsa8iwMY5bPQrsa8iwM%3D; Domain\u003dyoutube.com; Expires\u003dSun, 10-Aug-2025 21:20:44 GMT; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone; Partitioned",
|
||||
"VISITOR_INFO1_LIVE\u003drMJck_iy7Ks; Domain\u003d.youtube.com; Expires\u003dSun, 10-Aug-2025 21:20:44 GMT; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone",
|
||||
"VISITOR_PRIVACY_METADATA\u003dCgJERRIEEgAgEA%3D%3D; Domain\u003d.youtube.com; Expires\u003dSun, 10-Aug-2025 21:20:44 GMT; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone"
|
||||
"YSC\u003dEChAyDglccw; Domain\u003d.youtube.com; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone",
|
||||
"VISITOR_INFO1_LIVE\u003dxQ6sy5vZEp0; Domain\u003d.youtube.com; Expires\u003dTue, 06-Jan-2026 21:45:34 GMT; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone",
|
||||
"VISITOR_PRIVACY_METADATA\u003dCgJERRIEEgAgMA%3D%3D; Domain\u003d.youtube.com; Expires\u003dTue, 06-Jan-2026 21:45:34 GMT; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone",
|
||||
"__Secure-ROLLOUT_TOKEN\u003dCLzLgPuF46Pe9wEQncDu56GzjgMYncDu56GzjgM%3D; Domain\u003dyoutube.com; Expires\u003dTue, 06-Jan-2026 21:45:34 GMT; Path\u003d/; Secure; HttpOnly; SameSite\u003dnone; Partitioned"
|
||||
],
|
||||
"strict-transport-security": [
|
||||
"max-age\u003d31536000"
|
||||
|
@ -74,7 +74,7 @@
|
|||
"0"
|
||||
]
|
||||
},
|
||||
"responseBody": "var scriptUrl \u003d \u0027https:\\/\\/www.youtube.com\\/s\\/player\\/af7f576f\\/www-widgetapi.vflset\\/www-widgetapi.js\u0027;try{var ttPolicy\u003dwindow.trustedTypes.createPolicy(\"youtube-widget-api\",{createScriptURL:function(x){return x}});scriptUrl\u003dttPolicy.createScriptURL(scriptUrl)}catch(e){}var YT;if(!window[\"YT\"])YT\u003d{loading:0,loaded:0};var YTConfig;if(!window[\"YTConfig\"])YTConfig\u003d{\"host\":\"https://www.youtube.com\"};\nif(!YT.loading){YT.loading\u003d1;(function(){var l\u003d[];YT.ready\u003dfunction(f){if(YT.loaded)f();else l.push(f)};window.onYTReady\u003dfunction(){YT.loaded\u003d1;var i\u003d0;for(;i\u003cl.length;i++)try{l[i]()}catch(e){}};YT.setConfig\u003dfunction(c){var k;for(k in c)if(c.hasOwnProperty(k))YTConfig[k]\u003dc[k]};var a\u003ddocument.createElement(\"script\");a.type\u003d\"text/javascript\";a.id\u003d\"www-widgetapi-script\";a.src\u003dscriptUrl;a.async\u003dtrue;var c\u003ddocument.currentScript;if(c){var n\u003dc.nonce||c.getAttribute(\"nonce\");if(n)a.setAttribute(\"nonce\",\nn)}var b\u003ddocument.getElementsByTagName(\"script\")[0];b.parentNode.insertBefore(a,b)})()};\n",
|
||||
"responseBody": "var scriptUrl \u003d \u0027https:\\/\\/www.youtube.com\\/s\\/player\\/6e20d3a8\\/www-widgetapi.vflset\\/www-widgetapi.js\u0027;window[\u0027yt_embedsEnableIframeApiSendFullEmbedUrl\u0027] \u003d true ;window[\u0027yt_embedsEnableAutoplayAndVisibilitySignals\u0027] \u003d true ;window[\u0027yt_embedsEnableIframeApiVideoIdValidation\u0027] \u003d true ;try{var ttPolicy\u003dwindow.trustedTypes.createPolicy(\"youtube-widget-api\",{createScriptURL:function(x){return x}});scriptUrl\u003dttPolicy.createScriptURL(scriptUrl)}catch(e){}var YT;if(!window[\"YT\"])YT\u003d{loading:0,loaded:0};var YTConfig;if(!window[\"YTConfig\"])YTConfig\u003d{\"host\":\"https://www.youtube.com\"};\nif(!YT.loading){YT.loading\u003d1;(function(){var l\u003d[];YT.ready\u003dfunction(f){if(YT.loaded)f();else l.push(f)};window.onYTReady\u003dfunction(){YT.loaded\u003d1;var i\u003d0;for(;i\u003cl.length;i++)try{l[i]()}catch(e){}};YT.setConfig\u003dfunction(c){var k;for(k in c)if(c.hasOwnProperty(k))YTConfig[k]\u003dc[k]};var a\u003ddocument.createElement(\"script\");a.type\u003d\"text/javascript\";a.id\u003d\"www-widgetapi-script\";a.src\u003dscriptUrl;a.async\u003dtrue;var c\u003ddocument.currentScript;if(c){var n\u003dc.nonce||c.getAttribute(\"nonce\");if(n)a.setAttribute(\"nonce\",\nn)}var b\u003ddocument.getElementsByTagName(\"script\")[0];b.parentNode.insertBefore(a,b)})()};\n",
|
||||
"latestUrl": "https://www.youtube.com/iframe_api"
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
Ładowanie…
Reference in New Issue