add a shortened endpoint for static images and rename loading.webp to l.webp (to save bytes)

remotes/1693045480750635534/spooky-22
Aevann1 2022-06-22 17:51:19 +02:00
parent 024ad2eff4
commit 20585ca543
32 changed files with 155 additions and 140 deletions

View File

@ -68,7 +68,7 @@ class Badge(Base):
@property
@lazy
def path(self):
return f"/assets/images/badges/{self.badge_id}.webp"
return f"/i/badges/{self.badge_id}.webp"
@property
@lazy

View File

@ -31,13 +31,13 @@ class Sub(Base):
@lazy
def sidebar_url(self):
if self.sidebarurl: return SITE_FULL + self.sidebarurl
return f'/assets/images/{SITE_NAME}/sidebar.webp?v=1041'
return f'/i/{SITE_NAME}/sidebar.webp?v=1041'
@property
@lazy
def banner_url(self):
if self.bannerurl: return SITE_FULL + self.bannerurl
return f'/assets/images/{SITE_NAME}/banner.webp?v=1048'
return f'/i/{SITE_NAME}/banner.webp?v=1048'
@property
@lazy

View File

@ -353,8 +353,9 @@ class User(Base):
def bio_html_eager(self):
if self.bio_html == None: return ''
return self.bio_html.replace('data-src', 'src') \
.replace('src="/assets/images/loading.webp?v=2"', '') \
.replace('src="/assets/images/loading.webp"', '')
.replace('src="/i/loading.webp?v=2"', '') \
.replace('src="/i/loading.webp"', '') \
.replace('src="/i/l.webp"', '')
@property
@lazy
@ -581,7 +582,7 @@ class User(Base):
@lazy
def banner_url(self):
if self.bannerurl: return self.bannerurl
else: return f"/assets/images/{SITE_NAME}/site_preview.webp?v=1016"
else: return f"/i/{SITE_NAME}/site_preview.webp?v=1016"
@property
@lazy

View File

@ -148,10 +148,10 @@ def render_emoji(html, regexp, edit, marseys_used, b=False):
if emoji.endswith('pat'):
if path.isfile(f"files/assets/images/emojis/{emoji.replace('pat','')}.webp"):
emoji_html = f'<span data-bs-toggle="tooltip" alt=":{old}:" title=":{old}:"><img src="/assets/images/hand.webp">{emoji_partial_pat.format(old, f"/e/{emoji[:-3]}.webp", attrs)}</span>'
emoji_html = f'<span data-bs-toggle="tooltip" alt=":{old}:" title=":{old}:"><img src="/i/hand.webp">{emoji_partial_pat.format(old, f"/e/{emoji[:-3]}.webp", attrs)}</span>'
elif emoji.startswith('@'):
if u := get_user(emoji[1:-3], graceful=True):
emoji_html = f'<span data-bs-toggle="tooltip" alt=":{old}:" title=":{old}:"><img src="/assets/images/hand.webp">{emoji_partial_pat.format(old, f"/pp/{u.id}", attrs)}</span>'
emoji_html = f'<span data-bs-toggle="tooltip" alt=":{old}:" title=":{old}:"><img src="/i/hand.webp">{emoji_partial_pat.format(old, f"/pp/{u.id}", attrs)}</span>'
elif path.isfile(f'files/assets/images/emojis/{emoji}.webp'):
emoji_html = emoji_partial.format(old, f'/e/{emoji}.webp', attrs)
@ -222,7 +222,7 @@ def sanitize(sanitized, alert=False, edit=False):
if tag.get("src") and not tag["src"].startswith('/pp/'):
tag["loading"] = "lazy"
tag["data-src"] = tag["src"]
tag["src"] = "/assets/images/loading.webp?v=2"
tag["src"] = "/i/l.webp"
tag['alt'] = f'![]({tag["data-src"]})'
tag['referrerpolicy'] = "no-referrer"

View File

@ -243,6 +243,20 @@ def emoji(emoji):
resp.headers.add("Content-Type", "image/webp")
return resp
@app.get('/i/<image>')
@limiter.exempt
def image(image):
resp = make_response(send_from_directory('assets/images', image))
if request.path.endswith('.webp') or request.path.endswith('.gif') or request.path.endswith('.ttf') or request.path.endswith('.woff2'):
resp.headers.remove("Cache-Control")
resp.headers.add("Cache-Control", "public, max-age=3153600")
if request.path.endswith('.webp'):
resp.headers.remove("Content-Type")
resp.headers.add("Content-Type", "image/webp")
return resp
@app.get('/assets/<path:path>')
@app.get('/static/assets/<path:path>')
@limiter.exempt

View File

@ -12,7 +12,7 @@
<meta name="author" content="">
<link rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<title>{% block pagetitle %}{{SITE_NAME}}{% endblock %}</title>
@ -24,7 +24,7 @@
{% if v.agendaposter %}
<style>
html {
cursor:url('/assets/images/dildo.webp?v=1008'), auto;
cursor:url('/i/dildo.webp?v=1008'), auto;
}
.nav-item .text-small.font-weight-bold::before {
content: "((("
@ -116,7 +116,7 @@
<div class="splash-overlay"></div>
<img alt="cover" loading="lazy" class="splash-img" src="/assets/images/{{SITE_NAME}}/cover.webp?v=1014"></img>
<img alt="cover" loading="lazy" class="splash-img" src="/i/{{SITE_NAME}}/cover.webp?v=1014"></img>
</div>
</div>

View File

@ -11,7 +11,7 @@
<meta name="author" content="">
<link id="favicon" rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link id="favicon" rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<title>Chat</title>

View File

@ -202,7 +202,7 @@
<span {% if c.distinguish_level %}class="mod"{% endif %}>👻</span>
{% else %}
{% if SITE_NAME=='rDrama' and c.author.house %}
<img loading="lazy" src="/assets/images/{{SITE_NAME}}/houses/{{c.author.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{c.author.house}}" alt="House {{c.author.house}}">
<img loading="lazy" src="/i/{{SITE_NAME}}/houses/{{c.author.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{c.author.house}}" alt="House {{c.author.house}}">
{% endif %}
{% if c.author.verified %}<i class="fas fa-badge-check align-middle ml-1 {% if c.author.verified=='Glowiefied' %}glow{% endif %}" style="color:{% if c.author.verifiedcolor %}#{{c.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{c.author.verified}}"></i>
@ -213,7 +213,7 @@
<a class="user-name text-decoration-none" href="{{c.author.url}}" data-pop-info='{{c.author.json_popover(v) | tojson}}' onclick='popclick(event)' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color:#{{c.author.namecolor}}; font-size:12px; font-weight:bold;">
<img loading="lazy" src="{{c.author.profile_url}}" class="profile-pic-25 mr-2">
{% if c.author.is_cakeday %}
<img class="party-hat" src="/assets/images/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
<img class="party-hat" src="/i/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
{% endif %}
<span {% if c.author.patron and not c.distinguish_level %}class="patron" style="background-color:#{{c.author.namecolor}};"{% elif c.distinguish_level %}class="mod"{% endif %}>{{c.author_name}}</span>
</a>
@ -236,13 +236,13 @@
{% if c.treasure_amount and c.treasure_amount != '0' %}
{% if c.treasure_amount.startswith('l') %}
<img class="treasure" alt="treasure" src="/assets/images/treasure_tickets.webp" width="20" />
<img class="treasure" alt="treasure" src="/i/treasure_tickets.webp" width="20" />
<em>Found {{c.treasure_amount.replace('l', '')}} {{'Lottershe' if SITE_NAME == 'rDrama' else 'Lottery'}} Tickets!</em>
{% elif '-' in c.treasure_amount %}
<img class="treasure" alt="treasure" src="/assets/images/treasure_mimic.webp" width="20" />
<img class="treasure" alt="treasure" src="/i/treasure_mimic.webp" width="20" />
<em>A Mimic Ate {{c.treasure_amount.replace('-', '')}} Coins!</em>
{% else %}
<img class="treasure" alt="treasure" src="/assets/images/treasure_coins.webp" width="20" />
<img class="treasure" alt="treasure" src="/i/treasure_coins.webp" width="20" />
<em>Found {{c.treasure_amount}} Coins!</em>
{% endif %}
{% endif %}

View File

@ -20,7 +20,7 @@
{% if v.agendaposter %}
<style>
html {
cursor:url('/assets/images/dildo.webp?v=1008'), auto;
cursor:url('/i/dildo.webp?v=1008'), auto;
}
.nav-item .text-small.font-weight-bold::before {
content: "((("
@ -76,16 +76,16 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="thumbnail" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="thumbnail" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<link rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
{% block title %}
<title>{{SITE_NAME}}</title>
<meta property="og:type" content="article">
<meta property="og:title" content="{{SITE_NAME}}">
<meta property="og:site_name" content="{{request.host}}">
<meta property="og:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:url" content="{{SITE_FULL}}{{request.full_path}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="{{SITE_FULL}}">
@ -96,7 +96,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}">
<meta name="twitter:creator" content="{{SITE_FULL}}">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta name="twitter:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:url" content="{{SITE_FULL}}{{request.full_path}}">
{% endblock %}
@ -105,14 +105,14 @@
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="manifest" href="/assets/manifest_{{SITE_NAME}}.json?v=4">
<link rel="mask-icon" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="shortcut icon" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="apple-touch-icon" sizes="180x180" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="manifest" href="/assets/manifest_{{SITE_NAME}}.json?v=5">
<link rel="mask-icon" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="shortcut icon" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<meta name="apple-mobile-web-app-title" content="{{SITE_NAME}}">
<meta name="application-name" content="{{SITE_NAME}}">
<meta name="msapplication-TileColor" content="#{{config('DEFAULT_COLOR')}}">
<meta name="msapplication-config" content="/assets/browserconfig.xml?v=2">
<meta name="msapplication-config" content="/assets/browserconfig.xml?v=3">
<meta name="theme-color" content="#{{config('DEFAULT_COLOR')}}">
@ -120,127 +120,127 @@
<link
rel="apple-touch-startup-image"
sizes="320x480"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="640x960"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-icon"
sizes="640x1136"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-icon"
sizes="750x1334"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="768x1004"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="768x1024"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="828x1792"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1024x748"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1024x768"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1125x2436"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1242x2208"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1242x2688"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1334x750"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1536x2008"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1536x2048"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1668x2224"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="1792x828"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="2048x1496"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="2048x1536"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="2048x2732"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="2208x1242"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="2224x1668"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="2436x1125"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="2668x1242"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
<link
rel="apple-touch-startup-image"
sizes="2737x2048"
href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015"
href="/i/{{SITE_NAME}}/icon.webp?v=1015"
>
{% block fixedMobileBarJS %}
@ -275,14 +275,14 @@
<a href="https://secure.transequality.org/site/Donation2?df_id=1480">
{% if v and (v.is_banned or v.agendaposter) %}
<img alt="site banner" src="/assets/images/{{SITE_NAME}}/banner2.webp?v=1" width="100%">
<img alt="site banner" src="/i/{{SITE_NAME}}/banner2.webp?v=1" width="100%">
{% else %}
<img alt="site banner" src="{% if v %}{{image}}{% else %}/assets/images/{{SITE_NAME}}/cached.webp?v=100{% endif %}" width="100%">
{% endif %}
</a>
{% else %}
<a href="/">
<img alt="site banner" src="/assets/images/{{SITE_NAME}}/banner.webp?v=1048" width="100%">
<img alt="site banner" src="/i/{{SITE_NAME}}/banner.webp?v=1048" width="100%">
</a>
{% endif %}
{% endif %}

View File

@ -104,12 +104,12 @@ Text 2
<tr>
<td>Pat Emojis</td>
<td>:marseylovepat:</td>
<td><span alt=":marseylovepat:" data-bs-toggle="tooltip" title=":marseylovepat:"><img src="/assets/images/hand.webp"><img alt=":marseylovepat:" b="" loading="lazy" pat="" src="/e/marseylove.webp"></span></td>
<td><span alt=":marseylovepat:" data-bs-toggle="tooltip" title=":marseylovepat:"><img src="/i/hand.webp"><img alt=":marseylovepat:" b="" loading="lazy" pat="" src="/e/marseylove.webp"></span></td>
</tr>
<tr>
<td>Pat User</td>
<td>:@snappypat:</td>
<td><span alt=":@snappypat:" data-bs-toggle="tooltip" title="" data-bs-original-title=":@snappypat:" aria-label=":@snappypat:"><img src="/assets/images/hand.webp"><img alt=":@snappypat:" b="" loading="lazy" pat="" src="/pp/3"></span></td>
<td><span alt=":@snappypat:" data-bs-toggle="tooltip" title="" data-bs-original-title=":@snappypat:" aria-label=":@snappypat:"><img src="/i/hand.webp"><img alt=":@snappypat:" b="" loading="lazy" pat="" src="/pp/3"></span></td>
</tr>
<tr>
<td>Random Marsey</td>

View File

@ -30,7 +30,7 @@
<div class="navbar navbar-expand-md navbar-light" id="navbar">
<div class="container-fluid" style="padding:0;">
<a href="/" class="navbar-brand mr-auto {% if SITE_NAME in ('PCM','WPD') and not sub %}flex-grow-1{% endif %}">
<img alt="header icon" height=33 src="/assets/images/{{SITE_NAME}}/headericon.webp?v=1019">
<img alt="header icon" height=33 src="/i/{{SITE_NAME}}/headericon.webp?v=1019">
</a>
{% if sub %}
@ -50,7 +50,7 @@
</style>
<div id="logo-container" class="flex-grow-1 logo-container">
<a href="/">
<img class="ml-1" id="logo" alt="logo" src="/assets/images/{{SITE_NAME}}/logo.webp?v=1013" width=70>
<img class="ml-1" id="logo" alt="logo" src="/i/{{SITE_NAME}}/logo.webp?v=1013" width=70>
</a>
</div>
{% endif %}
@ -165,14 +165,14 @@
<div>
<img alt="your profile picture" loading="lazy" src="{{v.profile_url}}" class="profile-pic-35">
{% if v.is_cakeday %}
<img class="party-hat4" src="/assets/images/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
<img class="party-hat4" src="/i/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
{% endif %}
</div>
<div class="text-left pl-2">
<div style="color: #{{v.namecolor}}" class="text-small font-weight-bold {% if v.patron %}patron{% endif %}"><span {% if v.patron %}class="patron" style="background-color:#{{v.namecolor}}"{% endif %}>{{v.username}}</span></div>
<div class="text-small-extra"><img alt="coins" class="mr-1 ml-1" data-bs-toggle="tooltip" data-bs-placement="bottom" height="13" src="/assets/images/{{SITE_NAME}}/coins.webp?v=2" title="coins" aria-label="coins"><span id="user-coins-amount">{{v.coins}}</span> Coin{{ help.plural(v.coins) }}</div>
<div class="text-small-extra"><img alt="coins" class="mr-1 ml-1" data-bs-toggle="tooltip" data-bs-placement="bottom" height="13" src="/i/{{SITE_NAME}}/coins.webp?v=2" title="coins" aria-label="coins"><span id="user-coins-amount">{{v.coins}}</span> Coin{{ help.plural(v.coins) }}</div>
{% if SITE_NAME not in ('Cringetopia', 'WPD') %}
<div class="text-small-extra"><img alt="marseybux" class="mr-1 ml-1" data-bs-toggle="tooltip" data-bs-placement="bottom" height="13" width="30" src="/assets/images/marseybux.webp?v=1008" title="Marseybux" aria-label="Marseybux"><span id="user-bux-amount">{{v.procoins}}</span> Marseybux</div>
<div class="text-small-extra"><img alt="marseybux" class="mr-1 ml-1" data-bs-toggle="tooltip" data-bs-placement="bottom" height="13" width="30" src="/i/marseybux.webp?v=1008" title="Marseybux" aria-label="Marseybux"><span id="user-bux-amount">{{v.procoins}}</span> Marseybux</div>
{% endif %}
</div>
</div>
@ -307,10 +307,10 @@
{% if v and not v.animations -%}
<style>
* :not(img[src="/assets/images/hand.webp"] + img):not(img.golden, img[g]) {
* :not(img[src="/i/hand.webp"] + img):not(img.golden, img[g]) {
animation: unset !important;
}
</style>
{%- endif %}
<link rel="preload" as="image" href="/assets/images/loading.webp?v=2">
<link rel="preload" as="image" href="/i/l.webp">

View File

@ -11,7 +11,7 @@
{% if v.agendaposter %}
<style>
html {
cursor:url('/assets/images/dildo.webp?v=1008'), auto;
cursor:url('/i/dildo.webp?v=1008'), auto;
}
.nav-item .text-small.font-weight-bold::before {
content: "((("

View File

@ -4,7 +4,7 @@
<html lang="en">
<head>
<link rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
@ -112,7 +112,7 @@
<div class="splash-overlay"></div>
<img alt="cover" loading="lazy" class="splash-img" src="/assets/images/{{SITE_NAME}}/cover.webp?v=1014"></img>
<img alt="cover" loading="lazy" class="splash-img" src="/i/{{SITE_NAME}}/cover.webp?v=1014"></img>
</div>
</div>

View File

@ -4,7 +4,7 @@
<html lang="en">
<head>
<link rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
@ -96,7 +96,7 @@
<div class="splash-overlay"></div>
<img alt="cover" loading="lazy" class="splash-img" src="/assets/images/{{SITE_NAME}}/cover.webp?v=1014"></img>
<img alt="cover" loading="lazy" class="splash-img" src="/i/{{SITE_NAME}}/cover.webp?v=1014"></img>
</div>
</div>

View File

@ -2,10 +2,10 @@
<div>
<div class="lottery-page--wrapper">
<div class="lottery-page--image">
<img src="/assets/images/{{SITE_NAME}}/lottery.webp?v=2" />
<img src="/i/{{SITE_NAME}}/lottery.webp?v=2" />
<img
id="lotteryTicketPulled"
src="/assets/images/{{SITE_NAME}}/lottery_active.webp?v=2"
src="/i/{{SITE_NAME}}/lottery_active.webp?v=2"
style="display: none"
/>
</div>
@ -62,7 +62,7 @@
data-bs-toggle="tooltip"
data-bs-placement="bottom"
height="13"
src="/assets/images/{{SITE_NAME}}/coins.webp?v=2"
src="/i/{{SITE_NAME}}/coins.webp?v=2"
title=""
aria-label="coins"
data-bs-original-title="coins"
@ -123,7 +123,7 @@
data-bs-toggle="tooltip"
data-bs-placement="bottom"
height="13"
src="/assets/images/{{SITE_NAME}}/coins.webp?v=2"
src="/i/{{SITE_NAME}}/coins.webp?v=2"
title=""
aria-label="coins"
data-bs-original-title="coins"

View File

@ -9,7 +9,7 @@
{% block content %}
<div class="text-center py-7 py-md-8">
<img loading="lazy" src="/assets/images/ruckus.webp" class="empty-state-img mb-3" alt="success state">
<img loading="lazy" src="/i/ruckus.webp" class="empty-state-img mb-3" alt="success state">
<div class="font-weight-bold text-muted mb-4">{{title}}</div>
<p class="text-muted">{{message}}</p>

View File

@ -13,13 +13,13 @@
<meta name="author" content="">
<link rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<title>{% block pagetitle %}Settings - {{SITE_NAME}}{% endblock %}</title>
<meta property="og:type" content="article">
<meta property="og:title" content="{{SITE_NAME}}">
<meta property="og:site_name" content="{{request.host}}">
<meta property="og:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:url" content="{{request.host}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="{{SITE_FULL}}">
@ -30,7 +30,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}">
<meta name="twitter:creator" content="{{SITE_FULL}}">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta name="twitter:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:url" content="{{request.host}}">
@ -40,7 +40,7 @@
{% if v.agendaposter %}
<style>
html {
cursor:url('/assets/images/dildo.webp?v=1008'), auto;
cursor:url('/i/dildo.webp?v=1008'), auto;
}
.nav-item .text-small.font-weight-bold::before {
content: "((("

View File

@ -13,13 +13,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="">
<meta name="thumbnail" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<link rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<meta name="thumbnail" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<link rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<meta property="og:type" content="article">
<meta property="og:title" content="{{SITE_NAME}}">
<meta property="og:site_name" content="{{request.host}}">
<meta property="og:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:url" content="{{SITE_FULL}}{{request.full_path}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="{{SITE_FULL}}">
@ -30,7 +30,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}">
<meta name="twitter:creator" content="{{SITE_FULL}}">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta name="twitter:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:url" content="{{SITE_FULL}}{{request.full_path}}">

View File

@ -738,7 +738,7 @@
</div>
<script src="/assets/js/settings_profile.js?v=253"></script>
<script src="/assets/js/settings_profile.js?v=254"></script>
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}

View File

@ -7,7 +7,7 @@
}[SITE_NAME]
-%}
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-html="true" title="<img src='/assets/images/chest.webp' width='20'>">
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-html="true" title="<img src='/i/chest.webp' width='20'>">
Tooltip with HTML
</button>
@ -19,7 +19,7 @@
{% block Banner %}
<header class="container pb-1 text-center">
<img alt="shop banner" src="/assets/images/shop.webp" width="50%">
<img alt="shop banner" src="/i/shop.webp" width="50%">
<h3 class="mt-4">{{SHOP_FLAVOR}} Earn coins.</h5>
<h5 class="mt-4">Total sales: {{sales}} coins</h5>
<h5 class="mt-4">Coins spent by you: {{v.coins_spent}} coins</h5>

