From a49325ba1429500b89eec6c9ce8cdc9806a0649f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 3 Jul 2022 09:42:33 +0200 Subject: [PATCH] defer all scripts (this won't change anything for us since we use rocketloader, but it will fix javascript on localhost) --- files/templates/admins.html | 2 +- files/templates/award_modal.html | 2 +- files/templates/badges.html | 2 +- files/templates/ban_modal.html | 2 +- files/templates/chat.html | 8 ++++---- files/templates/comments.html | 12 ++++++------ files/templates/default.html | 8 ++++---- files/templates/delete_post_modal.html | 2 +- files/templates/emoji_modal.html | 2 +- files/templates/followers.html | 2 +- files/templates/following.html | 2 +- files/templates/gif_modal.html | 2 +- files/templates/home.html | 2 +- files/templates/log.html | 2 +- files/templates/login.html | 2 +- files/templates/lottery.html | 2 +- files/templates/mobile_navigation_bar.html | 2 +- files/templates/poll_votes.html | 2 +- files/templates/report_post_modal.html | 2 +- files/templates/settings.html | 4 ++-- files/templates/settings2.html | 2 +- files/templates/settings_blocks.html | 2 +- files/templates/settings_profile.html | 2 +- files/templates/settings_security.html | 2 +- files/templates/sign_up.html | 6 +++--- files/templates/sign_up_failed_ref.html | 2 +- files/templates/sub/subs.html | 2 +- files/templates/submission.html | 22 +++++++++++----------- files/templates/submission_listing.html | 8 ++++---- files/templates/submit.html | 8 ++++---- files/templates/userpage.html | 6 +++--- files/templates/userpage_comments.html | 4 ++-- files/templates/userpage_private.html | 4 ++-- files/templates/votes.html | 2 +- 34 files changed, 68 insertions(+), 68 deletions(-) diff --git a/files/templates/admins.html b/files/templates/admins.html index 895b216e2..975748f07 100644 --- a/files/templates/admins.html +++ b/files/templates/admins.html @@ -4,7 +4,7 @@ {% block content %} - +

 
Admins
diff --git a/files/templates/award_modal.html b/files/templates/award_modal.html index 364506589..c7cd02367 100644 --- a/files/templates/award_modal.html +++ b/files/templates/award_modal.html @@ -49,4 +49,4 @@ - + diff --git a/files/templates/badges.html b/files/templates/badges.html index d61f65b66..2d85fa40d 100644 --- a/files/templates/badges.html +++ b/files/templates/badges.html @@ -1,6 +1,6 @@ {% extends "default.html" %} {% block content %} - +
 
 
diff --git a/files/templates/ban_modal.html b/files/templates/ban_modal.html
index c619fecfa..d7b962d31 100644
--- a/files/templates/ban_modal.html
+++ b/files/templates/ban_modal.html
@@ -1,5 +1,5 @@
 
-
+
 
 
 
-
+
 
 {% if v %}
-	
+	
 {% endif %}
 
-
+
 
 
 
diff --git a/files/templates/delete_post_modal.html b/files/templates/delete_post_modal.html
index 05381601c..f18fa5768 100644
--- a/files/templates/delete_post_modal.html
+++ b/files/templates/delete_post_modal.html
@@ -1,4 +1,4 @@
-
+
 
 
 
-
+
diff --git a/files/templates/followers.html b/files/templates/followers.html
index b167c0b33..da1ebe07d 100644
--- a/files/templates/followers.html
+++ b/files/templates/followers.html
@@ -1,6 +1,6 @@
 {% extends "default.html" %}
 {% block content %}
-
+
 
 
 	
diff --git a/files/templates/following.html b/files/templates/following.html
index 55630df99..006cc9916 100644
--- a/files/templates/following.html
+++ b/files/templates/following.html
@@ -1,6 +1,6 @@
 {% extends "default.html" %}
 {% block content %}
-
+
 
 
 	
diff --git a/files/templates/gif_modal.html b/files/templates/gif_modal.html
index 821ba4000..a6b605533 100644
--- a/files/templates/gif_modal.html
+++ b/files/templates/gif_modal.html
@@ -26,4 +26,4 @@
 	
 
 
-
+
diff --git a/files/templates/home.html b/files/templates/home.html
index a35c7e8ee..0143a9ab7 100644
--- a/files/templates/home.html
+++ b/files/templates/home.html
@@ -206,7 +206,7 @@
 {% if PUSHER_ID != 'blahblahblah' and v %}
 	
{{request.host}}{{v.id}}
{{PUSHER_ID}}
- + + {% endblock %} \ No newline at end of file diff --git a/files/templates/login.html b/files/templates/login.html index 68487ab70..37aaf80e0 100644 --- a/files/templates/login.html +++ b/files/templates/login.html @@ -9,7 +9,7 @@ - + diff --git a/files/templates/lottery.html b/files/templates/lottery.html index 689e78c6d..d5829b4c3 100644 --- a/files/templates/lottery.html +++ b/files/templates/lottery.html @@ -188,6 +188,6 @@ - + {% endblock %} diff --git a/files/templates/mobile_navigation_bar.html b/files/templates/mobile_navigation_bar.html index 23185f302..774336763 100644 --- a/files/templates/mobile_navigation_bar.html +++ b/files/templates/mobile_navigation_bar.html @@ -76,4 +76,4 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/files/templates/poll_votes.html b/files/templates/poll_votes.html index 2da9149eb..7d88bfd8a 100644 --- a/files/templates/poll_votes.html +++ b/files/templates/poll_votes.html @@ -9,7 +9,7 @@ {% if thing %} - +
 	
diff --git a/files/templates/report_post_modal.html b/files/templates/report_post_modal.html
index 93ce449cf..12b90888c 100644
--- a/files/templates/report_post_modal.html
+++ b/files/templates/report_post_modal.html
@@ -32,4 +32,4 @@
 	
 
 
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/files/templates/settings.html b/files/templates/settings.html
index 9599fb1be..dc3c2a058 100644
--- a/files/templates/settings.html
+++ b/files/templates/settings.html
@@ -6,7 +6,7 @@
 	
 	
 
-	
+	
 
 	
 	
@@ -262,7 +262,7 @@
 
 {% block onload %}{% endblock %}
 
-
+
 
 
 
diff --git a/files/templates/settings2.html b/files/templates/settings2.html
index ca9cad2c5..5f94575df 100644
--- a/files/templates/settings2.html
+++ b/files/templates/settings2.html
@@ -7,7 +7,7 @@
 	
 	
 
-	
+	
 
 	
 	
diff --git a/files/templates/settings_blocks.html b/files/templates/settings_blocks.html
index 2b74e48f3..21cfb311f 100644
--- a/files/templates/settings_blocks.html
+++ b/files/templates/settings_blocks.html
@@ -4,7 +4,7 @@
 
 {% block content %}
 
-
+
 
 
diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index ba4f92e0c..0b9e9d5b2 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -738,7 +738,7 @@
- + {% include "emoji_modal.html" %} {% include "gif_modal.html" %} diff --git a/files/templates/settings_security.html b/files/templates/settings_security.html index 73eaf727d..d80c26ea7 100644 --- a/files/templates/settings_security.html +++ b/files/templates/settings_security.html @@ -4,7 +4,7 @@ {% block content %} - +
diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html index 025882988..e34944543 100644 --- a/files/templates/sign_up.html +++ b/files/templates/sign_up.html @@ -8,7 +8,7 @@ - + @@ -151,10 +151,10 @@
- + {% if hcaptcha %} - + {% endif %} diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html index 8f29e2026..871954314 100644 --- a/files/templates/sign_up_failed_ref.html +++ b/files/templates/sign_up_failed_ref.html @@ -9,7 +9,7 @@ - + diff --git a/files/templates/sub/subs.html b/files/templates/sub/subs.html index ae08eeb2a..d2f322a41 100644 --- a/files/templates/sub/subs.html +++ b/files/templates/sub/subs.html @@ -1,6 +1,6 @@ {% extends "default.html" %} {% block content %} - +
 
diff --git a/files/templates/submission.html b/files/templates/submission.html
index da48eb681..7a1bb6e02 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -70,7 +70,7 @@
 {% endif %}
 
 {% if p.award_count("firework", v) %}
-	
+	
 	
@@ -95,7 +95,7 @@ {% endif %} {% if p.award_count("ricardo", v) %} - +
@@ -812,9 +812,9 @@ {% if p.domain == "twitter.com" %} {{p.embed_url | safe}} {% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %} - + {% else %} - + {% endif %} {% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith(' 1 and v.admin_level > 2) %} - + {% endif %} {% if not v or v.highlightcomments %} - + {% endif %} - + {% if not p.replies %} {% include "comments.html" %} {% endif %} {% if p.award_count("shit", v) %} - - + + {% endif %} {% if p.award_count("fireflies", v) %} - - + + {% endif %} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index c06515233..1f60b66ce 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -12,7 +12,7 @@ {% endif %} {% if not v or v.highlightcomments %} - + {% endif %}