diff --git a/app/js/tl/parse.js b/app/js/tl/parse.js index b711dc71..72587e95 100644 --- a/app/js/tl/parse.js +++ b/app/js/tl/parse.js @@ -224,7 +224,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } var emoji_url = `  :${shortcode}: + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') dis_name = dis_name.replace(regExp, emoji_url) @@ -241,7 +241,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { noticeavatar = toot.account.avatar_static } noticeavatar = ` - + ` if (toot.type == 'mention') { var what = lang.lang_parse_mentioned @@ -379,7 +379,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } var emoji_url = `  :${shortcode}: + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') dis_name = dis_name.replace(regExp, emoji_url) @@ -395,7 +395,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } noticeavatar = `` var rebtxt = lang.lang_parse_btedsimple var rticon = 'fa-retweet light-blue-text' @@ -436,7 +436,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } var emoji_url = `  :${shortcode}: + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') dis_name = dis_name.replace(regExp, emoji_url) @@ -652,7 +652,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { id="${id}-image-${key2}" data-url="${url}" data-original="${remote_url}" data-type="${media.type}" class="img-parsed img-link" style="width:calc(${cwdt}% - 1px); height:${imh};"> ${escapeHTML(desc)} + onerror="this.src=\'../../img/loading.svg\'" title="${escapeHTML(desc)}" alt="${escapeHTML(desc)}" loading="lazy"> ${nsfwmes} ` } @@ -855,7 +855,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { } var emoji_url = `  :${shortcode}: + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') content = content.replace(regExp, emoji_url) @@ -875,7 +875,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { var emoji = toot.profile_emojis[keynico] var shortcode = emoji.shortcode var emoji_url = ` :${shortcode}: ` + title="${shortcode}" onclick="this.classList.toggle(\'bigemoji\');" loading="lazy">` var regExp = new RegExp(':' + shortcode + ':', 'g') content = content.replace(regExp, emoji_url) spoil = spoil.replace(regExp, emoji_url) @@ -962,7 +962,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { };width:100%; height:0.9rem; font-size:0.8rem;" class="tickers"> + }" style="height:100%;" onerror="this.src=\'../../img/loading.svg\'" loading="lazy"> ${escapeHTML(value.name)} ` break @@ -984,7 +984,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) { - +
@@ -1040,7 +1040,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
+ user="${toot.account.acct}" onerror="this.src='../../img/loading.svg'" alt="" loading="lazy" /> ${noticeavatar}
@@ -1280,7 +1280,7 @@ function userparse(obj, auth, acct_id, tlid, popup) { } var emoji_url = `  :${shortcode}: + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') dis_name = dis_name.replace(regExp, emoji_url) @@ -1323,6 +1323,7 @@ function userparse(obj, auth, acct_id, tlid, popup) { user="${toot.acct}" onerror="this.src='../../img/loading.svg'" alt="" + loading="lazy" />
@@ -1513,7 +1514,7 @@ function pollParse(poll, acct_id, emojis) { } var emoji_url = `  :${shortcode}: + alt=" :${shortcode}: " title="${shortcode}" onclick="this.classList.toggle('bigemoji');" loading="lazy"> ` var regExp = new RegExp(':' + shortcode + ':', 'g') choiceText = choiceText.replace(regExp, emoji_url)