// ==UserScript== // @name Remova Propagandas E Temporizadores Ao Baixar Filmes // @namespace hacker09 // @version 50 // @description Abre o link direto de download em sites de torrent que te redirecionam a outros sites, ou fazem aguardar antes de liberar o download. // @author hacker09 // @noframes // @include *://www.google.* // @match *://comando.la/* // @match *://bludvfilmes.tv/* // @match *://megatorrents.co/* // @match *://www.bluf.online/* // @match *://www.arnolds.com.br/* // @match *://www.baixarfilmes.me/* // @match *://torrentdosfilmes.site/* // @match *://futebolistasonline.club/* // @match *://filmestvdublado.home.blog/* // @include /^(https?:\/\/)(www\.)?(adrenalinagames|mastercuriosidadesbr|boutv|filmesdetv|dubladotorrent)(\.com)(\/.*)?/ // @include /^(https?:\/\/)(www\.)?(boardiweb|theexconsofymm|filmedaki)(\.blogspot\.com)(\/.*)?/ // @include /^(https?:\/\/)(www\.)?(lapumia|comandos-torrent|filmeviatorrents)(\.org)(\/.*)?/ // @include /^(https?:\/\/)(www\.)?(lapumia)(\.net)(\/.*)?/ // @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 // @downloadURL none // ==/UserScript== (function() { 'use strict'; var BlockedWebsites = new RegExp(/^(https?:\/\/)?(www\.)?(filmestvdublado.home.blog|filmesdetv.com|theexconsofymm.blogspot.com|dubladotorrent.com|boutv.com|boardiweb.blogspot.com)/); const interval = setInterval(function() { //Creates a new interval function unsafeWindow.console.clear = () => {}; //Stops the console logs from being cleared }, 0); //Finishes the set interval function 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 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 it as true GM_setValue("ActivateOnGoogle", true); //Defines the variable as true location.reload(); //Reloads the page } //Finishes the else condition } //Finishes the function if (top.location.host.match(/www.google/) && GM_getValue("ActivateOnGoogle") === true) { //Starts the if condition GM_registerMenuCommand("Desativar/Ativar Marcação", ActivateOnGoogle); //Adds an option to the menu function HighLight() //Creates a function to HighLight the websites { //Starts the function HighLight const 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\.)?(megatorrents.co|bludvfilmes.tv|torrentdosfilmes.site|comandos-torrent.org|comando.la|lapumia.net|lapumia.org|bluf.online|filmeviatorrents.org|baixarfilmes.me|filmedaki.blogspot.com)/)) { //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 condition } //Finishes the function HighLight(); //Calls the Function new MutationObserver(async function() { //If the results page changes anything (If the user uses anything like the endless google scripts) HighLight(); //Calls the 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(/www.google/)) { //Starts the if condition document.querySelectorAll('a[target="_blank"]').forEach(link => link.removeAttribute('target')); //Disable target = "_blank" on all websites if (top.location.host.match(BlockedWebsites)) { //Starts the if condition close(); //Close the website } //Finishes the if condition if (top.location.host.match(/(^(www\.)?(comando.la|lapumia.org|lapumia.net|filmedaki|bluf.online|filmeviatorrents.org|baixarfilmes.me|filmedaki.blogspot.com|bludvfilmes.tv))(.*)?/) === null) { //Starts the if condition if the user isn't on any website that should only be highlighted on google (also the code below doesn't work/(is needed) on these websites) Function.prototype.apply = () => {}; //Disable JS on the website so that the download buttons will load without ads } //Finishes the if condition if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { //Starts the if condition If the browser is using the dark theme document.title = '🏳️☠️ ' + document.title; //Add the pirate flag emoji to 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 to the tab title } //Finishes the else condition } //Finishes the if condition 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(/comandos-torrent.org/)) { //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 open(CryptoJS.AES.decrypt(atob(this.href.split('?token=')[1]), '391si8WU89ghkDB5').toString(CryptoJS.enc.Utf8), "_self"); //Decode, doing 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 if (top.location.host.match(/www.mastercuriosidadesbr.com|www.arnolds.com.br|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 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 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.match(/www.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(/bludvfilmes.tv|torrentdosfilmes.site/)) { //Starts the if condition setTimeout(function() { //Starts the settimeout function document.querySelectorAll("a[href*='javascript']").forEach(function(Element, i) { //To all "fake" link elements Element.onclick = () => {}; //Prevent the default encoded link from being opened Element.href = unsafeWindow.arrDBLinks[i]; //Open the unprotected link }); //Finishes the forEach condition }, 1000); //Wait for the bludv website to be loaded } //Finishes the if condition })();