Fix The Daily Telegraph (au)

merge-requests/2/head
magnolia1234 3 years ago
parent 5af8576f59
commit ab38151989

@ -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 - Firefox
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;

@ -534,5 +534,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.2.9.0"
"version": "2.2.9.1"
}
Loading…
Cancel
Save