1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-15 17:46:55 +00:00

3.5.315. Emote tab completion for whisper windows. Transparent Colored badges. Dynamically generate Twitch badge CSS. CSS tweaks. Fix a bug where the chat settings menu wouldn't be hooked properly and modernized it. Closes #27. Closes #26. Closes #24.

This commit is contained in:
SirStendec 2016-10-05 23:07:10 -04:00
parent 21e823a15c
commit 7e24fa6c0e
16 changed files with 320 additions and 243 deletions

View file

@ -16,7 +16,8 @@ FFZ.prototype.setup_channel = function() {
// Settings stuff!
document.body.classList.toggle("ffz-hide-view-count", !this.settings.channel_views);
document.body.classList.toggle('ffz-theater-stats', this.settings.theater_stats);
document.body.classList.toggle('ffz-theater-stats', this.settings.theater_stats === 2);
document.body.classList.toggle('ffz-theater-basic-stats', this.settings.theater_stats > 0);
var banner_hidden = this.settings.hide_channel_banner;
banner_hidden = banner_hidden === 1 ? this.settings.channel_bar_bottom : banner_hidden > 0;
@ -1386,15 +1387,25 @@ FFZ.settings_info.channel_title_top = {
FFZ.settings_info.theater_stats = {
type: "boolean",
value: true,
type: "select",
options: {
0: "Disabled",
1: "Basic",
2: "Full"
},
value: 2,
process_value: utils.process_int(2, 0, 2),
no_mobile: true,
category: "Channel Metadata",
name: "Display on Theater Mode Hover",
help: "Show the channel metadata and actions over the video player in theater mode when you hover it with your mouse.",
on_update: function(val) {
document.body.classList.toggle('ffz-theater-stats', val);
document.body.classList.toggle('ffz-theater-stats', val === 2);
document.body.classList.toggle('ffz-theater-basic-stats', val > 0);
}
};