Created
August 17, 2018 16:56
-
-
Save lyralemos/06f02960f19fe39fe77a7c8300880104 to your computer and use it in GitHub Desktop.
Remove bloqueio do adblock
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
// ==UserScript== | |
// @name Remove Paywall da Globo | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.globo.com/* | |
// @grant GM_registerMenuCommand | |
// ==/UserScript== | |
(function($) { | |
'use strict'; | |
// Your code here... | |
GM_registerMenuCommand('Run this now', function() { | |
var elm = document.getElementById('detecta-adblock') | |
elm.parentNode.removeChild(elm) | |
document.getElementsByTagName('body')[0].style.overflow = 'inherit' | |
}, 'r'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment