From 07848130476ced41805ee06bc4cd250907b4113b Mon Sep 17 00:00:00 2001 From: SirStendec Date: Thu, 27 Oct 2016 21:50:56 -0400 Subject: [PATCH] 3.5.357. Fix chat replay darkening. Tab-completion bugfixes for emotes without prefixes. Split changelog into two files to avoid a big download when fetching just the recent changes. --- changelog.html | 2186 +-------------------------------------- old_changes.html | 2175 ++++++++++++++++++++++++++++++++++++++ src/ember/chat-input.js | 68 +- src/ember/sidebar.js | 1 - src/ember/vod-chat.js | 21 +- src/main.js | 2 +- src/ui/about_page.js | 5 +- 7 files changed, 2246 insertions(+), 2212 deletions(-) create mode 100644 old_changes.html diff --git a/changelog.html b/changelog.html index 43236294..e3c81aee 100644 --- a/changelog.html +++ b/changelog.html @@ -1,3 +1,10 @@ +
3.5.357
+ +
3.5.356
-
3.5.346
- - -
3.5.345
- - -
3.5.344
- - -
3.5.343
- - -
3.5.342
- - -
3.5.341
- - -
3.5.340
- - -
3.5.339
- - -
3.5.338
- - -
3.5.337
- - -
3.5.336
- - -
3.5.335
- - -
3.5.334
- - -
3.5.333
- - -
3.5.332
- - -
3.5.331
- - -
3.5.330
- - -
3.5.329
- - -
3.5.328
- - -
3.5.327
- - -
3.5.326
- - -
3.5.325
- - -
3.5.324
- - -
3.5.323
- - -
3.5.322
- - -
3.5.321
- - -
3.5.320
- - -
3.5.319
- - -
3.5.318
- - -
3.5.317
- - -
3.5.316
- - -
3.5.315
- - -
3.5.314
- - -
3.5.313
- - -
3.5.312
- - -
3.5.311
- - -
3.5.309
- - -
3.5.308
- - -
3.5.307
- - -
3.5.306
- - -
3.5.305
- - -
3.5.304
- - -
3.5.303
- - -
3.5.302
- - -
3.5.301
- - -
3.5.300
- - -
3.5.299
- - -
3.5.298
- - -
3.5.297
- - -
3.5.296
- - -
3.5.295
- - -
3.5.294
- - -
3.5.293
- - -
3.5.292
- - -
3.5.291
- - -
3.5.290
- - -
3.5.289
- - -
3.5.288
- - -
3.5.287
- - -
3.5.286
- - -
3.5.285
- - -
3.5.284
- - -
3.5.283
- - -
3.5.282
- - -
3.5.281
- - -
3.5.280
- - -
3.5.279
- - -
3.5.278
- - -
3.5.277
- - -
3.5.276
- - -
3.5.275
- - -
3.5.274
- - -
3.5.273
- - -
3.5.272
- - -
3.5.271
- - -
3.5.270
- - -
3.5.269
- - -
3.5.268
- - -
3.5.267
- - -
3.5.266
- - -
3.5.265
- - -
3.5.264
- - -
3.5.263
- - -
3.5.262
- - -
3.5.261
- - -
3.5.260
- - -
3.5.259
- - -
3.5.258
- - -
3.5.257
- - -
3.5.256
- - -
3.5.255
- - -
3.5.254
- - -
3.5.253
- - -
3.5.252
- - -
3.5.251
- - -
3.5.250
- - -
3.5.249
- - -
3.5.248
- - -
3.5.247
- - -
3.5.246
- - -
3.5.245
- - -
3.5.244
- - -
3.5.243
- - -
3.5.242
- -
View Older
-
- -
3.5.241
- - -
3.5.240
- - -
3.5.239
- - -
3.5.238
- - -
3.5.237
- - -
3.5.236
- - -
3.5.235
- - -
3.5.234
- - -
3.5.233
- - -
3.5.232
- - -
3.5.231
- - -
3.5.230
- - -
3.5.229
- - -
3.5.228
- - -
3.5.227
- - -
3.5.226
- - -
3.5.225
- - -
3.5.224
- - -
3.5.223
- - -
3.5.222
- - -
3.5.221
- - -
3.5.220
- - -
3.5.219
- - -
3.5.218
- - -
3.5.217
- - -
3.5.216
- - -
3.5.215
- - -
3.5.214
- - -
3.5.213
- - -
3.5.212
- - -
3.5.211
- - -
3.5.210
- - -
3.5.209
- - -
3.5.208
- - -
3.5.207
- - -
3.5.206
- - -
3.5.205
- - -
3.5.204
- - -
3.5.203
- - -
3.5.202
- - -
3.5.201
- - -
3.5.200
- - -
3.5.199
- - -
3.5.198
- - -
3.5.197
- - -
3.5.196
- - -
3.5.195
- - -
3.5.194
- - -
3.5.193
- - -
3.5.192
- - -
3.5.191
- - -
3.5.190
- - -
3.5.189
- - -
3.5.188
- - -
3.5.187
- - -
3.5.186
- - -
3.5.185
- - -
3.5.184
- - -
3.5.183
- - -
3.5.182
- - -
3.5.181
- - -
3.5.180
- - -
3.5.179
- - -
3.5.178
- - -
3.5.177
- - -
3.5.176
- - -
3.5.175
- - -
3.5.174
- - -
3.5.173
- - -
3.5.172
- - -
3.5.171
- - -
3.5.170
- - -
3.5.169
- - -
3.5.168
- - -
3.5.167
- - -
3.5.166
- - -
3.5.165
- - -
3.5.164
- - -
3.5.163
- - -
3.5.162
- - -
3.5.161
- - -
3.5.160
- - -
3.5.159
- - -
3.5.158
- - -
3.5.157
- - -
3.5.156
- - -
3.5.155
- - -
3.5.154
- - -
3.5.153
- - -
3.5.152
- - -
3.5.151
- - -
3.5.150
- - -
3.5.149
- - -
3.5.148
- - -
3.5.147
- - -
3.5.146
- - -
3.5.145
- - -
3.5.144
- - -
3.5.143
- - -
3.5.142
- - -
3.5.141
- - -
3.5.140
- - -
3.5.139
- - -
3.5.138
- - -
3.5.137
- - -
3.5.136
- - -
3.5.135
- - -
3.5.134
- - -
3.5.133
- - -
3.5.132
- - -
3.5.131
- - -
3.5.130
- - -
3.5.129
- - -
3.5.128
- - -
3.5.127
- - -
3.5.126
- - -
3.5.125
- - -
3.5.124
- - -
3.5.123
- - -
3.5.122
- - -
3.5.121
- - -
3.5.120
- - -
3.5.119
- - -
3.5.118
- - -
3.5.117
- - -
3.5.116
- - -
3.5.115
- - -
3.5.114
- - -
3.5.113
- - -
3.5.112
- - -
3.5.111
- - -
3.5.110
- - -
3.5.109
- - -
3.5.108
- - -
3.5.107
- - -
3.5.106
- - -
3.5.105
- - -
3.5.104
- - -
3.5.103
- - -
3.5.102
- - -
3.5.101
- - -
3.5.100
- - -
3.5.99
- - -
3.5.98
- - -
3.5.97
- - -
3.5.96
- - -
3.5.95
- - -
3.5.94
- - -
3.5.93
- - -
3.5.92
- - -
3.5.91
- - -
3.5.90
- - -
3.5.89
- - -
3.5.88
- - -
3.5.87
- - -
3.5.86
- - -
3.5.85
- - -
3.5.84
- - -
3.5.83
- - -
3.5.82
- - -
3.5.81
- - -
3.5.80
- - -
3.5.79
- - -
3.5.78
- - -
3.5.77
- - -
3.5.76
- - -
3.5.75
- - -
3.5.74
- - -
3.5.73
- - -
3.5.72
- - -
3.5.71
- - -
3.5.70
- - -
3.5.69
- - -
3.5.68
- - -
3.5.67
- - -
3.5.66
- - -
3.5.65
- - -
3.5.64
- - -
3.5.63
- - -
3.5.62
- - -
3.5.61
- - -
3.5.60
- - -
3.5.59
- - -
3.5.58
- - -
3.5.57
- - -
3.5.56
- - -
3.5.55
- - -
3.5.54
- - -
3.5.53
- - -
3.5.52
- - -
3.5.51
- - -
3.5.50
- - -
3.5.49
- - -
3.5.48
- - -
3.5.47
- - -
3.5.46
- - -
3.5.45
- - -
3.5.44
- - -
3.5.43
- - -
3.5.42
- - -
3.5.41
- - -
3.5.41
- - -
3.5.40
- - -
3.5.39
- - -
3.5.38
- - -
3.5.37
- - -
3.5.36
- - -
3.5.35
- - -
3.5.34
- - -
3.5.33
- - -
3.5.32
- - -
3.5.31
- - -
3.5.30
- - -
3.5.29
- - -
3.5.28
- - -
3.5.27
- - -
3.5.26
- - -
3.5.25
- - -
3.5.24
- - -
3.5.23
- - -
3.5.22
- - -
3.5.21
- - -
3.5.20
- - -
3.5.18
- - -
3.5.17
- - -
3.5.17
- - -
3.5.16
- - -
3.5.15
- - -
3.5.14
- - -
3.5.13
- - -
3.5.12
- - -
3.5.11
- - -
3.5.10
- - -
3.5.9
- - -
3.5.8
- - -
3.5.7
- - -
< 3.5.7
- -
\ No newline at end of file +
\ No newline at end of file diff --git a/old_changes.html b/old_changes.html new file mode 100644 index 00000000..8702b69c --- /dev/null +++ b/old_changes.html @@ -0,0 +1,2175 @@ +
3.5.346
+ + +
3.5.345
+ + +
3.5.344
+ + +
3.5.343
+ + +
3.5.342
+ + +
3.5.341
+ + +
3.5.340
+ + +
3.5.339
+ + +
3.5.338
+ + +
3.5.337
+ + +
3.5.336
+ + +
3.5.335
+ + +
3.5.334
+ + +
3.5.333
+ + +
3.5.332
+ + +
3.5.331
+ + +
3.5.330
+ + +
3.5.329
+ + +
3.5.328
+ + +
3.5.327
+ + +
3.5.326
+ + +
3.5.325
+ + +
3.5.324
+ + +
3.5.323
+ + +
3.5.322
+ + +
3.5.321
+ + +
3.5.320
+ + +
3.5.319
+ + +
3.5.318
+ + +
3.5.317
+ + +
3.5.316
+ + +
3.5.315
+ + +
3.5.314
+ + +
3.5.313
+ + +
3.5.312
+ + +
3.5.311
+ + +
3.5.309
+ + +
3.5.308
+ + +
3.5.307
+ + +
3.5.306
+ + +
3.5.305
+ + +
3.5.304
+ + +
3.5.303
+ + +
3.5.302
+ + +
3.5.301
+ + +
3.5.300
+ + +
3.5.299
+ + +
3.5.298
+ + +
3.5.297
+ + +
3.5.296
+ + +
3.5.295
+ + +
3.5.294
+ + +
3.5.293
+ + +
3.5.292
+ + +
3.5.291
+ + +
3.5.290
+ + +
3.5.289
+ + +
3.5.288
+ + +
3.5.287
+ + +
3.5.286
+ + +
3.5.285
+ + +
3.5.284
+ + +
3.5.283
+ + +
3.5.282
+ + +
3.5.281
+ + +
3.5.280
+ + +
3.5.279
+ + +
3.5.278
+ + +
3.5.277
+ + +
3.5.276
+ + +
3.5.275
+ + +
3.5.274
+ + +
3.5.273
+ + +
3.5.272
+ + +
3.5.271
+ + +
3.5.270
+ + +
3.5.269
+ + +
3.5.268
+ + +
3.5.267
+ + +
3.5.266
+ + +
3.5.265
+ + +
3.5.264
+ + +
3.5.263
+ + +
3.5.262
+ + +
3.5.261
+ + +
3.5.260
+ + +
3.5.259
+ + +
3.5.258
+ + +
3.5.257
+ + +
3.5.256
+ + +
3.5.255
+ + +
3.5.254
+ + +
3.5.253
+ + +
3.5.252
+ + +
3.5.251
+ + +
3.5.250
+ + +
3.5.249
+ + +
3.5.248
+ + +
3.5.247
+ + +
3.5.246
+ + +
3.5.245
+ + +
3.5.244
+ + +
3.5.243
+ + +
3.5.242
+ + +
3.5.241
+ + +
3.5.240
+ + +
3.5.239
+ + +
3.5.238
+ + +
3.5.237
+ + +
3.5.236
+ + +
3.5.235
+ + +
3.5.234
+ + +
3.5.233
+ + +
3.5.232
+ + +
3.5.231
+ + +
3.5.230
+ + +
3.5.229
+ + +
3.5.228
+ + +
3.5.227
+ + +
3.5.226
+ + +
3.5.225
+ + +
3.5.224
+ + +
3.5.223
+ + +
3.5.222
+ + +
3.5.221
+ + +
3.5.220
+ + +
3.5.219
+ + +
3.5.218
+ + +
3.5.217
+ + +
3.5.216
+ + +
3.5.215
+ + +
3.5.214
+ + +
3.5.213
+ + +
3.5.212
+ + +
3.5.211
+ + +
3.5.210
+ + +
3.5.209
+ + +
3.5.208
+ + +
3.5.207
+ + +
3.5.206
+ + +
3.5.205
+ + +
3.5.204
+ + +
3.5.203
+ + +
3.5.202
+ + +
3.5.201
+ + +
3.5.200
+ + +
3.5.199
+ + +
3.5.198
+ + +
3.5.197
+ + +
3.5.196
+ + +
3.5.195
+ + +
3.5.194
+ + +
3.5.193
+ + +
3.5.192
+ + +
3.5.191
+ + +
3.5.190
+ + +
3.5.189
+ + +
3.5.188
+ + +
3.5.187
+ + +
3.5.186
+ + +
3.5.185
+ + +
3.5.184
+ + +
3.5.183
+ + +
3.5.182
+ + +
3.5.181
+ + +
3.5.180
+ + +
3.5.179
+ + +
3.5.178
+ + +
3.5.177
+ + +
3.5.176
+ + +
3.5.175
+ + +
3.5.174
+ + +
3.5.173
+ + +
3.5.172
+ + +
3.5.171
+ + +
3.5.170
+ + +
3.5.169
+ + +
3.5.168
+ + +
3.5.167
+ + +
3.5.166
+ + +
3.5.165
+ + +
3.5.164
+ + +
3.5.163
+ + +
3.5.162
+ + +
3.5.161
+ + +
3.5.160
+ + +
3.5.159
+ + +
3.5.158
+ + +
3.5.157
+ + +
3.5.156
+ + +
3.5.155
+ + +
3.5.154
+ + +
3.5.153
+ + +
3.5.152
+ + +
3.5.151
+ + +
3.5.150
+ + +
3.5.149
+ + +
3.5.148
+ + +
3.5.147
+ + +
3.5.146
+ + +
3.5.145
+ + +
3.5.144
+ + +
3.5.143
+ + +
3.5.142
+ + +
3.5.141
+ + +
3.5.140
+ + +
3.5.139
+ + +
3.5.138
+ + +
3.5.137
+ + +
3.5.136
+ + +
3.5.135
+ + +
3.5.134
+ + +
3.5.133
+ + +
3.5.132
+ + +
3.5.131
+ + +
3.5.130
+ + +
3.5.129
+ + +
3.5.128
+ + +
3.5.127
+ + +
3.5.126
+ + +
3.5.125
+ + +
3.5.124
+ + +
3.5.123
+ + +
3.5.122
+ + +
3.5.121
+ + +
3.5.120
+ + +
3.5.119
+ + +
3.5.118
+ + +
3.5.117
+ + +
3.5.116
+ + +
3.5.115
+ + +
3.5.114
+ + +
3.5.113
+ + +
3.5.112
+ + +
3.5.111
+ + +
3.5.110
+ + +
3.5.109
+ + +
3.5.108
+ + +
3.5.107
+ + +
3.5.106
+ + +
3.5.105
+ + +
3.5.104
+ + +
3.5.103
+ + +
3.5.102
+ + +
3.5.101
+ + +
3.5.100
+ + +
3.5.99
+ + +
3.5.98
+ + +
3.5.97
+ + +
3.5.96
+ + +
3.5.95
+ + +
3.5.94
+ + +
3.5.93
+ + +
3.5.92
+ + +
3.5.91
+ + +
3.5.90
+ + +
3.5.89
+ + +
3.5.88
+ + +
3.5.87
+ + +
3.5.86
+ + +
3.5.85
+ + +
3.5.84
+ + +
3.5.83
+ + +
3.5.82
+ + +
3.5.81
+ + +
3.5.80
+ + +
3.5.79
+ + +
3.5.78
+ + +
3.5.77
+ + +
3.5.76
+ + +
3.5.75
+ + +
3.5.74
+ + +
3.5.73
+ + +
3.5.72
+ + +
3.5.71
+ + +
3.5.70
+ + +
3.5.69
+ + +
3.5.68
+ + +
3.5.67
+ + +
3.5.66
+ + +
3.5.65
+ + +
3.5.64
+ + +
3.5.63
+ + +
3.5.62
+ + +
3.5.61
+ + +
3.5.60
+ + +
3.5.59
+ + +
3.5.58
+ + +
3.5.57
+ + +
3.5.56
+ + +
3.5.55
+ + +
3.5.54
+ + +
3.5.53
+ + +
3.5.52
+ + +
3.5.51
+ + +
3.5.50
+ + +
3.5.49
+ + +
3.5.48
+ + +
3.5.47
+ + +
3.5.46
+ + +
3.5.45
+ + +
3.5.44
+ + +
3.5.43
+ + +
3.5.42
+ + +
3.5.41
+ + +
3.5.41
+ + +
3.5.40
+ + +
3.5.39
+ + +
3.5.38
+ + +
3.5.37
+ + +
3.5.36
+ + +
3.5.35
+ + +
3.5.34
+ + +
3.5.33
+ + +
3.5.32
+ + +
3.5.31
+ + +
3.5.30
+ + +
3.5.29
+ + +
3.5.28
+ + +
3.5.27
+ + +
3.5.26
+ + +
3.5.25
+ + +
3.5.24
+ + +
3.5.23
+ + +
3.5.22
+ + +
3.5.21
+ + +
3.5.20
+ + +
3.5.18
+ + +
3.5.17
+ + +
3.5.17
+ + +
3.5.16
+ + +
3.5.15
+ + +
3.5.14
+ + +
3.5.13
+ + +
3.5.12
+ + +
3.5.11
+ + +
3.5.10
+ + +
3.5.9
+ + +
3.5.8
+ + +
3.5.7
+ + +
< 3.5.7
+ \ No newline at end of file diff --git a/src/ember/chat-input.js b/src/ember/chat-input.js index a285745b..a58ae9a1 100644 --- a/src/ember/chat-input.js +++ b/src/ember/chat-input.js @@ -740,7 +740,8 @@ FFZ.prototype.modify_chat_input = function(component) { ffz_emoticons: function() { - var emotes = {}, + var emotes = [], + used_ids = [], in_conversation = ConvoInput && this.parentView instanceof ConvoInput, room = ! in_conversation && this.get('parentView.room'), @@ -748,7 +749,7 @@ FFZ.prototype.modify_chat_input = function(component) { tmi = in_conversation ? window.TMI && TMI._sessions && TMI._sessions[0] : room && room.tmiSession, set_name, replacement, url, is_sub_set, fav_list, - emote_set, emote, emote_id, code, + emote_set, emote, emote_id, code, sort_factor, user = f.get_user(), ffz_sets = f.getEmotes(user && user.login, room_id), @@ -788,8 +789,13 @@ FFZ.prototype.modify_chat_input = function(component) { if ( setting === 1 && ! is_sub_set ) continue; + sort_factor = is_sub_set ? 1 : 9; + for(var i = 0; i < emote_set.length; i++) { emote = emote_set[i]; + if ( used_ids.indexOf(emote.id) !== -1 ) + continue; + code = emote && emote.code; code = code && (constants.KNOWN_CODES[code] || code); replacement = f.settings.replace_bad_emotes && constants.EMOTE_REPLACEMENTS[emote.id]; @@ -797,23 +803,44 @@ FFZ.prototype.modify_chat_input = function(component) { (constants.EMOTE_REPLACEMENT_BASE + replacement) : (constants.TWITCH_BASE + emote.id + "/1.0"); - if ( ! emotes[code] || ! emotes[code][0] ) - emotes[code] = [true, code, true, is_sub_set, set_name, url, null, fav_list.indexOf(emote.id) !== -1]; + emotes.push({ + type: 'emoticon', + label: code, + info: set_name, + sort: sort_factor, + image: url, + width: null, + favorite: fav_list.indexOf(emote.id) !== -1 + }); + + used_ids.push(emote.id); if ( f.settings.input_complete_without_prefix && is_sub_set ) { // It's a sub emote, so try splitting off the end of the code. // It's a bit weird, but people might like it. Also, make sure // we aren't just grabbing an initial capital. - var unprefixed = code.substr(1).match(/[A-Z].+$/); + var unprefixed = code.substr(1).match(/[A-Z](?:.+)?$/); unprefixed = unprefixed ? unprefixed[0] : null; - if ( unprefixed && ! emotes[unprefixed] ) - emotes[unprefixed] = [false, code, true, is_sub_set, set_name, url, null, fav_list.indexOf(emote.id) !== -1]; + if ( unprefixed ) + emotes.push({ + type: 'emoticon', + label: '' + code.substr(0, code.length - unprefixed.length) + '' + unprefixed, + match: unprefixed, + content: code, + info: set_name, + sort: sort_factor, + image: url, + width: null, + favorite: fav_list.indexOf(emote.id) !== -1 + }); } } } } } + used_ids = []; + for(var i=0; i < ffz_sets.length; i++) { emote_set = f.emote_sets[ffz_sets[i]]; if ( ! emote_set ) @@ -825,10 +852,22 @@ FFZ.prototype.modify_chat_input = function(component) { set_name = (emote_set.source || "FFZ") + " " + (emote_set.title || "Global"); fav_list = f.settings.favorite_emotes[emote_set.hasOwnProperty('source_ext') ? 'ffz-ext-' + emote_set.source_ext + '-' + emote_set.source_id : 'ffz-' + emote_set.id] || []; + sort_factor = emote_set._type === 1 ? 3 : f.default_sets.indexOf(emote_set.id) === -1 ? 2 : 6; + for(emote_id in emote_set.emoticons) { emote = emote_set.emoticons[emote_id]; - if ( ! emote.hidden && emote.name && (! emotes[emote.name] || ! emotes[emote.name][0]) ) - emotes[emote.name] = [true, emote.name, false, emote_set.id, set_name, emote.urls[1], emote.width, fav_list.indexOf(emote.id) !== -1]; + if ( emote.hidden || ! emote.name || used_ids.indexOf(emote_id) !== -1 ) + continue; + + emotes.push({ + type: "emoticon", + label: emote.name, + info: set_name, + sort: sort_factor, + image: emote.urls[1], + width: emote.width, + favorite: fav_list.indexOf(emote.id) !== -1 + }); } } @@ -862,10 +901,13 @@ FFZ.prototype.modify_chat_input = function(component) { if ( f.settings.input_complete_emotes ) { // Include Emoticons - for(var emote_name in emotes) { - var emote = emotes[emote_name], + for(var i=0; i < emotes.length; i++) + output.push(emotes[i]); + /*var emote = emotes[i], sort_factor = 9, - label = emote[1] === emote_name ? emote[1] : ('' + emote[1].substr(0, emote[1].length - emote_name.length) + '' + emote_name); + label = emote[1] === emote_name ? + emote[1] : + ('' + emote[1].substr(0, emote[1].length - emote_name.length) + '' + emote_name); if ( emote[2] ) { if ( emote[3] ) @@ -891,7 +933,7 @@ FFZ.prototype.modify_chat_input = function(component) { width: emote[6], favorite: emote[7] || false }); - } + }*/ if ( f.settings.parse_emoji ) { diff --git a/src/ember/sidebar.js b/src/ember/sidebar.js index b5993eae..8a1c2ef6 100644 --- a/src/ember/sidebar.js +++ b/src/ember/sidebar.js @@ -137,7 +137,6 @@ FFZ.settings_info.disable_friend_notices = { category: 'Chat Filtering', no_mobile: true, - no_bttv: true, name: 'Disable Watching Friends Notices', help: 'Do not display notices in chat when your friends are watching the same stream.' diff --git a/src/ember/vod-chat.js b/src/ember/vod-chat.js index 377c3ba1..db9b5546 100644 --- a/src/ember/vod-chat.js +++ b/src/ember/vod-chat.js @@ -44,28 +44,10 @@ FFZ.prototype.setup_vod_chat = function() { else f.error("Unable to locate VOD Chat Service."); - this.update_views('component:vod-right-column', this.modify_vod_right_column); - //this.update_views('view:vod', this.modify_vod_view); this.update_views('component:vod-chat-display', this.modify_vod_chat_display); } -FFZ.prototype.modify_vod_right_column = function(component) { - var f = this; - utils.ember_reopen_view(component, { - ffz_init: function() { - if ( f.settings.dark_twitch ) { - var el = this.get('element'), - cont = el && el.querySelector('.chat-container'); - - if ( cont ) - cont.classList.add('dark'); - } - } - }); -} - - FFZ.prototype.modify_vod_chat_display = function(component) { var f = this, VODService = utils.ember_lookup('service:vod-chat-service'); @@ -74,6 +56,9 @@ FFZ.prototype.modify_vod_chat_display = function(component) { ffz_init: function() { f._vodc = this; + if ( f.settings.dark_twitch ) + this.$().parents('.chat-container').addClass('dark'); + this.ffzUpdateBadges(); // Load the room, if nencessary. diff --git a/src/main.js b/src/main.js index 82b080d9..26fde0a2 100644 --- a/src/main.js +++ b/src/main.js @@ -61,7 +61,7 @@ FFZ.channel_metadata = {}; // Version var VER = FFZ.version_info = { - major: 3, minor: 5, revision: 356, + major: 3, minor: 5, revision: 357, toString: function() { return [VER.major, VER.minor, VER.revision].join(".") + (VER.extra || ""); } diff --git a/src/ui/about_page.js b/src/ui/about_page.js index 9251f9c0..36f6a731 100644 --- a/src/ui/about_page.js +++ b/src/ui/about_page.js @@ -412,7 +412,10 @@ var include_html = function(heading_text, filename, callback) { jQuery('#ffz-old-news-button', container).on('click', function() { jQuery(this).remove(); - jQuery('#ffz-old-news', container).css('display', 'block'); + var onc = jQuery('#ffz-old-news', container); + onc.load(constants.SERVER + "script/old_changes.html", function() { + onc.css('display', 'block'); + }); }); typeof callback === "function" && callback(view, container);