From 7b469947e125d050c3aa73c842167209d88b4fe9 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 24 Mar 2022 04:55:19 +0200 Subject: [PATCH 1/7] vb --- files/routes/chat.py | 8 ++++++++ files/templates/chat.html | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/files/routes/chat.py b/files/routes/chat.py index ef47e5c91a..b74f320c1e 100644 --- a/files/routes/chat.py +++ b/files/routes/chat.py @@ -23,6 +23,14 @@ if "load_chat" in sys.argv or SITE == 'localhost': def chat( v): return render_template("chat.html", v=v, messages=messages) + + @app.get('/static/chat.js') + @limiter.exempt + def chatjs(path): + resp = make_response(send_from_directory('assets', 'js/chat.js')) + return resp + + @socketio.on('speak') @limiter.limit("3/second;10/minute") @auth_required diff --git a/files/templates/chat.html b/files/templates/chat.html index b30c53d1ac..0de1cfab66 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -81,7 +81,7 @@ - + + + + + {% if v.css %} + + {% endif %} -
- - - 0 - -
+ + + + + + + {% include "header.html" %} + +
+
+
+ +
+ + + 0 +
-
-
-
-
-
-
- {% for m in messages %} - {% set text_html = m['text_html'] %} - {% set link = '' %} - -
-
-
- - + + - - - +
+
+ - - - + + + \ No newline at end of file diff --git a/files/templates/comments.html b/files/templates/comments.html index ed71cfd01f..e7f3218bb3 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -843,7 +843,7 @@ {% if v %} - + {% endif %} @@ -854,7 +854,7 @@ {% include "expanded_image_modal.html" %} - + + {% if v and not err %}
{{v.formkey}}
diff --git a/files/templates/submission.html b/files/templates/submission.html index 72436c3578..2e03986c89 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -999,8 +999,9 @@ xhr.setRequestHeader('xhr', 'xhr'); xhr.onload=function(){ if (xhr.status==200) { - document.getElementById(`viewmore-${offset}`).innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, ''); - bs_trigger() + let e = document.getElementById(`viewmore-${offset}`); + e.innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, ''); + bs_trigger(e) comments = JSON.parse(localStorage.getItem("old-comment-counts")) || {} lastCount = comments['{{p.id}}'] diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 0c6f2f8c30..106512a611 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -445,5 +445,5 @@ {% include "expanded_image_modal.html" %} - + \ No newline at end of file diff --git a/snappy_Drama.txt b/snappy_Drama.txt index aae420d707..3b4e810b5e 100644 --- a/snappy_Drama.txt +++ b/snappy_Drama.txt @@ -3631,20 +3631,22 @@ I cannot think or comprehend of anything more cucked than having a daughter. Hon {[para]} watch this go nowhere in 2 weeks {[para]} -I would appreciate you removing my post from the site asap,and I won't sign up to your site just to have a 'word' I hate the fact I have to explain -myself inregards to my weight. But if it helps you take down my post. Here you go - I hate myself. Ive struggled with depression my entire life I was -bullied at school for being taller than most girls and not being stick thin (yet according to the bmi calculator I was healthy at 16-17) but to everyone I -was fat, and white and gross. I turned to self harm and eating as coping mechanisms. Even now at a bmi of 40 (yes I'm actively losing weight) I'm still -not the biggest person in the room. I'm guessing your admin thinks I have fat rolls dripping down me, breathing heavy and unable to leave my bed. -Sadly for him thats not the case. I do alot for my kids, I have to be active but I use to eat a crazy amount of sugary shit to just get through the day -because of my depression. Im ashamed of how I look, I can't stand to see myself in the mirror, let alone get on the scales every day. I almost lost my -veteran husband 3 years ago to a disease, I care for him 24/7. What I sub to in reddit are my outlets for my depression, for my loneliness. I have four -kids and my husband but I dont have friends no one to vent to about the hard shit. I design clothes for my "creepy" dolls as an outlet a way to stay -creative I use to make dresses and outfits for my daughters dolls when she was younger and I just continued it. I even use to draw furry art (hi gay -furry femboy) but I gave that up years ago. I honestly thought twox chromosome was a safe place for me to say stuff that made me happy, -everything I write is true however sad you think it is. I dont want to be made fun of its hard enough looking at myself everyday without a chorus of -people telling me exactly what my own thoughts are. Ive attempted suicide numerous times and its my kids that pull me through it. So please take it -down. I dont deserve to be shamed, im just a sad pathetic woman who cares about her kids and if she could end it without hurting anyone she +I would appreciate you removing my post from the site asap,and I won't sign up to your site just to have a 'word' I hate the fact I have to explain +myself inregards to my weight. But if it helps you take down my post. Here you go - I hate myself. Ive struggled with depression my entire life I was +bullied at school for being taller than most girls and not being stick thin (yet according to the bmi calculator I was healthy at 16-17) but to everyone I +was fat, and white and gross. I turned to self harm and eating as coping mechanisms. Even now at a bmi of 40 (yes I'm actively losing weight) I'm still +not the biggest person in the room. I'm guessing your admin thinks I have fat rolls dripping down me, breathing heavy and unable to leave my bed. +Sadly for him thats not the case. I do alot for my kids, I have to be active but I use to eat a crazy amount of sugary shit to just get through the day +because of my depression. Im ashamed of how I look, I can't stand to see myself in the mirror, let alone get on the scales every day. I almost lost my +veteran husband 3 years ago to a disease, I care for him 24/7. What I sub to in reddit are my outlets for my depression, for my loneliness. I have four +kids and my husband but I dont have friends no one to vent to about the hard shit. I design clothes for my "creepy" dolls as an outlet a way to stay +creative I use to make dresses and outfits for my daughters dolls when she was younger and I just continued it. I even use to draw furry art (hi gay +furry femboy) but I gave that up years ago. I honestly thought twox chromosome was a safe place for me to say stuff that made me happy, +everything I write is true however sad you think it is. I dont want to be made fun of its hard enough looking at myself everyday without a chorus of +people telling me exactly what my own thoughts are. Ive attempted suicide numerous times and its my kids that pull me through it. So please take it +down. I dont deserve to be shamed, im just a sad pathetic woman who cares about her kids and if she could end it without hurting anyone she would. {[para]} -My husband use to snore like a chainsaw then he got nose surgery and it was like white noise and then a cpap so nice and quiet. He farts so much and I HATE IT. He is so freaking proud of them, throws his leg in the air and pretends to kick start a bike while farting. Then he tries to crop dust me. Ive asked him to stop but Nada. Im am disgusted by it. We've both put on a lot of weight in the last few years and that doesn't repulse me but his hygiene and man funk do. \ No newline at end of file +My husband use to snore like a chainsaw then he got nose surgery and it was like white noise and then a cpap so nice and quiet. He farts so much and I HATE IT. He is so freaking proud of them, throws his leg in the air and pretends to kick start a bike while farting. Then he tries to crop dust me. Ive asked him to stop but Nada. Im am disgusted by it. We've both put on a lot of weight in the last few years and that doesn't repulse me but his hygiene and man funk do. +{[para]} +The only thing that is advanced from this thread is my stage 4 cancer from reading it. \ No newline at end of file