View File

@ -3,7 +3,7 @@
{% if sub %}
{% set image=sub.sidebar_url %}
{% else %}
{% set image='/assets/images/' + SITE_NAME + '/sidebar.webp?v=1' %}
{% set image='/i/' + SITE_NAME + '/sidebar.webp?v=1' %}
{% endif %}
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>

View File

@ -38,7 +38,7 @@
{% if sub %}
{% set image=sub.sidebar_url %}
{% else %}
{% set image='/assets/images/' + SITE_NAME + '/sidebar.webp?v=1041' %}
{% set image='/i/' + SITE_NAME + '/sidebar.webp?v=1041' %}
{% endif %}
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>

View File

@ -3,7 +3,7 @@
{% if sub %}
{% set image=sub.sidebar_url %}
{% else %}
{% set image='/assets/images/' + SITE_NAME + '/sidebar.webp?v=2' %}
{% set image='/i/' + SITE_NAME + '/sidebar.webp?v=2' %}
{% endif %}
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>

View File

@ -31,7 +31,7 @@ set VISITORS_HERE_FLAVOR = [
{% endif %}
{% if v and (v.is_banned or v.agendaposter) %}
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('/assets/images/{{SITE_NAME}}/sidebar2.webp')" loading="lazy" src="/assets/images/{{SITE_NAME}}/sidebar2.webp" width=100%>
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('/i/{{SITE_NAME}}/sidebar2.webp')" loading="lazy" src="/i/{{SITE_NAME}}/sidebar2.webp" width=100%>
{% else %}
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
{% endif %}

View File

@ -3,7 +3,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
@ -17,7 +17,7 @@
<meta property="og:type" content="article">
<meta property="og:title" content="{{SITE_NAME}}">
<meta property="og:site_name" content="{{request.host}}">
<meta property="og:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:url" content="{{request.host}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="{{SITE_FULL}}">
@ -28,7 +28,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}">
<meta name="twitter:creator" content="{{SITE_FULL}}">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta name="twitter:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:url" content="{{request.host}}">
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title>
@ -143,7 +143,7 @@
<div class="splash-overlay"></div>
<img alt="cover" loading="lazy" class="splash-img" src="/assets/images/{{SITE_NAME}}/cover.webp?v=1014"></img>
<img alt="cover" loading="lazy" class="splash-img" src="/i/{{SITE_NAME}}/cover.webp?v=1014"></img>
</div>
</div>

View File

@ -4,7 +4,7 @@
<html lang="en">
<head>
<link rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
<meta name="description" content="{{config('DESCRIPTION')}}">
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
@ -18,7 +18,7 @@
<meta property="og:type" content="article">
<meta property="og:title" content="{{SITE_NAME}}">
<meta property="og:site_name" content="{{request.host}}">
<meta property="og:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta property="og:url" content="{{request.host}}">
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta property="og:author" name="author" content="{{SITE_FULL}}">
@ -29,7 +29,7 @@
<meta name="twitter:title" content="{{SITE_NAME}}">
<meta name="twitter:creator" content="{{SITE_FULL}}">
<meta name="twitter:description" content="{{SITE_NAME}} - {{config('DESCRIPTION')}}">
<meta name="twitter:image" content="/assets/images/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:image" content="/i/{{SITE_NAME}}/site_preview.webp?v=1016">
<meta name="twitter:url" content="{{request.host}}">
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title>
@ -87,7 +87,7 @@
<div class="splash-overlay"></div>
<img alt="cover" loading="lazy" class="splash-img" src="/assets/images/{{SITE_NAME}}/cover.webp?v=1014"></img>
<img alt="cover" loading="lazy" class="splash-img" src="/i/{{SITE_NAME}}/cover.webp?v=1014"></img>
</div>
</div>

View File

@ -60,7 +60,7 @@
{% endif %}
{% if SITE_NAME == 'PCM' %}
{% set wholesome = '/assets/images/wholesome.webp' %}
{% set wholesome = '/i/wholesome.webp' %}
{% else %}
{% set wholesome = '/e/marseywholesome.webp' %}
{% endif %}
@ -70,7 +70,7 @@
{% endif %}
{% if p.award_count("firework") %}
<script defer src="/assets/js/fireworks.js?v=4"></script>
<script defer src="/assets/js/fireworks.js?v=5"></script>
<div class="firework">
<img src="">
</div>
@ -95,20 +95,20 @@
{% endif %}
{% if p.award_count("ricardo") %}
<script src="/assets/js/ricardo.js?v=5"></script>
<script src="/assets/js/ricardo.js?v=6"></script>
<div id="ricardo1" class="ricardo ricardoleft">
<img src="/assets/images/ricardo1.webp">
<img src="/i/ricardo1.webp">
</div>
{% if p.award_count("ricardo") > 1 %}
<div id="ricardo2" class="ricardo">
<img src="/assets/images/ricardo2.webp" style="max-height:200px">
<img src="/i/ricardo2.webp" style="max-height:200px">
</div>
{% endif %}
{% if p.award_count("ricardo") > 2 %}
<div id="ricardo3" class="ricardo">
<img src="/assets/images/ricardo3.webp" style="max-height:150px">
<img src="/i/ricardo3.webp" style="max-height:150px">
</div>
{% endif %}
{% endif %}
@ -242,7 +242,7 @@
}
</style>
<div class="toe toe1" height="100%" width="100%">
<img alt="Blade's toe" class="toeimg" src="/assets/images/PCM/toe.webp?v=1">
<img alt="Blade's toe" class="toeimg" src="/i/PCM/toe.webp?v=1">
</div>
{% if p.award_count("toe") > 1 %}
@ -257,7 +257,7 @@
}
</style>
<div class="toe toe2" height="100%" width="100%">
<img alt="Blade's toe" class="toeimg" src="/assets/images/PCM/toe.webp?v=1">
<img alt="Blade's toe" class="toeimg" src="/i/PCM/toe.webp?v=1">
</div>
{% endif %}
@ -273,7 +273,7 @@
}
</style>
<div class="toe toe3" height="100%" width="100%">
<img alt="Blade's toe" class="toeimg" src="/assets/images/PCM/toe.webp?v=1">
<img alt="Blade's toe" class="toeimg" src="/i/PCM/toe.webp?v=1">
</div>
{% endif %}
@ -289,7 +289,7 @@
}
</style>
<div class="toe toe4" height="100%" width="100%">
<img alt="Blade's toe" class="toeimg" src="/assets/images/PCM/toe.webp?v=1">
<img alt="Blade's toe" class="toeimg" src="/i/PCM/toe.webp?v=1">
</div>
{% endif %}
{% endif %}
@ -370,7 +370,7 @@
<div class="toe" height="100%" width="100%">
<marquee class="toe" scrollamount=10 behavior="alternate" direction="up" height="100%" width="100%">
<marquee direction="right" scrollamount=10 behavior="alternate" height="100%" width="100%">
<img alt="Blade's toe" class="toeimg" src="/assets/images/PCM/toe.webp?v=1">
<img alt="Blade's toe" class="toeimg" src="/i/PCM/toe.webp?v=1">
</marquee>
</marquee>
</div>
@ -378,7 +378,7 @@
{% if p.award_count("toe") > 1 %}
<marquee class="toe" scrollamount=10 behavior="alternate" direction="down" height="100%">
<marquee direction="right" scrollamount=10 behavior="alternate" width="100%">
<img alt="Blade's toe" class="toeimg" src="/assets/images/PCM/toe.webp?v=1">
<img alt="Blade's toe" class="toeimg" src="/i/PCM/toe.webp?v=1">
</marquee>
</marquee>
{% endif %}
@ -386,7 +386,7 @@
{% if p.award_count("toe") > 2 %}
<marquee class="toe" scrollamount=10 behavior="alternate" direction="up" height="100%">
<marquee direction="left" scrollamount=10 behavior="alternate" width="100%">
<img alt="Blade's toe" class="toeimg" src="/assets/images/PCM/toe.webp?v=1">
<img alt="Blade's toe" class="toeimg" src="/i/PCM/toe.webp?v=1">
</marquee>
</marquee>
{% endif %}
@ -394,7 +394,7 @@
{% if p.award_count("toe") > 3 %}
<marquee class="toe" scrollamount=10 behavior="alternate" direction="down" height="100%">
<marquee direction="left" scrollamount=10 behavior="alternate" width="100%">
<img alt="Blade's toe" class="toeimg" src="/assets/images/PCM/toe.webp?v=1">
<img alt="Blade's toe" class="toeimg" src="/i/PCM/toe.webp?v=1">
</marquee>
</marquee>
{% endif %}
@ -497,24 +497,24 @@
</style>
<marquee class="croag croag1" direction="left" scrollamount=10 width="100%">
<img alt="croag" class="croagimg mirrored" src="/assets/images/PCM/croag.webp?v=1">
<img alt="croag" class="croagimg mirrored" src="/i/PCM/croag.webp?v=1">
</marquee>
{% if p.award_count("croag") > 1 %}
<marquee class="croag croag2" direction="right" scrollamount=10 width="100%">
<img alt="croag" class="croagimg" src="/assets/images/PCM/croag.webp?v=1">
<img alt="croag" class="croagimg" src="/i/PCM/croag.webp?v=1">
</marquee>
{% endif %}
{% if p.award_count("croag") > 2 %}
<marquee class="croag croag3" direction="left" scrollamount=10 width="100%">
<img alt="croag" class="croagimg mirrored" src="/assets/images/PCM/croag.webp?v=1">
<img alt="croag" class="croagimg mirrored" src="/i/PCM/croag.webp?v=1">
</marquee>
{% endif %}
{% if p.award_count("croag") > 3 %}
<marquee class="croag croag4" direction="right" scrollamount=10 width="100%">
<img alt="croag" class="croagimg" src="/assets/images/PCM/croag.webp?v=1">
<img alt="croag" class="croagimg" src="/i/PCM/croag.webp?v=1">
</marquee>
{% endif %}
{% endif %}
@ -741,7 +741,7 @@
<span {% if p.distinguish_level %}class="mod"{% endif %}>👻</span>
{% else %}
{% if SITE_NAME=='rDrama' and p.author.house %}
<img loading="lazy" src="/assets/images/{{SITE_NAME}}/houses/{{p.author.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{p.author.house}}" alt="House {{p.author.house}}">
<img loading="lazy" src="/i/{{SITE_NAME}}/houses/{{p.author.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{p.author.house}}" alt="House {{p.author.house}}">
{% endif %}
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1 {% if p.author.verified=='Glowiefied' %}glow{% endif %}" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.verified}}"></i>
@ -749,7 +749,7 @@
<a class="user-name text-decoration-none" href="{{p.author.url}}" data-pop-info='{{p.author.json_popover(v) | tojson}}' onclick='popclick(event)' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold"class="user-name">
<img loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2">
{% if p.author.is_cakeday %}
<img class="party-hat" src="/assets/images/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
<img class="party-hat" src="/i/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
{% endif %}
<span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level %}class="mod"{% endif %}>{{p.author_name}}</span>
</a>
@ -1186,13 +1186,13 @@
{% if p.award_count("shit") %}
<script src="/assets/js/critters.js?v=245"></script>
<script src="/assets/js/bugs.js?v=245"></script>
<script src="/assets/js/bugs.js?v=246"></script>
{% endif %}
{% if p.award_count("fireflies") %}
<script src="/assets/js/critters.js?v=245"></script>
<script src="/assets/js/fireflies.js?v=245"></script>
<script src="/assets/js/fireflies.js?v=246"></script>
{% endif %}

