Created
June 4, 2018 16:47
-
-
Save n370/43a7111668c232ba4c2ddd15dec077ce to your computer and use it in GitHub Desktop.
Script sujo e rápido para remover o paywall "Exclusivo para assinantes" do jornal O Globo online.
This file contains 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
// Script sujo e rápido para remover o paywall "Exclusivo para assinantes" do jornal O Globo online. | |
// (1) Abra o console javascript do seu navegador utilizando a tecla F12. | |
// (2) Copie/Cole o bloco de código abaixo e pressione enter. | |
// (3) Leia o artigo! | |
(function () { | |
[].forEach.call(document.querySelectorAll('iframe'), function (node) { node.parentElement.removeChild(node); }); | |
document.querySelector('#barreiraRegisterExclusiva').parentElement.removeChild(document.querySelector('#barreiraRegisterExclusiva')); | |
document.querySelector('link[href="https://static.infoglobo.com.br/paywall/register-piano/v2/styles/styles.css"]').parentElement.removeChild(document.querySelector('link[href="https://static.infoglobo.com.br/paywall/register-piano/v2/styles/styles.css"]')); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment