fix Xmaxxing (and add badass images) (#164)
Co-authored-by: Chuck Sneed <sneed@formerlychucks.net> Reviewed-on: rDrama/rDrama#164 Co-authored-by: HeyMoon <heymoon@noreply.fsdfsd.net> Co-committed-by: HeyMoon <heymoon@noreply.fsdfsd.net>pull/165/head
|
@ -6685,6 +6685,37 @@ g {
|
|||
font-style: italic !important;
|
||||
}
|
||||
|
||||
.sharpen-0:after {
|
||||
background: url("/i/sharpen/0.webp?x=6");
|
||||
}
|
||||
.sharpen-1:after {
|
||||
background: url("/i/sharpen/1.webp?x=6");
|
||||
}
|
||||
.sharpen-2:after {
|
||||
background: url("/i/sharpen/2.webp?x=6");
|
||||
}
|
||||
.sharpen-3:after {
|
||||
background: url("/i/sharpen/3.webp?x=6");
|
||||
}
|
||||
.sharpen-4:after {
|
||||
background: url("/i/sharpen/4.webp?x=6");
|
||||
}
|
||||
.sharpen-5:after {
|
||||
background: url("/i/sharpen/5.webp?x=6");
|
||||
}
|
||||
.sharpen-6:after {
|
||||
background: url("/i/sharpen/6.webp?x=6");
|
||||
}
|
||||
.sharpen-7:after {
|
||||
background: url("/i/sharpen/7.webp?x=6");
|
||||
}
|
||||
.sharpen-8:after {
|
||||
background: url("/i/sharpen/8.webp?x=6");
|
||||
}
|
||||
.sharpen-9:after {
|
||||
background: url("/i/sharpen/9.webp?x=6");
|
||||
}
|
||||
|
||||
.rainbow-text:not(a) > p {
|
||||
color: transparent !important;
|
||||
}
|
||||
|
|
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 184 KiB |
After Width: | Height: | Size: 168 KiB |
After Width: | Height: | Size: 102 KiB |
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 90 KiB |
|
@ -93,11 +93,11 @@ based_regex = re.compile('(?<=^|(?<=\s))(based)(?=$|\n|\s|[.?!,])', flags=re.I|r
|
|||
#match "Xpilled". To be turned into "X vibes". Note that "X" is in group 2, "ed" in group 3
|
||||
x_pilled_regex = re.compile('(?<=^|(?<=\s))(([a-zA-Z]+)pill(ed)?)(?=$|\n|\s|[.?!,])', flags=re.I|re.A)
|
||||
#match "Xmaxxx". To be turned into "normalize good Xs". Note that "X" is in group 2, "s" (after X) in group 3
|
||||
xmax_regex = re.compile('(?<=^|(?<=\s))(([a-zA-Z]+?)(s)?max*)(?=$|\n|\s|[.?!,])', flags=re.I|re.A)
|
||||
xmax_regex = re.compile('(?<=^|(?<=\s))(([a-zA-Z]+?)(s)?max+)(?=$|\n|\s|[.?!,])', flags=re.I|re.A)
|
||||
#same as above, except "Xmaxxed" this time (b/c I have crippling OCD and "normalized" isn't "normalize" + "ed") :marseyrage:
|
||||
xmaxed_regex = re.compile('(?<=^|(?<=\s))(([a-zA-Z]+?)(s)?max*ed)(?=$|\n|\s|[.?!,])', flags=re.I|re.A)
|
||||
xmaxed_regex = re.compile('(?<=^|(?<=\s))(([a-zA-Z]+?)(s)?max+ed)(?=$|\n|\s|[.?!,])', flags=re.I|re.A)
|
||||
#same as above, except "Xmaxxing" this time
|
||||
xmaxing_regex = re.compile('(?<=^|(?<=\s))(([a-zA-Z]+?)(s)?max*ing)(?=$|\n|\s|[.?!,])', flags=re.I|re.A)
|
||||
xmaxing_regex = re.compile('(?<=^|(?<=\s))(([a-zA-Z]+?)(s)?max+ing)(?=$|\n|\s|[.?!,])', flags=re.I|re.A)
|
||||
initial_part_regex = re.compile('(?<=^)(>+)', flags=re.I|re.A)
|
||||
|
||||
#matches "the" or is, but only if it is not followed by "fucking". https://regex101.com/r/yxuYsQ/2
|
||||
|
|
|
@ -246,7 +246,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% set realbody = c.realbody(v) %}
|
||||
<div id="comment-text-{{c.id}}" class="comment-text mb-0 {% if c.chudded %}text-uppercase chud-img chud-{{c.id_last_num}}{% endif %} {% if c.author.rainbow %}rainbow-text{% endif %} {%if c.author.queen%}queen{%endif%} {%if c.author.sharpen%}sharpen{%endif%}">
|
||||
<div id="comment-text-{{c.id}}" class="comment-text mb-0 {% if c.chudded %}text-uppercase chud-img chud-{{c.id_last_num}}{% endif %} {% if c.author.rainbow %}rainbow-text{% endif %} {%if c.author.queen%}queen{%endif%} {%if c.author.sharpen%}sharpen chud-img sharpen-{{c.id_last_num}}{%endif%}">
|
||||
{{realbody | safe}}
|
||||
</div>
|
||||
{% if c.parent_post or c.wall_user_id %}
|
||||
|
|
|
@ -117,7 +117,7 @@
|
|||
{% endif %}
|
||||
|
||||
|
||||
<div id="post-text" class="{% if p.chudded %}text-uppercase chud-img chud-{{p.id_last_num}}{% endif %} {% if p.author.rainbow %}rainbow-text{% endif %} {%if p.author.queen%}queen{%endif%} {%if p.author.sharpen%}sharpen{%endif%}">
|
||||
<div id="post-text" class="{% if p.chudded %}text-uppercase chud-img chud-{{p.id_last_num}}{% endif %} {% if p.author.rainbow %}rainbow-text{% endif %} {%if p.author.queen%}queen{%endif%} {%if p.author.sharpen%}sharpen chud-img sharpen-{{p.id_last_num}}{%endif%}">
|
||||
{% if p.is_image %}
|
||||
<div class="row no-gutters mb-4">
|
||||
<div class="col">
|
||||
|
|