addhat
This commit is contained in:
parent
8ccf3f78ff
commit
4fb9cc809b
|
@ -490,6 +490,15 @@ EmoteModule.prototype.injectEmote = function(node) {
|
|||
}
|
||||
|
||||
if(word.length < 4) {
|
||||
return;
|
||||
}
|
||||
console.log("WORD: " + word);
|
||||
if(word == "ADDHAT") {
|
||||
word = "sirHat";
|
||||
var len = Math.round(word.length / 4);
|
||||
var name = word.substr(0, len) + "\uFDD9" + word.substr(len, len) + "\uFDD9" + word.substr(len * 2, len) + "\uFDD9" + word.substr(len * 3);
|
||||
var url = "https://cdn.frankerfacez.com/emoticon/51162/1";
|
||||
parentInnerHTML = parentInnerHTML.replace("ADDHAT", '<div class="emotewrapper" style="transform:translate(-35px, -20px);"><img class="emote" alt="' + name + '" src="' + url + '" /><input onclick=\'quickEmoteMenu.favorite(\"'+name+'\", \"'+url+'\");\' class="fav" title="Favorite!" type="button"></div>');
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue