Fix Australia News Corp (amp)

This commit is contained in:
magnolia1234 2022-03-31 08:48:42 +02:00
parent 0f20357058
commit 4c6d364e1a
5 changed files with 27 additions and 4 deletions

View file

@ -6,6 +6,7 @@ Add Diario Cordoba
Add La Opinion A Coruna
Add La Opinion de Zamora
Fix Alma Talent sites (js-ads)
Fix Australia News Corp (amp)
Fix Madsack Mediengruppe
* v2.6.2.0 (2022-03-27)

View file

@ -302,10 +302,10 @@ else {
let amp_ads_sel = 'amp-ad, amp-embed, [id^="ad-mrec-"], .story-ad-container';
let comments;
if (window.location.hostname.startsWith('amp.')) {
amp_unhide_access_hide('="access AND subscriber"', '', amp_ads_sel, true, true, 'resourcesssl.newscdn.com.au');
amp_unhide_subscr_section(amp_ads_sel, true, true, 'resourcesssl.newscdn.com.au');
comments = document.querySelector('#story-comments, .comments-wrapper');
} else if (window.location.href.includes('?amp')) {
amp_unhide_access_hide('="subscriber AND status=\'logged-in\'"', '="status=\'logged-out\'"', amp_ads_sel, true, true, 'resourcesssl.newscdn.com.au');
amp_unhide_subscr_section(amp_ads_sel, true, true, 'resourcesssl.newscdn.com.au');
comments = document.querySelector('#comments-load');
let amp_iframe_sizers = document.querySelectorAll('amp-iframe > i-amphtml-sizer');
removeDOMElement(...amp_iframe_sizers)

View file

@ -666,5 +666,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.6.2.2"
"version": "2.6.2.3"
}

View file

@ -129,7 +129,7 @@ var defaultSites = {
"weeklytimesnow.com.au"
],
allow_cookies: 1,
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad)-.+\.js)/
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|(sticky-)?ad|subscriptions)-.+\.js)/
},
"Australian Community Media (daily)": {
domain: "###_au_comm_media",

View file

@ -1,4 +1,26 @@
{
"Australia News Corp": {
"domain": "###_au_news_corp",
"group": [
"adelaidenow.com.au",
"cairnspost.com.au",
"codesports.com.au",
"couriermail.com.au",
"dailytelegraph.com.au",
"geelongadvertiser.com.au",
"goldcoastbulletin.com.au",
"heraldsun.com.au",
"ntnews.com.au",
"theaustralian.com.au",
"thechronicle.com.au",
"themercury.com.au",
"townsvillebulletin.com.au",
"weeklytimesnow.com.au"
],
"allow_cookies": 1,
"block_regex": "(\\.com\\.au\\/remote\\/identity\\/rampart\\/latest\\/rampart\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad|subscriptions)-.+\\.js)",
"amp_unhide": 1
},
"Badische Neueste Nachrichten": {
"allow_cookies": 1,
"domain": "bnn.de",