Commit 87f461d6 authored by sebaro's avatar sebaro

Update Maxthon addon

parent 6635728e
[{
"author": "Sebaro (script) & A.S. (mxaddon)",
"website": "http://sebaro.pro/savetube/",
"date": "18.01.2019",
"date": "02.04.2019",
"type":"extension",
"frameworkVersion": "1.0.0",
"version": "2019.01.18.1",
"version": "2019.04.02.1",
"guid": "{3DEDEE46-63BC-4024-9796-737F8820E16E}",
"name": "SaveTube",
"icon": "icon",
......
// ==UserScript==
// @name SaveTube
// @version 2019.01.18
// @version 2019.04.02
// @description Download videos from video sharing web sites.
// @author sebaro
// @namespace http://sebaro.pro/savetube
......@@ -588,7 +588,7 @@ function SaveTube() {
var ytSignFuncName, ytSignFuncBody, ytSwapFuncName, ytSwapFuncBody, ytFuncMatch;
ytScriptSrc = ytScriptSrc.replace(/(\r\n|\n|\r)/gm, '');
ytSignFuncName = ytScriptSrc.match(/"signature"\s*,\s*([^\)]*?)\(/);
if (!ytSignFuncName) ytSignFuncName = ytScriptSrc.match(/d.set\(b,(?:encodeURIComponent\()?.*?([a-zA-Z0-9]+)\(/);
if (!ytSignFuncName) ytSignFuncName = ytScriptSrc.match(/d.set\(b,(?:encodeURIComponent\()?.*?([a-zA-Z0-9$]+)\(/);
ytSignFuncName = (ytSignFuncName) ? ytSignFuncName[1] : null;
if (ytSignFuncName) {
ytFuncMatch = ytSignFuncName.replace(/\$/, '\\$') + '\\s*=\\s*function\\s*' + '\\s*\\(\\w+\\)\\s*\\{(.*?)\\}';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment