diff --git a/README.md b/README.md index c01b5ce..f05d6ed 100644 --- a/README.md +++ b/README.md @@ -132,7 +132,14 @@ Grouped in options:\ [Crain's Detroit Business](https://www.crainsdetroit.com) - [Crain's New York Business](https://www.crainsnewyork.com) - [Modern Healthcare](https://www.modernhealthcare.com) - -[Pensions & Investments](https://www.pionline.com) +[Pensions & Investments](https://www.pionline.com)\ +Global Polymer Group: +[European Rubber Journal](https://www.european-rubber-journal.com) - +[Plastics News](https://www.plasticsnews.com) - +[Rubber News](https://www.rubbernews.com) - +[Sustainable Plastics](https://www.sustainableplastics.com) - +[Tire Business](https://www.tirebusiness.com) - +[Urethanes Technology International](https://www.utech-polyurethane.com) *[Inside Retail](https://octomedia.com.au/our-brands/inside-retail)* sites (opt-in to custom sites) diff --git a/changelog.txt b/changelog.txt index 7c790b1..181d777 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal Post-release Add Doorbraak.be Add Moda.it (GEDI.it) +Add Global Polymer Group (Crain) Add Welt.de (link to archive.is) Fix FreiePresse.de Fix South China Morning Post (css) diff --git a/contentScript.js b/contentScript.js index 3ac9db2..3491dbc 100644 --- a/contentScript.js +++ b/contentScript.js @@ -40,7 +40,7 @@ var uk_nat_world_domains = ['scotsman.com', 'yorkshirepost.co.uk']; var usa_adv_local_domains = ['al.com', 'cleveland.com', 'lehighvalleylive.com', 'masslive.com', 'mlive.com', 'nj.com', 'oregonlive.com', 'pennlive.com', 'silive.com', 'syracuse.com']; var usa_arizent_custom_domains = ['accountingtoday.com', 'benefitnews.com', 'bondbuyer.com', 'dig-in.com', 'financial-planning.com', 'nationalmortgagenews.com']; var usa_conde_nast_domains = ['architecturaldigest.com', 'bonappetit.com', 'cntraveler.com', 'epicurious.com', 'gq.com' , 'newyorker.com', 'vanityfair.com', 'vogue.com', 'wired.com']; -var usa_craincomm_domains = ['360dx.com', 'adage.com', 'autonews.com', 'chicagobusiness.com', 'crainscleveland.com', 'crainsdetroit.com', 'crainsnewyork.com', 'genomeweb.com', 'modernhealthcare.com', 'pionline.com', 'precisionmedicineonline.com']; +var usa_craincomm_domains = ['360dx.com', 'adage.com', 'autonews.com', 'chicagobusiness.com', 'crainscleveland.com', 'crainsdetroit.com', 'crainsnewyork.com', 'european-rubber-journal.com', 'genomeweb.com', 'modernhealthcare.com', 'pionline.com', 'plasticsnews.com', 'precisionmedicineonline.com', 'rubbernews.com', 'sustainableplastics.com', 'tirebusiness.com', 'utech-polyurethane.com']; var usa_gannett_domains = ['azcentral.com', 'cincinnati.com', 'commercialappeal.com', 'courier-journal.com', 'democratandchronicle.com', 'detroitnews.com', 'freep.com', 'indystar.com', 'jsonline.com', 'knoxnews.com', 'news-press.com', 'northjersey.com', 'oklahoman.com', 'statesman.com', 'tennessean.com']; var usa_hearst_comm_domains = ['expressnews.com', 'houstonchronicle.com', 'sfchronicle.com']; var usa_lee_ent_domains = ['buffalonews.com', 'journalnow.com', 'journalstar.com', 'madison.com', 'nwitimes.com', 'omaha.com', 'richmond.com', 'stltoday.com', 'tucson.com', 'tulsaworld.com']; @@ -2118,6 +2118,15 @@ else if (matchDomain('eastwest.eu')) { } } +else if (matchDomain('editorialedomani.it')) { + if (window.location.search.startsWith('?amp=1')) + ampToHtml(); + else { + let ads = document.querySelectorAll('div.ad-container'); + hideDOMElement(...ads); + } +} + else if (matchDomain('gazzetta.it')) { if (window.location.pathname.endsWith('_preview.shtml')) { let paywall = document.querySelector('section.bck-freemium__wall'); @@ -5396,19 +5405,30 @@ else if (matchDomain(usa_conde_nast_domains)) { } else if (matchDomain(usa_craincomm_domains)) { - let body_hidden = document.querySelector('body[class]'); - if (body_hidden) - body_hidden.removeAttribute('class'); - let lazy_images = document.querySelectorAll('img.lazy[data-src]'); - for (let lazy_image of lazy_images) { - lazy_image.src = lazy_image.getAttribute('data-src'); - lazy_image.removeAttribute('class'); + if (matchDomain('european-rubber-journal.com')) { + let paywall = document.querySelector('div.article-overlay'); + if (paywall) { + let fade = document.querySelector('div.gradient'); + removeDOMElement(paywall, fade); + let truncated = document.querySelector('div.truncated'); + if (truncated) + truncated.classList.remove('truncated'); + } + } else { + let body_hidden = document.querySelector('body[class]'); + if (body_hidden) + body_hidden.removeAttribute('class'); + let lazy_images = document.querySelectorAll('img.lazy[data-src]'); + for (let lazy_image of lazy_images) { + lazy_image.src = lazy_image.getAttribute('data-src'); + lazy_image.removeAttribute('class'); + } + let lazy_sources = document.querySelectorAll('source[srcset^="data:image"]'); + removeDOMElement(...lazy_sources); + let sponsored_article = document.querySelector('div.sponsored-article'); + if (sponsored_article) + sponsored_article.classList.remove('sponsored-article'); } - let lazy_sources = document.querySelectorAll('source[srcset^="data:image"]'); - removeDOMElement(...lazy_sources); - let sponsored_article = document.querySelector('div.sponsored-article'); - if (sponsored_article) - sponsored_article.classList.remove('sponsored-article'); let banners = document.querySelectorAll('div.footer__ads-footer'); hideDOMElement(...banners); } @@ -5848,6 +5868,7 @@ function amp_iframes_replace(weblink = false, source = '') { amp_iframe.parentNode.replaceChild(elem, amp_iframe); } else { par = document.createElement('p'); + par.style = 'margin: 20px 0px;'; elem = document.createElement('a'); elem.innerText = 'Media-link'; elem.setAttribute('href', amp_iframe.getAttribute('src')); diff --git a/custom/manifest.json b/custom/manifest.json index 203559f..6ded12f 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.4.2.5" + "version": "3.4.2.6" } diff --git a/manifest.json b/manifest.json index 6053379..0cd8e7f 100644 --- a/manifest.json +++ b/manifest.json @@ -250,6 +250,7 @@ "*://*.etc.se/*", "*://*.euobserver.com/*", "*://*.eurekareport.com.au/*", + "*://*.european-rubber-journal.com/*", "*://*.europower.no/*", "*://*.exame.com/*", "*://*.examiner.com.au/*", @@ -541,6 +542,7 @@ "*://*.pilotonline.com/*", "*://*.pionline.com/*", "*://*.piqd.de/*", + "*://*.plasticsnews.com/*", "*://*.politicaexterior.com/*", "*://*.popsci.com/*", "*://*.popularmechanics.com/*", @@ -571,6 +573,7 @@ "*://*.rnd.de/*", "*://*.roadandtrack.com/*", "*://*.rollingstone.com/*", + "*://*.rubbernews.com/*", "*://*.rugbypass.com/*", "*://*.rugbyrama.fr/*", "*://*.ruhrnachrichten.de/*", @@ -629,6 +632,7 @@ "*://*.sueddeutsche.de/*", "*://*.sun-sentinel.com/*", "*://*.suomensotilas.fi/*", + "*://*.sustainableplastics.com/*", "*://*.svz.de/*", "*://*.swarajyamag.com/*", "*://*.syracuse.com/*", @@ -699,6 +703,7 @@ "*://*.timeshighereducation.com/*", "*://*.timesofindia.com/*", "*://*.timesofindia.indiatimes.com/*", + "*://*.tirebusiness.com/*", "*://*.tlz.de/*", "*://*.topagrar.at/*", "*://*.topagrar.com/*", @@ -721,6 +726,7 @@ "*://*.upstreamonline.com/*", "*://*.usatoday.com/*", "*://*.usinenouvelle.com/*", + "*://*.utech-polyurethane.com/*", "*://*.valeursactuelles.com/*", "*://*.vancouversun.com/*", "*://*.vanityfair.com/*", @@ -808,5 +814,5 @@ "*://*.wyleex.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.4.2.5" + "version": "3.4.2.6" } diff --git a/sites.js b/sites.js index 0639559..d6f4604 100644 --- a/sites.js +++ b/sites.js @@ -431,13 +431,24 @@ var defaultSites = { "crainscleveland.com", "crainsdetroit.com", "crainsnewyork.com", + "european-rubber-journal.com", "genomeweb.com", "modernhealthcare.com", "pionline.com", - "precisionmedicineonline.com" + "plasticsnews.com", + "precisionmedicineonline.com", + "rubbernews.com", + "sustainableplastics.com", + "tirebusiness.com", + "utech-polyurethane.com" ], allow_cookies: 1, - block_regex: /(js\.pelcro\.com\/|\.com\/.+\/js\/js_.+\.js)/ + block_regex: /(js\.pelcro\.com\/|\.com\/.+\/js\/js_.+\.js)/, + exception: [{ + domain: "european-rubber-journal.com", + allow_cookies: 1, + } + ] }, "Crikey.com.au": { domain: "crikey.com.au",