3+ download URL extractor
This commit is contained in:
parent
33028cd7eb
commit
129d04f058
1 changed files with 36 additions and 0 deletions
36
dl-3plus.js
Normal file
36
dl-3plus.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
// ==UserScript==
|
||||
// @name 3+
|
||||
// @description 3+ download URL to Wget command
|
||||
// @version 0.8
|
||||
// @namespace http://www.adrian.kousz.ch/
|
||||
// @require https://git.adrian.kousz.ch/adrian/userscripts/raw/master/lib.js
|
||||
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
|
||||
// @match http://www.3plus.tv/*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
AdiUserscriptLib.addButton('DL Cmds', function () {
|
||||
var vars = {}
|
||||
var commandline = 'wget {url}\n'
|
||||
var commands = ''
|
||||
|
||||
var scriptUrl = $('script[src*="container=sdnPlayer"]')
|
||||
.attr('src')
|
||||
.replace('autoplay=true', 'autoplay=false')
|
||||
;
|
||||
|
||||
// TODO: Overwrite only temporarily
|
||||
FlashDetect.versionAtLeast = function() { return false; };
|
||||
|
||||
var continueFn = function() {
|
||||
// TODO: Select best stream
|
||||
var qualities = ['hd720', 'mediumlarge','medium'];
|
||||
|
||||
vars.url = sdnPlayerConfig.playlist[6].src;
|
||||
|
||||
// NOTE: Prompt because of popup blocking
|
||||
prompt('URL', vars.url);
|
||||
}
|
||||
|
||||
$.getScript(scriptUrl, continueFn);
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue