mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-05 22:00:54 +00:00
3.5.305. Dark CSS tweaks. Add Twitch Prime support. Better channel redesign support. Fix hosting bugs. Fix Emoticon menu bugs. Add github buttons to About page.
This commit is contained in:
parent
8280b93c97
commit
7d35b5c8c3
14 changed files with 369 additions and 107 deletions
|
@ -82,6 +82,7 @@ FFZ.prototype.setup_my_emotes = function() {
|
|||
this._twitch_badges = {};
|
||||
this._twitch_badges["--global--"] = "//cdn.frankerfacez.com/script/twitch_logo.png";
|
||||
this._twitch_badges["--turbo-faces--"] = this._twitch_badges["turbo"] = "//cdn.frankerfacez.com/script/turbo_badge.png";
|
||||
this._twitch_badges["--prime-faces--"] = this._twitch_badges["prime"] = "//cdn.frankerfacez.com/badges/twitch/premium/1/1.png";
|
||||
}
|
||||
|
||||
|
||||
|
@ -240,18 +241,18 @@ FFZ.menu_pages.myemotes = {
|
|||
// Finally, sort and add them all.
|
||||
sets.sort(function(a,b) {
|
||||
var an = a[0], bn = b[0];
|
||||
if ( an === "turbo" || an === "--turbo-faces--" )
|
||||
if ( an === "prime" || an === "--prime-faces--" || an === "turbo" || an === "--turbo-faces--" )
|
||||
an = "zza|" + an;
|
||||
else if ( an === "global" || (an && an.substr(0,16) === "global emoticons") || an === "--global--" )
|
||||
an = "zzy|" + an;
|
||||
else if ( an.substr(0,5) === "emoji" )
|
||||
else if ( an && an.substr(0,5) === "emoji" )
|
||||
an = "zzz|" + an;
|
||||
|
||||
if ( bn === "turbo" || bn === "--turbo-faces--" )
|
||||
if ( bn === "prime" || bn === "--prime-faces--" || bn === "turbo" || bn === "--turbo-faces--" )
|
||||
bn = "zza|" + bn;
|
||||
else if ( bn === "global" || (bn && bn.substr(0,16) === "global emoticons") || bn === "--global--" )
|
||||
bn = "zzy|" + bn;
|
||||
else if ( bn.substr(0,5) === "emoji" )
|
||||
else if ( bn && bn.substr(0,5) === "emoji" )
|
||||
bn = "zzz|" + bn;
|
||||
|
||||
if ( an < bn ) return -1;
|
||||
|
@ -402,6 +403,8 @@ FFZ.menu_pages.myemotes = {
|
|||
title = "Global Emoticons";
|
||||
else if ( channel_id === "turbo" || channel_id === "--turbo-faces--" )
|
||||
title = "Twitch Turbo";
|
||||
else if ( channel_id === "prime" || channel_id === "--prime-faces--" )
|
||||
title = "Twitch Prime";
|
||||
else
|
||||
title = FFZ.get_capitalization(channel_id, function(name) {
|
||||
heading.innerHTML = '<span class="right">Twitch</span>' + utils.sanitize(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue