Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
SaveTube
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sebaro
SaveTube
Commits
656192b7
Commit
656192b7
authored
Nov 19, 2018
by
sebaro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Maxthon addon
parent
fd8610d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
Extensions/Maxthon/SaveTube.mxaddon
Extensions/Maxthon/SaveTube.mxaddon
+0
-0
Extensions/Maxthon/SaveTube/def.json
Extensions/Maxthon/SaveTube/def.json
+2
-2
Extensions/Maxthon/SaveTube/script.js
Extensions/Maxthon/SaveTube/script.js
+8
-4
No files found.
Extensions/Maxthon/SaveTube.mxaddon
View file @
656192b7
No preview for this file type
Extensions/Maxthon/SaveTube/def.json
View file @
656192b7
[{
"author"
:
"Sebaro (script) & A.S. (mxaddon)"
,
"website"
:
"http://sebaro.pro/savetube/"
,
"date"
:
"0
9.09
.2018"
,
"date"
:
"0
7.11
.2018"
,
"type"
:
"extension"
,
"frameworkVersion"
:
"1.0.0"
,
"version"
:
"2018.
09.09
.0"
,
"version"
:
"2018.
11.07
.0"
,
"guid"
:
"{3DEDEE46-63BC-4024-9796-737F8820E16E}"
,
"name"
:
"SaveTube"
,
"icon"
:
"icon"
,
...
...
Extensions/Maxthon/SaveTube/script.js
View file @
656192b7
// ==UserScript==
// @name SaveTube
// @version 2018.
09.09
// @version 2018.
11.07
// @description Download videos from video sharing web sites.
// @author sebaro
// @namespace http://sebaro.pro/savetube
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @downloadURL https://gitlab.com/sebaro/savetube/raw/master/savetube.user.js
// @updateURL https://gitlab.com/sebaro/savetube/raw/master/savetube.user.js
// @icon https://gitlab.com/sebaro/savetube/raw/master/savetube.png
...
...
@@ -48,6 +47,9 @@
// @include http://www.imdb.com*
// @include https://imdb.com*
// @include https://www.imdb.com*
// @noframes
// @grant none
// @run-at document-end
// ==/UserScript==
...
...
@@ -593,7 +595,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,
(
.*
?
)\(
/
);
if
(
!
ytSignFuncName
)
ytSignFuncName
=
ytScriptSrc
.
match
(
/d.set
\(
b,
.*
?([
a-zA-Z0-9
]
+
)\(
/
);
ytSignFuncName
=
(
ytSignFuncName
)
?
ytSignFuncName
[
1
]
:
null
;
if
(
ytSignFuncName
)
{
ytFuncMatch
=
ytSignFuncName
.
replace
(
/
\$
/
,
'
\\
$
'
)
+
'
\\
s*=
\\
s*function
\\
s*
'
+
'
\\
s*
\\
(
\\
w+
\\
)
\\
s*
\\
{(.*?)
\\
}
'
;
...
...
@@ -1463,7 +1465,9 @@ SaveTube();
page
.
win
.
setInterval
(
function
()
{
if
(
page
.
url
!=
page
.
win
.
location
.
href
)
{
if
(
saver
[
'
saverPanel
'
])
removeMyElement
(
page
.
body
,
saver
[
'
saverPanel
'
]);
if
(
saver
[
'
saverPanel
'
]
&&
saver
[
'
saverPanel
'
].
parentNode
)
{
removeMyElement
(
saver
[
'
saverPanel
'
].
parentNode
,
saver
[
'
saverPanel
'
]);
}
page
.
doc
=
page
.
win
.
document
;
page
.
body
=
page
.
doc
.
body
;
page
.
url
=
page
.
win
.
location
.
href
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment