This commit is contained in:
Aevann1 2022-01-16 07:53:32 +02:00
parent 7c38dd5294
commit c0f3d5cb68
47 changed files with 119 additions and 95 deletions

View file

@ -66,7 +66,8 @@ function vote(type, id, dir) {
} }
} }
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", "/vote/" + type.replace('-mobile','') + "/" + id + "/" + votedirection, true); xhr.open("POST", "/vote/" + type.replace('-mobile','') + "/" + id + "/" + votedirection, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());

View file

@ -7,7 +7,8 @@ function banModal(link, id, name) {
let fd = new FormData(document.getElementById("banModalForm")); let fd = new FormData(document.getElementById("banModalForm"));
fd.append("formkey", formkey()); fd.append("formkey", formkey());
let xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", `/ban_user/${id}?form`, true); xhr.open("POST", `/ban_user/${id}?form`, true);
xhr.withCredentials = true; xhr.withCredentials = true;

View file

@ -21,7 +21,8 @@ function morecomments(cid) {
btn.innerHTML = "Requesting..."; btn.innerHTML = "Requesting...";
var form = new FormData(); var form = new FormData();
form.append("formkey", formkey()); form.append("formkey", formkey());
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("post", `/morecomments/${cid}`); xhr.open("post", `/morecomments/${cid}`);
xhr.withCredentials=true; xhr.withCredentials=true;
xhr.onload=function(){ xhr.onload=function(){

View file

@ -1,5 +1,6 @@
function post(url) { function post(url) {
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", url, true); xhr.open("POST", url, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());
@ -10,7 +11,8 @@ function post(url) {
function post_toast3(url, button1, button2) { function post_toast3(url, button1, button2) {
document.getElementById('toast-post-error-text').innerText = "Error, please try again later." document.getElementById('toast-post-error-text').innerText = "Error, please try again later."
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", url, true); xhr.open("POST", url, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());
@ -53,7 +55,8 @@ function report_commentModal(id, author) {
this.innerHTML='Reporting comment'; this.innerHTML='Reporting comment';
this.disabled = true; this.disabled = true;
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", '/report/comment/'+id, true); xhr.open("POST", '/report/comment/'+id, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());
@ -99,7 +102,8 @@ function delete_commentModal(id) {
this.disabled = true; this.disabled = true;
var url = '/delete/comment/' + id var url = '/delete/comment/' + id
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", url, true); xhr.open("POST", url, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());
@ -117,7 +121,8 @@ function post_reply(id){
form.append('formkey', formkey()); form.append('formkey', formkey());
form.append('parent_id', id); form.append('parent_id', id);
form.append('body', document.getElementById('reply-form-body-'+id).value); form.append('body', document.getElementById('reply-form-body-'+id).value);
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("post", "/reply"); xhr.open("post", "/reply");
xhr.withCredentials=true; xhr.withCredentials=true;
xhr.onload=function(){ xhr.onload=function(){
@ -146,7 +151,8 @@ function comment_edit(id){
form.append('body', document.getElementById('comment-edit-body-'+id).value); form.append('body', document.getElementById('comment-edit-body-'+id).value);
form.append('file', document.getElementById('file-edit-reply-'+id).files[0]); form.append('file', document.getElementById('file-edit-reply-'+id).files[0]);
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("post", "/edit_comment/"+id); xhr.open("post", "/edit_comment/"+id);
xhr.withCredentials=true; xhr.withCredentials=true;
xhr.onload=function(){ xhr.onload=function(){
@ -181,7 +187,8 @@ function post_comment(fullname){
form.append('body', document.getElementById('reply-form-body-'+fullname).value); form.append('body', document.getElementById('reply-form-body-'+fullname).value);
form.append('file', document.getElementById('file-upload-reply-'+fullname).files[0]); form.append('file', document.getElementById('file-upload-reply-'+fullname).files[0]);
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("post", "/comment"); xhr.open("post", "/comment");
xhr.withCredentials=true; xhr.withCredentials=true;
xhr.onload=function(){ xhr.onload=function(){

View file

@ -6,7 +6,8 @@ function delete_postModal(id) {
this.disabled = true; this.disabled = true;
var url = '/delete_post/' + id var url = '/delete_post/' + id
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", url, true); xhr.open("POST", url, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());

View file

@ -14,7 +14,8 @@ document.addEventListener("DOMContentLoaded", function(){
function post_toast(url, reload, data) { function post_toast(url, reload, data) {
document.getElementById('toast-post-error-text').innerText = "Error, please try again later." document.getElementById('toast-post-error-text').innerText = "Error, please try again later."
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", url, true); xhr.open("POST", url, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());

View file

@ -1,7 +1,8 @@
function post_toast2(url, button1, button2) { function post_toast2(url, button1, button2) {
document.getElementById('toast-post-error-text').innerText = "Error, please try again later." document.getElementById('toast-post-error-text').innerText = "Error, please try again later."
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", url, true); xhr.open("POST", url, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());

View file

@ -7,7 +7,8 @@ function report_postModal(id) {
this.innerHTML='Reporting post'; this.innerHTML='Reporting post';
this.disabled = true; this.disabled = true;
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", '/report/post/'+id, true); xhr.open("POST", '/report/post/'+id, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());

View file

@ -8,7 +8,8 @@ function block_user() {
if (isValidUsername) { if (isValidUsername) {
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("post", "/settings/block"); xhr.open("post", "/settings/block");
xhr.withCredentials=true; xhr.withCredentials=true;
f=new FormData(); f=new FormData();

View file

@ -1,5 +1,6 @@
function post(url) { function post(url) {
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", url, true); xhr.open("POST", url, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,6 @@
function post_toast_callback(url, data, callback) { function post_toast_callback(url, data, callback) {
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", url, true); xhr.open("POST", url, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());
@ -133,6 +134,7 @@ function submitFormAjax(e) {
const form = e.target; const form = e.target;
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
e.preventDefault(); e.preventDefault();

View file

@ -4,7 +4,8 @@ function viewmore(pid,sort,offset) {
btn.innerHTML = "Requesting..."; btn.innerHTML = "Requesting...";
var form = new FormData(); var form = new FormData();
form.append("formkey", formkey()); form.append("formkey", formkey());
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("post", `/viewmore/${pid}/${sort}/${offset}`); xhr.open("post", `/viewmore/${pid}/${sort}/${offset}`);
xhr.withCredentials=true; xhr.withCredentials=true;
xhr.onload=function(){ xhr.onload=function(){

View file

@ -40,6 +40,10 @@ def error_405(e):
else: return render_template('errors/405.html', err=True), 405 else: return render_template('errors/405.html', err=True), 405
@app.errorhandler(413)
def error_413(e):
return {"error": "Max file size is 4 MB (8 MB for paypigs)"}, 413
@app.errorhandler(429) @app.errorhandler(429)
def error_429(e): def error_429(e):
if request.headers.get("Authorization"): return {"error": "429 Too Many Requests"}, 429 if request.headers.get("Authorization"): return {"error": "429 Too Many Requests"}, 429

View file

@ -388,8 +388,8 @@ def morecomments(v, cid):
@auth_required @auth_required
def edit_post(pid, v): def edit_post(pid, v):
if v and v.patron: if v and v.patron:
if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."} if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."}, 413
elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."} elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."}, 413
p = get_post(pid) p = get_post(pid)
@ -687,8 +687,8 @@ def submit_post(v):
if v.is_suspended: return {"error": "You can't perform this action while banned."}, 403 if v.is_suspended: return {"error": "You can't perform this action while banned."}, 403
if v and v.patron: if v and v.patron:
if request.content_length > 8 * 1024 * 1024: return {"error": "Max file size is 8 MB."} if request.content_length > 8 * 1024 * 1024: return {"error": "Max file size is 8 MB."}, 413
elif request.content_length > 4 * 1024 * 1024: return {"error": "Max file size is 4 MB."} elif request.content_length > 4 * 1024 * 1024: return {"error": "Max file size is 4 MB."}, 413
title = request.values.get("title", "").strip()[:500].replace('','') title = request.values.get("title", "").strip()[:500].replace('','')

View file

@ -47,8 +47,8 @@ def removebackground(v):
@auth_required @auth_required
def settings_profile_post(v): def settings_profile_post(v):
if v and v.patron: if v and v.patron:
if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."} if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."}, 413
elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."} elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."}, 413
updated = False updated = False
@ -620,8 +620,8 @@ def settings_log_out_others(v):
@auth_required @auth_required
def settings_images_profile(v): def settings_images_profile(v):
if v and v.patron: if v and v.patron:
if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."} if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."}, 413
elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."} elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."}, 413
if request.headers.get("cf-ipcountry") == "T1": return {"error":"Image uploads are not allowed through TOR."}, 403 if request.headers.get("cf-ipcountry") == "T1": return {"error":"Image uploads are not allowed through TOR."}, 403
@ -655,8 +655,8 @@ def settings_images_profile(v):
@auth_required @auth_required
def settings_images_banner(v): def settings_images_banner(v):
if v and v.patron: if v and v.patron:
if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."} if request.content_length > 8 * 1024 * 1024: return {"error":"Max file size is 8 MB."}, 413
elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."} elif request.content_length > 4 * 1024 * 1024: return {"error":"Max file size is 4 MB."}, 413
if request.headers.get("cf-ipcountry") == "T1": return {"error":"Image uploads are not allowed through TOR."}, 403 if request.headers.get("cf-ipcountry") == "T1": return {"error":"Image uploads are not allowed through TOR."}, 403

View file

@ -4,7 +4,7 @@
{% block content %} {% block content %}
<script src="/static/assets/js/sort_table.js?a=5"></script> <script src="/static/assets/js/sort_table.js?a=200"></script>
<pre class="d-none d-md-inline-block"></pre> <pre class="d-none d-md-inline-block"></pre>
<h5 style="font-weight:bold;">Admins</h5> <h5 style="font-weight:bold;">Admins</h5>

View file

@ -1,4 +1,4 @@
<script src="/static/assets/js/award_modal.js?a=5"></script> <script src="/static/assets/js/award_modal.js?a=200"></script>
<div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true"> <div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered awardmodal" role="document"> <div class="modal-dialog modal-dialog-scrollable modal-dialog-centered awardmodal" role="document">
<div class="modal-content"> <div class="modal-content">

View file

@ -1,5 +1,5 @@
<script src="/static/assets/js/ban_modal.js?a=3"></script> <script src="/static/assets/js/ban_modal.js?a=200"></script>
<div class="modal fade" id="banModal" tabindex="-1" role="dialog" aria-labelledby="banModalTitle" aria-hidden="true"> <div class="modal fade" id="banModal" tabindex="-1" role="dialog" aria-labelledby="banModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">

View file

@ -104,6 +104,6 @@
</nav> </nav>
{% endif %} {% endif %}
<script src="/static/assets/js/post_toast2.js?a=10"></script> <script src="/static/assets/js/post_toast2.js?a=200"></script>
{% endblock %} {% endblock %}

View file

@ -847,20 +847,20 @@
</style> </style>
{% if v %} {% if v %}
<script src="/static/assets/js/marked.js?a=3"></script> <script src="/static/assets/js/marked.js?a=200"></script>
<script src="/static/assets/js/comments_v.js?a=15"></script> <script src="/static/assets/js/comments_v.js?a=200"></script>
{% endif %} {% endif %}
<script src="/static/assets/js/clipboard.js?a=3"></script> <script src="/static/assets/js/clipboard.js?a=200"></script>
{% if v and v.admin_level > 1 %} {% if v and v.admin_level > 1 %}
<script src="/static/assets/js/comments_admin.js?a=3"></script> <script src="/static/assets/js/comments_admin.js?a=200"></script>
{% endif %} {% endif %}
{% include "expanded_image_modal.html" %} {% include "expanded_image_modal.html" %}
<script src="/static/assets/js/comments+submission_listing.js?a=9"></script> <script src="/static/assets/js/comments+submission_listing.js?a=200"></script>
<script src="/static/assets/js/comments.js?a=4"></script> <script src="/static/assets/js/comments.js?a=200"></script>
<script> <script>
{% if p and (not v or v.highlightcomments) %} {% if p and (not v or v.highlightcomments) %}

View file

@ -4,7 +4,7 @@
<meta name="description" content="{{'DESCRIPTION' | app_config}}"> <meta name="description" content="{{'DESCRIPTION' | app_config}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' ajax.cloudflare.com; connect-src 'self' tls-use1.fpapi.io api.fpjs.io {{PUSHER_ID}}.pushnotifications.pusher.com; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' ajax.cloudflare.com; connect-src 'self' tls-use1.fpapi.io api.fpjs.io {{PUSHER_ID}}.pushnotifications.pusher.com; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=3"></script> <script src="/static/assets/js/bootstrap.js?a=200"></script>
{% if v %} {% if v %}
<style>:root{--primary:#{{v.themecolor}}}</style> <style>:root{--primary:#{{v.themecolor}}}</style>
<link rel="stylesheet" href="/static/assets/css/main.css?a=78"> <link rel="stylesheet" href="/static/assets/css/main.css?a=78">
@ -314,15 +314,15 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/lozad.js?a=3"></script> <script src="/static/assets/js/lozad.js?a=200"></script>
{% if v %} {% if v %}
<script src="/static/assets/js/post_toast2.js?a=10"></script> <script src="/static/assets/js/post_toast2.js?a=200"></script>
<script src="/static/assets/js/formatting.js?a=3"></script> <script src="/static/assets/js/formatting.js?a=200"></script>
<script src="/static/assets/js/default.js?a=4"></script> <script src="/static/assets/js/default.js?a=200"></script>
{% endif %} {% endif %}
<script src="/static/assets/js/lite-youtube.js?a=3"></script> <script src="/static/assets/js/lite-youtube.js?a=200"></script>
</body> </body>

View file

@ -1,4 +1,4 @@
<script src="/static/assets/js/delete_post_modal.js?a=3"></script> <script src="/static/assets/js/delete_post_modal.js?a=200"></script>
<div class="modal fade" id="deletePostModal" tabindex="-1" role="dialog" aria-labelledby="deletePostModalTitle" aria-hidden="true"> <div class="modal fade" id="deletePostModal" tabindex="-1" role="dialog" aria-labelledby="deletePostModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">

View file

@ -80,7 +80,7 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/emoji_modal.js?a=45"></script> <script src="/static/assets/js/emoji_modal.js?a=200"></script>
<style> <style>
a.emojitab { a.emojitab {

View file

@ -1,6 +1,6 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block content %} {% block content %}
<script src="/static/assets/js/followers.js?a=3"></script> <script src="/static/assets/js/followers.js?a=200"></script>
<pre> <pre>

View file

@ -1,6 +1,6 @@
{% extends "default.html" %} {% extends "default.html" %}
{% block content %} {% block content %}
<script src="/static/assets/js/following.js?a=3"></script> <script src="/static/assets/js/following.js?a=200"></script>
<pre> <pre>

View file

@ -26,4 +26,4 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/gif_modal.js?a=3"></script> <script src="/static/assets/js/gif_modal.js?a=200"></script>

View file

@ -207,7 +207,7 @@
</div> </div>
</nav> </nav>
<script src="/static/assets/js/header.js?a=10"></script> <script src="/static/assets/js/header.js?a=200"></script>
<style> <style>
.notif-count { .notif-count {

View file

@ -6,7 +6,8 @@
{% if not v.fp %} {% if not v.fp %}
<script> <script>
function fp(fp) { function fp(fp) {
var xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
xhr.setRequestHeader('Authorization', 'xhr');
xhr.open("POST", '{{request.host_url}}fp/'+fp, true); xhr.open("POST", '{{request.host_url}}fp/'+fp, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());
@ -19,7 +20,7 @@
script.onload = resolve; script.onload = resolve;
script.onerror = reject; script.onerror = reject;
script.async = true; script.async = true;
script.src = "/static/assets/js/fp.js?a=5"; script.src = "/static/assets/js/fp.js?a=200";
document.head.appendChild(script); document.head.appendChild(script);
}) })
.then(() => FingerprintJS.load({token: '{{environ.get("FP")}}'})); .then(() => FingerprintJS.load({token: '{{environ.get("FP")}}'}));
@ -167,7 +168,7 @@
{% if v %} {% if v %}
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div> <div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div> <div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
<script src="/static/assets/js/pusher.js?a=161"></script> <script src="/static/assets/js/pusher.js?a=200"></script>
<script> <script>
if (Android){ if (Android){
Android.Subscribe('{{request.host}}{{v.id}}'); Android.Subscribe('{{request.host}}{{v.id}}');

View file

@ -142,6 +142,6 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/clipboard.js?a=3"></script> <script src="/static/assets/js/clipboard.js?a=200"></script>
{% endblock %} {% endblock %}

View file

@ -6,7 +6,7 @@
<meta name="description" content="{{'DESCRIPTION' | app_config}}"> <meta name="description" content="{{'DESCRIPTION' | app_config}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=3"></script> <script src="/static/assets/js/bootstrap.js?a=200"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View file

@ -68,7 +68,7 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/mobile_navigation_bar.js?a=3"></script> <script src="/static/assets/js/mobile_navigation_bar.js?a=200"></script>
<style> <style>
.btn-dead:hover, .active.btn-dead:hover, .active.btn-dead { .btn-dead:hover, .active.btn-dead:hover, .active.btn-dead {

View file

@ -32,4 +32,4 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/report_post_modal.js?a=3"></script> <script src="/static/assets/js/report_post_modal.js?a=200"></script>

View file

@ -5,7 +5,7 @@
<meta name="description" content="{{'DESCRIPTION' | app_config}}"> <meta name="description" content="{{'DESCRIPTION' | app_config}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=3"></script> <script src="/static/assets/js/bootstrap.js?a=200"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@ -258,7 +258,7 @@
{% block onload %}{% endblock %} {% block onload %}{% endblock %}
<script src="/static/assets/js/clipboard.js?a=3"></script> <script src="/static/assets/js/clipboard.js?a=200"></script>
<style> <style>
.navsettings { .navsettings {

View file

@ -6,7 +6,7 @@
<meta name="description" content="{{'DESCRIPTION' | app_config}}"> <meta name="description" content="{{'DESCRIPTION' | app_config}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=3"></script> <script src="/static/assets/js/bootstrap.js?a=200"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View file

@ -4,7 +4,7 @@
{% block content %} {% block content %}
<script src="/static/assets/js/settings_blocks.js?a=3"></script> <script src="/static/assets/js/settings_blocks.js?a=200"></script>
<div class="row"> <div class="row">

View file

@ -677,7 +677,7 @@
</div> </div>
<script src="/static/assets/js/settings_profile.js?a=3"></script> <script src="/static/assets/js/settings_profile.js?a=200"></script>
{% include "emoji_modal.html" %} {% include "emoji_modal.html" %}
{% include "gif_modal.html" %} {% include "gif_modal.html" %}

View file

@ -4,7 +4,7 @@
{% block content %} {% block content %}
<script src="/static/assets/js/settings_security.js?a=3"></script> <script src="/static/assets/js/settings_security.js?a=200"></script>
<div class="row"> <div class="row">

View file

@ -5,7 +5,7 @@
<meta name="description" content="{{'DESCRIPTION' | app_config}}"> <meta name="description" content="{{'DESCRIPTION' | app_config}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=3"></script> <script src="/static/assets/js/bootstrap.js?a=200"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@ -154,10 +154,10 @@
</div> </div>
</div> </div>
<script src="/static/assets/js/signup.js?a=3"></script> <script src="/static/assets/js/signup.js?a=200"></script>
{% if hcaptcha %} {% if hcaptcha %}
<script src="/static/assets/js/hcaptcha.js?a=3"></script> <script src="/static/assets/js/hcaptcha.js?a=200"></script>
{% endif %} {% endif %}
</body> </body>

View file

@ -6,7 +6,7 @@
<meta name="description" content="{{'DESCRIPTION' | app_config}}"> <meta name="description" content="{{'DESCRIPTION' | app_config}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=3"></script> <script src="/static/assets/js/bootstrap.js?a=200"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

View file

@ -406,9 +406,9 @@
{% if p.domain == "twitter.com" %} {% if p.domain == "twitter.com" %}
{{p.embed_url | safe}} {{p.embed_url | safe}}
{% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %} {% if v and v.theme.split("_")[0] in ["light", "coffee", "4chan"] %}
<script src="/static/assets/js/twitterlight.js?a=3"></script> <script src="/static/assets/js/twitterlight.js?a=200"></script>
{% else %} {% else %}
<script src="/static/assets/js/twitter.js?a=3"></script> <script src="/static/assets/js/twitter.js?a=200"></script>
{% endif %} {% endif %}
{% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith('<lite-youtube') %} {% elif p.domain in ['youtu.be','youtube.com'] and p.embed_url and p.embed_url.startswith('<lite-youtube') %}
{{p.embed_url | safe}} {{p.embed_url | safe}}
@ -801,7 +801,7 @@
</div> </div>
{% if offset %} {% if offset %}
<script src="/static/assets/js/viewmore.js?a=3"></script> <script src="/static/assets/js/viewmore.js?a=200"></script>
{% endif %} {% endif %}
{% elif not p.replies and p.deleted_utc == 0 %} {% elif not p.replies and p.deleted_utc == 0 %}
@ -832,32 +832,32 @@
{% endif %} {% endif %}
{% if v and (v.id == p.author_id or v.admin_level > 1 and v.admin_level > 2) %} {% if v and (v.id == p.author_id or v.admin_level > 1 and v.admin_level > 2) %}
<script src="/static/assets/js/togglePostEdit.js?a=3"></script> <script src="/static/assets/js/togglePostEdit.js?a=200"></script>
{% endif %} {% endif %}
{% if v %} {% if v %}
<script src="/static/assets/js/submission.js?a=3"></script> <script src="/static/assets/js/submission.js?a=200"></script>
{% endif %} {% endif %}
{% if not v or v.highlightcomments %} {% if not v or v.highlightcomments %}
<script src="/static/assets/js/new_comments_count.js?a=3"></script> <script src="/static/assets/js/new_comments_count.js?a=200"></script>
{% endif %} {% endif %}
<script src="/static/assets/js/clipboard.js?a=3"></script> <script src="/static/assets/js/clipboard.js?a=200"></script>
{% if not p.comment_count %} {% if not p.comment_count %}
{% include "comments.html" %} {% include "comments.html" %}
{% endif %} {% endif %}
{% if p.award_count("shit") %} {% if p.award_count("shit") %}
<script src="/static/assets/js/critters.js?a=3"></script> <script src="/static/assets/js/critters.js?a=200"></script>
<script src="/static/assets/js/bugs.js?a=3"></script> <script src="/static/assets/js/bugs.js?a=200"></script>
{% endif %} {% endif %}
{% if p.award_count("fireflies") %} {% if p.award_count("fireflies") %}
<script src="/static/assets/js/critters.js?a=3"></script> <script src="/static/assets/js/critters.js?a=200"></script>
<script src="/static/assets/js/fireflies.js?a=3"></script> <script src="/static/assets/js/fireflies.js?a=200"></script>
{% endif %} {% endif %}

View file

@ -9,7 +9,7 @@
{% endif %} {% endif %}
{% if not v or v.highlightcomments %} {% if not v or v.highlightcomments %}
<script src="/static/assets/js/new_comments_count.js?a=3"></script> <script src="/static/assets/js/new_comments_count.js?a=200"></script>
{% endif %} {% endif %}
<script> <script>
@ -695,6 +695,6 @@
} }
</style> </style>
<script src="/static/assets/js/clipboard.js?a=3"></script> <script src="/static/assets/js/clipboard.js?a=200"></script>
<script src="/static/assets/js/comments+submission_listing.js?a=9"></script> <script src="/static/assets/js/comments+submission_listing.js?a=200"></script>
<script src="/static/assets/js/submission_listing.js?a=3"></script> <script src="/static/assets/js/submission_listing.js?a=200"></script>

View file

@ -4,7 +4,7 @@
<meta name="description" content="{{'DESCRIPTION' | app_config}}"> <meta name="description" content="{{'DESCRIPTION' | app_config}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';"> <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
<script src="/static/assets/js/bootstrap.js?a=3"></script> <script src="/static/assets/js/bootstrap.js?a=200"></script>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
@ -239,9 +239,9 @@
checkForRequired() checkForRequired()
</script> </script>
<script src="/static/assets/js/marked.js?a=3"></script> <script src="/static/assets/js/marked.js?a=200"></script>
<script src="/static/assets/js/formatting.js?a=3"></script> <script src="/static/assets/js/formatting.js?a=200"></script>
<script src="/static/assets/js/submit.js?a=5"></script> <script src="/static/assets/js/submit.js?a=200"></script>
{% include "emoji_modal.html" %} {% include "emoji_modal.html" %}
{% include "gif_modal.html" %} {% include "gif_modal.html" %}

View file

@ -691,11 +691,11 @@
{% if v %} {% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron or v.alts_patron or u.alts_patron %}0{% else %}0.03{% endif %}</div> <div id='tax' class="d-none">{% if v.patron or u.patron or v.alts_patron or u.alts_patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=10"></script> <script src="/static/assets/js/userpage_v.js?a=200"></script>
<div id="username" class="d-none">{{u.username}}</div> <div id="username" class="d-none">{{u.username}}</div>
{% endif %} {% endif %}
<script src="/static/assets/js/userpage.js?a=4"></script> <script src="/static/assets/js/userpage.js?a=200"></script>
{% endblock %} {% endblock %}
@ -721,7 +721,7 @@
</nav> </nav>
{% endif %} {% endif %}
<script src="/static/assets/js/marked.js?a=3"></script> <script src="/static/assets/js/marked.js?a=200"></script>
<style> <style>
.userbanner { .userbanner {

View file

@ -110,9 +110,9 @@
{% if v %} {% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div> <div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=10"></script> <script src="/static/assets/js/userpage_v.js?a=200"></script>
<div id="username" class="d-none">{{u.username}}</div> <div id="username" class="d-none">{{u.username}}</div>
{% endif %} {% endif %}
<script src="/static/assets/js/userpage.js?a=4"></script> <script src="/static/assets/js/userpage.js?a=200"></script>
{% endblock %} {% endblock %}

View file

@ -44,9 +44,9 @@
{% if v %} {% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div> <div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=10"></script> <script src="/static/assets/js/userpage_v.js?a=200"></script>
<div id="username" class="d-none">{{u.username}}</div> <div id="username" class="d-none">{{u.username}}</div>
{% endif %} {% endif %}
<script src="/static/assets/js/userpage.js?a=4"></script> <script src="/static/assets/js/userpage.js?a=200"></script>
{% endblock %} {% endblock %}