// ==UserScript==
// @name Remova Propagandas E Temporizadores Ao Baixar Filmes
// @namespace hacker09
// @version 1.0.0.30
// @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/*
// @exclude /^(https:\/\/thepirate-day\.org\/)(novidades-torrent-\d+|atividade|.+-torrent-magnet|livros-pdf-download|top-100-torrent-the-pirate-day|lancamentos-torrent|atores|atrizes|em-breve-para-download|netflix|filmes-vencedores-do-oscar|series-\d+-torrent|filmes-dublados-torrent|series-dublado|estou-com-sorte-the-pirate-day-download-torrent-\d+|filmes-e-series-dublados-dual-audio-legendados-download-torrent|pedidos|avaliacoes|dmca|category|membros|filmes-\d+-torrent-magnet|filmes-torrent-\d+|series-torrent-\d+|filmes-tecnologia-torrent|filmes-.+-torrent-\d+)(\/.*)?/
// @include /^(https?:\/\/)(www\.)?(adrenalinagames|mastercuriosidadesbr|ondebaixa|ondebaixo|vmstorrent|clubetorrent|blurayfilmes|baixotorrents|lacraiatorrent|torrentdublado|completotorrent|adorocinematorrent|filmebaixar|pirate-filmes|aoseugosto|bludvtorrent|filmestorrentbr|cinefilmesbrasil|topfilmestorrents|comoeubaixo|acervosupremo|boutv|yts-yts|yikiking|gumroad|bulktorrent|laostelephone|filmesdetv|dubladotorrent|thepiratefilmetorrent|filmeviatorrents|filmestorrentmagnet|filmeserietorrent)(\.com)(\/.*)?/
// @include /^(https?:\/\/)(www\.)?(filmesmega|ondeeubaixo|megatorrentshd|comando-torrents|thepiratesfilmes|thepiratefilmestorrent|lapumia|lapumiatorrent|baixafilme|baixarfilmetorrent|seriesfilmestorrent|baixakifilmestorrent|baixafilmetorrent|comandostorrents|yify-yify|filmesviatorrents)(\.net)(\/.*)?/
// @include /^(https?:\/\/)(www\.)?(torrentool|torrentoon|hidratorrent|ondeeubaixo|thepirate-day|todosfilmeshd|thepiratefilmestorrent|baixartorrents|thepiratefilmetorrent)(\.org)(\/.*)?/
// @include /^(https?:\/\/)(www\.)?(thepiratefilmetorrent|thepiratefilmestorrent|comandotorrent|torrentdosfilmes|wolverdonfilmes|filmesviatorrents)(\.tv)(\/.*)?/
// @include /^(https?:\/\/)(www\.)?(arnolds|bluraytorrent|filmestorrentbrasil|filmestorrentmax|filmestorrentdownload)(\.com\.br)(\/.*)?/
// @include /^(https?:\/\/)(www\.)?(kristi0520|boardiweb|theexconsofymm|filmedaki)(\.blogspot\.com)(\/.*)?/
// @include /^(https?:\/\/)(www\.)?(bludv|torrentdosfilmes)(\.in)(\/.*)?/
// @include /^(https?:\/\/)(www\.)?(bluf|baixartudo)(\.online)(\/.*)?/
// @match *://comando.to/*
// @match *://megatorrents.co/*
// @match *://katmoviehd.world/*
// @match *://aquitemfilmes.info/*
// @match *://www.baixarfilmes.ws/*
// @match *://filmesviatorrents.cc/*
// @match *://elitedosdownloads.club/*
// @match *://br.filmestorrent.gratis/*
// @match *://baixarfilmestorrents.biz/*
// @match *://filmestvdublado.home.blog/*
// @match *://www.thepiratefilmetorrent.me/*
// @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\.)?(todosfilmeshd.org|filmestvdublado.home.blog|aquitemfilmes.info|filmesdetv.com|elitedosdownloads.club|laostelephone.com|kristi0520.blogspot.com|theexconsofymm.blogspot.com|dubladotorrent.com|boutv.com|boardiweb.blogspot.com|gumroad.com|yts-yts.com|yify-yify.net|yikiking.com|bulktorrent.com|katmoviehd.world|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\.)?(thepirate-day.org|ondebaixa.com|ondebaixo.com|torrentool.org|torrentoon.org|filmesmega.net|megatorrents.co|ondeeubaixo.net|ondeeubaixo.org|hidratorrent.org|blurayfilmes.com|megatorrentshd.net|lacraiatorrent.com|torrentdublado.com|completotorrent.com|bludv.in|baixarfilmetorrent.net|bludvtorrent.com|comando.to|filmesviatorrents.tv|filmeviatorrents.com|filmesviatorrents.net|filmebaixar.com|bluraytorrent.com.br|baixafilme.net|aoseugosto.com|filmestorrentmax.com.br|filmedaki.blogspot.com|baixartudo.online|baixafilmetorrent.net|br.filmestorrent.gratis|pirate-filmes.com|baixarfilmes.ws|thepiratefilmestorrent.tv|thepiratefilmestorrent.org|thepiratefilmestorrent.net|thepiratesfilmes.net|filmestorrent.vip|filmesviatorrents.cc|comando-torrents.net|lapumia.net|lapumiatorrent.net|torrentdosfilmes.in|bluf.online|vmstorrent.com|clubetorrent.com|baixotorrents.com|wolverdonfilmes.tv|adorocinematorrent.com|thepiratefilmetorrent.tv|torrentdosfilmes.tv|filmestorrentbr.com|filmestorrentbrasil.com.br|cinefilmesbrasil.com|topfilmestorrents.com|comandotorrent.tv|seriesfilmestorrent.net|comoeubaixo.com|baixartorrents.org|acervosupremo.com|comandostorrents.net|baixakifilmestorrent.net|filmestorrentmagnet.com|filmeserietorrent.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|bludvtorrent|comando.to|filmebaixar|baixar|bluraytorrent|baixafilmes?|aoseugosto|filmestorrentmax|filmedaki|baixartudo|baixafilmetorrent|baixakifilmestorrent|pirate-filmes|thepiratesfilmes|filmesviatorrents|filmeviatorrents|thepiratefilmes?torrent.tv|thepiratefilmestorrent|comando-torrents|lapumia|lapumiatorrent|torrentdosfilmes|bluf|torrentdosfilmes|filmestorrentbr|filmestorrentbrasil|cinefilmesbrasil|topfilmestorrents|comandotorrent|seriesfilmestorrent.net|comoeubaixo|acervosupremo|comandostorrents.net|filmestorrentmagnet.com|filmeserietorrent.com))(.*)?/) === null) /*Do not run on google, neither on websites that should only be highlighted on google (The thepiratefilmestorrent.tv,thepiratefilmetorrent.tv,thepiratefilmestorrent.org,thepiratefilmestorrent.net,filmestorrent.vip,filmesviatorrents.cc,comando-torrents.net,torrentdosfilmes.tv,filmestorrentbr.com,filmestorrentbrasil.com.br,cinefilmesbrasil.com,topfilmestorrents.com,www.comandotorrent.tv,seriesfilmestorrent.net,comoeubaixo.com,baixartorrents.org,acervosupremo.com,comandostorrents.net,comando-torrents.net,filmesviatorrents.net,filmesviatorrents.tv,filmeviatorrents.com,filmestorrentmagnet.com,filmeserietorrent.com 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|thepiratefilmestorrent|filmesviatorrents|filmeviatorrents|lapumia|baixarfilmes|comando-torrents|thepiratesfilmes|wolverdonfilmes|bluf|pirate-filmes|baixafilme|bludvtorrent|baixarfilmetorrent|filmestorrentmagnet))(.*)?/)) /*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 === 'seriesfilmestorrent.net') /*Run only on seriesfilmestorrent.net */ { //Starts the if condition
document.querySelectorAll("a[href*='?code=']").forEach(function(element, index) { //To all encoded link elements
element.addEventListener("click", function(e) { //Add an event listener to the encoded link elements
if (index === 0 && index.length > 1) { //If it's the first element
var RemoveStrings = reverseString(btoa("@X" + document.title.replace('🏳️☠️ ', '').replace('🏴☠️ ', ''))); //Remove these strings
var Base64String = reverseString(this.href.split(RemoveStrings)[1]); //Get the reverse Base64String code
} //Finishes the if condition
else { //Starts the else condition if it's NOT the first element
Base64String = reverseString(this.href.split('?code=')[1]); //Get the reverse Base64String code
} //Finishes the else condition
var DecodedLink = decodeURIComponent(atob(Base64String)); //Decode the Base64 Encoded link
window.open(DecodedLink, "_self"); //Open the decoded download link
e.preventDefault(); //Prevent the default encoded link from being opened
}); //Finishes the onclick event listener
}); //Finishes the forEach condition
} //Finishes the if condition
if (top.location.host.match(/www.torrentdosfilmes.tv|www.comandotorrent.tv|lapumiatorrent.net|www.bludv.in|comandostorrents.net/)) /*Run only on torrentdosfilmes.tv,www.comandotorrent.tv,lapumiatorrent.net and on www.bludv.in */ { //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(/topfilmestorrents.com|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.com|acervosupremo.com|filmestorrentbrasil.com.br|cinefilmesbrasil.com/)) /*Run only on filmestorrentbr.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\.)?(thepiratefilmes?torrent|thepiratesfilmes|filmesviatorrents|comando-torrents|wolverdonfilmes|filmestorrentmagnet))(.*)?/)) /*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 (var 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(/thepiratefilmes?torrent/)) /*Run only the thepiratefilmestorrent 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
if (top.location.host === 'thepirate-day.org') /*Run only on thepirate-day.org */ { //Starts the if condition
var SavedProtectedLink = document.querySelector("div.entry-content > a").href; //Create a new variable to save the protected link
window.onload = function() { //Starts the function when the website finished loading
document.querySelector("div.entry-content > a").removeAttribute("onclick"); //Remove the onclick attribute of the element
document.querySelector("div.entry-content > a").href = 'javascript:void(0);' //Remove the link of the element
}; //Finishes the onload function
document.querySelector("div.entry-content > a").addEventListener("click", async function() { //Starts the onclick event listener function
(async () => { //Creates a function to get the unprotected magnet link and Starts the function
const response = await (await fetch('https://api.allorigins.win/raw?url=' + SavedProtectedLink)).text(); //Fetch
const newDocument = new DOMParser().parseFromString(response, 'text/html'); //Parses the fetch response
if (newDocument.body.innerHTML.match(/['"](magnet.*?)['"]/g).length === 1) //If there's only 1 magnet link on the page
{ //Starts the if condition
window.open(newDocument.body.innerHTML.match(/['"](magnet.*?)['"]/g)[0].replace(/"/g, ''), "_self"); //Open the unprotected magnet link
} // Finishes the if condition
else //If there's more than 1 download button
{ //Starts the else condition
window.open(SavedProtectedLink, "_blank"); //Open the protected magnet link
} // Finishes the else condition
})(); //Finishes the async function
}); //Finishes the onclick event listener function
} // Finishes the if condition
})();