Cerca su IMDB

Cerca su IMDB e avverti se c'è una nuova puntata delle tue serie tv preferite

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         Cerca su IMDB
// @namespace    http://www.piratestreaming.black/film-aggiornamenti.php
// @version      0.5
// @description  Cerca su IMDB e avverti se c'è una nuova puntata delle tue serie tv preferite
// @author       You
// @match        http://www.imdb.com/find?ref_=nv_sr_fn&q=*&s=tt
// @match        http://www.imdb.com/title/*
// @match        http://www.piratestreaming.black/film-aggiornamenti.php
// @match        http://www.piratestreaming.black/serietv-aggiornamentii.php
// @match        http://www.piratestreaming.black/film-aggiornamenti.php?*
// @match        http://www.piratestreaming.black/categoria/*/*
// @match        http://www.italia-film.gratis/novita-streaming/*
// @match        http://www.italia-film.gratis/*
// @match        http://www.italia-film.gratis/novita-streaming/page/*/*
// @match        http://www.italia-film.gratis/category/*
// @match        http://www.italia-film.gratis/ultimi-telefilm-streaming/*
// @grant        none
// ==/UserScript==
(function() {
   'use strict';
    var titoli = $('div.featuredText > b > a, h3.entry-title > a'); //titoli film
    var sideBar = $('ul.sideNav > li > b > a, ul.sideNav > li > a, span.tvseries_name'); //titoli serie
    var titolo_serie = [];
    var serie_len = sideBar.length;
    var url = "";
    //cerca serie
    for(var i = 0; i < serie_len; i++){
        
        titolo_serie.push(sideBar[i].textContent);
        //Elenca serie tv preferite
        if(titolo_serie[i].includes("Pulsaciones")){
            alert("Pulsaciones");
        }
        
        if(titolo_serie[i].includes("Legion")){
            alert("Legion");
        }
        
        if(titolo_serie[i].includes("Doubt")){
            alert("Doubt");
        }
        
        if(titolo_serie[i].includes("Imposters")){
            alert("Imposters");
        }
        
        if(titolo_serie[i].includes("SS GB")){
            alert("SS GB");
        }
        
        if(titolo_serie[i].includes("The Americans")){
            alert("The Americans");
        }
        
        if(titolo_serie[i].includes("Feud")){
            alert("Feud");
        }
    }
    //cerca film su imdb
    titoli.click(function(){
        var testo = $(this).text();
        var testo1 = "";
        if(testo.endsWith("Sub ita")){
            testo1 = testo.replace("Sub ita", "");
        } else {
            testo1 = testo;
        }
        url = "http://www.imdb.com/find?ref_=nv_sr_fn&q=" + testo1 + "&s=tt";
        window.open(url);
    });
    //apri pagina film su imdb
    var risultati = $('td.result_text > a');
    var titolo = risultati[0].getAttribute("href");
    url = "http://www.imdb.com" + titolo;
    window.open(url, "_self");
    //Aggiorna
    window.setTimeout(function(){location.reload();}, 60000 );
})();