Last active
December 14, 2019 01:38
-
-
Save edgardmessias/a91df53662778e2ff58a4820a9534a12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name ADBlock Dia A Dia Arapongas | |
// @namespace http://tampermonkey.net/ | |
// @version 0.7 | |
// @downloadURL https://gist.githubusercontent.com/raw/a91df53662778e2ff58a4820a9534a12/adblock_diaadiaarapongas.js | |
// @description Remover propagandas do Dia A Dia Arapongas! | |
// @author You | |
// @include /^https?://(www\.)?diaadiaarapongas\.com\.br/ | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Restaurar rolagem da página | |
document.body.style.overflow = ''; | |
// Remover Banners flutuantes | |
document.getElementById('pop').remove(); | |
document.getElementById('flut').remove(); | |
// Remover Banners fixos | |
document.querySelectorAll('[id^=banner-posicao-]').forEach(e => {e.remove()}); | |
// Remover banner lateral da página inicial | |
if(document.getElementById('caixa-banner-flutuante')){ | |
document.getElementById('caixa-banner-flutuante').remove(); | |
} | |
if(document.querySelector('.conteudo-noticia-home')){ | |
document.querySelector('.conteudo-noticia-home').style.marginLeft = 0; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment