Add Politica Exterior (Spain)
This commit is contained in:
parent
e75bf8bc0a
commit
934adadfb8
@ -425,7 +425,8 @@ Grouped in options:\
|
||||
[Faro de Vigo](https://www.farodevigo.es) -
|
||||
[La Nueva España](https://www.lne.es) -
|
||||
[La Provincia](https://www.laprovincia.es) -
|
||||
[La Vanguardia](https://www.lavanguardia.com)\
|
||||
[La Vanguardia](https://www.lavanguardia.com) -
|
||||
[Política Exterior](https://www.politicaexterior.com)\
|
||||
Grouped in options:\
|
||||
Grupo Vocento (ABC) regional sites like
|
||||
[Diario Vasco](https://www.diariovasco.com) -
|
||||
|
@ -103,6 +103,7 @@ var allow_cookies_default = [
|
||||
'observador.pt',
|
||||
'parismatch.com',
|
||||
'piqd.de',
|
||||
'politicaexterior.com',
|
||||
'prospectmagazine.co.uk',
|
||||
'quotidiano.net',
|
||||
'quora.com',
|
||||
@ -165,6 +166,7 @@ var remove_cookies_select_drop = {
|
||||
'fd.nl': ['socialread'],
|
||||
'griffithreview.com': ['issuem_lp'],
|
||||
'nrc.nl': ['counter'],
|
||||
'telegraaf.nl': ['page_count'],
|
||||
'theatlantic.com': ['articleViews'],
|
||||
'thepointmag.com': ['monthly_history']
|
||||
}
|
||||
@ -1283,7 +1285,7 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
|
||||
}
|
||||
});
|
||||
|
||||
// show the tab if we haven't registered the user reacting to the prompt.
|
||||
// show the opt-in tab on installation
|
||||
ext_api.storage.local.get(["optInShown", "customShown"], function (result) {
|
||||
if (!result.optInShown || !result.customShown) {
|
||||
ext_api.tabs.create({
|
||||
@ -1298,7 +1300,7 @@ ext_api.storage.local.get(["optInShown", "customShown"], function (result) {
|
||||
|
||||
function isSiteEnabled(details) {
|
||||
var enabledSite = matchUrlDomain(enabledSites, details.url);
|
||||
if (!ext_name.includes('Clean'))
|
||||
if (!ext_name.startsWith('Bypass Paywalls Clean'))
|
||||
enabledSite = '';
|
||||
if (enabledSite in restrictions) {
|
||||
return restrictions[enabledSite].test(details.url);
|
||||
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add Atlantico (France)
|
||||
Add Politica Exterior (Spain)
|
||||
Fix-update Chronicle of Higher Education (scroll)
|
||||
Fix-update Grupo Vocento (amp)
|
||||
Fix-update New Left Review
|
||||
|
@ -342,7 +342,6 @@ else if (matchDomain('telegraaf.nl')) {
|
||||
});
|
||||
div_main.appendChild(div_elem);
|
||||
article_body.appendChild(div_main);
|
||||
csDone = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2171,6 +2170,22 @@ else if (matchDomain('atlantico.fr')) {
|
||||
paywall.classList.remove('dpslvp');
|
||||
}
|
||||
|
||||
else if (matchDomain('politicaexterior.com')) {
|
||||
let paywall = document.querySelector('div[class^="paywall-"]');
|
||||
if (paywall) {
|
||||
let article = document.querySelector('div.entry-content-text');
|
||||
let json = document.querySelector('script[type="application/ld+json"]:not([class]');
|
||||
if (json) {
|
||||
var json_text = JSON.parse(json.text).description.replace(/ /g, '');
|
||||
let article_new = document.createElement('div');
|
||||
article_new.setAttribute('class', 'entry-content-text');
|
||||
article_new.innerText = '\r\n' + json_text;
|
||||
article.parentNode.replaceChild(article_new, article);
|
||||
}
|
||||
removeDOMElement(paywall);
|
||||
}
|
||||
}
|
||||
|
||||
else if (!matchDomain(['belfasttelegraph.co.uk', 'independent.ie']))
|
||||
csDone = true;
|
||||
|
||||
|
@ -312,6 +312,7 @@
|
||||
"*://*.philosophynow.org/*",
|
||||
"*://*.pilotonline.com/*",
|
||||
"*://*.piqd.de/*",
|
||||
"*://*.politicaexterior.com/*",
|
||||
"*://*.portnews.com.au/*",
|
||||
"*://*.post-gazette.com/*",
|
||||
"*://*.prospectmagazine.co.uk/*",
|
||||
@ -469,5 +470,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.1.0.4"
|
||||
"version": "2.1.0.5"
|
||||
}
|
@ -15,9 +15,6 @@ window.addEventListener("load", function () {
|
||||
"optInShown": true
|
||||
});
|
||||
opt_in_enabled.innerText = 'YES';
|
||||
setTimeout(function () {
|
||||
//window.close();
|
||||
}, 800);
|
||||
});
|
||||
|
||||
document.getElementById("optin-disable").addEventListener(
|
||||
@ -28,9 +25,6 @@ window.addEventListener("load", function () {
|
||||
"optInShown": true
|
||||
});
|
||||
opt_in_enabled.innerText = 'NO';
|
||||
setTimeout(function () {
|
||||
//window.close();
|
||||
}, 800);
|
||||
});
|
||||
|
||||
document.getElementById("button-close").addEventListener(
|
||||
|
1
sites.js
1
sites.js
@ -177,6 +177,7 @@ var defaultSites =
|
||||
"Philosophy Now": "philosophynow.org",
|
||||
"Piqd.de": "piqd.de",
|
||||
"Pittsburgh Post Gazette": "post-gazette.com",
|
||||
"Política Exterior": "politicaexterior.com",
|
||||
"Prospect Magazine": "prospectmagazine.co.uk",
|
||||
"Rhein-Zeitung": "rhein-zeitung.de",
|
||||
"Rheinische Post Mediengruppe (only plus if amp)": "###_de_rp_medien",
|
||||
|
Loading…
x
Reference in New Issue
Block a user