Page operation method and device, equipment and medium
By injecting the content script in the browser extension, intercepting the initial request and generating target requests, the problem of complex operation of the cross -source service page has been solved, the automatic execution strategy is achieved, and the operating efficiency is improved.
Patent Information
- Application Number
- CN202411276112.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2025-01-21
AI Technical Summary
The existing cross-origin service pages are complex to operate, resulting in high user understanding and use costs, especially for users with frequent, large-scale, and fixed operations, which will seriously affect operation efficiency.
By being loaded on the target page, based on the browser expansion program to inject the content script into the target page, use the content script to intercept the initial request and generate the target request, respond to the corresponding response content of the target request, and load the target page.
It reduces the number of repeated operations by users, improves page operation efficiency, and simplifies the operation process of cross-origin service pages through automatic execution of policies.
Smart Images

Figure CN119337011A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of page loading technology, and specifically relates to a page operation method, device, equipment and medium. Background Art
[0002] With the development of the Internet, cross-source services are widely selected based on their ability to provide differentiated services. However, due to the complexity of page operations of some cross-source services, the cost of user understanding and use is high, which seriously affects the operation efficiency, especially for users who perform frequent, large-volume, and fixed operations. Summary of the invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a page operation method, apparatus, device and medium that can utilize content scripts to provide automatic execution strategies for cross-source services, reduce the number of repeated operations by users, and improve page operation efficiency.
[0004] In a first aspect, an embodiment of the present application provides a page operation method, including:
[0005] When the target page is in a loading state, injecting a content script into the target page based on a browser extension program; wherein the target page is an embedded sub-page of the target page running in a parent platform running the browser;
[0006] intercepting the initial request and generating a target request using the content script;
[0007] In response to the response content corresponding to the target request, the target page is loaded.
[0008] In some embodiments, the content script includes a reconstruction object, and the using the content script to intercept the initial request and generate the target request includes:
[0009] Using the reconstructed object to monitor and obtain interface data corresponding to at least one interface event;
[0010] The content script passes the interface data into the initial request to generate the target request.
[0011] In some embodiments, the loading of the target page in response to the response content corresponding to the target request includes:
[0012] Generate an execution script based on the response content of the target request script;
[0013] The execution script is executed to load the target page.
[0014] In some embodiments, generating an execution script based on the response content of the target request script includes:
[0015] Extract DOM nodes and node data from the response content according to a preset execution order;
[0016] An execution script is generated based on the DOM node and the node data.
[0017] In some embodiments, it also includes:
[0018] The execution script is divided into at least one execution script segment, and the at least one execution script segment is executed in sequence.
[0019] In some embodiments, it also includes:
[0020] When any of the execution script segments times out, the execution script segment is re-executed to load the target page.
[0021] In a second aspect, an embodiment of the present application provides a page operation device, including:
[0022] An injection module, used to inject a content script into the target page based on a browser extension when the target page is in a loading state; wherein the target page is an embedded sub-page of the target page running in the parent platform running the browser;
[0023] An interception module, configured to intercept an initial request using the content script and generate a target request;
[0024] The execution module is used to load the target page in response to the response content corresponding to the target request.
[0025] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present application when executing the program.
[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the embodiment of the present application.
[0027] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, it implements the method described in the embodiment of the present application.
[0028] The page operation method proposed in the embodiment of the present application injects a content script into the target page based on a browser extension program when the page is in a loading state, so as to use the content script to intercept the initial request and generate a target request, and then load the target page in response to the response content corresponding to the target request, thereby achieving the purpose of using the content script's ability to intercept requests to add repetitive operations to the request, thereby achieving the effect of automatically operating the page.
[0029] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0031] Figure 1 The following is a diagram showing an implementation environment architecture of the page operation method provided in an embodiment of the present application;
[0032] Figure 2 A schematic diagram showing a flow chart of a page operation method provided by an embodiment of the present application is shown;
[0033] Figure 3 A schematic diagram showing the principle of a page operation method provided by an embodiment of the present application is shown;
[0034] Figure 4 A schematic diagram showing a flow chart of a page operation method provided by another embodiment of the present application is shown;
[0035] Figure 5 A block diagram of a page operation device provided by an embodiment of the present application is shown;
[0036] Figure 6 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown. DETAILED DESCRIPTION
[0037] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0038] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0039] For the specific implementation environment of the page operation method proposed in this application, please refer to Figure 1 . Figure 1 The following is a diagram showing the implementation environment architecture of the page operation method provided in the embodiment of the present application.
[0040] like Figure 1 As shown, the implementation environment architecture includes: a terminal device 101, a parent platform server 102 and a child page server 103.
[0041] The terminal device 101 is used to provide a browser for the user to use the browser to open the parent platform and its source sub-pages, etc. The terminal device can be a desktop computer, a laptop computer, a smart phone, a tablet computer, an e-book reader, smart glasses, a smart watch and other devices, but is not limited thereto.
[0042] The parent platform server 102 is used to provide background services for the parent platform opened in the browser, including but not limited to platform-related services. The sub-page server 103 is used to provide background services for its sub-pages, including but not limited to page interaction functions, such as submitting forms, etc.
[0043] The parent platform server 102 and the child page server 103 can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.
[0044] The terminal device 101 is directly or indirectly connected to the parent platform server 102 and the child page server 103 through wired or wireless communication. Optionally, the wireless network or wired network uses standard communication technology and / or protocols. The network is usually the Internet, and can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of a virtual private network.
[0045] The page operation method proposed in the present application can be implemented by a page operation device, and the page operation device can be installed on a terminal device or a server.
[0046] In order to further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation instruction steps shown in the following embodiments or drawings, more or less operation instruction steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method may be executed in the order of the method shown in the embodiment or drawings or in parallel during the actual processing process or when the device is executed.
[0047] Please refer to Figure 2 and Figure 3 , Figure 2 FIG. 1 is a flow chart showing a page operation method provided by an embodiment of the present application. Figure 2 As shown, the method includes:
[0048] Step 201, when the target page is in a loading state, inject a content script into the target page based on a browser extension program.
[0049] The target page is a source child page embedded and running in the parent platform running in the browser.
[0050] It should be noted that the parent platform relies on the browser for operation. When it is running, it can embed and run its source sub-page. In the related art, since the parent platform and the sub-page are served by different servers, that is, from different domain names, users are required to operate the sub-pages by themselves, which requires a lot of labor costs when users perform frequent and large-scale fixed operations. Since the parent platform and the sub-pages come from different servers, cross-source communication usually exposes the message event object to the window receiving the message, and users are still required to perform subsequent operations, resulting in reduced efficiency.
[0051] A browser extension is a program that extends browser functions. Taking the browser based on the Chromium browser kernel as an example, the Chromium browser kernel is an open source browser kernel. The Chromium extension framework included in it is a framework in the browser that allows developers to use JavaScript (JS, a lightweight programming language) to extend browser functions. When embedding and running its source sub-page, the browser function is usually extended based on the Chromium Extension to simulate the corresponding operating environment for its source sub-page, such as the client environment, so that its source sub-page can be embedded and run in the parent platform.
[0052] The content script is a script for reading and modifying the content of a web page. Optionally, in an embodiment of the present application, the content script is a script for reading and modifying the content of its source sub-page. Preferably, the content script is a script for performing repeated operations on the sub-page. Specifically, the content script is a JavaScript file that specifies static loading for use each time the user opens the target page. The content script can use the standard document object model DOM to read and change the content of the web page.
[0053] Step 202, using a content script to intercept the initial request and generate a target request.
[0054] It should be noted that the initial request is a page loading request or a page rendering request. The target request is an operation request including information to be operated. Optionally, the target request is a conforming request including an operation request and a loading request, wherein the operation included in the operation request is a repeated operation to be performed by the user.
[0055] That is to say, since the embodiment of the present application injects the content script when the target page is in a loading state, the target page is still in the process of communicating with the server to obtain loading information. At this time, the page loading request is intercepted by the content script, and a target request is generated according to the repetitive operation to be performed, so that the purpose of making a request to the server can be achieved without the user performing corresponding operations.
[0056] Step 203, in response to the response content corresponding to the target request, the target page is loaded.
[0057] The response content is the response data returned by the sub-page server in response to the target request.
[0058] It should be understood that when the response content corresponding to the target request is obtained, it means that the server has completed the response corresponding to the target request. At this time, loading the target page means loading the response content of the target request.
[0059] That is to say, in the process of loading the target page, the embodiment of the present application adds repetitive operation content to the loading request to form a target request, and utilizes the interaction with the server during the process of loading the target page, so that the server can simultaneously process the repetitive operation content and return the response content, thereby achieving the purpose of automatically operating the target page.
[0060] Therefore, the page operation method proposed in the embodiment of the present application, by injecting a content script into the target page based on the browser extension program when the page is in a loading state, so as to use the content script to intercept the initial request and generate a target request, and then load the target page in response to the response content corresponding to the target request, thereby achieving the purpose of using the content script's ability to intercept requests to add repetitive operations to the request, thereby achieving the effect of automatically operating the page.
[0061] In one possible embodiment, the content script includes a reconstruction object.
[0062] The reconstructed object is an object for communicating between its source sub-page and the sub-page server. Exemplarily, the reconstructed object may be an XMLHttpRequest object.
[0063] Optionally, using a content script to intercept an initial request and generate a target request includes: using a reconstructed object listener to obtain target interface data corresponding to at least one interface event, and the content script passing the interface data into the initial request to generate a target request.
[0064] It should be noted that, in the embodiment of the present application, the reconstructed content of the reconstructed object is a DOM operation script used to obtain request, response content or execute configuration by reconstructing the listening interface event.
[0065] That is, in the embodiment of the present application, the reconstruction object is used to intercept the initial request, and the interface data corresponding to at least one interface event is acquired by monitoring, wherein the at least one interface event includes but is not limited to at least one interface event related to the repetitive operation. Then the content script passes the interface data into the initial request, so as to configure the content information corresponding to the repetitive operation according to the corresponding interface data, and then generate the target request.
[0066] Exemplarily, the interface event may include a save event. Specifically, the reconstruction object listens to the interface data corresponding to the save event of the target page, and then passes the interface data into the initial request script, and then when the repetitive operation is a save event, the target request script is applied based on the interface data, so that the server can respond to the save operation when or when the target request is obtained.
[0067] In a feasible embodiment, the reconstruction object can also monitor and obtain the browser context to obtain other script contents and script dependencies used for repetitive operations, so as to generate a target request that meets the requirements of the repetitive operation.
[0068] Therefore, the embodiment of the present application enriches the listening capability of the reconstruction object by configuring it, so that the content script can obtain various types of information that meet the needs of repetitive operations, so that the target request finally generated can meet the needs of repetitive operations, thereby realizing the automatic operation of frequent and large-scale fixed operations.
[0069] In one possible embodiment, if Figure 4 As shown, step 203, in response to the response content corresponding to the target request, the target page is loaded, including:
[0070] Step 2301, generating an execution script based on the response content of the target request script.
[0071] It should be noted that the execution script is a DOM operation script generated based on the response content. Specifically, based on the response content of the target request script, at least one DOM node and node data corresponding to the response content are obtained, and a DOM operation script is generated based on the at least one DOM node and node data, which is used as the execution script.
[0072] Step 2302, execute the script to load the target page.
[0073] It should be noted that since the loading operation of the target page is executed immediately after receiving the response content corresponding to the target request, the execution script does not contain all DOM nodes and data. Therefore, in the example of the present application, the execution script is divided into at least one execution script segment, and at least one execution script segment is executed sequentially.
[0074] Specifically, when the response content corresponding to the target request is obtained and the execution script is generated based on the response content of the target request, the dom nodes and node data are extracted from the response content according to the preset execution order, and the execution script is generated based on the dom nodes and node data. In the generation process, the execution script is divided into at least one execution script segment according to standards such as the number of nodes or node types, for example, at least one execution script segment is divided according to the tree structure corresponding to the dom, and each execution script segment corresponds to a branch. More specifically, multiple execution script segments are divided using "$$", and the subsequent execution script segment is continued to be executed after the previous execution script segment is executed. Optionally, the information on the completion of the execution of the execution script segment can be obtained by polling, such as waitReqLoaded and waitDomLoaded, and the interface response passed in when the execution of the execution script segment is completed is obtained to determine the completion of the execution of the execution script segment.
[0075] In a feasible embodiment, in order to avoid the polling timeout problem caused by the failure of the execution script segment to be executed normally, the present application also proposes to re-execute the execution script segment to load the target page when any execution script segment times out.
[0076] Specifically, when using the aforementioned waitReqLoaded and waitDomLoaded to perform interface monitoring, a timer is added at the same time. If no interface response is obtained within the specified time, the execution script segment is re-executed to load the page. When the execution number of the execution script segment reaches a preset number of times, it is determined that the data corresponding to the execution script segment is abnormal, the execution script segment is abandoned, and the next execution script segment is executed.
[0077] In a feasible embodiment, the present application is controlled by a Generator generator and executed using a direct eval method to obtain execution script dependent variables.
[0078] Therefore, the present application can load the target page immediately when the response content corresponding to the target request is obtained, which effectively improves the loading efficiency of the target page. At the same time, in order to avoid the time-consuming background data processing and the inability to meet the front-end loading requirements, the segmented loading method is used to further improve the page loading efficiency.
[0079] It should be noted that although the operations of the method of the present invention are described in a particular order in the drawings, this does not require or imply that the operations must be performed in this particular order or that all illustrated operations must be performed to achieve desired results.
[0080] To summarize, the page operation method proposed in the embodiment of the present application injects a content script into the target page based on a browser extension program when the page is in a loading state, so as to use the content script to intercept the initial request and generate a target request, and then load the target page in response to the response content corresponding to the target request, thereby achieving the purpose of using the content script's ability to intercept requests to add repetitive operations to the request, thereby achieving the effect of automatically operating the page.
[0081] Figure 5 A block diagram of a page operation device provided in an embodiment of the present application is shown.
[0082] like Figure 5 As shown, the page operation device 10 includes:
[0083] The injection module 11 is used to inject a content script into the target page based on the browser extension program when the target page is in a loading state; wherein the target page is an embedded sub-page of the target page running in the parent platform running the browser;
[0084] An interception module 12, configured to intercept an initial request using the content script and generate a target request;
[0085] The execution module 13 is used to load the target page in response to the response content corresponding to the target request.
[0086] In some embodiments, the content script includes a reconstruction object, an interception module 12, and is further configured to:
[0087] Using the reconstructed object to monitor and obtain interface data corresponding to at least one interface event;
[0088] The content script passes the interface data into the initial request to generate the target request.
[0089] In some embodiments, the execution module 13 is further configured to:
[0090] Generate an execution script based on the response content of the target request script;
[0091] The execution script is executed to load the target page.
[0092] In some embodiments, the execution module 13 is further configured to:
[0093] Extract DOM nodes and node data from the response content according to a preset execution order;
[0094] An execution script is generated based on the DOM node and the node data.
[0095] In some embodiments, the execution module 13 is further configured to:
[0096] The execution script is divided into at least one execution script segment, and the at least one execution script segment is executed in sequence.
[0097] In some embodiments, the execution module 13 is further configured to:
[0098] When any of the execution script segments times out, the execution script segment is re-executed to load the target page.
[0099] It should be understood that the modules or modules described in the page operation device 10 are similar to those described in the reference Figure 2 The various steps in the described method correspond to each other. Therefore, the operations and features described above for the method are also applicable to the page operation device 10 and the modules contained therein, and will not be repeated here. The page operation device 10 can be pre-implemented in the browser or other security applications of the electronic device, and can also be loaded into the browser or its security application of the electronic device by downloading or the like. The corresponding modules in the page operation device 10 can cooperate with the modules in the electronic device to implement the solution of the embodiment of the present application.
[0100] For the several modules or units mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0101] Reference below Figure 6 , Figure 6 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown.
[0102] like Figure 6 As shown, the computer system includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation instructions of the system are also stored. The CPU 601, the ROM 602 and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0103] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0104] In particular, according to an embodiment of the present application, the above reference flow chart Figure 2 The described process can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present application are executed.
[0105] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium such as a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0106] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operating instructions of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the aforementioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operating instruction, or can be implemented with a combination of dedicated hardware and computer instructions.
[0107] The units or modules involved in the embodiments described in the present application may be implemented by software or by hardware. The units or modules described may also be arranged in a processor, for example, may be described as: a processor includes an injection module, an interception module and an execution module. Among them, the names of these units or modules do not constitute a limitation on the units or modules themselves under certain circumstances. For example, the injection module may also be described as "when the target page is in a loading state, a content script is injected into the target page based on a browser extension; wherein the target page is an embedded and running sub-page of another source in the parent platform where the browser is running".
[0108] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the page operation method described in the present application.
[0109] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A page operation method, characterized in that: include: When the target page is in a loading state, injecting a content script into the target page based on a browser extension program; wherein the target page is a sub-page of another source that is embedded and runs in a parent platform where the browser runs; intercepting the initial request and generating a target request using the content script; In response to the response content corresponding to the target request, the target page is loaded.
2. The page operation method according to claim 1, characterized in that: The content script includes a reconstruction object, and the using the content script to intercept the initial request and generate the target request includes: Using the reconstructed object to monitor and obtain interface data corresponding to at least one interface event; The content script passes the interface data into the initial request to generate the target request.
3. The page operation method according to claim 1, characterized in that: The step of loading the target page in response to the response content corresponding to the target request includes: Generate an execution script based on the response content of the target request script; The execution script is executed to load the target page.
4. The page operation method according to claim 3, characterized in that: The step of generating an execution script based on the response content of the target request script comprises: Extract DOM nodes and node data from the response content according to a preset execution order; An execution script is generated based on the DOM node and the node data.
5. The page operation method according to claim 3 or 4, characterized in that: Also includes: The execution script is divided into at least one execution script segment, and the at least one execution script segment is executed in sequence.
6. The page operation method according to claim 5, characterized in that: Also includes: When any of the execution script segments times out, the execution script segment is re-executed to load the target page.
7. A page operation device, characterized in that: include: An injection module, used to inject a content script into the target page based on a browser extension when the target page is in a loading state; wherein the target page is an embedded sub-page of the target page running in the parent platform running the browser; An interception module, configured to intercept an initial request using the content script and generate a target request; The execution module is used to load the target page in response to the response content corresponding to the target request.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the page operation method as described in any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the page operation method as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the page operation method described in any one of claims 1 to 6 is implemented.