Brazzers - TWEAKED

View many short scenes without limits and links to download FULL scenes from LimeTorrents.

Versión del día 11/02/2021. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name         Brazzers - TWEAKED
// @namespace    none
// @version      0.7
// @description  View many short scenes without limits and links to download FULL scenes from LimeTorrents.
// @author       Bob Crawley
// @match        https://www.brazzers.com/*
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function torrentify(){

        // Declaring variables to stop script from spazzing out.
        var i
        var sceneName

        // Add Torrentz link for scenes using jQuery

        // For all scenes on navigation pages
        var sceneCard = document.querySelectorAll("div.dtkdna-4.dtkdna-8");

        for (i=0; i<sceneCard.length; i++) {
            if (sceneCard[i].innerHTML.search("limetorrents.info")==-1)
            {
                sceneName = sceneCard[i].innerText;
                sceneCard[i].innerHTML += ('<span style="padding-left:5px;"><a target="_blank" href="https://www.limetorrents.info/search/all/'+sceneName+'"><img src="https://www.limetorrents.info/favicon.ico" width="16" height="16"></a></span>')
            }
        };

        // Not sure what this applies to.
        var sceneView = document.querySelectorAll("h2.sc-1b6bgon-1.kOFSRa");

        for (i=0; i<sceneView.length; i++) {
            if (sceneView[i].innerHTML.search("limetorrents.info")==-1)
            {
                sceneName = sceneView[i].innerText;
                sceneCard[i].innerHTML += ('<span style="padding-left:5px;"><a target="_blank" href="https://www.limetorrents.info/search/all/'+sceneName+'"><img src="https://www.limetorrents.info/favicon.ico" width="16" height="16"></a></span>')
            }
        };

        // For single page
        var singleScene = document.querySelector("h2.sc-1b6bgon-2.font-secondary")
        if(singleScene != null)
        {
            if (singleScene.innerHTML.search("limetorrents.info")==-1)
            {
                sceneName = singleScene.innerText;
                singleScene.innerHTML += ('<span style="padding-left:5px;"><a target="_blank" href="https://www.limetorrents.info/search/all/'+sceneName+'"><img src="https://www.limetorrents.info/favicon.ico" width="16" height="16"></a></span>')
            }
        }

        // Remove below banner
        var banner = document.getElementsByClassName("sc-1mhpkp8-3 fJgjZN");
        if(banner[0] != null)
        {
            banner[0].innerHTML = ""
        };

        console.log("running torrentify")

    }

    function triggerButton() {
        var torrentTriggerButton = document.createElement("BUTTON");
        var torrentTriggerButtonText = document.createTextNode("Click me");
        torrentTriggerButton.appendChild(torrentTriggerButtonText);

        var bigButton = document.querySelector("div.udqyc6-0.ioxKuO")
        var smallButton = document.querySelector("div.udqyc6-0.jCNwqs")

        if (smallButton){
            smallButton.innerHTML = "<a id='torrentify' href='javascript:void(0);'> torrentify </a>"
        }

        if (bigButton){
            bigButton.innerHTML = "<a id='torrentify' href='javascript:void(0);'> torrentify </a>"
        }
    }

    document.addEventListener("click",triggerButton);
    document.addEventListener("click",torrentify);
})();