Add Politica Exterior (Spain)

merge-requests/1/head
magnolia1234 3 years ago
parent 0085bd5141
commit d805526be0

@ -392,7 +392,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 - Firefox
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;

@ -324,6 +324,7 @@
"*://*.philosophynow.org/*",
"*://*.pilotonline.com/*",
"*://*.piqd.de/*",
"*://*.politicaexterior.com/*",
"*://*.portnews.com.au/*",
"*://*.post-gazette.com/*",
"*://*.prospectmagazine.co.uk/*",
@ -481,5 +482,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(

@ -22,6 +22,7 @@
To add a new site, enter an unique title/domain (without www.), select options for Googlebot/block Javascript (block on (sub)domain(s) of site and/or external domains) and/or set referer (ignored when Googlebot is set).<br>
Custom sites are enabled automatically in <small><button><a href="options.html" style="text-decoration:none;color:inherit">Options</a></button></small> (cookies will be removed by default unless you enable allow_cookies).<br>
If you want to use custom sites (for non-listed sites) enable it in <small><button><a href="optin/opt-in.html" style="text-decoration:none;color:inherit">Opt-in</a></button></small><br>
On Android: to enable custom sites you need the 'custom' add-on version (with access to all sites): <a href="https://addons.mozilla.org/en-US/firefox/addon/bypass-paywalls-clean-custom" target="_blank">Bypass Paywalls Clean (custom)</a><br>
<strong>Custom sites enabled: <span id="custom-enabled"></span></strong>
<br><br>
</div>

@ -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…
Cancel
Save