mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 01:11:04 +00:00
Add GElocal.it
This commit is contained in:
parent
699e481c51
commit
749adca3fc
@ -173,6 +173,7 @@ So don't update to Firefox 79 or use Firefox Nightly (and load BPC from a custom
|
||||
##### Italy
|
||||
[Corriere Della Sera](https://www.corriere.it) -
|
||||
[Domani](https://editorialedomani.it) -
|
||||
[GElocal.it](https://quotidiani.gelocal.it) -
|
||||
[Il Fatto Quotidiano](https://www.ilfattoquotidiano.it) -
|
||||
[Il Manifesto](https://ilmanifesto.it) -
|
||||
[Il Messaggero](https://www.ilmessaggero.it) -
|
||||
|
@ -43,6 +43,7 @@ var allow_cookies = [
|
||||
'faz.net',
|
||||
'folha.uol.com.br',
|
||||
'ftm.nl',
|
||||
'gelocal.it',
|
||||
'gestion.pe',
|
||||
'haaretz.co.il',
|
||||
'haaretz.com',
|
||||
@ -185,6 +186,7 @@ var blockedRegexes = {
|
||||
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/,
|
||||
'exame.abril.com.br': /.+\.tinypass\.com\/.+/,
|
||||
'folha.uol.com.br': /.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js/,
|
||||
'gelocal.it': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
|
||||
'globo.com': /.+\.tinypass\.com\/.+/,
|
||||
'foreignaffairs.com': /.+\.foreignaffairs\.com\/sites\/default\/files\/js\/js_P9zr.+\.js/,
|
||||
'foreignpolicy.com': /.+\.tinypass\.com\/.+/,
|
||||
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||
|
||||
Post-release
|
||||
Add Foreign Affairs
|
||||
Add GElocal.it
|
||||
Add Il Resto del Carlino (Italy)
|
||||
Add Kurier.at
|
||||
Add L'Orient-Le Jour (Lebanon)
|
||||
|
@ -1390,6 +1390,24 @@ else if (matchDomain("kurier.at")) {
|
||||
plus_content.classList.remove('plusContent');
|
||||
}
|
||||
|
||||
else if (matchDomain('gelocal.it')) {
|
||||
let premium = document.querySelector('.paywall-adagio');
|
||||
let url = window.location.href;
|
||||
window.setTimeout(function () {
|
||||
if (premium && !url.includes('/amp/')) {
|
||||
if (url.includes('?'))
|
||||
window.location.href = url.replace('?', '/amp/?');
|
||||
else
|
||||
window.location.href = url + '/amp/';
|
||||
}
|
||||
}, 500); // Delay (in milliseconds)
|
||||
if (url.includes('/amp/')) {
|
||||
let paywall = document.querySelector('div[amp-access="showContent"]');
|
||||
if (paywall)
|
||||
paywall.removeAttribute('amp-access-hide');
|
||||
}
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
@ -115,6 +115,7 @@
|
||||
"*://*.ft.com/*",
|
||||
"*://*.ftm.nl/*",
|
||||
"*://*.geelongadvertiser.com.au/*",
|
||||
"*://*.gelocal.it/*",
|
||||
"*://*.gestion.pe/*",
|
||||
"*://*.gladstoneobserver.com.au/*",
|
||||
"*://*.glassdoor.com/*",
|
||||
@ -335,5 +336,5 @@
|
||||
"webRequest",
|
||||
"webRequestBlocking"
|
||||
],
|
||||
"version": "1.9.1.8"
|
||||
"version": "1.9.1.9"
|
||||
}
|
Loading…
Reference in New Issue
Block a user