The invention provides a cross-platform session context synchronization method and
system based on browser request interception, and is applied to the technical field of browser extension and
network data interaction. The method comprises the steps of loading site strategy configuration to define a
data mapping and input container positioning rule, injecting proxy codes to monitor a page request state, locking a target input container in a DOM
tree based on a multi-dimensional
score, intercepting a session submission request and analyzing an original load, retrieving a historical context and converting the historical context into an implicit
data segment according to a mapping relation, combining the data to an original load to generate a recombination request and then sending the recombination request; according to the scheme, session context non-inductive synchronization of cross-heterogeneous platforms can be realized on the premise of not depending on a fixed selector and not changing a page UI (
User Interface), the continuity of user memory by different platforms is kept, the robustness of element positioning and the accuracy of an
operation time sequence are improved, and the user experience is improved. The problem of data islands is effectively solved, and man-
machine interaction continuity is enhanced.