DPStream.net Débrideur

Ce script permet le débridage facile des séries/mangas/films à partir de l'ancien site DPStream.net

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         DPStream.net Débrideur
// @namespace    DPStream.net Débrideur
// @version      0.5.5
// @description  Ce script permet le débridage facile des séries/mangas/films à partir de l'ancien site DPStream.net
// @author       Kursion (Modifié par Seb02859)
// @grant        none
// @match 		 http://www.dpstream.net/serie-*
// @match 		 http://www.dpstream.net/manga-*
// @match 		 http://www.dpstream.net/film-*
// @match 		 http://mondebrideur.com/pureapi.php?id=*
// @require		 http://code.jquery.com/jquery-latest.js
// ==/UserScript==

$(document).ready(function() {
    console.log("DPStream.net Débrideur démarré");
    var interval = undefined;
    var getLinks = function(){
        console.log("Execution getLinks()");
        // The div containing links
        var container = $("<div/>");
        
        //Ancien lien href: "http://enstreaming.com/purevidsansjavahd.php?id="+link,
        var countLinks = 0;
        $("a").each(function(i){
            var link = $(this).attr("href");
            if(link.indexOf("www.purevid.com/v/") > 0){
                link = link.replace("http://www.purevid.com/v/", "").slice(0,-1);
                var ahref3 = $("<a/>", {
                    href: "http://www.enstreaming.com/pages/debrideur/chargement.php?id="+link+"&debrideur=purevid",
                    text: "Charger le débrideur Purvid 1 : " + link,
                    target: "_blank",
                });
                var ahref = $("<a/>", {
                    href: "http://www.enstreaming.com/telecharger.php?id="+link+"&debrideur=purevid",
                    text: "Purevid débrideur 1 : " + link,
                    target: "_blank",
                });
                var div3 = $("<div/>").html(ahref3);
                container.append(div3);
                var div = $("<div/>").html(ahref);
                container.append(div);
                countLinks++;
                var ahref2 = $("<a/>", {
                    href: "http://mondebrideur.com/pureapi2.php?id="+link,
                    text: "Purevid débrideur 2 : " + link,
                    target: "_blank",
                });
                var div = $("<div/>").html(ahref2);
                container.append(div);
                countLinks++;
            }
        });
        if(countLinks > 0){
            container.css({
                position: "absolute",
                width: "350px",
                backgroundColor: "#333333",
                color: "#efefef",
                margin: "auto",
                left: 0,
                right: 0,
                top: "10px",
                padding: "10px",
                borderRadius: "10px"
            });
            $("body").append(container);
            $("body").scrollTop(0);
            clearInterval(interval);
        }
    };

    interval = setInterval(getLinks, 2000);

});