Skip to content

Commit

Permalink
FIX bug #14
Browse files Browse the repository at this point in the history
  • Loading branch information
dippas committed Sep 12, 2020
1 parent c3d9c97 commit ff08156
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion js/extension/deletenonio.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const deleteNonio = {
el: {
html: document.documentElement,
body: document.body,
globalmediaGroupUrls: ['dinheirovivo.pt', 'tsf.pt', 'vdigital.pt', 'ojogo.pt', 'jn.pt', 'dn.pt', 'n-tv.pt'],
globalmediaGroupUrls: ['dinheirovivo.pt', 'tsf.pt', 'vdigital.pt', 'ojogo.pt', 'jn.pt', 'dn.pt', 'n-tv.pt', 'evasoes.pt'],
cofinaGroupURLs: ['record.pt', 'cmjornal.pt', 'cm-tv.pt', 'jornaldenegocios.pt', 'destak.pt', 'flash.pt', 'vidas.pt', 'maxima.pt', 'sabado.pt', 'empregosonline.pt', 'classficadoscm.pt', 'aquelamaquina.pt'],
renascencaGroupUrls: ['rr.sapo.pt', 'rfm.sapo.pt', 'megahits.sapo.pt', 'radiosim.sapo.pt']
},
Expand Down
2 changes: 1 addition & 1 deletion js/extension/deletenonio.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions js/userscript/deletenonio.min.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @namespace https://github.com/dippas/DeleteNonio/
// @homepage https://github.com/dippas/DeleteNonio/
// @description Remover NONIO. Sempre actualizado para remover o nonio dos sites. Disponível como script e Extensão para Firefox e Chrome.
// @version 1.6.3
// @version 1.6.4
// @supportURL https://github.com/dippas/DeleteNonio/issues
// @downloadURL https://raw.githubusercontent.com/dippas/DeleteNonio/master/js/userscript/deletenonio.user.js
// @match https://*.aquelamaquina.pt/*
Expand Down Expand Up @@ -42,7 +42,8 @@
// @match http://*.empregosonline.pt/*
// @match https://*.classificadoscm.pt/*
// @match https://*.n-tv.pt/*
// @match https://*.evasoes.pt/*
// @grant none
// ==/UserScript==

const deleteNonio={el:{html:document.documentElement,body:document.body,globalmediaGroupUrls:["dinheirovivo.pt","tsf.pt","vdigital.pt","ojogo.pt","jn.pt","dn.pt","n-tv.pt"],cofinaGroupURLs:["record.pt","cmjornal.pt","cm-tv.pt","jornaldenegocios.pt","destak.pt","flash.pt","vidas.pt","maxima.pt","sabado.pt","empregosonline.pt","classficadoscm.pt","aquelamaquina.pt"],renascencaGroupUrls:["rr.sapo.pt","rfm.sapo.pt","megahits.sapo.pt","radiosim.sapo.pt"]},removeElement(e){document.querySelectorAll(e)[0]&&(clearInterval(this.hasElement),this.el.html.style="overflow: auto !important",this.el.body.style="overflow: auto !important",document.querySelectorAll(e)[0].outerHTML="")},events(){this.hasElement=setInterval(()=>{this.removeElement("#imp-content-gate-root"),this.removeElement("#nonio-basiclogin"),this.removeElement('[id^="layer_gatting"]'),this.removeElement(".nonioBox"),this.removeElement(".warning-nonio-overlay"),this.removeElement(".tp-modal"),this.removeElement(".tp-backdrop"),this.removeElement(".tp-iframe-wrapper"),this.removeElement("#wrapperContentGatingNonio"),this.removeElement('#contentGateLoginDiv'),this.removeElement(".brand__expresso")},1000)},cofinaGroupVideosFix(){this.el.cofinaGroupURLs.forEach(e=>{window.location.href.indexOf(e)>-1&&this.hasElement&&document.cookie.split(";").forEach(e=>document.cookie=e.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`))})},globalmediaGroupFix(){this.el.globalmediaGroupUrls.forEach(e=>{window.location.href.indexOf(e)>-1&&(document.cookie.split(";").forEach(e=>document.cookie=e.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)),window.addEventListener("load",()=>this.removeElement('iframe[src^="/content"]')))})},renascencaGroupFix(){clearInterval(this.setOverflow),this.el.renascencaGroupUrls.forEach(e=>{window.location.href.indexOf(e)>-1&&(this.setOverflow=setInterval(()=>{this.el.html.style="overflow: auto !important",this.el.body.style="overflow: auto !important"},1000))})},init(){this.events(),this.cofinaGroupVideosFix(),this.globalmediaGroupFix(),this.renascencaGroupFix()}};deleteNonio.init();
const deleteNonio={el:{html:document.documentElement,body:document.body,globalmediaGroupUrls:["dinheirovivo.pt","tsf.pt","vdigital.pt","ojogo.pt","jn.pt","dn.pt","n-tv.pt","evasoes.pt"],cofinaGroupURLs:["record.pt","cmjornal.pt","cm-tv.pt","jornaldenegocios.pt","destak.pt","flash.pt","vidas.pt","maxima.pt","sabado.pt","empregosonline.pt","classficadoscm.pt","aquelamaquina.pt"],renascencaGroupUrls:["rr.sapo.pt","rfm.sapo.pt","megahits.sapo.pt","radiosim.sapo.pt"]},removeElement(e){document.querySelectorAll(e)[0]&&(clearInterval(this.hasElement),this.el.html.style="overflow: auto !important",this.el.body.style="overflow: auto !important",document.querySelectorAll(e)[0].outerHTML="")},events(){this.hasElement=setInterval(()=>{this.removeElement("#imp-content-gate-root"),this.removeElement("#nonio-basiclogin"),this.removeElement('[id^="layer_gatting"]'),this.removeElement(".nonioBox"),this.removeElement(".warning-nonio-overlay"),this.removeElement(".tp-modal"),this.removeElement(".tp-backdrop"),this.removeElement(".tp-iframe-wrapper"),this.removeElement("#wrapperContentGatingNonio"),this.removeElement('#contentGateLoginDiv'),this.removeElement(".brand__expresso")},1000)},cofinaGroupVideosFix(){this.el.cofinaGroupURLs.forEach(e=>{window.location.href.indexOf(e)>-1&&this.hasElement&&document.cookie.split(";").forEach(e=>document.cookie=e.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`))})},globalmediaGroupFix(){this.el.globalmediaGroupUrls.forEach(e=>{window.location.href.indexOf(e)>-1&&(document.cookie.split(";").forEach(e=>document.cookie=e.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)),window.addEventListener("load",()=>this.removeElement('iframe[src^="/content"]')))})},renascencaGroupFix(){clearInterval(this.setOverflow),this.el.renascencaGroupUrls.forEach(e=>{window.location.href.indexOf(e)>-1&&(this.setOverflow=setInterval(()=>{this.el.html.style="overflow: auto !important",this.el.body.style="overflow: auto !important"},1000))})},init(){this.events(),this.cofinaGroupVideosFix(),this.globalmediaGroupFix(),this.renascencaGroupFix()}};deleteNonio.init();
5 changes: 3 additions & 2 deletions js/userscript/deletenonio.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @namespace https://github.com/dippas/DeleteNonio/
// @homepage https://github.com/dippas/DeleteNonio/
// @description Remover NONIO. Sempre actualizado para remover o nonio dos sites. Disponível como script e Extensão para Firefox e Chrome.
// @version 1.6.3
// @version 1.6.4
// @supportURL https://github.com/dippas/DeleteNonio/issues
// @downloadURL https://raw.githubusercontent.com/dippas/DeleteNonio/master/js/userscript/deletenonio.user.js
// @match https://*.aquelamaquina.pt/*
Expand Down Expand Up @@ -42,14 +42,15 @@
// @match http://*.empregosonline.pt/*
// @match https://*.classificadoscm.pt/*
// @match https://*.n-tv.pt/*
// @match https://*.evasoes.pt/*
// @grant none
// ==/UserScript==

