FL-DeepSearch

FL deep search

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         FL-DeepSearch
// @description  FL deep search
// @namespace    fl.deep
// @author       CRK
// @match        https://filelist.io/details.php?*
// @grant        none
// @version      1.3
// @source       http://www.imdb.com/title/tt2854926
// @source       https://stackoverflow.com/questions/10572735/javascript-getelement-by-href
// @license      MIT
// ==/UserScript==
(function() {
    function hookTheFLDeepMonkey() {
        var text = document.createElement('snap');
        text.setAttribute("align", "center");
        text.setAttribute("style" ,"background-color: green; cursor:pointer;");
        text.innerHTML = `
            <center>
                <input style='background-color:red; color:white; margin-top:3px;font-weight:bold;' type='button' name='deepSearch' id='deepSearch' onclick='deepSearch();' value='DeepSearch' title='!!! Deep Search - click me to see all torrents for this movie !!!'>
            </center>
        `;

        var script = document.createElement('script');
        script.innerText = `
            function deepSearch() {
                var els = document.querySelectorAll("a[href^='https://www.imdb.com/title/tt']");
                if (els && els[0]) {
                    var url = els[0].href;
                    var imdb = url.split('/')[4];
                    window.open('https://filelist.io/browse.php?search=' + imdb + '&cat=0&searchin=3&sort=2', '_blank');
                } else {
                    alert('...not a movie...sorry :( ...but I Love You ! XOXO');
                }
            }
        `;

        document.body.appendChild(script);
        document.getElementsByClassName("cblock-header")[0].appendChild(text);
    };
    hookTheFLDeepMonkey();
})();