From 4300c3297fbdbbf9b0c9ea31b2d41d9887a8ba7f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 12 Dec 2021 18:31:21 +0200 Subject: [PATCH 1/3] bruh --- files/assets/css/lite-youtube.css | 9 +++------ files/assets/css/main.css | 2 +- files/helpers/const.py | 21 --------------------- files/routes/posts.py | 2 +- files/templates/authforms.html | 4 ++-- files/templates/default.html | 6 +++--- files/templates/log.html | 4 ++-- files/templates/login.html | 2 +- files/templates/login_2fa.html | 2 +- files/templates/settings.html | 2 +- files/templates/settings2.html | 4 ++-- files/templates/sign_up.html | 2 +- files/templates/sign_up_failed_ref.html | 2 +- files/templates/submit.html | 4 ++-- 14 files changed, 21 insertions(+), 45 deletions(-) diff --git a/files/assets/css/lite-youtube.css b/files/assets/css/lite-youtube.css index 73f41b508..5aa65a3f3 100644 --- a/files/assets/css/lite-youtube.css +++ b/files/assets/css/lite-youtube.css @@ -38,10 +38,9 @@ lite-youtube > iframe { border: 0; } -/* play button */ lite-youtube > .lty-playbtn { - width: 68px; - height: 48px; + width: 100px; + height: 100px; position: absolute; cursor: pointer; transform: translate3d(-50%, -50%, 0); @@ -49,9 +48,7 @@ lite-youtube > .lty-playbtn { left: 50%; z-index: 1; background-color: transparent; - /* YT's actual play button svg */ - background-image: url('data:image/svg+xml;utf8,'); - filter: grayscale(100%); + background-image: url('/assets/images/youtube.webp'); transition: filter .1s cubic-bezier(0, 0, 0.2, 1); border: none; } diff --git a/files/assets/css/main.css b/files/assets/css/main.css index 2e56ad6c9..3833c4391 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -5567,7 +5567,7 @@ blockquote p { @media (min-width: 576px) { .modal-dialog { - max-width: 90% !important; + max-width: 50% !important; margin: 1.75rem auto !important; } } diff --git a/files/helpers/const.py b/files/helpers/const.py index 639b2d6c8..387ab44bd 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -5,18 +5,6 @@ SITE = environ.get("DOMAIN", '').strip() SITE_NAME = environ.get("SITE_NAME", '').strip() AJ_REPLACEMENTS = { - ':': '', - "'": '', - '-': '', - '.': '', - '!': '', - '"': '', - ';': '', - - 'their': '$#3$1', - 'there': 'their', - '$#3$1': 'there', - "you're": '$#3$2', 'your': "you're", '$#3$2': 'your', @@ -24,15 +12,6 @@ AJ_REPLACEMENTS = { "too": '$#3$3', 'to': "too", '$#3$3': 'to', - - '$#3$3': 'to', - '$#3$3': 'to', - '$#3$3': 'to', - - 'she': 'they', - 'her': 'they', - 'he': 'they', - 'him': 'they', } SLURS = { diff --git a/files/routes/posts.py b/files/routes/posts.py index b3ff39d04..cafa7ae3e 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -187,7 +187,7 @@ def post_id(pid, anything=None, v=None): offset = 0 - if post.comment_count > 60: + if not request.headers.get("Authorization") and post.comment_count > 60: comments2 = [] count = 0 if post.created_utc > 1638672040: diff --git a/files/templates/authforms.html b/files/templates/authforms.html index 804ebf0ee..197641037 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -14,11 +14,11 @@ {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} diff --git a/files/templates/default.html b/files/templates/default.html index e1048b42d..4253a5fba 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -6,12 +6,12 @@ {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} @@ -293,7 +293,7 @@ {% endif %} - + diff --git a/files/templates/log.html b/files/templates/log.html index 63ebda978..35d81cee6 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -6,11 +6,11 @@ {% block content %} {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %}
diff --git a/files/templates/login.html b/files/templates/login.html index 9c4da6d6b..61921fbab 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -17,7 +17,7 @@ {% endblock %} - + diff --git a/files/templates/login_2fa.html b/files/templates/login_2fa.html index cd9fb3e6c..ef032638a 100644 --- a/files/templates/login_2fa.html +++ b/files/templates/login_2fa.html @@ -13,7 +13,7 @@ 2-Step Login - {{'SITE_NAME' | app_config}} - + diff --git a/files/templates/settings.html b/files/templates/settings.html index 769540e99..652b513cb 100644 --- a/files/templates/settings.html +++ b/files/templates/settings.html @@ -33,7 +33,7 @@ - + {% if v.agendaposter %}{% elif v.css %}{% endif %} diff --git a/files/templates/settings2.html b/files/templates/settings2.html index 73ef514c0..e96b837cc 100644 --- a/files/templates/settings2.html +++ b/files/templates/settings2.html @@ -38,10 +38,10 @@ {% if v %} - + {% else %} - + {% endif %} diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index c4687f4fc..149eadd80 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -30,7 +30,7 @@ {% if ref_user %}{{ref_user.username}} invites you to {{'SITE_NAME' | app_config}}{% else %}Sign up - {{'SITE_NAME' | app_config}}{% endif %} - + diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html index 1fea4148f..9b6c9a265 100644 --- a/files/templates/sign_up_failed_ref.html +++ b/files/templates/sign_up_failed_ref.html @@ -31,7 +31,7 @@ {% if ref_user %}{{ref_user.username}} invites you to {{'SITE_NAME' | app_config}}{% else %}{{'SITE_NAME' | app_config}}{% endif %} - + diff --git a/files/templates/submit.html b/files/templates/submit.html index eb4b8ea14..63f034a5f 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -25,11 +25,11 @@ {% block stylesheets %} {% if v %} - + {% if v.agendaposter %}{% elif v.css %}{% endif %} {% else %} - + {% endif %} {% endblock %} From 86cba7a01f5cffc24f793e50b22d017e186c9531 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 12 Dec 2021 18:39:17 +0200 Subject: [PATCH 2/3] fdsdfs --- .gitignore | 4 ++-- files/assets/images/youtube.webp | Bin 0 -> 2396 bytes 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 files/assets/images/youtube.webp diff --git a/.gitignore b/.gitignore index 81e29bfd5..6244fcd0c 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,8 @@ chart.png video.mp4 video.webm cache/ -images/ -songs/ +/images/ +/songs/ __pycache__/ disablesignups *rules.html diff --git a/files/assets/images/youtube.webp b/files/assets/images/youtube.webp new file mode 100644 index 0000000000000000000000000000000000000000..1094ad0d5a2f0f95f27a17f7f03dbd0240783d77 GIT binary patch literal 2396 zcmV-i38VH>Nk&Fg2><|BMM6+kP&il$0000G0001E003hE06|PpNTmb-00E#zYnvfS zddrwu+qP}nwr$(CZQHhO?|7zdn;8-3R7QLe8S$O@9T5;D$&K60k_8d~8HkR2{s6NZ zWhO4P%xddwu)#X3FT3y@S%wsr+~%Y^-}qrlU3*t=Z+CnB)SuqG`;_gLE;3@l?XLQ; zYEU_7sOFRFc3PMPbMJJ|zk@1)h9^C^`+T8U{`?<@RAP<%dg;okfUI$QmGY#zd)Ey$ zSn;+7Ws#IZ2qmJp04bG4E%&Y#f_cxGVb2w^A{DQdQY*v~s<~uA-=wzvLQ)0GUnRpKO@D+8F!y z+73kAR!G8W!%8En^ssI0!n8YkcN!&Dda!0Z#C?Z3v(_}dz%V2Gom{)I>$C4iwrJ?! zw+p*H{a#D$#-rVtbzz6DM1M8Nvq1me4$S{Gi*9)YeqGegg?d5ZJ6-&BR#vI9Br(Zp zT-UbdZqmod^@L@~I?a@ildE$x+TKGxuds4Gm7!R5jZ z@Fe2i+;fDRrLH16)Z}5)ax^a($%{@g?@5lPW?7wGN2sS3e#y~6Iyaefp3?_3%3pAt zQxC{5bHyxIZ?5J!ZCfK|7c;_i8XXXGwh>{7{@&=yn1@Wb23|-5`46;A#(Yx-=Kh0c zCUq@S76O*2GU2+gX$4^A7GovL7Sp{huwIXz$(O+`flc~j#wA}yb^x{kGL?y4H)C<9j`kD}U+VY~P~?xJI5# zY3w)7^v;x8-qFxlx=M%VylGYA_mt=LDbM-adFVPM(id~I@+256I!QMiZPl_cb&GMy z{H%H~MX+9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8xhFKv|o11&@LuqIdl#i`-tL1oc08dY|oIMs>w}a(xfz>t< zY&=S0&iR?OP&^>me#!cUVdZow7g_B=C;H>x!##n&0F!p@mLrDIL~(;kAq`mr9)MqY znSCP4<9!+q{ALnu=xN%$5uKf{xASoQ-0WY$F^uyP5C8sd0lShwb>hHmhguh%swDE% zsa90k4j>@)h5FvQnFFwP-#gnKDCgS;4uBY=vNy(Qm3b0x41#J|nm*Te1r~Fc5KAj2 z+ZCT!zj{zV5DWCzT Ow$K0nHvj+t0002M_rC7{ literal 0 HcmV?d00001 From 3991800c255d49902d57532c9d9dd318816e9682 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 12 Dec 2021 18:39:53 +0200 Subject: [PATCH 3/3] sfdfds --- files/assets/css/lite-youtube.css | 2 +- files/templates/default.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/css/lite-youtube.css b/files/assets/css/lite-youtube.css index 5aa65a3f3..ab3efc3ac 100644 --- a/files/assets/css/lite-youtube.css +++ b/files/assets/css/lite-youtube.css @@ -48,7 +48,7 @@ lite-youtube > .lty-playbtn { left: 50%; z-index: 1; background-color: transparent; - background-image: url('/assets/images/youtube.webp'); + background-image: url('/assets/images/youtube.webp?v=1'); transition: filter .1s cubic-bezier(0, 0, 0.2, 1); border: none; } diff --git a/files/templates/default.html b/files/templates/default.html index 4253a5fba..5ecb1cc32 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -293,7 +293,7 @@ {% endif %} - +