Skip to content

Commit

Permalink
Added option to opt out
Browse files Browse the repository at this point in the history
  • Loading branch information
Morabotti committed Jun 27, 2021
1 parent 6c0bdef commit 623f0cf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,11 @@ function observeBody() {
addPlayerProfileExtendedStats(mainContentElement)
}
} else if (pages.isTeamsOverview()) {
addTeamPlayerInfo(mainContentElement)
runFeatureIf(
'teamRosterPlayersInfo',
addTeamPlayerInfo,
mainContentElement
)
}
}
})
Expand Down
6 changes: 6 additions & 0 deletions src/popup/sections/appearance.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ export default ({ getSwitchProps }) => (
}
{...getSwitchProps('matchRoomHidePlayerControls')}
/>
<ListSubheader divider>Team page</ListSubheader>
<ListItemSwitch
primary="Detailed Team Information"
secondary="Show detailed roster information about team."
{...getSwitchProps('teamRosterPlayersInfo')}
/>
<ListSubheader divider>Other page elements</ListSubheader>
<ListItemSwitch
primary="Hide FACEIT Client download banner"
Expand Down
3 changes: 2 additions & 1 deletion src/shared/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ export const DEFAULTS = {
notifyMatchRoomAutoVetoLocations: true,
notifyMatchRoomAutoVetoMaps: true,
updateNotificationType: 'tab',
updateNotifications: []
updateNotifications: [],
teamRosterPlayersInfo: true
}

0 comments on commit 623f0cf

Please sign in to comment.