mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-17 18:26:57 +00:00
3.5.502. Mostly dark theme stuff. Remove every instance of "ember-chat-container" in CSS and just apply the correct class to that element with JS since Twitch hasn't after years. Closes #196. Closes #195. Closes #189.
This commit is contained in:
parent
99630f3e4e
commit
81040f1608
18 changed files with 272 additions and 138 deletions
|
@ -583,6 +583,11 @@ FFZ.prototype.modify_chat_room_manager = function(component) {
|
|||
|
||||
el && el.setAttribute('data-room', room_id || "");
|
||||
|
||||
// Fix Twitch being stupid and inconsistent.
|
||||
var parent = el.parentElement;
|
||||
if ( parent && parent.classList.contains('ember-chat-container') )
|
||||
parent.classList.add('chat-container');
|
||||
|
||||
this.$('.textarea-contain').append(f.build_ui_link(this));
|
||||
|
||||
if ( ! f.has_bttv_6 ) {
|
||||
|
|
|
@ -1147,7 +1147,7 @@ FFZ.prototype._update_room_badge_css = function(room_id) {
|
|||
output = [];
|
||||
|
||||
// For rooms that don't have sub badges set.
|
||||
if ( badges && ! badges.subscriber ) {
|
||||
/*if ( badges && ! badges.subscriber ) {
|
||||
var BadgeService = utils.ember_lookup('service:badges'),
|
||||
global = BadgeService && BadgeService.badgeCollection && BadgeService.badgeCollection.global;
|
||||
badges.subscriber = global.subscriber;
|
||||
|
@ -1155,7 +1155,7 @@ FFZ.prototype._update_room_badge_css = function(room_id) {
|
|||
badges.subscriber.allow_invert = true;
|
||||
badges.subscriber.invert_invert = true;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
for(var badge_id in badges) {
|
||||
var versions = badges[badge_id] && badges[badge_id].versions || {};
|
||||
|
@ -1163,6 +1163,7 @@ FFZ.prototype._update_room_badge_css = function(room_id) {
|
|||
output.push(utils.room_badge_css(room_id, badge_id, version, versions[version]));
|
||||
}
|
||||
|
||||
// Loyalty Badges Disabled
|
||||
if ( badges.subscriber ) {
|
||||
var versions = badges.subscriber.versions || {},
|
||||
lowest = versions[0] || versions[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue