Aevann1 2022-12-09 14:03:08 +02:00
parent 5859d6a591
commit 1f99bb0aa6
3 changed files with 3 additions and 1 deletions

View File

@ -845,7 +845,7 @@
<div id="viewmore-{{offset}}"><button type="button" id="viewbtn" class="btn btn-primary" onclick="viewmore({{pid}},'{{sort}}',{{offset}},{{ids}})">VIEW MORE COMMENTS</a></div>
{% endif %}
{% if SITE_NAME == 'rDrama' and not request.headers.get("xhr") and v and 'SamsungBrowser' not in g.agent and not v.background %}
{% if SITE_NAME == 'rDrama' and not request.headers.get("xhr") and v and 'SamsungBrowser' not in g.agent and not displaying_bg %}
<div id="detection" style="display:none;background-color:canvas;color-scheme:light"></div>
<script>
const detectionDiv = document.querySelector('#detection');

View File

@ -3,6 +3,7 @@
{% block pagetitle %}@{{u.username}}'s profile{% endblock %}
{% block head_final %}
{% if u and u.profile_background %}
{% set displaying_bg = True %}
<link rel="stylesheet" href="{{('css/transparent.css') | asset}}">
<style>
body {

View File

@ -180,6 +180,7 @@
{% endif %}
{% if background %}
{% set displaying_bg = True %}
<link rel="stylesheet" href="{{('css/transparent.css') | asset}}">
<style>
body {