Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Latest commit

History

History
41 lines (31 loc) 路 1.8 KB

how_it_works.md

File metadata and controls

41 lines (31 loc) 路 1.8 KB

How Tracker works

Tracker use a subset of XPath to locate the specific elements of the html page. When you create a tracker for an element, it recorded the XPath and the value of the element. Then it will checking if there is any changes to the element in background.

Querying Modes

Lite Mode

Lite mode use XMLHttpRequest to request the page. Then use cheerio evaluating XPath to find the specific elements.

Lite mode works in background quietly. But it can only query static contents. For dynamic or authentication-needed content, you may need to use Tab Mode.

Tab Mode

Tab mode use Chrome's native tab to request and evaluate XPath. It's more powerful since the JavaScript and Cookies is available. Tab mode is able to query most of elements on webpages.

But on the other side, it cost more time and more data transporting than Lite Mode. You will also see a pinned tab created and then closed in serval seconds while querying (which is kinda annoying).

Gif screenshot

Mode Switching

You can change the querying mode in Tracker Dashboard.

List of dependencies

(included in project)