diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 9283cffaf..964bae5eb 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -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; } diff --git a/files/assets/images/sharpen/0.webp b/files/assets/images/sharpen/0.webp new file mode 100644 index 000000000..2bed7bc88 Binary files /dev/null and b/files/assets/images/sharpen/0.webp differ diff --git a/files/assets/images/sharpen/1.webp b/files/assets/images/sharpen/1.webp new file mode 100644 index 000000000..18895a4ea Binary files /dev/null and b/files/assets/images/sharpen/1.webp differ diff --git a/files/assets/images/sharpen/2.webp b/files/assets/images/sharpen/2.webp new file mode 100644 index 000000000..4972d2ada Binary files /dev/null and b/files/assets/images/sharpen/2.webp differ diff --git a/files/assets/images/sharpen/3.webp b/files/assets/images/sharpen/3.webp new file mode 100644 index 000000000..0b742007a Binary files /dev/null and b/files/assets/images/sharpen/3.webp differ diff --git a/files/assets/images/sharpen/4.webp b/files/assets/images/sharpen/4.webp new file mode 100644 index 000000000..fd9c561ac Binary files /dev/null and b/files/assets/images/sharpen/4.webp differ diff --git a/files/assets/images/sharpen/5.webp b/files/assets/images/sharpen/5.webp new file mode 100644 index 000000000..c7e3e6416 Binary files /dev/null and b/files/assets/images/sharpen/5.webp differ diff --git a/files/assets/images/sharpen/6.webp b/files/assets/images/sharpen/6.webp new file mode 100644 index 000000000..407d39fcf Binary files /dev/null and b/files/assets/images/sharpen/6.webp differ diff --git a/files/assets/images/sharpen/7.webp b/files/assets/images/sharpen/7.webp new file mode 100644 index 000000000..6ea5f021b Binary files /dev/null and b/files/assets/images/sharpen/7.webp differ diff --git a/files/assets/images/sharpen/8.webp b/files/assets/images/sharpen/8.webp new file mode 100644 index 000000000..e5b6c83ce Binary files /dev/null and b/files/assets/images/sharpen/8.webp differ diff --git a/files/assets/images/sharpen/9.webp b/files/assets/images/sharpen/9.webp new file mode 100644 index 000000000..f5539562e Binary files /dev/null and b/files/assets/images/sharpen/9.webp differ diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 57c56e2b3..db522b57a 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -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 diff --git a/files/templates/comments.html b/files/templates/comments.html index dfbb6c058..753b06fd6 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -246,7 +246,7 @@ {% endif %} {% set realbody = c.realbody(v) %} -
+
{{realbody | safe}}
{% if c.parent_post or c.wall_user_id %} diff --git a/files/templates/post.html b/files/templates/post.html index 8ea6e3213..cd805245e 100644 --- a/files/templates/post.html +++ b/files/templates/post.html @@ -117,7 +117,7 @@ {% endif %} -
+
{% if p.is_image %}