DPStream.net Débrideur

Ce script parmet le débridage facile des séries/mangas/films à partir du site DPStream.net

目前為 2015-09-20 提交的版本,檢視 最新版本

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         DPStream.net Débrideur
// @namespace    DPStream.net Débrideur
// @version      0.5.1
// @description  Ce script parmet le débridage facile des séries/mangas/films à partir du 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 ahref = $("<a/>", {
                    href: "http://www.enstreaming.com/telecharger.php?id="+link+"&debrideur=purevid",
                    text: "Purevid débrideur 1 : " + link,
                    target: "_blank",
                });
                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);

});