fix for webnovel chronological direction by u/AchernarB on reddit(thanks)

This commit is contained in:
winneratwin 2022-08-09 05:06:40 +01:00
parent f441d218ce
commit d65ff75fa1
Signed by: winneratwin
GPG Key ID: CDBC42F8803D689E

View File

@ -3,11 +3,6 @@
! Homepage: https://gitea.codecoffin.com/winneratwin/ublock-origin-filters
! Description: this blocks webnovel replies until you have pressed the read more enough times to have all the replies and then reverses them
www.webnovel.com##.j_get_more_replies:not([class*="dn"]):upward(.oh) .j_more_replies_body
www.webnovel.com##.j_get_more_replies.dn:upward(.oh).j_more_replies_body:style(display: flex !important; flex-direction: column-reverse !important;)
! hastely implemented fix for long comments (can't belive i went so long without realising people had more to say)
! however this forces all comments to be expanded by default since the show more button doesn't exist when
! the parent is flex like we are setting it to above
www.webnovel.com##.j_get_more_replies.dn:upward(.oh).j_more_replies_body .g_txt_over.m-comment-bd:style(max-height: none !important;)
! better fix for not having show more button by u/AchernarB for making a fix that actually works
webnovel.com##.j_get_more_replies:not(.dn):upward(1) > .j_more_replies_body:style(position: absolute; height: 0px; overflow: scroll;)
webnovel.com##.j_get_more_replies.dn:upward(1) >.j_more_replies_body:style(display: flex !important; flex-direction: column-reverse !important; position: unset; height: unset; overflow: unset;)