From 623f0cff2e38fb95cdb9b7f2a849b5f757f02acc Mon Sep 17 00:00:00 2001 From: Jesse Batman Date: Mon, 9 Nov 2020 17:56:52 +0200 Subject: [PATCH] Added option to opt out --- src/content/index.js | 6 +++++- src/popup/sections/appearance.js | 6 ++++++ src/shared/settings.js | 3 ++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/content/index.js b/src/content/index.js index fd74798d..12f51b6b 100755 --- a/src/content/index.js +++ b/src/content/index.js @@ -182,7 +182,11 @@ function observeBody() { addPlayerProfileExtendedStats(mainContentElement) } } else if (pages.isTeamsOverview()) { - addTeamPlayerInfo(mainContentElement) + runFeatureIf( + 'teamRosterPlayersInfo', + addTeamPlayerInfo, + mainContentElement + ) } } }) diff --git a/src/popup/sections/appearance.js b/src/popup/sections/appearance.js index ddb179db..9d1d911b 100644 --- a/src/popup/sections/appearance.js +++ b/src/popup/sections/appearance.js @@ -41,6 +41,12 @@ export default ({ getSwitchProps }) => ( } {...getSwitchProps('matchRoomHidePlayerControls')} /> + Team page + Other page elements