Skip to content

Commit a8ec762

Browse files
FF Scouter gauges weren't showing when honor bars were disabled or on the bounties page.
1 parent 6addfff commit a8ec762

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

extension/changelog.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
{ "message": "Improved performance while using FF Scouter in some cases.", "contributor": "DeKleineKobini" },
2020
{ "message": "Route tornpal requests through the background to bypass Torn's CSP policy on Firefox.", "contributor": "DeKleineKobini" },
2121
{ "message": "Avoid an error on the enemy page when switching pages.", "contributor": "DeKleineKobini" },
22-
{ "message": "Avoid issues with FF scouter by loading a script earlier.", "contributor": "DeKleineKobini" }
22+
{ "message": "Avoid issues with FF scouter by loading a script earlier.", "contributor": "DeKleineKobini" },
23+
{ "message": "FF Scouter gauges weren't showing when honor bars were disabled or on the bounties page.", "contributor": "DeKleineKobini" }
2324
],
2425
"changes": [{ "message": "Better optimize calls to tornpal.", "contributor": "DeKleineKobini" }],
2526
"removed": [{ "message": "No longer send revive requests to The Imperium as it no longer worked.", "contributor": "DeKleineKobini" }]

extension/scripts/features/ff-scouter/ttFFScouterGauge.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
scoutLock = true;
4545

4646
const honorBars = [...document.findAll(".honor-text-wrap")];
47-
if (honorBars) {
47+
if (honorBars.length > 0) {
4848
applyGauge(honorBars).finally(() => (scoutLock = false));
4949
} else {
5050
let selector;
@@ -64,10 +64,10 @@
6464
selector = ".name";
6565
break;
6666
case "bounties":
67-
selector = ".target,.listed";
67+
selector = ".target, .listed";
6868
break;
6969
case "forums":
70-
selector = ".last-poster,.starter,.last-post,.poster";
70+
selector = ".last-poster, .starter, .last-post,.poster";
7171
break;
7272
case "hof":
7373
selector = "[class^=''userInfoBox__']";

0 commit comments

Comments
 (0)