You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
894 B
28 lines
894 B
// ==UserScript==
|
|
// @name Stream Download
|
|
// @version 0.9.2
|
|
// @namespace https://mydl.cabillot.eu
|
|
// @description Ajoute le lien vers le stream direct
|
|
// @match http://www.dl-protect.com/*
|
|
// @match https://www.dl-protect.com/*
|
|
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
|
|
// @copyright 2014+, Pois
|
|
// @author Pois
|
|
// @grant none
|
|
// @downloadURL https://mydl.cabillot.eu/scripts/stream.user.js
|
|
// ==/UserScript==
|
|
|
|
"use strict";
|
|
function getLink(url)
|
|
{
|
|
return 'https://mydl.cabillot.eu/stream/?myurl=' + url;
|
|
}
|
|
|
|
$("body").css("cursor", "progress");
|
|
var mylinks=$('#slinks > a');
|
|
for (var i = 0; i < mylinks.length; i++) {
|
|
$(mylinks[i]).before(
|
|
'<a class="nomulti" style="color: red;" href="' + getLink($(mylinks[i]).text()) +'">Download</a> '
|
|
).text('_');
|
|
}
|
|
$("body").css("cursor", "auto");
|