forked from rDrama/rDrama
1
0
Fork 0

Disable fartmode on non-rDrama sites.

master
Snakes 2022-05-25 07:24:34 -04:00
parent a30df291a4
commit da27b16c39
2 changed files with 3 additions and 1 deletions

View File

@ -70,10 +70,12 @@
<label class="custom-control-label" for="bots">Bots</label>
</div>
{% if SITE_NAME == 'rDrama' %}
<div class="custom-control custom-switch">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="Fart mode" {% if site_settings['Fart mode'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Fart mode');">
<label class="custom-control-label" for="Fart mode">Fart mode</label>
</div>
{% endif %}
<div class="custom-control custom-switch">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="Read-only mode" {% if site_settings['Read-only mode'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Read-only mode');">

View File

@ -43,7 +43,7 @@
</script>
{% endif %}
{% if fart and not (v and v.has_badge(128)) %}
{% if fart and not (v and v.has_badge(128)) and SITE_NAME == 'rDrama' %}
<script>
fart = Math.floor(Math.random() * 4) + 1
let audio = new Audio(`/assets/images/${fart}.webp`);