Fix PEI Media (identify site)

This commit is contained in:
magnolia1234 2023-03-24 16:06:51 +01:00
parent 4cf61887ad
commit cc836edfa9
3 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ Add Revue Conflits
Remove Cellesche Zeitung (fix obsolete)
Fix Automobilwoche.de (js)
Fix Faz.net (json)
Fix PEI Media (identify site)
Fix The Art Newspaper (js)
Fix The New Republic (modal)
Fix The West Australian

View file

@ -330,7 +330,7 @@ else {
// Australian Seven West Media
if (matchDomain('thewest.com.au') || document.querySelector('li > a[href*=".sevenwestmedia.com.au"]')) {
window.setTimeout(function () {
let breach_screen = document.querySelector('div[data-testid*="BreachScreen"]:not(.paywall), div[class*="StyledBreachWallContent"]');
let breach_screen = document.querySelector('div.paywall div[data-testid*="BreachScreen"], div[class*="StyledBreachWallContent"]');
if (breach_screen) {
let scripts = document.querySelectorAll('script:not([src], [type])');
let json_script;

View file

@ -102,7 +102,7 @@ window.setTimeout(function () {
else if (hostname.match(/\.com$/)) {
if (document.querySelector('link[href*=".com/wp-content/themes/madavor/"]'))
group = '###_usa_madavor';
else if (document.querySelector('script#wp-parsely-pei-events-js'))
else if (document.querySelector('img[data-src*="/wp-content/plugins/pragmatic-pei-rebranding/"]'))
group = '###_usa_pei';
}
}