Remova Propagandas E Temporizadores Ao Baixar Filmes

Desativa Temporizadores Decrescentes e Ads em sites brasileiros para baixar filmes em sites de torrent que te redirecionam para outros sites antes de liberar o download.

当前为 2022-05-21 提交的版本,查看 最新版本

// ==UserScript==
// @name         Remova Propagandas E Temporizadores Ao Baixar Filmes
// @namespace    hacker09
// @version      44
// @description  Desativa Temporizadores Decrescentes e Ads em sites brasileiros para baixar filmes em sites de torrent que te redirecionam para outros sites antes de liberar o download.
// @author       hacker09
// @noframes
// @include      *://www.google.*
// @include      *://futebolistasonline.club/*
// @include      /^(https?:\/\/)(www\.)?(adrenalinagames|mastercuriosidadesbr|ondebaixa|ondebaixo|vmstorrent|clubetorrent|blurayfilmes|baixotorrents|lacraiatorrent|completotorrent|adorocinematorrent|aoseugosto|oseugosto|cinefilmesbrasil|topfilmestorrents|comoeubaixo|boutv|yts-yts|gumroad|bulktorrent|filmesdetv|dubladotorrent|thepiratefilmetorrent|filmeviatorrents|filmeserietorrent|darkmahou|baixartudogratis|quandobaixo|vacatorrent|vivatorrent|ondebaixarfilmes)(\.com)(\/.*)?/
// @include      /^(https?:\/\/)(www\.)?(filmesmega|megatorrentshd|comando-torrents|thepiratesfilmes|lapumia|baixafilme|baixarfilmetorrent|baixafilmetorrent|comandostorrent|comandotorrent|thepiratefilmetorrent|filmestorrents)(\.net)(\/.*)?/
// @include      /^(https?:\/\/)(www\.)?(torrentool|torrentoon|hidratorrent|baixartorrents|thepiratefilmetorrent|bluraytorrent|yifymx)(\.org)(\/.*)?/
// @include      /^(https?:\/\/)(www\.)?(thepiratefilmetorrent|torrentdosfilmes2|wolverdonfilmes|torrentfilmes)(\.tv)(\/.*)?/
// @include      /^(https?:\/\/)(www\.)?(kristi0520|boardiweb|theexconsofymm|filmedaki)(\.blogspot\.com)(\/.*)?/
// @include      /^(https?:\/\/)(www\.)?(arnolds|filmestorrentbrasil|filmestorrentdownload)(\.com\.br)(\/.*)?/
// @include      /^(https?:\/\/)(www\.)?(filmesviatorrents|thepiratefilmetorrent|baixarfilmes)(\.me)(\/.*)?/
// @include      /^(https?:\/\/)(www\.)?(filmestorrent|filmestvdublado.home)(\.blog)(\/.*)?/
// @include      /^(https?:\/\/)(www\.)?(bluf|baixartudo)(\.online)(\/.*)?/
// @include      /^(https?:\/\/)(www\.)?(bludv|comando)(\.to)(\/.*)?/
// @match        *://megatorrents.co/*
// @match        *://aquitemfilmes.info/*
// @match        *://filmestorrentbr.top/*
// @match        *://baixarfilmestorrents.biz/*
// @icon         https://i.imgur.com/zXz7pGG.png
// @grant        GM_registerMenuCommand
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        window.close
// @grant        unsafeWindow
// @run-at       document-idle
// ==/UserScript==
(function() {
  'use strict';
  if (top.location.host.match('www.google')) /*Run only on google */ { //Starts the if condition
    GM_registerMenuCommand("Desativar/Ativar Marcação", ActivateOnGoogle); // Adds an option to the menu
  } // Finishes the if condition

  if (GM_getValue("ActivateOnGoogle") === undefined) //If the value doesn't exist define it as true
  { //Starts the if condition
    GM_setValue("ActivateOnGoogle", true); // Defines the variable as true
  } // Finishes the if condition

  function ActivateOnGoogle() // Function to activate/deactivate the highlight on google
  { //Starts the function ActivateOnGoogle
    if (GM_getValue("ActivateOnGoogle") === true) //If the last config was true, define as false
    { //Starts the if condition
      GM_setValue("ActivateOnGoogle", false); //Defines the variable as false
    } // Finishes the if condition
    else { // If the last config was false, define as true
      GM_setValue("ActivateOnGoogle", true); //Defines the variable as true
      location.reload(); //Reloads the page
    } // Finishes the else condition
  } // Finishes the function ActivateOnGoogle

  var BlockedWebsites = new RegExp(/^(https?:\/\/)?(www\.)?(filmestvdublado.home.blog|aquitemfilmes.info|filmesdetv.com|kristi0520.blogspot.com|theexconsofymm.blogspot.com|dubladotorrent.com|boutv.com|boardiweb.blogspot.com|gumroad.com|yts-yts.com|yifymx.org|bulktorrent.com|baixarfilmestorrents.biz|filmestorrentdownload.com.br)/);

  if (top.location.host.match('www.google') && GM_getValue("ActivateOnGoogle") === true) /*Run only on google */ { //Starts the if condition
    function HighLight() //Creates a function to HighLight the websites
    { //Starts the function HighLight
      var PageLinks = document.querySelectorAll("cite"); //Add all page links total number to a variable
      for (var i = PageLinks.length; i--;) { //Starts the for condition
        if (PageLinks[i].innerHTML.match(/^(https?:\/\/)?(www\.)?(bludv.to|torrentoon.org|ondebaixa.com|ondebaixo.com|vmstorrent.com|filmesmega.net|hidratorrent.org|megatorrents.co|clubetorrent.com|filmestorrent.blog|lacraiatorrent.com|baixartorrents.org|megatorrentshd.net|filmestorrentbr.top|cinefilmesbrasil.com|wolverdonfilmes.tv|filmesviatorrents.me|comando-torrents.net|filmestorrents.net|filmestorrentbrasil.com.br|torrentdosfilmes2.tv|thepiratesfilmes.net|thepiratefilmetorrent.tv|thepiratefilmetorrent.net|thepiratefilmestorrent.tv|comando.to|lapumia.net|torrentool.org|oseugosto.com|bluf.online|bluraytorrent.org|blurayfilmes.com|baixartudo.online|baixotorrents.com|comoeubaixo.com|baixafilme.net|comandotorrent.net|filmeviatorrents.com|baixarfilmes.me|comandostorrent.net|completotorrent.com|filmeserietorrent.com|aoseugosto.com|topfilmestorrents.com|filmedaki.blogspot.com|adorocinematorrent.com|baixafilmetorrent.net|baixarfilmetorrent.net||darkmahou.com|baixartudogratis.com|quandobaixo.com|vacatorrent.com|vivatorrent.com|ondebaixarfilmes.com)/)) //If the Result contains any of these links
        { //Starts the if condition
          PageLinks[i].style.backgroundColor = 'rgba(255, 255, 0, 0.5)'; //Change the element background to Yellow
        } //Finishes the if condition
        if (PageLinks[i].innerHTML.match(BlockedWebsites)) //If the Result contains any of the Blocked Websites
        { //Starts the else condition
          PageLinks[i].style.backgroundColor = 'rgba(255, 0, 0, 0.2)'; //Change the element background to Red
        } //Finishes the else condition
      } //Finishes the for condtiion
    } //Finishes the function HighLight
    HighLight(); //Starts the HighLight Function

    new MutationObserver(async function() { //If the results page changes anything (If the user uses anything like the endless google scripts)
      HighLight(); //Starts the HighLight Function
    }).observe(document.querySelector("#rcnt"), { //Defines the element and characteristics to be observed
      attributes: true,
      attributeOldValue: true,
      characterData: true,
      characterDataOldValue: true,
      childList: true,
      subtree: true
    }); //Finishes the definitions that will be observed

  } //Finishes the if condition

  if (top.location.host.match(BlockedWebsites)) /*Run only on the blocked websites*/ { //Starts the if condition
    window.top.close(); //Close the trash website
  } // Finishes the if condition

  if (!top.location.host.match('www.google')) /*Not run only on google */ { //Starts the if condition
    if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) /*If the browser is using the dark theme */ { //Starts the if condition
      document.title = '🏳️☠️ ' + document.title; //Add the pirate flag emoji the tab title
    } // Finishes the if condition
    else //If the browser is using the light theme
    { //Starts the else condition
      document.title = '🏴‍☠️ ' + document.title; //Add the pirate flag emoji the tab title
    } // Finishes the else condition
  } // Finishes the if condition

  if (!top.location.host.match('www.google') && top.location.host.match(/(^(www\.)?(baixarfilmetorrent|comando.to|baixar|baixafilmes?|filmedaki|baixartudo|thepiratesfilmes|filmes?viatorrents|thepiratefilmetorrent.tv|thepiratefilmetorrent|lapumia|bluf|torrentdosfilmes2|filmestorrentbr|filmestorrentbrasil|cinefilmesbrasil|comoeubaixo|filmeserietorrent|filmestorrent))(.*)?/) === null) /*Do not run on google, neither on websites that should only be highlighted on google (The thepiratefilmetorrent.net,thepiratefilmetorrent.tv,filmestorrent.net,filmesviatorrents.me,comando-torrents.net,torrentdosfilmes2.tv,filmestorrentbr.top,filmestorrentbrasil.com.br,cinefilmesbrasil.com,comoeubaixo.com,baixartorrents.org,comando-torrents.net,filmeviatorrents.com,filmeserietorrent.com,filmestorrent.blog sites shouldn't only be highlighted, but the codes below doesn't work on them) */ { //Starts the if condition
    Function.prototype.apply = function() {}; //Disable JS on the website so that the download buttons will load without ads
  } // Finishes the if condition

  var interval = setInterval(function() { //Creates a new interval function
    unsafeWindow.console.clear = () => {}; //Stops the console logs from being cleared
  }, 0); //Finishes the set interval function

  window.onload = function() //When the page finishes loading
  { //Starts the onload function
    clearInterval(interval); //Breaks the timer that stops the console log from being cleared every 0 secs
  } //Finishes the onload function

  if (top.location.host.match(/www.mastercuriosidadesbr.com|www.arnolds.com.br|futebolistasonline.club/)) /*Run only on mastercuriosidadesbr.com,www.arnolds.com.br and on futebolistasonline.club */ { //Starts the if condition
    document.querySelector("#aviso").style.display = "none"; //Disable Counter Text
    document.querySelector("#loko").style.display = "none"; //Disable Fake Download Button
    document.querySelector("#baixar").style.display = ""; //Enable the Real Download Button
    document.oncontextmenu = function() {}; /*Enables the Right Click */
    document.querySelector("#saudacao").remove(); //Remove the text "CLIQUE NO ANÚNCIO ABAIXO PARA LIBERAR O TORRENT"
    document.querySelector("#topo").remove(); //Remove the disable adblock text
    document.querySelector("#colunas").remove(); //Remove the page ads
    document.querySelector("#colunas").remove(); //Remove the page ads

    if (document.querySelector("#baixar > p > a") !== null && document.querySelector('a[href*="magnet"]') === null) //If there's a redirector link and 0 torrent links
    { //Starts the if condition
      window.open(document.querySelector("#baixar > p > a").href, "_self"); //Open the redirector link link, if existent
    } // Finishes the if condition
    else //Open the magnet link
    { //Starts the else condition
      window.open(document.querySelector('a[href*="magnet"]').href, "_self"); //Open the unprotected link, if existent
    } // Finishes the else condition

  } // Finishes the if condition

  if (top.location.host === 'www.adrenalinagames.com') /*Run only on adrenalinagames.com */ { //Starts the if condition
    document.getElementById('link0').style.display = "none"; //Hides the fake download button
    document.getElementById('link').style.display = "block"; //Shows the real download button
    document.getElementById('msg').style.display = "none"; /*Disable the message "Clique uma vez em um dos anuncios,aguarde 20 segundos na pagina que ira abrir, apos isso o seu download sera liberado" */
  } // Finishes the if condition

  if (top.location.host.match(/(^(www\.)?(megatorrents|megatorrentshd|thepiratefilmetorrent|filmesviatorrents|filmeviatorrents|lapumia|baixarfilmes|comando-torrents|thepiratesfilmes|wolverdonfilmes|bluf|baixafilme|baixarfilmetorrent))(.*)?/)) /*Run on the correct websites only */ { //Starts the if condition
    document.querySelectorAll('a[target="_blank"]').forEach(link => link.removeAttribute('target')); //Disable target = "_blank" on the website
  } //Finishes the if condition

  if (top.location.host.match(/www.torrentdosfilmes2.tv|www.bludv.to/)) /*Run only on torrentdosfilmes2.tv and on www.bludv.to */ { //Starts the if condition
    setTimeout(function() { //Starts the settimeout function
      document.querySelector("#xhide").target = ''; //Block the agregadordigital link from being opened
      document.querySelectorAll("a[href*='javascript:void();']").forEach(function(Element) { //To all "fake" link elements
        Element.onclick = function(e) { //Add an event listener to the fake link elements
          setTimeout(function() { //Starts the settimeout function
            window.open(document.querySelector("#down").value, "_self");
          }, 0); //Get and open the real unprotected magnet link
        } //Finishes the onclick event listener
      }); //Finishes the forEach condition
    }, 1800); //Wait the bludv website to be loaded
  } // Finishes the if condition

  if (top.location.host.match(/filmeserietorrent.com/) !== null) /*Run only on the correct websites */ { //Starts the if condition
    document.querySelectorAll("a[href*='?token=']").forEach(function(Element) { //To all encoded links
      Element.onclick = function(e) { //Add an event listener to the fake link elements
        e.preventDefault(); //Prevent the default encoded link from being opened
        window.open(CryptoJS.AES.decrypt(atob(this.href.split('?token=')[1]), '391si8WU89ghkDB5').toString(CryptoJS.enc.Utf8), "_self"); //Decode,do the reverse cryptographic AES process and finally open the real unprotected download link
      } //Finishes the onclick event listener
    }); //Finishes the forEach condition
  } // Finishes the if condition

  function CommonAtob() //Creates a new function to "hack" the most commonly used atob "protection"
  { //Starts the CommonAtob function
    document.querySelectorAll("a[href*='?token='],a[href*='?id=']").forEach(function(Element) { //To all "fake" link elements
      Element.onclick = function(e) { //Add an event listener to the fake link elements
        window.open(atob(this.href.split(/\?token=|\?id=/)[1]), "_self"); //Decode and open the real unprotected download link
        e.preventDefault(); //Prevent the default encoded link from being opened
      } //Finishes the onclick event listener
    }); //Finishes the forEach condition
  } //Finishes the CommonAtob function

  if (top.location.host.match(/filmestorrentbr.top|filmestorrentbrasil.com.br|cinefilmesbrasil.com/)) /*Run only on filmestorrentbr.top,filmestorrentbrasil.com.br and cinefilmesbrasil.com */ { //Starts the if condition
    CommonAtob(); //Calls the CommonAtob function
  } // Finishes the if condition

  if (top.location.host.match(/baixartorrents.org/)) /*Run only on cinefilmesbrasil.com or on baixartorrents.org */ { //Starts the if condition
    window.onload = function() { //Starts the onload function
      setTimeout(function() { //Starts the settimeout function
        CommonAtob(); //Calls the CommonAtob function
      }, 1500); //Finishes the settimeout function
    }; //Finishes the onload function
  } // Finishes the if condition

  if (top.location.host === 'completotorrent.com') /*Run only on completotorrent.com */ { //Starts the if condition
    document.querySelector("#myNavbar > ul > li:nth-child(5)").remove(); //Removes the fake "Jogos" download button
  } //Finishes the if condition

  if (top.location.host === 'megatorrentshd.net' && document.querySelector("div#categoria.box_item.center-widget") !== null) /*Run only on megatorrentshd.net */ { //Starts the if condition
    document.querySelector("div#categoria.box_item.center-widget").innerHTML = document.querySelector("div#categoria.box_item.center-widget").innerHTML; //Remove the event listeners
    for (var i = document.querySelectorAll("input[onclick='this.focus();this.select()']").length; i--;) { //Starts the for condition
      document.querySelectorAll("[href*='javascript:void();']")[i].href = document.querySelectorAll("input[onclick='this.focus();this.select()']")[i].value; //Removes the fake link and adds the correct unprotected link for all buttons
    } // Finishes the for condition
  } // Finishes the if condition

  if (top.location.host.match('thepiratesfilmes.net')) /*Run only on thepiratesfilmes.net */ { //Starts the if condition
    document.querySelectorAll("a[href*='magnet']").forEach(function(Element) { //To all "fake" link elements
      Element.onclick = function(e) { //Add an event listener to the fake link elements
        this.href = this.href.match(/(?:(http)?(magnet.*))/); //Erase anything in front of the magnet link, and change the element link to have only the correct link
      } //Finishes the onclick event listener
    }); //Finishes the forEach condition
  } // Finishes the if condition

  if (top.location.host.match(/(^(www\.)?(thepiratefilmetorrent|thepiratesfilmes|filmesviatorrents|comando-torrents|wolverdonfilmes|filmestorrents))(.*)?/)) /*Run on the correct websites only */ { //Starts the if condition
    var SavedUnprotectedLinks = []; //Creates a new global array
    var AllPageLinks = document.querySelectorAll("a[href*='magnet:?xt=urn:btih:']"); //Select and store all unprotected magnet links on the page
    for (i = 0, max = AllPageLinks.length; i < max; i++) /*For every single link Do... */ { //Starts the for condition
      SavedUnprotectedLinks.push(AllPageLinks[i].href); //Add the unprotected direct magnet link to the array
    } //Finishes the for condition

    window.onload = function() { //Starts the function when the website finished loading
      setTimeout(function() { //Starts the settimeout function
        for (var i = 0, max = AllPageLinks.length; i < max; i++) /*For every single link Do... */ { //Starts the for condition
          AllPageLinks[i].href = SavedUnprotectedLinks[i]; //Add the Saved Unprotected Link to AllPageLinks
        } //Finishes the for condition
      }, 500); //Finishes the settimeout function
    }; //Finishes the onload function
  } //Finishes the if condition

  if (top.location.host.match(/thepiratefilmetorrent/)) /*Run only the thepiratefilmetorrent websites and on thepiratefilmetorrent.tv */ { //Starts the if condition
    var DownloadBTNs = document.querySelectorAll('img.alignnone.wp-image-7.size-medium'); //Select and store the total buttons number
    for (var i = 0, max = DownloadBTNs.length; i < max; i++) /*For every single button Do... */ {
      DownloadBTNs[i].src = 'https://' + location.host + '/wp-content/uploads/2016/05/MAGNET-LINK.fw_-300x77.png';
    } /*Finishes the for condition */
  } //Finishes the if condition
})();