Fix McClatchy Group (amp-redirect)

merge-requests/13/head
magnolia1234 1 year ago
parent a9a60a738f
commit 67ac5ac21d

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix LesEchos.fr (json)
Fix McClatchy Group (amp-redirect)
* v3.0.4.0 (2023-02-05)
Add Inside Higher Ed

@ -4589,10 +4589,11 @@ else if ((domain = matchDomain(usa_lee_ent_domains)) || document.querySelector('
else if ((domain = matchDomain(usa_mcc_domains)) ||
(window.location.hostname.startsWith('account.') && document.querySelector('script[src*=".mcclatchyinteractive.com/"]')) ||
(window.location.href.match(/\/\/amp\..+\.com\/(.+\/)?article(\d){8,}\.html/) && document.querySelector('a[href^="https://classifieds.mcclatchy.com/"]'))) {
if (!domain)
domain = window.location.hostname.replace(/^(account|amp)\./, '');
let url = window.location.href;
if (url.includes('account.' + domain + '/paywall/subscriber-only?resume=')) {
let hostname = window.location.hostname;
if (!domain)
domain = hostname.replace(/^(account|amp)\./, '');
if (hostname.startsWith('account.') && window.location.search.startsWith('?resume=')) {
window.setTimeout(function () {
window.location.href = 'https://amp.' + domain + '/article' + url.split('resume=')[1].split(/[#&]/)[0] + '.html';
}, 500);

@ -730,5 +730,5 @@
"*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.0.4.1"
"version": "3.0.4.2"
}

Loading…
Cancel
Save