Skip to content

Commit 0709b11

Browse files
Remove comments of stats are completely gone now.
1 parent bc88950 commit 0709b11

File tree

10 files changed

+18
-17
lines changed

10 files changed

+18
-17
lines changed

extension/changelog.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
{ "message": "Use API v2 for the Profile Box in preparation for Torn's incoming changes to the personal stats API", "contributor": "Kwack" },
3232
{ "message": "Show an indication when Loot Ranger has not included every NPC in their scheduled attack.", "contributor": "DeKleineKobini" },
3333
{ "message": "Update the core team titles to reflect DeKleineKobini rejoining.", "contributor": "DeKleineKobini" },
34-
{ "message": "Update the missing hint for 'estranged' to include feet.", "contributor": "DeKleineKobini" }
34+
{ "message": "Update the missing hint for 'estranged' to include feet.", "contributor": "DeKleineKobini" },
35+
{ "message": "Detect sidebar conditions better for some sidebar features.", "contributor": "DeKleineKobini" }
3536
],
3637
"removed": [
3738
{ "message": "Removed bazaar prices from the popup, as they are set to be removed from the API.", "contributor": "DeKleineKobini" },

extension/scripts/features/collapsible-areas/ttCollapsibleAreas.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict";
22

33
(async () => {
4-
const devices = await checkDevice();
5-
if (devices.mobile || devices.tablet) return "Not supported on mobiles or tablets!";
4+
const { hasSidebar } = await checkDevice();
5+
if (!hasSidebar) return "Not supported on mobiles or tablets!";
66

77
featureManager.registerFeature(
88
"Collapse Areas",

extension/scripts/features/company-addiction/ttCompanyAddiction.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict";
22

33
(async () => {
4-
const devices = await checkDevice();
5-
if (devices.mobile || devices.tablet) return "Not supported on mobiles or tablets!";
4+
const { hasSidebar } = await checkDevice();
5+
if (!hasSidebar) return "Not supported on mobiles or tablets!";
66

77
featureManager.registerFeature(
88
"Company Addiction Level",

extension/scripts/features/custom-links/ttCustomLinks.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
async function showLinks() {
2020
await requireSidebar();
2121

22-
if (!mobile && !tablet) {
22+
if (hasSidebar) {
2323
showOutside("above", "customLinksAbove");
2424
showOutside("under", "customLinksUnder");
2525
showInside();

extension/scripts/features/faction-oc-time/ttFactionOCTime.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict";
22

33
(async () => {
4-
const devices = await checkDevice();
5-
if (devices.mobile || devices.tablet) return "Not supported on mobiles or tablets!";
4+
const { hasSidebar } = await checkDevice();
5+
if (!hasSidebar) return "Not supported on mobiles or tablets!";
66

77
featureManager.registerFeature(
88
"Faction OC Timer",

extension/scripts/features/hide-gym-highlight/ttHideGymHighlight.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
const svg = navGym.find("svg");
3131
if (hasDarkMode()) {
32-
if (mobile || tablet) {
32+
if (!hasSidebar) {
3333
svg.setAttribute("fill", svg.getAttribute("fill").replace("_green", ""));
3434
svg.setAttribute("filter", svg.getAttribute("filter").replace("_green", ""));
3535
} else {

extension/scripts/features/npc-loot-times/ttNPCLootTimes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict";
22

33
(async () => {
4-
const devices = await checkDevice();
5-
if (devices.mobile || devices.tablet) return "Not supported on mobiles or tablets!";
4+
const { hasSidebar } = await checkDevice();
5+
if (!hasSidebar) return "Not supported on mobiles or tablets!";
66

77
featureManager.registerFeature(
88
"NPC Loot Times",

extension/scripts/features/settings-link/ttSettingsLink.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict";
22

33
(async () => {
4-
const devices = await checkDevice();
5-
if (devices.mobile || devices.tablet) return "Not supported on mobiles or tablets!";
4+
const { hasSidebar } = await checkDevice();
5+
if (!hasSidebar) return "Not supported on mobiles or tablets!";
66

77
const feature = featureManager.registerFeature(
88
"TT Settings Link",

extension/scripts/features/sidebar-notes/ttSidebarNotes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict";
22

33
(async () => {
4-
const devices = await checkDevice();
5-
if (devices.mobile || devices.tablet) return "Not supported on mobiles or tablets!";
4+
const { hasSidebar } = await checkDevice();
5+
if (!hasSidebar) return "Not supported on mobiles or tablets!";
66

77
featureManager.registerFeature(
88
"Sidebar Notes",

extension/scripts/features/update-notice/ttUpdateNotice.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict";
22

33
(async () => {
4-
const devices = await checkDevice();
5-
if (devices.mobile || devices.tablet) return "Not supported on mobiles or tablets!";
4+
const { hasSidebar } = await checkDevice();
5+
if (!hasSidebar) return "Not supported on mobiles or tablets!";
66

77
featureManager.registerFeature(
88
"Update Notice",

0 commit comments

Comments
 (0)