forked from MarseyWorld/MarseyWorld
add glowie marseys
parent
233f24c0c4
commit
e42227ab67
|
@ -65,7 +65,7 @@ def allowed_attributes(tag, name, value):
|
||||||
if name in ['src','data-src']: return is_safe_url(value)
|
if name in ['src','data-src']: return is_safe_url(value)
|
||||||
if name == 'loading' and value == 'lazy': return True
|
if name == 'loading' and value == 'lazy': return True
|
||||||
if name == 'data-bs-toggle' and value == 'tooltip': return True
|
if name == 'data-bs-toggle' and value == 'tooltip': return True
|
||||||
if name in ['g','b'] and not value: return True
|
if name in ['g','b','glow'] and not value: return True
|
||||||
if name in ['alt','title']: return True
|
if name in ['alt','title']: return True
|
||||||
if name == 'referrpolicy' and value == 'no-referrer': return True
|
if name == 'referrpolicy' and value == 'no-referrer': return True
|
||||||
return False
|
return False
|
||||||
|
@ -136,7 +136,9 @@ def render_emoji(html, regexp, edit, marseys_used, b=False):
|
||||||
emoji = i.group(1).lower()
|
emoji = i.group(1).lower()
|
||||||
attrs = ''
|
attrs = ''
|
||||||
if b: attrs += ' b'
|
if b: attrs += ' b'
|
||||||
if not edit and len(emojis) <= 20 and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const2): attrs += ' g'
|
if not edit and len(emojis) <= 20 and ('marsey' in emoji or emoji in marseys_const2):
|
||||||
|
if random() < 0.0025: attrs += ' g'
|
||||||
|
elif random() < 0.00125: attrs += ' glow'
|
||||||
|
|
||||||
old = emoji
|
old = emoji
|
||||||
emoji = emoji.replace('!','').replace('#','')
|
emoji = emoji.replace('!','').replace('#','')
|
||||||
|
@ -345,7 +347,7 @@ def allowed_attributes_emojis(tag, name, value):
|
||||||
if name == 'src' and value.startswith('/') and '\\' not in value: return True
|
if name == 'src' and value.startswith('/') and '\\' not in value: return True
|
||||||
if name == 'loading' and value == 'lazy': return True
|
if name == 'loading' and value == 'lazy': return True
|
||||||
if name == 'data-bs-toggle' and value == 'tooltip': return True
|
if name == 'data-bs-toggle' and value == 'tooltip': return True
|
||||||
if name == 'g' and not value: return True
|
if name in ['g','glow'] and not value: return True
|
||||||
if name in ['alt','title']: return True
|
if name in ['alt','title']: return True
|
||||||
|
|
||||||
if tag == 'span':
|
if tag == 'span':
|
||||||
|
|
|
@ -307,7 +307,7 @@
|
||||||
|
|
||||||
{% if v and not v.animations -%}
|
{% if v and not v.animations -%}
|
||||||
<style>
|
<style>
|
||||||
* :not(img[src="/i/hand.webp"] + img):not(img.golden, img[g]) {
|
* :not(img[src="/i/hand.webp"] + img):not(img.golden, img[g], img[glow]) {
|
||||||
animation: unset !important;
|
animation: unset !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{%-
|
{%-
|
||||||
set CACHE_VER = {
|
set CACHE_VER = {
|
||||||
'css/main.css': 346,
|
'css/main.css': 347,
|
||||||
|
|
||||||
'css/4chan.css': 61,
|
'css/4chan.css': 61,
|
||||||
'css/classic.css': 61,
|
'css/classic.css': 61,
|
||||||
|
|
Loading…
Reference in New Issue