View File

@ -188,7 +188,7 @@
<span {% if p.distinguish_level %}class="mod"{% endif %}>👻</span>
{% else %}
{% if SITE_NAME=='rDrama' and p.author.house %}
<img loading="lazy" src="/assets/images/{{SITE_NAME}}/houses/{{p.author.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{p.author.house}}" alt="House {{p.author.house}}">
<img loading="lazy" src="/i/{{SITE_NAME}}/houses/{{p.author.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{p.author.house}}" alt="House {{p.author.house}}">
{% endif %}
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1 {% if p.author.verified=='Glowiefied' %}glow{% endif %}" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.verified}}"></i>
@ -196,7 +196,7 @@
<a class="user-name text-decoration-none" href="{{p.author.url}}" data-pop-info='{{p.author.json_popover(v) | tojson}}' onclick='popclick(event)' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color: #{{p.author.namecolor}}; font-weight: bold;">
<img loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2">
{% if p.author.is_cakeday %}
<img class="party-hat" src="/assets/images/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
<img class="party-hat" src="/i/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
{% endif %}
<span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level %}class="mod"{% endif %}>{{p.author_name}}</span>
</a>
@ -345,7 +345,7 @@
{% if p.is_image and not p.over_18 and ((v and v.cardview) or (not v and environ.get('CARD_VIEW') == '1')) %}
<div style="text-align: center" class="mt-3 mb-4">
<a {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}">
<img loading="lazy" data-src="{{p.realurl(v)}}" src="/assets/images/loading.webp?v=2" class="img-fluid" style="max-height:20rem" alt="Unable to load image">
<img loading="lazy" data-src="{{p.realurl(v)}}" src="/i/l.webp" class="img-fluid" style="max-height:20rem" alt="Unable to load image">
</a>
</div>
{% elif p.is_video %}

