This commit is contained in:
unkn0w7n 2024-08-25 16:29:14 +05:30
parent b52a976230
commit 906a2cde25
6 changed files with 18 additions and 6 deletions

View File

@ -26,7 +26,7 @@ class scienceadv(BasicNewsRecipe):
browser_type = 'qt'
extra_css = '''
.news-article__figure__caption {font-size:small; text-align:center;}
.news-article__figure__caption, .figc {font-size:small;}
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
img {display:block; margin:0 auto;}
@ -70,6 +70,8 @@ class scienceadv(BasicNewsRecipe):
if w and isinstance(w, str):
res = '/cdn-cgi/image/width=' + w
img['src'] = absurl(res + img['src'])
for figc in soup.findAll('figcaption'):
figc['class'] = 'figc'
return soup
def parse_index(self):

View File

@ -24,7 +24,7 @@ class science(BasicNewsRecipe):
browser_type = 'qt'
extra_css = '''
.news-article__figure__caption {font-size:small; text-align:center;}
.news-article__figure__caption, .figc {font-size:small;}
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
img {display:block; margin:0 auto;}
@ -68,6 +68,8 @@ class science(BasicNewsRecipe):
if w and isinstance(w, str):
res = '/cdn-cgi/image/width=' + w
img['src'] = absurl(res + img['src'])
for figc in soup.findAll('figcaption'):
figc['class'] = 'figc'
return soup
def parse_index(self):

View File

@ -26,7 +26,7 @@ class scienceadv(BasicNewsRecipe):
browser_type = 'qt'
extra_css = '''
.news-article__figure__caption {font-size:small; text-align:center;}
.news-article__figure__caption, .figc {font-size:small;}
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
img {display:block; margin:0 auto;}
@ -70,6 +70,8 @@ class scienceadv(BasicNewsRecipe):
if w and isinstance(w, str):
res = '/cdn-cgi/image/width=' + w
img['src'] = absurl(res + img['src'])
for figc in soup.findAll('figcaption'):
figc['class'] = 'figc'
return soup
def parse_index(self):

View File

@ -26,7 +26,7 @@ class scienceadv(BasicNewsRecipe):
browser_type = 'qt'
extra_css = '''
.news-article__figure__caption {font-size:small; text-align:center;}
.news-article__figure__caption, .figc {font-size:small;}
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
img {display:block; margin:0 auto;}
@ -70,6 +70,8 @@ class scienceadv(BasicNewsRecipe):
if w and isinstance(w, str):
res = '/cdn-cgi/image/width=' + w
img['src'] = absurl(res + img['src'])
for figc in soup.findAll('figcaption'):
figc['class'] = 'figc'
return soup
def parse_index(self):

View File

@ -25,7 +25,7 @@ class scienceadv(BasicNewsRecipe):
browser_type = 'qt'
extra_css = '''
.news-article__figure__caption {font-size:small; text-align:center;}
.news-article__figure__caption, .figc {font-size:small;}
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
img {display:block; margin:0 auto;}
@ -69,6 +69,8 @@ class scienceadv(BasicNewsRecipe):
if w and isinstance(w, str):
res = '/cdn-cgi/image/width=' + w
img['src'] = absurl(res + img['src'])
for figc in soup.findAll('figcaption'):
figc['class'] = 'figc'
return soup
def parse_index(self):

View File

@ -26,7 +26,7 @@ class scienceadv(BasicNewsRecipe):
browser_type = 'qt'
extra_css = '''
.news-article__figure__caption {font-size:small; text-align:center;}
.news-article__figure__caption, .figc {font-size:small;}
.core-self-citation, .meta-panel__left-content, .news-article__hero__top-meta {font-size:small;}
.contributors, .news-article__hero__bottom-meta, #bibliography, #elettersSection {font-size:small;}
img {display:block; margin:0 auto;}
@ -70,6 +70,8 @@ class scienceadv(BasicNewsRecipe):
if w and isinstance(w, str):
res = '/cdn-cgi/image/width=' + w
img['src'] = absurl(res + img['src'])
for figc in soup.findAll('figcaption'):
figc['class'] = 'figc'
return soup
def parse_index(self):