Fix MediaNews Group (identify sites)

merge-requests/18/merge
magnolia1234 5 months ago
parent c77b257a61
commit 314a3c4f05

@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release
Remove Wz.de (fix obsolete)
Fix MediaNews Group (identify sites)
* v3.5.0.0 (2024-01-07)
Add Forum Communications (opt-in to custom sites)

@ -5662,9 +5662,9 @@ else if ((domain = matchDomain(usa_mcc_domains)) ||
hideDOMElement(...ads);
}
else if (matchDomain(usa_mng_domains) || (window.location.href.match(/\.com\/(\d){4}\/(\d){2}\/(\d){2}\/.+\/amp\//) && document.querySelector('amp-img#paywall[src*=".com/wp-content/plugins/dfm-amp-mods/"]'))) {
else if (matchDomain(usa_mng_domains) || (window.location.href.match(/\.com\/(\d){4}\/(\d){2}\/(\d){2}\/.+\/amp\//) && document.querySelector('footer li > a[href^="https://www.medianewsgroup.com"]'))) {
if (window.location.pathname.endsWith('/amp/')) {
amp_unhide_subscr_section('amp-ad, amp-embed, div.ampWrapperInside');
amp_unhide_subscr_section('amp-ad, amp-embed, div.ampWrapperInside, div#paywall');
}
}

@ -124,7 +124,7 @@ window.setTimeout(function () {
group = '###_usa_townnews';
else if (document.querySelector('head > meta[content^="https://www.mcclatchy-wires.com/"], a[href^="https://classifieds.mcclatchy.com/"], script[src*=".mcclatchyinteractive.com/"]'))
group = '###_usa_mcc';
else if (document.querySelector('script[src*="/wp-content/plugins/dfm"], amp-img#paywall[src*=".com/wp-content/plugins/dfm-amp-mods/"]'))
else if (document.querySelector('head > link[rel="stylesheet"][id^="dfm-accuweather-"], footer li > a[href^="https://www.medianewsgroup.com"]'))
group = '###_usa_mng';
else if (hostname.match(/\.com$/)) {
if (matchDomain(['journalauto.com', 'journaldupneu.com', 'j2rauto.com']))

@ -2,8 +2,8 @@
"addons": {
"magnolia@12.34": {
"updates": [
{ "version": "3.4.9.0",
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.4.9.0.xpi" }
{ "version": "3.5.0.0",
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.5.0.0.xpi" }
]
}
}

Loading…
Cancel
Save