Fix Times Higher Education

This commit is contained in:
magnolia1234 2021-10-05 18:19:10 +02:00
parent 0b2be1fe4a
commit ec3972f287
5 changed files with 13 additions and 3 deletions

View File

@ -33,6 +33,7 @@ const restrictions = {
'statista.com': /^((?!\.statista\.com\/(outlook|study)\/).)*$/, 'statista.com': /^((?!\.statista\.com\/(outlook|study)\/).)*$/,
'sueddeutsche.de': /^((?!(projekte|zeitung)\.sueddeutsche\.de\/).)*$/, 'sueddeutsche.de': /^((?!(projekte|zeitung)\.sueddeutsche\.de\/).)*$/,
'techinasia.com': /\.techinasia\.com\/.+/, 'techinasia.com': /\.techinasia\.com\/.+/,
'timeshighereducation.com': /.+\.timeshighereducation\.com\/(sites\/default\/files\/|.+((\w)+(\-)+){3,}.+)/,
'wsj.com': /^((?!\/cn\.wsj\.com\/).)*$/ 'wsj.com': /^((?!\/cn\.wsj\.com\/).)*$/
} }
@ -408,7 +409,7 @@ var blockedRegexes = {
'thesaturdaypaper.com.au': /\.thesaturdaypaper\.com\.au\/sites\/all\/modules\/custom\/node_meter\/pw\.js/, 'thesaturdaypaper.com.au': /\.thesaturdaypaper\.com\.au\/sites\/all\/modules\/custom\/node_meter\/pw\.js/,
'thewrap.com': /\.wallkit\.net\/js\//, 'thewrap.com': /\.wallkit\.net\/js\//,
'time.com': /\/time\.com\/dist\/meter-wall-client-js\..+\.js/, 'time.com': /\/time\.com\/dist\/meter-wall-client-js\..+\.js/,
'timeshighereducation.com': /\.timeshighereducation\.com\/sites\/default\/files\/js\/js_bbCGL.+\.js/, 'timeshighereducation.com': /\.timeshighereducation\.com\/sites\/default\/files\/.+\/js__.+\.js/,
'valeursactuelles.com': /\.qiota\.com\//, 'valeursactuelles.com': /\.qiota\.com\//,
'variety.com': /cdn\.cxense\.com\//, 'variety.com': /cdn\.cxense\.com\//,
'velonews.com': /\.velonews\.com\/.+\/scripts\/contentGate.+\.js/, 'velonews.com': /\.velonews\.com\/.+\/scripts\/contentGate.+\.js/,

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Chrome Changelog Bypass Paywalls Clean - Chrome
Post-release Post-release
Fix Times Higher Education
* v2.3.8.0 (2021-10-03) * v2.3.8.0 (2021-10-03)
Add NordLittoral.fr (Groupe Rossel) Add NordLittoral.fr (Groupe Rossel)

View File

@ -2630,6 +2630,14 @@ else if (matchDomain('timeshighereducation.com')) {
if (paywall_fade) if (paywall_fade)
paywall_fade.classList.remove('paywall-fade'); paywall_fade.classList.remove('paywall-fade');
} }
let hidden_images = document.querySelectorAll('img.b-lazy[src^="data:image/"][data-src]');
for (let hidden_image of hidden_images) {
hidden_image.setAttribute('src', hidden_image.getAttribute('data-src'));
hidden_image.classList.remove('b-lazy');
hidden_image.parentElement.classList.remove('media--loading');
}
let ads = document.querySelectorAll('div[id^="div-gpt-in-article-ad-"], div[class^="the-dfp__in-article-ATD"]');
removeDOMElement(...ads);
} }
else if (matchDomain(timesofindia_domains)) { else if (matchDomain(timesofindia_domains)) {

View File

@ -39,5 +39,5 @@
"webRequestBlocking", "webRequestBlocking",
"<all_urls>" "<all_urls>"
], ],
"version": "2.3.8.0" "version": "2.3.8.1"
} }

View File

@ -549,5 +549,5 @@
"*://*.wallkit.net/*", "*://*.wallkit.net/*",
"*://*.wsj.net/*" "*://*.wsj.net/*"
], ],
"version": "2.3.8.0" "version": "2.3.8.1"
} }