FL-DeepSearch

FL deep search

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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();
})();