Skip to content

Commit

Permalink
Merge pull request #1 from requeijaum/master
Browse files Browse the repository at this point in the history
Implementar suporte ao Correio24Horas
  • Loading branch information
CaioWzy authored Jun 29, 2019
2 parents 70b34e4 + 9f2b4eb commit 951616a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/burlesco.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
// @match *://*.haaretz.co.il/*
// @match *://*.diarinho.com.br/*
// @match *://*.diariodaregiao.com.br/*
// @match *://*.correio24horas.com.br/*
// @webRequestItem {"selector":"*://correio-static.cworks.cloud/vendor/bower_components/paywall.js/paywall.js*","action":"cancel"}
// @webRequestItem {"selector":{"include":"*://paywall.folha.uol.com.br/*","exclude":"*://paywall.folha.uol.com.br/status.php"} ,"action":"cancel"}
// @webRequestItem {"selector":"*://static.folha.uol.com.br/paywall/*","action":"cancel"}
// @webRequestItem {"selector":"*://ogjs.infoglobo.com.br/*/js/controla-acesso-aux.js","action":"cancel"}
Expand Down Expand Up @@ -286,6 +288,17 @@ document.addEventListener('DOMContentLoaded', function() {
.foreach(x => x.classlist.remove('content-blocked'))
`;

else if(/correio24horas\.com\.br/.test(document.location.host))
// remover tudo relacionado ao paywall e remover limite de altura no div do conteúdo da matéria
// verificar se a altura não buga com a mudança de largura da página (layout responsivo, né)
code=`
jQuery('[class^=paywall]').remove();
jQuery('[class$=blocked]').removeClass();
jQuery('[id^=paywall]').removeClass('hide').removeClass('is-active');
jQuery('.noticias-single__content__text').attr('style', 'height:auto;');
jQuery('[id^=paywall]').remove();
`;

else if (/nytimes\.com/.test(document.location.host))
eraseAllCookies();

Expand Down

0 comments on commit 951616a

Please sign in to comment.