forked from MarseyWorld/MarseyWorld
add party chance for marseys
parent
13173376a4
commit
15b2d0399c
|
@ -5752,6 +5752,20 @@ img[src$="/i/hand.webp"]+img[glow]:not([data-src]) {
|
||||||
pat-pfp-anim .3s infinite;
|
pat-pfp-anim .3s infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes party {
|
||||||
|
from{filter:sepia(100%) saturate(500%) hue-rotate(270deg)}
|
||||||
|
to{filter:sepia(100%) saturate(600%) hue-rotate(1500deg)}
|
||||||
|
}
|
||||||
|
|
||||||
|
img[party]:not([data-src]) {
|
||||||
|
animation: party 2s infinite alternate linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
img[src$="/i/hand.webp"]+img[party]:not([data-src]) {
|
||||||
|
animation: party 1s infinite alternate linear,
|
||||||
|
pat-pfp-anim .3s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
.glow .post-title, .glow a, .glow .post-meta *, .glow .user-info *, .glow .comment-text, .glow .comment-actions *, .glow {
|
.glow .post-title, .glow a, .glow .post-meta *, .glow .user-info *, .glow .comment-text, .glow .comment-actions *, .glow {
|
||||||
color:lightgreen !important;
|
color:lightgreen !important;
|
||||||
text-shadow:1px 1px 1px darkgreen, 0 0 5px green;
|
text-shadow:1px 1px 1px darkgreen, 0 0 5px green;
|
||||||
|
|
|
@ -74,7 +74,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','glow'} and not value: return True
|
if name in {'g','b','glow','party'} and not value: return True
|
||||||
if name in {'alt','title'}: return True
|
if name in {'alt','title'}: return True
|
||||||
if name == 'class' and value == 'img': return True
|
if name == 'class' and value == 'img': return True
|
||||||
|
|
||||||
|
@ -225,8 +225,8 @@ def render_emoji(html, regexp, golden, emojis_used, b=False, is_title=False):
|
||||||
if b: attrs += ' b'
|
if b: attrs += ' b'
|
||||||
if is_title: emoji = emoji.replace('#','')
|
if is_title: emoji = emoji.replace('#','')
|
||||||
if golden and len(emojis) <= 20 and ('marsey' in emoji or emoji in marseys_const2):
|
if golden and len(emojis) <= 20 and ('marsey' in emoji or emoji in marseys_const2):
|
||||||
if random.random() < 0.0025: attrs += ' g'
|
if random.random() < 0.005:
|
||||||
elif random.random() < 0.00125: attrs += ' glow'
|
attrs += ' ' + random.choice(('g', 'glow', 'party'))
|
||||||
|
|
||||||
old = emoji
|
old = emoji
|
||||||
emoji = emoji.replace('!','').replace('#','')
|
emoji = emoji.replace('!','').replace('#','')
|
||||||
|
@ -630,7 +630,7 @@ def allowed_attributes_emojis(tag, name, value):
|
||||||
if value.startswith(f'{SITE_FULL_IMAGES}/') : return True
|
if value.startswith(f'{SITE_FULL_IMAGES}/') : 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 in {'g','glow'} and not value: return True
|
if name in {'g','glow','party'} 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':
|
||||||
|
|
Loading…
Reference in New Issue