Fix The Daily Telegraph (au)
This commit is contained in:
parent
927993e3c9
commit
700e4bcd57
@ -485,8 +485,7 @@ function add_grouped_sites(init_rules) {
|
||||
}
|
||||
for (let domain of au_news_corp_domains) {
|
||||
allow_cookies.push(domain);
|
||||
if (domain !== 'dailytelegraph.com.au')
|
||||
use_google_bot.push(domain);
|
||||
use_google_bot.push(domain);
|
||||
blockedRegexes[domain] = /cdn\.ampproject\.org\/v\d\/amp-(access|ad|iframe)-.+\.js/;
|
||||
}
|
||||
for (let domain of au_prov_news_domains) {
|
||||
@ -911,18 +910,6 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
["blocking"]
|
||||
);
|
||||
|
||||
// dailytelegraph.com.au amp-redirect
|
||||
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
return;
|
||||
}
|
||||
var updatedUrl = decodeURIComponent(details.url.split('&dest=')[1].split('&')[0]).replace('www.', 'amp.');
|
||||
return { redirectUrl: updatedUrl };
|
||||
},
|
||||
{urls:["*://www.dailytelegraph.com.au/subscribe/*"], types:["main_frame"]},
|
||||
["blocking"]
|
||||
);
|
||||
|
||||
// fix nytimes x-frame-options (hidden iframe content)
|
||||
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
|
||||
if (!isSiteEnabled(details)) {
|
||||
|
@ -2,6 +2,7 @@
|
||||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Fix The Daily Telegraph (au)
|
||||
|
||||
* v2.2.9.0 (2021-07-11)
|
||||
Add TradeWinds
|
||||
|
@ -127,11 +127,9 @@ else {
|
||||
for (let div_hidden of div_hidden_all)
|
||||
div_hidden.removeAttribute('amp-access-hide');
|
||||
} else if (window.location.href.includes('?amp')) {
|
||||
//window.setTimeout(function () {
|
||||
let div_hidden = document.querySelector('div[amp-access="subscriber AND status=\'logged-in\'"]');
|
||||
if (div_hidden)
|
||||
div_hidden.removeAttribute('amp-access-hide');
|
||||
//}, 500); // Delay (in milliseconds)
|
||||
}
|
||||
let amp_iframes = document.querySelectorAll('amp-iframe');
|
||||
let elem;
|
||||
|
@ -38,5 +38,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.2.9.0"
|
||||
"version": "2.2.9.1"
|
||||
}
|
@ -522,5 +522,5 @@
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.2.9.0"
|
||||
"version": "2.2.9.1"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user