View File

@ -12,7 +12,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author" content="">
<link rel="icon" type="image/webp" href="/assets/images/{{SITE_NAME}}/icon.webp?v=1015">
<link rel="icon" type="image/webp" href="/i/{{SITE_NAME}}/icon.webp?v=1015">
{% if request.host == 'pcmemes.net' %}
{% set cc='Splash Mountain' %}
@ -33,7 +33,7 @@
{% if v.agendaposter %}
<style>
html {
cursor:url('/assets/images/dildo.webp?v=1008'), auto;
cursor:url('/i/dildo.webp?v=1008'), auto;
}
.nav-item .text-small.font-weight-bold::before {
content: "((("

View File

@ -41,7 +41,7 @@
<div id="profile--pfp">
<a rel="nofollow noopener noreferrer" href="{% if u.highres %}{{u.highres}}{% else %}{{u.profile_url}}{% endif %}"><img loading="lazy" src="{{u.profile_url}}" class="profile-pic profile-pic-100 mb-5"></a>
{% if u.is_cakeday %}
<img class="party-hat2" src="/assets/images/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
<img class="party-hat2" src="/i/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
{% endif %}
</div>
<div id="profilestuff" class="ml-3 w-100">
@ -65,7 +65,7 @@
{% endif %}
{% if SITE_NAME=='rDrama' and u.house %}
<img loading="lazy" class="ml-3" id="profile--house" src="/assets/images/{{SITE_NAME}}/houses/{{u.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
<img loading="lazy" class="ml-3" id="profile--house" src="/i/{{SITE_NAME}}/houses/{{u.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
{% endif %}
{% if u.verified %}
@ -113,11 +113,11 @@
<div class="font-weight-bolder">
<span id="profile-coins-amount">{{u.coins}}</span>
<img alt="coins" class="ml-1 mb-1" data-bs-toggle="tooltip" data-bs-placement="bottom" title="coins" height="20" src="/assets/images/{{SITE_NAME}}/coins.webp?v=2">&nbsp;&nbsp;
<img alt="coins" class="ml-1 mb-1" data-bs-toggle="tooltip" data-bs-placement="bottom" title="coins" height="20" src="/i/{{SITE_NAME}}/coins.webp?v=2">&nbsp;&nbsp;
{% if SITE_NAME not in ('Cringetopia', 'WPD') %}
<span id="profile-bux-amount">{{u.procoins}}</span>
<img alt="marseybux" class="ml-1 mb-1" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Marseybux" height="20" width="46" src="/assets/images/marseybux.webp?v=1008">&nbsp;&nbsp;
<img alt="marseybux" class="ml-1 mb-1" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Marseybux" height="20" width="46" src="/i/marseybux.webp?v=1008">&nbsp;&nbsp;
{% endif %}
<a href="/@{{u.username}}/followers" id="profile--followers">{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}</a>&nbsp;&nbsp;
@ -373,7 +373,7 @@
<div style="margin-top: -34px;" id="profile--pfp">
<a rel="nofollow noopener noreferrer" href="{% if u.highres %}{{u.highres}}{% else %}{{u.profile_url}}{% endif %}"><img loading="lazy" src="{{u.profile_url}}" class="profile-pic-65 bg-white border-2 border-white mb-2"></a>
{% if u.is_cakeday %}
<img class="party-hat3" src="/assets/images/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
<img class="party-hat3" src="/i/party-hat.webp" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Ive spent another year rotting my brain with dramaposting, please ridicule me 🤓">
{% endif %}
</div>
<div class="mt-n3 py-3">
@ -391,7 +391,7 @@
{% endif %}
{% if SITE_NAME=='rDrama' and u.house %}
<img loading="lazy" class="ml-2" id="profile--house" src="/assets/images/{{SITE_NAME}}/houses/{{u.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
<img loading="lazy" class="ml-2" id="profile--house" src="/i/{{SITE_NAME}}/houses/{{u.house}}.webp?v=7" height="20" data-bs-toggle="tooltip" data-bs-placement="bottom" title="House {{u.house}}" alt="House {{u.house}}">
{% endif %}
{% if u.verified %}
@ -415,11 +415,11 @@
<div class="font-weight-normal">
<span id="profile-coins-amount-mobile" class="font-weight-bold">{{u.coins}}</span>
<img alt="coins" class="ml-1 mb-1" data-bs-toggle="tooltip" data-bs-placement="bottom" title="coins" height="15" src="/assets/images/{{SITE_NAME}}/coins.webp?v=2">&nbsp;&nbsp;
<img alt="coins" class="ml-1 mb-1" data-bs-toggle="tooltip" data-bs-placement="bottom" title="coins" height="15" src="/i/{{SITE_NAME}}/coins.webp?v=2">&nbsp;&nbsp;
{% if SITE_NAME not in ('Cringetopia', 'WPD') %}
<span id="profile-bux-amount-mobile" class="font-weight-bold">{{u.procoins}}</span>
<img alt="marseybux" class="ml-1 mb-1" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Marseybux" height="15" width="35" src="/assets/images/marseybux.webp?v=1008">&nbsp;&nbsp;
<img alt="marseybux" class="ml-1 mb-1" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Marseybux" height="15" width="35" src="/i/marseybux.webp?v=1008">&nbsp;&nbsp;
{% endif %}
<a href="/@{{u.username}}/followers" class="font-weight-bold" id="profile--followers">{{u.stored_subscriber_count}} follower{{'s' if u.stored_subscriber_count != 1 else ''}}</a>&nbsp;&nbsp;

View File

@ -1,6 +1,6 @@
{%-
set CACHE_VER = {
'css/main.css': 343,
'css/main.css': 344,
'css/4chan.css': 61,
'css/classic.css': 61,
@ -20,8 +20,8 @@ set CACHE_VER = {
'js/comments+submission_listing.js': 261,
'js/formatting.js': 240,
'js/header.js': 272,
'js/lottery.js': 254,
'js/marked.js': 264,
'js/lottery.js': 255,
'js/marked.js': 265,
'js/submit.js': 262,
'js/userpage.js': 241,
'js/userpage_v.js': 245,

View File

@ -5,23 +5,23 @@ INSERT INTO public.users (username, passhash, created_utc, admin_level, over_18,
) VALUES ('System', '', extract(epoch from now()), 0, true, true, '', '', 0, false,
0, 'System', '', 'hot', 'top', 'day', 'ff66ac', 'ff66ac',
'', 'dark', 'ff66ac', false, 'old.reddit.com', '', '', 0, 0,
0, 0, '', 'Verified', 0, false, '/assets/images/pfps/2.webp', '/assets/images/pfps/2.webp'),
0, 0, '', 'Verified', 0, false, '/i/pfps/2.webp', '/i/pfps/2.webp'),
('AutoJanny', '', extract(epoch from now()), 0, true, true, '', '', 0, false,
0, 'AutoJanny', '', 'hot', 'top', 'day', 'ff66ac', 'ff66ac',
'', 'dark', 'ff66ac', false, 'old.reddit.com', '', '', 0, 0,
0, 0, '', 'Verified', 0, false, '/assets/images/pfps/2.webp', '/assets/images/pfps/2.webp'),
0, 0, '', 'Verified', 0, false, '/i/pfps/2.webp', '/i/pfps/2.webp'),
('Snappy', '', extract(epoch from now()), 0, true, true, '', '', 0, false,
0, 'Snappy', '', 'hot', 'top', 'day', '62ca56', 'e4432d',
'', 'dark', '30409f', false, 'old.reddit.com', '', '', 0, 0,
0, 0, '', 'Verified', 0, false, '/assets/images/pfps/3.webp', '/assets/images/pfps/3.webp'),
0, 0, '', 'Verified', 0, false, '/i/pfps/3.webp', '/i/pfps/3.webp'),
('longpostbot', '', extract(epoch from now()), 0, true, true, '', '', 0, false,
0, 'longpostbot', '', 'hot', 'top', 'day', '62ca56', 'e4432d',
'', 'dark', '30409f', false, 'old.reddit.com', '', '', 0, 0,
0, 0, '', 'Verified', 0, false, '/assets/images/pfps/4.webp', '/assets/images/pfps/4.webp'),
0, 0, '', 'Verified', 0, false, '/i/pfps/4.webp', '/i/pfps/4.webp'),
('zozbot', '', extract(epoch from now()), 0, true, true, '', '', 0, false,
0, 'zozbot', '', 'hot', 'top', 'day', '62ca56', 'e4432d',
'', 'dark', '30409f', false, 'old.reddit.com', '', '', 0, 0,
0, 0, '', 'Verified', 0, false, '/assets/images/pfps/5.webp', '/assets/images/pfps/5.webp'),
0, 0, '', 'Verified', 0, false, '/i/pfps/5.webp', '/i/pfps/5.webp'),
('AutoPoller', '', extract(epoch from now()), 0, true, true, '', '', 0, false,
0, 'AutoPoller', '', 'hot', 'top', 'day', '62ca56', 'e4432d',
'', 'dark', '30409f', false, 'old.reddit.com', '', '', 0, 0,