5ae1b39ec9
fix #361 with rich OEmbed display via iframe, fix #237 by hiding sensitive content behind a spoiler on public pages
20 lines
481 B
JavaScript
20 lines
481 B
JavaScript
import emojify from './components/emoji'
|
|
|
|
$(() => {
|
|
$.each($('.entry .content, .entry .status__content, .display-name, .name, .account__header__content'), (_, content) => {
|
|
const $content = $(content);
|
|
$content.html(emojify($content.html()));
|
|
});
|
|
|
|
$('.video-player video').on('click', e => {
|
|
if (e.target.paused) {
|
|
e.target.play();
|
|
} else {
|
|
e.target.pause();
|
|
}
|
|
});
|
|
|
|
$('.media-spoiler').on('click', e => {
|
|
$(e.target).hide();
|
|
});
|
|
});
|