Fix MIT Sloan Management Review (old articles)

This commit is contained in:
magnolia1234 2024-02-11 17:31:22 +01:00
parent 0e2c5147bc
commit 99bac2f016
2 changed files with 11 additions and 1 deletions

View File

@ -9,6 +9,7 @@ Add Superdeporte.es (Grupo Prensa Iberica)
Add Ynet.co.il
Fix El Espanol (Cronica Global)
Fix Grupo Prensa Iberica (css)
Fix MIT Sloan Management Review (old articles)
Fix National Geographic USA (js-regwall)
Fix Swarajyamag
Fix Telegraaf.nl (premium only)

View File

@ -4783,7 +4783,16 @@ else if (matchDomain('slideshare.net')) {
else if (matchDomain('sloanreview.mit.edu')) {
let url = window.location.href;
getGoogleWebcache(url, 'body.is-paywall', {rm_class: 'is-paywall'}, 'div#article-content');
let article_sel = 'div.article-content';
func_post = function () {
let pars = document.querySelectorAll(article_sel + ' > p');
if (pars.length < 5) {
let article = document.querySelector(article_sel);
if (article)
article.firstChild.before(archiveLink(url));
}
}
getGoogleWebcache(url, 'body.is-paywall', {rm_class: 'is-paywall'}, article_sel);
}
else if (matchDomain('sofrep.com')) {