mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-04 12:00:10 +00:00
Fix The Chronicle (amp-redirect)
This commit is contained in:
parent
b67dd23bfc
commit
7c5e8dc0d2
@ -575,12 +575,19 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
if (!isSiteEnabled(details) || details.url.includes('/digitalprinteditions') || !details.url.includes('dest=')) {
|
||||
return;
|
||||
}
|
||||
var updatedUrl = decodeURIComponent(details.url.split('dest=')[1].split('&')[0]).replace('www.', 'amp.');
|
||||
return { redirectUrl: updatedUrl };
|
||||
var updatedUrl = decodeURIComponent(details.url.split('dest=')[1].split('&')[0]);
|
||||
if (matchUrlDomain('thechronicle.com.au', details.url))
|
||||
updatedUrl += '?amp';
|
||||
else
|
||||
updatedUrl = updatedUrl.replace('www.', 'amp.');
|
||||
return {
|
||||
redirectUrl: updatedUrl
|
||||
};
|
||||
}, {
|
||||
urls: au_news_corp_subscr,
|
||||
types: ["main_frame"]
|
||||
},
|
||||
{urls:au_news_corp_subscr, types:["main_frame"]},
|
||||
["blocking"]
|
||||
);
|
||||
["blocking"]);
|
||||
|
||||
// fix nytimes x-frame-options (hidden iframe content)
|
||||
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
||||
|
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||
Post-release
|
||||
Fix Australia News Corp (amp-redirect)
|
||||
Fix Faz.net (timing)
|
||||
Fix The Chronicle (amp-redirect)
|
||||
Fix The Seattle Times (update)
|
||||
Fix The Telegraph (modal)
|
||||
Fix The West Australian (regional)
|
||||
|
Loading…
Reference in New Issue
Block a user