Fix Cairns Post, Code Sports & The Advertiser

This commit is contained in:
magnolia1234 2022-01-21 17:19:48 +01:00
parent 756052e57f
commit 43a98c8a0c
6 changed files with 38 additions and 5 deletions

View File

@ -566,7 +566,7 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
["blocking"] ["blocking"]
); );
// theaustralian.com redirect subscribe to amp // theaustralian.com, adelaidenow.com.au, cairnspost.com.au redirect subscribe to amp
ext_api.webRequest.onBeforeRequest.addListener(function (details) { ext_api.webRequest.onBeforeRequest.addListener(function (details) {
if (!isSiteEnabled(details) || details.url.includes('/digitalprinteditions')) { if (!isSiteEnabled(details) || details.url.includes('/digitalprinteditions')) {
return; return;
@ -574,7 +574,7 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
var updatedUrl = decodeURIComponent(details.url.split('dest=')[1].split('&')[0]).replace('www.', 'amp.'); var updatedUrl = decodeURIComponent(details.url.split('dest=')[1].split('&')[0]).replace('www.', 'amp.');
return { redirectUrl: updatedUrl }; return { redirectUrl: updatedUrl };
}, },
{urls:["*://www.theaustralian.com.au/subscribe/*"], types:["main_frame"]}, {urls:["*://www.theaustralian.com.au/subscribe/*", "*://www.adelaidenow.com.au/subscribe/*", "*://www.cairnspost.com.au/subscribe/*"], types:["main_frame"]},
["blocking"] ["blocking"]
); );

View File

@ -5,6 +5,7 @@ Post-release
Add Huffingtonpost.it Add Huffingtonpost.it
Add Outside Add Outside
Fix Asia Times Fix Asia Times
Fix Cairns Post, Code Sports & The Advertiser
Fix Challenges.fr Fix Challenges.fr
Fix Clarin Fix Clarin
Fix The New Yorker (update) Fix The New Yorker (update)

View File

@ -39,5 +39,5 @@
"webRequestBlocking", "webRequestBlocking",
"<all_urls>" "<all_urls>"
], ],
"version": "2.5.2.5" "version": "2.5.2.6"
} }

View File

@ -591,5 +591,5 @@
"*://*.wsj.net/*", "*://*.wsj.net/*",
"*://*.zephr.com/*" "*://*.zephr.com/*"
], ],
"version": "2.5.2.5" "version": "2.5.2.6"
} }

View File

@ -128,7 +128,17 @@ var defaultSites = {
], ],
allow_cookies: 1, allow_cookies: 1,
useragent: "googlebot", useragent: "googlebot",
block_regex: /cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js/ block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/,
exception: [{
domain: "adelaidenow.com.au",
allow_cookies: 1,
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/
}, {
domain: "cairnspost.com.au",
allow_cookies: 1,
block_regex: /(\.com\.au\/remote\/identity\/rampart\/latest\/rampart\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad)-.+\.js)/
}
]
}, },
"Australian Community Media (daily)": { "Australian Community Media (daily)": {
domain: "###_au_comm_media", 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,
"useragent": "googlebot",
"block_regex": "(\\.com\\.au\\/remote\\/identity\\/rampart\\/latest\\/rampart\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad)-.+\\.js)"
},
"Clarín": { "Clarín": {
"domain": "clarin.com", "domain": "clarin.com",
"allow_cookies": 1, "allow_cookies": 1,