const deleteNonio = {
el: {
html: document.documentElement,
body: document.body,
globalmediaGroupUrls: ['dinheirovivo.pt', 'tsf.pt', 'vdigital.pt', 'ojogo.pt', 'jn.pt', 'dn.pt', 'n-tv.pt'],
globalmediaGroupUrls: ['dinheirovivo.pt', 'tsf.pt', 'vdigital.pt', 'ojogo.pt', 'jn.pt', 'dn.pt', 'n-tv.pt', 'evasoes.pt'],
cofinaGroupURLs: ['record.pt', 'cmjornal.pt', 'cm-tv.pt', 'jornaldenegocios.pt', 'destak.pt', 'flash.pt', 'vidas.pt', 'maxima.pt', 'sabado.pt', 'empregosonline.pt', 'classficadoscm.pt', 'aquelamaquina.pt'],
renascencaGroupUrls: ['rr.sapo.pt', 'rfm.sapo.pt', 'megahits.sapo.pt', 'radiosim.sapo.pt']
},
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"manifest_version": 2,
"name": "DeleteNonio",
"version": "1.6.3",
"version": "1.6.4",
"author": "dippas",
"description": "Remover NONIO. Sempre actualizado para remover o nonio dos sites. Disponível como extensão para Firefox e Chrome.",

Expand Down
2 changes: 1 addition & 1 deletion popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</head>

<body>
<h1>DeleteNonio <span>v1.6.3</span></h1>
<h1>DeleteNonio <span>v1.6.4</span></h1>
<h2>Remover Nonio popup dos sites</h2>
<a class='no-pad no-bg' target='_blank' href='https://www.buymeacoffee.com/dippas'><img src='https://cdn.buymeacoffee.com/buttons/lato-black.png' alt='Buy me a coffee' title='Ajuda a manter o projeto vivo'></a>
<h3>
Expand Down

0 comments on commit ff08156

Please sign in to comment.