Skip to content

Instantly share code, notes, and snippets.

@osantana
Last active October 12, 2015 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save osantana/4072195 to your computer and use it in GitHub Desktop.
Save osantana/4072195 to your computer and use it in GitHub Desktop.
Kill Folha's Paywall
// ==UserScript==
// @name remove folha's paywall
// @namespace http://folha.uol.com.br/
// @version 0.1
// @description just remove folha's paywall
// @include http://*.folha*/*
// @match http://*.folha*/*
// @include http://*.blogfolha*/*
// @match http://*.blogfolha*/*
// @copyright 2012+, Me
// ==/UserScript==
var killed = false;
function killpaywall() {
var body = document.getElementsByTagName("body")[0];
if (body) {
body.style.overflow = "scroll";
window.onscroll = null;
}
var paywall = document.getElementById("paywall");
if (paywall) {
paywall.parentNode.removeChild(paywall);
killed = true;
}
if (!killed) {
setTimeout(killpaywall, 500);
}
}
unsafeWindow.folha.refresh.now = function() {
console.log("Kill F*cking refresh!");
}
killpaywall();
@betodealmeida
Copy link

Wow, they could've at least used an euphemism for paywall! :-P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment