Fix Cairns Post, Code Sports & The Advertiser
This commit is contained in:
parent
756052e57f
commit
43a98c8a0c
@ -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"]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
@ -39,5 +39,5 @@
|
|||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"<all_urls>"
|
"<all_urls>"
|
||||||
],
|
],
|
||||||
"version": "2.5.2.5"
|
"version": "2.5.2.6"
|
||||||
}
|
}
|
||||||
|
@ -591,5 +591,5 @@
|
|||||||
"*://*.wsj.net/*",
|
"*://*.wsj.net/*",
|
||||||
"*://*.zephr.com/*"
|
"*://*.zephr.com/*"
|
||||||
],
|
],
|
||||||
"version": "2.5.2.5"
|
"version": "2.5.2.6"
|
||||||
}
|
}
|
||||||
|
12
sites.js
12
sites.js
@ -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",
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user