Fav ct had had bugs yet. and fix some bugs...(TheDesk Akane (16.0.3))
This commit is contained in:
@@ -190,6 +190,7 @@ function context(id, acct_id) {
|
||||
console.error(error);
|
||||
}).then(function(json) {
|
||||
if(domain=="misskey.xyz"){
|
||||
json.reverse();
|
||||
console.log(json);
|
||||
var templete = misskeyParse(json, '', acct_id,"","",[]);
|
||||
$("#toot-reply").html(templete);
|
||||
|
@@ -131,7 +131,7 @@ function misskeyParse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
||||
if (mix == "notf") {
|
||||
if (toot.type == "reply") {
|
||||
var what = lang_parse_mentioned[lang];
|
||||
var icon = '<i class="big-text fa fa-share teal"></i>';
|
||||
var icon = '<i class="big-text fa fa-share teal-text"></i>';
|
||||
} else if (toot.type == "renote") {
|
||||
var what = lang_misskeyparse_renoted[lang];
|
||||
var icon = '<i class="big-text fa fa-retweet light-blue-text"></i>';
|
||||
@@ -326,7 +326,7 @@ function misskeyParse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
||||
content=content.replace(/<motion>(.+)<\/motion>/gi, '<span class="shake">$1</span>')
|
||||
content=content.replace(/\*\*\*([^*]+)\*\*\*/gi, '<span class="shake" style="font-size:200%">$1</span>')
|
||||
content=content.replace(/\*\*([^*]+)\*\*/gi, '<b>$1</b>')
|
||||
content=content.replace(/^(.+)\s検索$/gmi, '<div class="input-field"><i class="material-icons prefix">search</i><input type="text" style="width:calc( 60% - 80px);" name="q" value="$1" id="srcbox_'+toot.id+'"><label for="src" data-trans="src" class="">検索</label><button class="btn waves-effect indigo" style="width:40%;" data-trans-i="src" onclick="goGoogle(\''+toot.id+'\')">検索</button></div>')
|
||||
content=content.replace(/^(.+)\s(検索|search)$/gmi, '<div class="input-field"><i class="material-icons prefix">search</i><input type="text" style="width:calc( 60% - 80px);" name="q" value="$1" id="srcbox_'+toot.id+'"><label for="src" data-trans="src" class="">検索</label><button class="btn waves-effect indigo" style="width:40%;" data-trans-i="src" onclick="goGoogle(\''+toot.id+'\')">検索</button></div>')
|
||||
content=content.replace(/\[(.+)\]\(<a href="(http(s)?:\/\/[\x21-\x7e]+)".+\)/gi,'<a href="$2" target="_blank">$1</a>');
|
||||
|
||||
content=twemoji.parse(content);
|
||||
|
@@ -245,20 +245,21 @@ function notfToggle(acct, tlid) {
|
||||
}
|
||||
function notfCanceler(acct){
|
||||
$(".notf-reply_" + acct).text(0);
|
||||
localStorage.removeItem("notf-reply_" + acct_id)
|
||||
localStorage.removeItem("notf-reply_" + acct)
|
||||
$(".notf-reply_" + acct).addClass("hide");
|
||||
$(".notf-fav_" + acct).text(0);
|
||||
localStorage.removeItem("notf-fav_" + acct_id)
|
||||
localStorage.removeItem("notf-fav_" + acct)
|
||||
$(".notf-fav_" + acct).addClass("hide");
|
||||
$(".notf-bt_" + acct).text(0);
|
||||
localStorage.removeItem("notf-bt_" + acct_id)
|
||||
localStorage.removeItem("notf-bt_" + acct)
|
||||
$(".notf-bt_" + acct).addClass("hide");
|
||||
$(".notf-follow_" + acct).text(0);
|
||||
localStorage.removeItem("notf-follow_" + acct_id)
|
||||
localStorage.removeItem("notf-follow_" + acct)
|
||||
$(".notf-follow_" + acct).addClass("hide");
|
||||
$(".notf-icon_" + acct).removeClass("red-text");
|
||||
}
|
||||
function allNotfRead(){
|
||||
console.log(localStorage.getItem("notf-fav_2"));
|
||||
var multi = localStorage.getItem("multi");
|
||||
if (!multi) {
|
||||
var obj = [{
|
||||
|
@@ -157,18 +157,14 @@ function parse(obj, mix, acct_id, tlid, popup, mutefilter) {
|
||||
} else if (toot.type == "reblog") {
|
||||
var what = lang_parse_bted[lang];
|
||||
var icon = "fa-retweet light-blue-text";
|
||||
if(localStorage.getItem("domain_" + acct_id)=="imastodon.net" && !locale){
|
||||
what = ":「わかるわ」";
|
||||
}else if(localStorage.getItem("domain_" + acct_id)=="mstdn.osaka" && !locale){
|
||||
what = "がしばきました";
|
||||
if(!locale && localStorage.getItem("bt_" + acct_id)){
|
||||
what = localStorage.getItem("bt_" + acct_id);
|
||||
}
|
||||
} else if (toot.type == "favourite") {
|
||||
var what = lang_parse_faved[lang];
|
||||
var icon = "fa-star yellow-text";
|
||||
if(localStorage.getItem("domain_" + acct_id)=="imastodon.net" && !locale){
|
||||
what = "の頭にティンときたようです";
|
||||
}else if(localStorage.getItem("domain_" + acct_id)=="mstdn.osaka" && !locale){
|
||||
what = "がええやんと言いました";
|
||||
if(!locale && localStorage.getItem("fav_" + acct_id)){
|
||||
what = localStorage.getItem("fav_" + acct_id);
|
||||
}
|
||||
}
|
||||
var noticetext = '<span class="cbadge cbadge-hover"title="' + date(toot.created_at,
|
||||
@@ -637,10 +633,8 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
||||
var auth = "";
|
||||
}
|
||||
var ftxt=lang_parse_followed[lang];
|
||||
if(localStorage.getItem("domain_" + acct_id)=="imastodon.net" && !locale){
|
||||
ftxt = "名刺をいただきました";
|
||||
}else if(localStorage.getItem("domain_" + acct_id)=="mstdn.osaka" && !locale){
|
||||
ftxt = "ツルまれました";
|
||||
if(!locale && localStorage.getItem("follow_" + acct_id)){
|
||||
ftxt = localStorage.getItem("follow_" + acct_id);
|
||||
}
|
||||
if(popup > 0 || popup==-1 || notf){
|
||||
var notftext='<span class="cbadge" title="' + date(toot.created_at,
|
||||
|
Reference in New Issue
Block a user