MCPcopy Create free account
hub / github.com/Revadike/Misc-JavaScript-Projects / getD2Area

Function getD2Area

DIM - Auto Ghost Switcher.user.js:75–78  ·  view source on GitHub ↗
(doc)

Source from the content-addressed store, hash-verified

73 }
74
75 function getD2Area(doc) {
76 var elem = doc.querySelector(".rich_presence");
77 return elem ? elem.innerText.trim() : null;
78 }
79
80 function monitorInGameStatus(ghosts) {
81 var currentArea = null;

Callers 1

monitorInGameStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected