Fix MIT Sloan Management Review (old articles)

merge-requests/20/head
magnolia1234 4 months ago
parent 0e2c5147bc
commit 99bac2f016

@ -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)

@ -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')) {

Loading…
Cancel
Save