Greasy Fork

Disable Ads And CountDowns On Brazilian Websites To Download Torrent Movies

Desativa contadores JS e propagandas em sites brasileiros para baixar filmes em sites de torrent que te redirecionam para o site mastercuriosidadesbr.com ou para outros sites

当前为 2020-08-08 提交的版本,查看 最新版本

// ==UserScript==
// @name         Disable Ads And CountDowns On Brazilian Websites To Download Torrent Movies
// @namespace    hacker09
// @version      0.7
// @description  Desativa contadores JS e propagandas em sites brasileiros para baixar filmes em sites de torrent que te redirecionam para o site mastercuriosidadesbr.com  ou para outros sites
// @author       hacker09
// @match        https://filmesx.biz/*
// @match        https://ondebaixo.com/*
// @match        https://ondebaixa.com/*
// @match        https://ondeeubaixo.org/*
// @match        https://www.adrenalinagames.com/*
// @match        https://www.mastercuriosidadesbr.com/*
// @match        https://www.thepiratefilmestorrent.tv/*
// Abaixo segue a lista dos piores websites para se baixar e ver filmes,eles serão automaticamente redirecionados para o google. São todos sites cheios de propagandas, e que teoricamente deveriam permitir assistir e/ou baixar filmes, porem não e possível fazer isso nesse sites falsos.
// @match        https://topflix.vip/*
// @match        https://todosfilmeshd.net/*
// @match        http://aquitemfilmes.info/*
// @match        https://www.filmesdetv.com/*
// @match        https://filmestvdublado.home.blog/*
// @grant        none
// @run-at document-idle
// ==/UserScript==

(function() {
    'use strict';
var $ = window.jQuery; //Defines That The Symbol $ Is A jQuery

// The codes below redirects trash websites to google
if ((top.location.host === 'todosfilmeshd.net') || (top.location.host === 'filmestvdublado.home.blog') || (top.location.host === 'topflix.vip') || (top.location.host === 'aquitemfilmes.info') || (top.location.host === 'www.filmesdetv.com')) //Make sure to run on the correct websites only
{
    window.location.assign("https://google.com");
} // Finishes the if condition

if (top.location.host === 'filmesx.biz') //Make sure to run on the correct website only
{document.querySelector("#content > div.Main.Container > div > main > center:nth-child(4) > a > img").remove();} //Removes the fake download button

if (top.location.host === 'www.mastercuriosidadesbr.com') //Make sure to run on the correct website only
{
    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 Real Download Button
    document.oncontextmenu = function() {}; //Enables Right Mouse Click
} // Finishes the if condition

if (top.location.host === 'www.adrenalinagames.com') //Make sure to run on the correct website only
{
    document.getElementById('link0').style.display="none"; //Hides the fake download button
    document.getElementById('link').style.display="block"; //Show 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 === 'ondebaixa.com') || (top.location.host === 'ondeeubaixo.org') || (top.location.host === 'ondebaixo.com')) //Make sure to run on the correct website only
{
    // Todos os codigos abaixo extraem o conteudo html de todos os botoes e depois os injetam novamente nos botoes, isso e um hack que burla o sistema do site de redirecionar os usuarios a sites com propagandas e temporadizadores JS

    if (document.querySelector('a.text-center.newdawn.btn.btn-success') !== null) //Make sure to run only if the button exits
    {
        var all = $('a.text-center.newdawn.btn.btn-success'); //Select and store the total buttons number
        for (var i=0, max=all.length; i < max; i++) //For every single button Do...
        {
         var VERSÃODUALÁUDIObtnouterHTML = all[i].outerHTML; //Create a variable to store the html of the button
         all[i].outerHTML = VERSÃODUALÁUDIObtnouterHTML; //Re-Inject the html of the button in the button again
      } // Finishes the for condition
} // Finishes the if condition to check if the button exists or not

    if (document.querySelector('a.text-center.newdawn.btn.btn-danger') !== null) //Make sure to run only if the button exits
    {
        var allbtndanger = $('a.text-center.newdawn.btn.btn-danger'); //Select and store the total buttons number
        for (var i=0, max=allbtndanger.length; i < max; i++) //For every single button Do...
     {
         var VERSÃOLEGENDADAredbtnouterHTML = allbtndanger[i].outerHTML; //Create a variable to store the html of the button
         allbtndanger[i].outerHTML = VERSÃOLEGENDADAredbtnouterHTML; //Re-Inject the html of the button in the button again
      } // Finishes the for condition
} // Finishes the if condition to check if the button exists or not

    if (document.querySelector('a.text-center.newdawn.btn.btn-info') !== null) //Make sure to run only if the button exits
    {
        var allbtninfo = $('a.text-center.newdawn.btn.btn-info'); //Select and store the total buttons number
        for (var i=0, max=allbtninfo.length; i < max; i++) //For every single button Do...
        {
         var VERSÃOLEGENDADAbtnouterHTML = allbtninfo[i].outerHTML; //Create a variable to store the html of the button
         allbtninfo[i].outerHTML = VERSÃOLEGENDADAbtnouterHTML; //Re-Inject the html of the button in the button again
      } // Finishes the for condition
} // Finishes the if condition to check if the button exists or not

    if (document.querySelector('a.text-center.newdawn.btn.btn-primary') !== null) //Make sure to run only if the button exits
    {
        var LEGENDASprimarybtnouterHTML = document.querySelector('a.text-center.newdawn.btn.btn-primary').outerHTML;
        document.querySelector('a.text-center.newdawn.btn.btn-primary').outerHTML = LEGENDASprimarybtnouterHTML;
    } // Finishes the if condition to check if the button exists or not
} // Finishes the if condition for the website ondebaixa.com

if (top.location.host === 'www.thepiratefilmestorrent.tv') //Make sure to run on the correct website only
{
    //Function.prototype.call = function(){}; //Disable JS on the website
    Function.prototype.apply = function(){}; //Disable JS on the website so that the download buttons will load faster and without ads
    //Function.prototype.bind = function(){}; //Disable JS on the website
    var allthepiratefilmestorrentdownloadbtns = document.querySelectorAll('img.alignnone.wp-image-7.size-medium'); //Select and store the total buttons number
    for (var i=0, max=allthepiratefilmestorrentdownloadbtns.length; i < max; i++) //For every single button Do...
     {
       allthepiratefilmestorrentdownloadbtns[i].src = 'https://www.thepiratefilmestorrent.tv/wp-content/uploads/2016/05/MAGNET-LINK.fw_-300x77.png';
      } //Finishes the for condition
} //Finishes the if condition
})();