Fixed emote blacklist and added new emote modifiers
This commit is contained in:
parent
8d083ccc5c
commit
0eb921b303
45
css/main.css
45
css/main.css
|
@ -151,29 +151,72 @@
|
|||
.emoteflip, .emotespinflip {
|
||||
transform:scaleX(-1);
|
||||
}
|
||||
.emotespin, .emotespinflip {
|
||||
.emotespin {
|
||||
animation: 1s emote-spin infinite linear;
|
||||
}
|
||||
.emote1spin {
|
||||
animation: 1s emote-spin-reverse infinite linear;
|
||||
}
|
||||
.emotespin2 {
|
||||
animation: 0.5s emote-spin infinite linear;
|
||||
}
|
||||
.emote2spin {
|
||||
animation: 0.5s emote-spin-reverse infinite linear;
|
||||
}
|
||||
.emotespin3 {
|
||||
animation: 0.2s emote-spin infinite linear;
|
||||
}
|
||||
.emote3spin {
|
||||
animation: 0.2s emote-spin-reverse infinite linear;
|
||||
}
|
||||
.emotepulse {
|
||||
animation: 1s emote-pulse infinite linear;
|
||||
}
|
||||
.emotetr {
|
||||
transform:translateX(-3px);
|
||||
}
|
||||
.emotebl {
|
||||
transform:translateY(-3px);
|
||||
}
|
||||
.emotebr {
|
||||
transform:translate(-3px, -3px);
|
||||
}
|
||||
.emoteshake {
|
||||
animation: 1s emote-shake infinite linear;
|
||||
}
|
||||
|
||||
@keyframes emote-spin {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
@keyframes emote-spin-reverse {
|
||||
from { transform: rotate(0deg); }
|
||||
to { transform: rotate(-360deg); }
|
||||
}
|
||||
|
||||
@keyframes emote-pulse {
|
||||
0% {-webkit-transform: scale(1, 1);}
|
||||
50% {-webkit-transform: scale(1.2, 1.2);}
|
||||
100% {-webkit-transform: scale(1, 1);}
|
||||
}
|
||||
@keyframes emote-shake {
|
||||
10%, 90% {
|
||||
transform: translate3d(-1px, 0, 0);
|
||||
}
|
||||
|
||||
20%, 80% {
|
||||
transform: translate3d(2px, 0, 0);
|
||||
}
|
||||
|
||||
30%, 50%, 70% {
|
||||
transform: translate3d(-4px, 0, 0);
|
||||
}
|
||||
|
||||
40%, 60% {
|
||||
transform: translate3d(4px, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
#tc-settings-panel {
|
||||
position:fixed;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -503,12 +503,10 @@ EmoteModule.prototype.injectEmote = function (node) {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($.inArray(word, bemotes) != -1) return;
|
||||
|
||||
var useEmoteCss = false;
|
||||
var sWord = word;
|
||||
var emoteClass = "";
|
||||
var allowedClasses = ["emoteflip", "emotespin", "emotepulse", "emotespinflip", "emotespin2", "emotespin3"];
|
||||
var allowedClasses = ["emoteflip", "emotespin", "emotepulse", "emotespin2", "emotespin3", "emote1spin", "emote2spin", "emote3spin", "emotetr", "emotebl", "emotebr", "emoteshake"];
|
||||
if(word.indexOf(":") > -1) {
|
||||
userEmoteCss = true;
|
||||
sWord = word.split(":")[0];
|
||||
|
@ -519,6 +517,7 @@ EmoteModule.prototype.injectEmote = function (node) {
|
|||
}
|
||||
}
|
||||
}
|
||||
if ($.inArray(sWord, bemotes) != -1) return;
|
||||
|
||||
if (emotesTwitch.emotes.hasOwnProperty(sWord)) {
|
||||
var len = Math.round(sWord.length / 4);
|
||||
|
|
|
@ -19,8 +19,8 @@ function inject(){var parentInnerHTML=parent.innerHTML;var words=parentInnerHTML
|
|||
markup.addClass("spoiler");markup.on("click",function(){$(this).removeClass("spoiler");spoilered.push($(this).attr("data-reactid"));});return;}
|
||||
if(word.length<4){return;}
|
||||
if(word=="ClauZ"){parentInnerHTML=parentInnerHTML.replace("ClauZ",'<img src="https://cdn.frankerfacez.com/emoticon/70852/1" style="width:25px; transform:translate(-29px, -14px);"></img>');return;}
|
||||
if($.inArray(word,bemotes)!=-1)return;var useEmoteCss=false;var sWord=word;var emoteClass="";var allowedClasses=["emoteflip","emotespin","emotepulse","emotespinflip","emotespin2","emotespin3"];if(word.indexOf(":")>-1){userEmoteCss=true;sWord=word.split(":")[0];if(settingsCookie["bda-es-8"]){emoteClass="emote"+word.split(":")[1];if(allowedClasses.indexOf(emoteClass)<0){emoteClass="";}}}
|
||||
if(emotesTwitch.emotes.hasOwnProperty(sWord)){var len=Math.round(sWord.length / 4);var name=sWord.substr(0,len)+"\uFDD9"+sWord.substr(len,len)+"\uFDD9"+sWord.substr(len*2,len)+"\uFDD9"+sWord.substr(len*3);var url=twitchEmoteUrlStart+emotesTwitch.emotes[sWord].image_id+twitchEmoteUrlEnd;parentInnerHTML=parentInnerHTML.replace(word,'<div class="emotewrapper"><img class="emote '+emoteClass+'" alt="'+name+'" src="'+url+'"/><input onclick=\'quickEmoteMenu.favorite(\"'+name+'\", \"'+url+'\");\' class="fav" title="Favorite!" type="button"></div>');return;}
|
||||
var useEmoteCss=false;var sWord=word;var emoteClass="";var allowedClasses=["emoteflip","emotespin","emotepulse","emotespin2","emotespin3","emote1spin","emote2spin","emote3spin","emotetr","emotebl","emotebr","emoteshake"];if(word.indexOf(":")>-1){userEmoteCss=true;sWord=word.split(":")[0];if(settingsCookie["bda-es-8"]){emoteClass="emote"+word.split(":")[1];if(allowedClasses.indexOf(emoteClass)<0){emoteClass="";}}}
|
||||
if($.inArray(sWord,bemotes)!=-1)return;if(emotesTwitch.emotes.hasOwnProperty(sWord)){var len=Math.round(sWord.length / 4);var name=sWord.substr(0,len)+"\uFDD9"+sWord.substr(len,len)+"\uFDD9"+sWord.substr(len*2,len)+"\uFDD9"+sWord.substr(len*3);var url=twitchEmoteUrlStart+emotesTwitch.emotes[sWord].image_id+twitchEmoteUrlEnd;parentInnerHTML=parentInnerHTML.replace(word,'<div class="emotewrapper"><img class="emote '+emoteClass+'" alt="'+name+'" src="'+url+'"/><input onclick=\'quickEmoteMenu.favorite(\"'+name+'\", \"'+url+'\");\' class="fav" title="Favorite!" type="button"></div>');return;}
|
||||
if(subEmotesTwitch.hasOwnProperty(sWord)){var len=Math.round(sWord.length / 4);var name=sWord.substr(0,len)+"\uFDD9"+sWord.substr(len,len)+"\uFDD9"+sWord.substr(len*2,len)+"\uFDD9"+sWord.substr(len*3);var url=twitchEmoteUrlStart+subEmotesTwitch[sWord]+twitchEmoteUrlEnd;parentInnerHTML=parentInnerHTML.replace(word,'<div class="emotewrapper"><img class="emote '+emoteClass+'" alt="'+name+'" src="'+url+'"/><input onclick=\'quickEmoteMenu.favorite(\"'+name+'\", \"'+url+'\");\' class="fav" title="Favorite!" type="button"></div>');return;}
|
||||
if(typeof emotesFfz!=='undefined'&&settingsCookie["bda-es-1"]){if(emotesFfz.hasOwnProperty(sWord)){var len=Math.round(sWord.length / 4);var name=sWord.substr(0,len)+"\uFDD9"+sWord.substr(len,len)+"\uFDD9"+sWord.substr(len*2,len)+"\uFDD9"+sWord.substr(len*3);var url=ffzEmoteUrlStart+emotesFfz[sWord]+ffzEmoteUrlEnd;parentInnerHTML=parentInnerHTML.replace(word,'<div class="emotewrapper"><img class="emote '+emoteClass+'" alt="'+name+'" src="'+url+'"/><input onclick=\'quickEmoteMenu.favorite(\"'+name+'\", \"'+url+'\");\' class="fav" title="Favorite!" type="button"></div>');return;}}
|
||||
if(typeof emotesBTTV!=='undefined'&&settingsCookie["bda-es-2"]){if(emotesBTTV.hasOwnProperty(sWord)){var len=Math.round(sWord.length / 4);var name=sWord.substr(0,len)+"\uFDD9"+sWord.substr(len,len)+"\uFDD9"+sWord.substr(len*2,len)+"\uFDD9"+sWord.substr(len*3);var url=emotesBTTV[sWord];parentInnerHTML=parentInnerHTML.replace(word,'<div class="emotewrapper"><img class="emote '+emoteClass+'" alt="'+name+'" src="'+url+'"/><input onclick=\'quickEmoteMenu.favorite(\"'+name+'\", \"'+url+'\");\' class="fav" title="Favorite!" type="button"></div>');return;}}
|
||||
|
|
Loading…
Reference in New Issue