initial
This commit is contained in:
@@ -555,10 +555,10 @@ function cbCopy(mode) {
|
||||
`<iframe src="${url}/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400"></iframe>
|
||||
<script src="https://${domain}/embed.js" async="async"></script>`
|
||||
execCopy(emb)
|
||||
M.toast({ html: lang.lang_details_embed, displayLength: 1500 })
|
||||
Mtoast({ html: lang.lang_details_embed, displayLength: 1500 })
|
||||
} else {
|
||||
if (execCopy(url)) {
|
||||
M.toast({ html: lang.lang_details_url, displayLength: 1500 })
|
||||
Mtoast({ html: lang.lang_details_url, displayLength: 1500 })
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -573,7 +573,7 @@ function staCopy(id) {
|
||||
html = html.replace(/<img[\s\S]*alt="(.+?)"[\s\S]*?>/g, '$1')
|
||||
html = $.strip_tags(html)
|
||||
if (execCopy(html)) {
|
||||
M.toast({ html: lang.lang_details_txt, displayLength: 1500 })
|
||||
Mtoast({ html: lang.lang_details_txt, displayLength: 1500 })
|
||||
}
|
||||
}
|
||||
//翻訳
|
||||
|
@@ -260,7 +260,7 @@ function misskeyParse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
||||
}
|
||||
var domain = localStorage.getItem("domain_" + acct_id);
|
||||
if (popup > 0) {
|
||||
M.toast({ html: "[" + domain + "]" + escapeHTMLtemp(toot.user.name) + what, displayLength: popup * 1000 })
|
||||
Mtoast({ html: "[" + domain + "]" + escapeHTMLtemp(toot.user.name) + what, displayLength: popup * 1000 })
|
||||
}
|
||||
if (native == "yes") {
|
||||
var os = localStorage.getItem("platform");
|
||||
@@ -888,7 +888,7 @@ function misskeyUserparse(obj, auth, acct_id, tlid, popup) {
|
||||
}
|
||||
var memory = localStorage.getItem("notice-mem");
|
||||
if (popup >= 0 && obj.length < 5 && notftext != memory) {
|
||||
M.toast({ html: escapeHTMLtemp(toot.name) + ":" + ftxt, displayLength: popup * 1000 })
|
||||
Mtoast({ html: escapeHTMLtemp(toot.name) + ":" + ftxt, displayLength: popup * 1000 })
|
||||
$(".notf-icon_" + tlid).addClass("red-text");
|
||||
localStorage.setItem("notice-mem", notftext);
|
||||
notftext = "";
|
||||
|
@@ -315,7 +315,7 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter, type) {
|
||||
}
|
||||
}
|
||||
if (popup > 0) {
|
||||
M.toast({
|
||||
Mtoast({
|
||||
html: '[' + domain + ']' + escapeHTML(toot.account.display_name) + what,
|
||||
displayLength: popup * 1000
|
||||
})
|
||||
@@ -1226,7 +1226,7 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
||||
}
|
||||
var memory = localStorage.getItem('notice-mem')
|
||||
if (popup >= 0 && obj.length < 5 && notftext != memory) {
|
||||
M.toast({ html: escapeHTML(toot.display_name) + ':' + ftxt, displayLength: popup * 1000 })
|
||||
Mtoast({ html: escapeHTML(toot.display_name) + ':' + ftxt, displayLength: popup * 1000 })
|
||||
$('.notf-icon_' + tlid).addClass('red-text')
|
||||
localStorage.setItem('notice-mem', notftext)
|
||||
notftext = ''
|
||||
@@ -1366,7 +1366,7 @@ function client(name) {
|
||||
if (!obj) {
|
||||
var obj = []
|
||||
obj.push(name)
|
||||
M.toast({ html: escapeHTML(name) + lang.lang_status_emphas, displayLength: 2000 })
|
||||
Mtoast({ html: escapeHTML(name) + lang.lang_status_emphas, displayLength: 2000 })
|
||||
} else {
|
||||
var can
|
||||
Object.keys(obj).forEach(function(key) {
|
||||
@@ -1376,12 +1376,12 @@ function client(name) {
|
||||
} else {
|
||||
can = true
|
||||
obj.splice(key, 1)
|
||||
M.toast({ html: escapeHTML(name) + lang.lang_status_unemphas, displayLength: 2000 })
|
||||
Mtoast({ html: escapeHTML(name) + lang.lang_status_unemphas, displayLength: 2000 })
|
||||
}
|
||||
})
|
||||
if (!can) {
|
||||
obj.push(name)
|
||||
M.toast({ html: escapeHTML(name) + lang.lang_status_emphas, displayLength: 2000 })
|
||||
Mtoast({ html: escapeHTML(name) + lang.lang_status_emphas, displayLength: 2000 })
|
||||
} else {
|
||||
}
|
||||
var json = JSON.stringify(obj)
|
||||
@@ -1398,7 +1398,7 @@ function client(name) {
|
||||
obj.push(name)
|
||||
var json = JSON.stringify(obj)
|
||||
localStorage.setItem('client_mute', json)
|
||||
M.toast({ html: escapeHTML(name) + lang.lang_parse_mute, displayLength: 2000 })
|
||||
Mtoast({ html: escapeHTML(name) + lang.lang_parse_mute, displayLength: 2000 })
|
||||
parseColumn()
|
||||
}
|
||||
})
|
||||
|
@@ -143,14 +143,14 @@ function voiceSettings() {
|
||||
var awk = $('[name=bym]:checked').val()
|
||||
if (awk == 'yes') {
|
||||
localStorage.setItem('voice_bouyomi', 'yes')
|
||||
M.toast({ html: 'Bouyomi Chan connection requires WebSocket Plugin', displayLength: 3000 })
|
||||
Mtoast({ html: 'Bouyomi Chan connection requires WebSocket Plugin', displayLength: 3000 })
|
||||
} else {
|
||||
localStorage.removeItem('voice_bouyomi')
|
||||
}
|
||||
localStorage.setItem('voice_speed', $('#voicespeed').val() / 10)
|
||||
localStorage.setItem('voice_pitch', $('#voicepitch').val() / 50)
|
||||
localStorage.setItem('voice_vol', $('#voicevol').val() / 100)
|
||||
M.toast({ html: lang.lang_speech_refresh, displayLength: 3000 })
|
||||
Mtoast({ html: lang.lang_speech_refresh, displayLength: 3000 })
|
||||
}
|
||||
function voiceSettingLoad() {
|
||||
var flag = localStorage.getItem('voice_bouyomi')
|
||||
|
@@ -156,10 +156,10 @@ function autoToot(tag) {
|
||||
var nowPT = localStorage.getItem('stable')
|
||||
if (nowPT == tag) {
|
||||
localStorage.removeItem('stable')
|
||||
M.toast({ html: lang.lang_tags_unrealtime, displayLength: 3000 })
|
||||
Mtoast({ html: lang.lang_tags_unrealtime, displayLength: 3000 })
|
||||
} else {
|
||||
localStorage.setItem('stable', tag)
|
||||
M.toast({
|
||||
Mtoast({
|
||||
html: lang.lang_tags_tagwarn.replace('{{tag}}', tag).replace('{{tag}}', tag),
|
||||
displayLength: 3000
|
||||
})
|
||||
@@ -195,7 +195,7 @@ function tagFeature(name, acct_id) {
|
||||
})
|
||||
.then(function(json) {
|
||||
console.log(json)
|
||||
M.toast({ html: 'Complete: ' + escapeHTML(name), displayLength: 3000 })
|
||||
Mtoast({ html: 'Complete: ' + escapeHTML(name), displayLength: 3000 })
|
||||
})
|
||||
}
|
||||
//タグのフィルタ
|
||||
|
@@ -1000,7 +1000,7 @@ function reconnector(tlid, type, acct_id, data, mode) {
|
||||
var mute = getFilterTypeByAcct(acct_id, type)
|
||||
reload(type, '', acct_id, tlid, data, mute, '', voice, mode)
|
||||
}
|
||||
M.toast({ html: lang.lang_tl_reconnect, displayLength: 2000 })
|
||||
Mtoast({ html: lang.lang_tl_reconnect, displayLength: 2000 })
|
||||
}
|
||||
function columnReload(tlid, type) {
|
||||
$('#notice_icon_' + tlid).addClass('red-text')
|
||||
|
Reference in New Issue
Block a user