Cerca su IMDB

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

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

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

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

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

你需要先安裝一款使用者腳本管理器擴展,比如 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 );
})();