Fix Australia Nine sites

This commit is contained in:
magnolia1234 2021-07-31 14:11:20 +02:00
parent d9be47acc8
commit a594d0b03a
4 changed files with 4 additions and 3 deletions

View file

@ -572,7 +572,7 @@ function add_grouped_sites(init_rules) {
// rules only
for (let domain of au_nine_domains)
blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/;
blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-((sticky-)?ad|subscriptions)-.+\.js/;
for (let domain of es_unidad_domains) {
allow_cookies.push(domain);
blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|consent)-.+\.js/;

View file

@ -6,6 +6,7 @@ Add Iltalehti.fi (Firefox-only)
Add Marca (Spain)
Grouping Quotidiano.net sites (Italy)
Remove Le Un (obsolete)
Fix Australia Nine sites
Fix Commentary Magazine (new domain)
Fix Gestion & El Comercio (Peru)
Fix Grupo Vocento (Spain)

View file

@ -89,7 +89,7 @@ if (matchDomain('thesaturdaypaper.com.au')) {
else if (domain = matchDomain(["brisbanetimes.com.au", "smh.com.au", "theage.com.au", "watoday.com.au"])) {
let url = window.location.href;
let for_subscribers = document.querySelector('meta[content^="FOR SUBSCRIBERS"]');
let for_subscribers = document.querySelector('meta[content^="FOR SUBSCRIBERS"], #paywall_prompt');
if (for_subscribers) {
window.setTimeout(function () {
window.location.href = url.replace('www.', 'amp.');

View file

@ -540,5 +540,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.3.0.7"
"version": "2.3.0.8"
}