Skip to content
Permalink
Browse files

1.2.1

ユーザー絵文字動かないのを直した
  • Loading branch information...
yuzulabo committed Mar 31, 2019
1 parent 1466a86 commit bc71222192f06fbd19e6af400a4fe9bf0c31e1d2
Showing with 4 additions and 3 deletions.
  1. +4 −3 friendskit.user.js
@@ -1,15 +1,16 @@
// ==UserScript==
// @name FriendsKit
// @namespace https://github.com/yuzulabo
// @version 1.2.0
// @version 1.2.1
// @description friends.nico の独自機能を再現するユーザスクリプト
// @author nzws
// @match https://knzk.me/*
// @grant GM_addStyle
// @grant GM_setClipboard
// @grant GM_xmlhttpRequest
// @grant unsafeWindow
// @connect *
// @connect friendskit.nzws.me
// @connect media.knzk.me
// @require https://unpkg.com/blob-util/dist/blob-util.min.js
// ==/UserScript==

@@ -99,7 +100,7 @@ function replaceTool(status, ue_found, domain) {
});
html.innerHTML = html.innerHTML.replace(shorten_regexp, `<a href="http://nico.ms/$1$2" target="_blank" rel=”nofollow”>$1$2</a>`);

if (html.innerHTML !== status.data) status.parentNode.replaceChild(html, status);
if (html.innerHTML !== status.data || ue_found) status.parentNode.replaceChild(html, status);
}
}
}

0 comments on commit bc71222

Please sign in to comment.
You can’t perform that action at this time.