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
|
##### Italy
|
||||||
[Corriere Della Sera](https://www.corriere.it) -
|
[Corriere Della Sera](https://www.corriere.it) -
|
||||||
[Domani](https://editorialedomani.it) -
|
[Domani](https://editorialedomani.it) -
|
||||||
|
[GElocal.it](https://quotidiani.gelocal.it) -
|
||||||
[Il Fatto Quotidiano](https://www.ilfattoquotidiano.it) -
|
[Il Fatto Quotidiano](https://www.ilfattoquotidiano.it) -
|
||||||
[Il Manifesto](https://ilmanifesto.it) -
|
[Il Manifesto](https://ilmanifesto.it) -
|
||||||
[Il Messaggero](https://www.ilmessaggero.it) -
|
[Il Messaggero](https://www.ilmessaggero.it) -
|
||||||
|
@ -43,6 +43,7 @@ var allow_cookies = [
|
|||||||
'faz.net',
|
'faz.net',
|
||||||
'folha.uol.com.br',
|
'folha.uol.com.br',
|
||||||
'ftm.nl',
|
'ftm.nl',
|
||||||
|
'gelocal.it',
|
||||||
'gestion.pe',
|
'gestion.pe',
|
||||||
'haaretz.co.il',
|
'haaretz.co.il',
|
||||||
'haaretz.com',
|
'haaretz.com',
|
||||||
@ -185,6 +186,7 @@ var blockedRegexes = {
|
|||||||
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/,
|
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/,
|
||||||
'exame.abril.com.br': /.+\.tinypass\.com\/.+/,
|
'exame.abril.com.br': /.+\.tinypass\.com\/.+/,
|
||||||
'folha.uol.com.br': /.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js/,
|
'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\/.+/,
|
'globo.com': /.+\.tinypass\.com\/.+/,
|
||||||
'foreignaffairs.com': /.+\.foreignaffairs\.com\/sites\/default\/files\/js\/js_P9zr.+\.js/,
|
'foreignaffairs.com': /.+\.foreignaffairs\.com\/sites\/default\/files\/js\/js_P9zr.+\.js/,
|
||||||
'foreignpolicy.com': /.+\.tinypass\.com\/.+/,
|
'foreignpolicy.com': /.+\.tinypass\.com\/.+/,
|
||||||
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
Add Foreign Affairs
|
Add Foreign Affairs
|
||||||
|
Add GElocal.it
|
||||||
Add Il Resto del Carlino (Italy)
|
Add Il Resto del Carlino (Italy)
|
||||||
Add Kurier.at
|
Add Kurier.at
|
||||||
Add L'Orient-Le Jour (Lebanon)
|
Add L'Orient-Le Jour (Lebanon)
|
||||||
|
@ -1390,6 +1390,24 @@ else if (matchDomain("kurier.at")) {
|
|||||||
plus_content.classList.remove('plusContent');
|
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
|
// General Functions
|
||||||
function removeDOMElement(...elements) {
|
function removeDOMElement(...elements) {
|
||||||
for (let element of elements) {
|
for (let element of elements) {
|
||||||
|
@ -115,6 +115,7 @@
|
|||||||
"*://*.ft.com/*",
|
"*://*.ft.com/*",
|
||||||
"*://*.ftm.nl/*",
|
"*://*.ftm.nl/*",
|
||||||
"*://*.geelongadvertiser.com.au/*",
|
"*://*.geelongadvertiser.com.au/*",
|
||||||
|
"*://*.gelocal.it/*",
|
||||||
"*://*.gestion.pe/*",
|
"*://*.gestion.pe/*",
|
||||||
"*://*.gladstoneobserver.com.au/*",
|
"*://*.gladstoneobserver.com.au/*",
|
||||||
"*://*.glassdoor.com/*",
|
"*://*.glassdoor.com/*",
|
||||||
@ -335,5 +336,5 @@
|
|||||||
"webRequest",
|
"webRequest",
|
||||||
"webRequestBlocking"
|
"webRequestBlocking"
|
||||||
],
|
],
|
||||||
"version": "1.9.1.8"
|
"version": "1.9.1.9"
|
||||||
}
|
}
|
1
sites.js
1
sites.js
@ -59,6 +59,7 @@ var defaultSites =
|
|||||||
"Foreign Policy": "foreignpolicy.com",
|
"Foreign Policy": "foreignpolicy.com",
|
||||||
"Fortune": "fortune.com",
|
"Fortune": "fortune.com",
|
||||||
"Frankfurter Allgemeine Zeitung": "faz.net",
|
"Frankfurter Allgemeine Zeitung": "faz.net",
|
||||||
|
"GElocal.it": "gelocal.it",
|
||||||
"Gestión": "gestion.pe",
|
"Gestión": "gestion.pe",
|
||||||
"Glassdoor": "glassdoor.com",
|
"Glassdoor": "glassdoor.com",
|
||||||
"Globes": "globes.co.il",
|
"Globes": "globes.co.il",
|
||||||
|
Loading…
Reference in New Issue
Block a user