Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
Aleksei Kopaev
tagDiv Member

No, with such an option of placement, advertising is shown on top of comments, but it is necessary that it appears after comments

Aleksei Kopaev
tagDiv Member

From the part of yes, for simple publications, thanks to this code
See how it works here https://t.me/l34_news

?exists: //article
title: //article//header//h1
body: //article//div[has-class("td-post-content")]
$a: //article//header//div[has-class("td-post-author-name")]
@remove: $a//*[not(self::a)]
@append(", "): $a/*[./next-sibling::*]
channel: "@l34_news"
author: $a
author_url: $a/a/@href

#remove
?true
@remove: $body/*[has-class("essb_links")]
@remove: $body/*[has-class("yarpp-related")]
@remove: $body/*[has-class("essb_break_scroll")]
@remove: $body/*[has-class("td-a-rec")]

?true
<slideshow>: $body//div[@data-carousel-extra]
$gal: $@
<figure>: $gal//img[@data-orig-file]/../self::*
@append_to("./prev-sibling::figure"): $@/next-sibling::div[has-class("tiled-gallery-caption")]
<figcaption>: $@
@set_attr(src, @data-orig-file): $gal//img[@data-orig-file]

<slideshow>: $body//div[has-class("td-gallery")]

$s: //script[contains(text(), "td-backstretch not-parallax")]
@match("<img class=\\\\\\'td-backstretch not-parallax\\\\\\' src=\\\\\\'(.*)\\\\\\'", 1): $s
@set_attr(src, "./text()"): $s
: $s
cover: $@

?true
@unsupported: $body//div[has-class("timely")]
@unsupported: $body//input

Aleksei Kopaev
tagDiv Member

I added a shortcode https://yadi.sk/i/SiLhPzjC3SYwcs ,
but the ad unit is not displayed, can this be related to the used disqus comment plugin?

Aleksei Kopaev
tagDiv Member

At the moment it turns out such a code for “Rules”. But it is also necessary to display the author, and how to unload images from galleries

?exists: //article
title: //article//header//h1
body: //article//div[has-class("td-post-content")]

#remove
?true
@remove: $body/*[has-class("essb_links")]
@remove: $body/*[has-class("yarpp-related")]
@remove: $body/*[has-class("essb_break_scroll")]
@remove: $body/*[has-class("td-a-rec")]

?true
@debug: $body/*

?true
@unsupported: $body//div[has-class("timely")]

Aleksei Kopaev
tagDiv Member

Did you manage to find a solution?

Aleksei Kopaev
tagDiv Member

А если раньше все было нормально, но после апдейта шаблона верстка поплыла? Тоже все отключить нужно?

Viewing 6 posts - 1 through 6 (of 6 total)