Fix Ad Age (js)

merge-requests/15/head
magnolia1234 11 months ago
parent 57d42b2049
commit 3d762d8e50

@ -7,6 +7,7 @@ Add Auto-motor-und-sport.de
Add Medienholding Süd (opt-in to custom sites for unlisted)
Add Money.it
Add TorStar local
Fix Ad Age (js)
Fix Australian Community Media (css & identify sites)
Fix Medium (identify member-only)
Fix Puck.news (cached articles only)

@ -2173,8 +2173,8 @@ else if (matchDomain(['lc.nl', 'dvhn.nl']) || document.querySelector('link[href*
let html = document.documentElement.outerHTML;
if (html.includes('window.__NUXT__=')) {
let json = html.split('window.__NUXT__=')[1].split('</script>')[0].trim();
let url_nuxt = json.match(/[(,]null,/) ? json.split(/[(,]null,/)[1].match(/-\d+\.html/)[0] : false;
if (url_nuxt && !url_nuxt.includes(window.location.pathname.match(/-\d+\.html$/)))
let url_nuxt = json.match(/[(,]null,/) ? json.split(/[(,]null,/)[1].match(/\d+\.(html|ece)/)[0] : false;
if (url_nuxt && !window.location.pathname.includes(url_nuxt))
refreshCurrentTab();
else if (json.includes(',body:')) {
let json_text = json.split(',body:')[1].split(/,(leadText|brand_key|tts):/)[0].replace(/([{,])([a-zA-Z_0-9]+\d?):/g, "$1\"$2\":").replace(/\":(\[)?([\w\$\.]+)([\]},])/g, "\":$1\"$2\"$3");

@ -381,7 +381,7 @@ var defaultSites = {
"modernhealthcare.com"
],
allow_cookies: 1,
block_regex: "(\\.tinypass\\.com\\/|\\.{domain}\\/.+\\/js\\/js_.+\\.js)",
block_regex: "(\\.tinypass\\.com\\/|[\\.\\/]{domain}\\/.+\\/js\\/js_.+\\.js)",
exception: [{
domain: "autonews.com",
block_regex: "(\\.tinypass\\.com\\/|\\.{domain}\\/.+\\/js\\/js_.+\\.js)"

@ -39,6 +39,26 @@
"amp_unhide": 1,
"upd_version": "3.2.4.2"
},
"Crain Communications": {
"domain": "###_usa_craincomm",
"group": [
"adage.com",
"autonews.com",
"chicagobusiness.com",
"crainscleveland.com",
"crainsdetroit.com",
"crainsnewyork.com",
"modernhealthcare.com"
],
"allow_cookies": 1,
"block_regex": "(\\.tinypass\\.com\\/|[\\.\\/]{domain}\\/.+\\/js\\/js_.+\\.js)",
"exception": [{
"domain": "autonews.com",
"block_regex": "(\\.tinypass\\.com\\/|\\.{domain}\\/.+\\/js\\/js_.+\\.js)"
}
],
"upd_version": "3.2.5.9"
},
"Delish": {
"domain": "delish.com",
"allow_cookies": 1,

Loading…
Cancel
Save