[go: up one dir, main page]

CN113626738A - Method, system, browser, storage medium and computer device for configuring browser to be compatible with webpage - Google Patents

Method, system, browser, storage medium and computer device for configuring browser to be compatible with webpage Download PDF

Info

Publication number
CN113626738A
CN113626738A CN202010383734.8A CN202010383734A CN113626738A CN 113626738 A CN113626738 A CN 113626738A CN 202010383734 A CN202010383734 A CN 202010383734A CN 113626738 A CN113626738 A CN 113626738A
Authority
CN
China
Prior art keywords
resource
browser
page
webpage
web page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010383734.8A
Other languages
Chinese (zh)
Inventor
田新超
赵志远
后江振
黄亚洲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN202010383734.8A priority Critical patent/CN113626738A/en
Publication of CN113626738A publication Critical patent/CN113626738A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention is applicable to the technical field of browser compatibility, and particularly relates to a method and a system for configuring compatibility of a browser and a webpage, the browser, a storage medium and computer equipment. The method for configuring the browser to be compatible with the webpage comprises the following steps: detecting a webpage incompatible with a browser in a business application system, wherein the webpage incompatible with the browser is a first webpage; acquiring first page resources of the first webpage, and detecting first resources incompatible with the browser in the first page resources; repairing the first resource to a second resource; configuring the second resource at the server; and the browser acquires the second resource from the server and replaces the first resource in the first page resource with the second resource. Therefore, the compatibility adjustment is carried out from the browser aspect, so that the webpage is normally displayed and normally interacts with the user, the cost of technology and capital is reduced, and the working and production efficiency of the user is improved.

Description

Method, system, browser, storage medium and computer device for configuring browser to be compatible with webpage
Technical Field
The invention relates to the technical field of browser compatibility, in particular to a method and a system for configuring compatibility of a browser and a webpage, the browser, a storage medium and computer equipment.
Background
In the prior art, the conditions that page layout is disordered and data content cannot be displayed are caused by the compatibility problem of browsers of some webpages, and great influence is caused to the online work of users. However, for various reasons, the application developer cannot provide a page for repairing the problematic web pages, so that the user is limited to a browser of a certain version, cannot update and upgrade with the development of informatization, and cannot support new features.
In view of the above, the prior art is obviously inconvenient and disadvantageous in practical use, and needs to be improved.
Disclosure of Invention
In view of the above-mentioned drawbacks, an object of the present invention is to provide a method, a system, a browser, a storage medium, and a computer device for configuring a browser to be compatible with a web page, where compatibility adjustment is performed from the browser side so that the web page of the web page is normally displayed and normally interacts with a user, thereby reducing the cost of technology and capital and improving the work and production efficiency of the user.
In order to achieve the above object, the present invention provides a method for configuring a browser to be compatible with a web page, comprising:
detecting a webpage incompatible with a browser in a business application system, wherein the webpage incompatible with the browser is a first webpage;
acquiring first page resources of the first webpage, and detecting first resources incompatible with the browser in the first page resources;
repairing the first resource to a second resource;
configuring the second resource at the server;
and in the process that the browser requests the first page resource of the first webpage, acquiring the second resource from the server, and replacing the first resource with the second resource.
According to the method for configuring the browser to be compatible with the webpage, the step of detecting the webpage incompatible with the browser in the business application system comprises the following steps:
and accessing the business application system through the browser, analyzing the webpage composition of the business application system, and judging the webpage of the business application system incompatible with the browser.
According to the method for configuring the browser to be compatible with the webpage, the step of acquiring the first page resource of the first webpage and detecting the first resource incompatible with the browser in the first page resource comprises the following steps:
acquiring a first page resource of the first webpage;
and matching the first page resources with the internal and related compatibility data of the browser, and positioning first resources which are incompatible with the browser in the first page resources of the webpage.
According to the method for configuring the browser to be compatible with the webpage, the method further comprises the following steps:
and the server performs association configuration on a first URL of the first resource and the second resource, and stores the first URL in the server.
According to the method for configuring the compatibility of the browser and the webpage, in the process that the browser requests the first page resource of the first webpage, the step of acquiring the second resource from the server side and replacing the first resource with the second resource comprises the following steps:
the browser requests resources of a webpage to acquire the page resources of the webpage;
judging whether the webpage is a first webpage or not;
if the webpage is judged to be the first webpage, the page resource of the webpage is the first page resource, and the browser acquires the second resource from the server;
and replacing the first resource in the first page resource with a second resource to form a second page resource.
According to the method for configuring the browser to be compatible with the webpage, the step of judging whether the webpage is a first webpage comprises the following steps:
and comparing a second URL of the page resource of the webpage with a first URL of the server side, which is configured in association with the second resource, and if the second URL is the same as the first URL, judging that the webpage is the first webpage.
To achieve another object of the present invention, there is also provided a system for configuring a browser to be compatible with a web page, including:
the webpage analysis module is used for detecting a webpage of a business application system incompatible with a browser, wherein the webpage incompatible with the browser is a first webpage;
the first resource positioning module is used for acquiring first page resources of the first webpage and detecting first resources incompatible with the browser in the first page resources;
the first resource repairing module is used for repairing the first resource into a second resource;
the second resource configuration module is used for configuring the second resource at the service end;
and the resource replacing module is used for acquiring the second resource from the server side and replacing the first resource with the second resource in the process that the browser requests the first page resource of the first webpage.
To achieve another object of the present invention, there is also provided a browser including:
the webpage analysis module is used for detecting a webpage of a business application system incompatible with the browser, and the webpage incompatible with the browser is a first webpage;
the first resource positioning module is used for acquiring first page resources of the first webpage and detecting first resources incompatible with the browser in the first page resources;
the resource replacing module is used for acquiring a second resource and replacing the first resource in the first page resource with the second resource; the second resource is configured through a server, and the server is used for configuring the first resource and configuring the first resource as the second resource.
To achieve another object of the present invention, there is also provided a storage medium storing a computer program for executing any one of the above-described methods of configuring a browser to be compatible with a web page.
To achieve another object of the present invention, there is also provided a computer device including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements any one of the above methods for configuring a browser to be compatible with a web page when executing the computer program.
The method for configuring the browser to be compatible with the webpage can restore the compatibility of the webpage resources of the webpage at the browser end, so that the original webpage is not modified, and the technical and capital investment is reduced. Specifically, the method for configuring the browser to be compatible with the webpage comprises the steps of detecting the webpage which is incompatible with the browser in a business application system, wherein the webpage which is incompatible with the browser is a first webpage; acquiring first page resources of the first webpage, and detecting first resources incompatible with the browser in the first page resources; repairing the first resource to a second resource; configuring the second resource at the server; and in the process that the browser requests the first page resource of the first webpage, acquiring the second resource from the server, and replacing the first resource in the first page resource with the second resource. Therefore, the compatibility adjustment is carried out from the browser aspect, so that the webpage is normally displayed and normally interacts with the user, the cost of technology and capital is reduced, and the working and production efficiency of the user is improved.
Drawings
FIG. 1 is one of the schematic diagrams of a system for configuring a browser to be compatible with a web page in accordance with a preferred embodiment of the present invention;
FIG. 2 is a second schematic diagram of a system for configuring a browser to be web page compatible in accordance with a preferred embodiment of the present invention;
FIG. 3 is a flowchart of a method for configuring a browser to be compatible with a web page in accordance with a preferred embodiment of the present invention;
FIG. 4 is a browser diagram of the preferred embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating the operation of the method for configuring a browser to be compatible with a web page in accordance with the preferred embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It should be noted that references in the specification to "one embodiment," "an example embodiment," etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases are not intended to refer to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it is submitted that it is within the knowledge of one skilled in the art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
Moreover, where certain terms are used throughout the description and following claims to refer to particular components or features, those skilled in the art will understand that manufacturers may refer to a component or feature by different names or terms. This specification and the claims that follow do not intend to distinguish between components or features that differ in name but not function. In the following description and in the claims, the terms "include" and "comprise" are used in an open-ended fashion, and thus should be interpreted to mean "include, but not limited to. In addition, the term "connected" as used herein includes any direct and indirect electrical connection. Indirect electrical connection means include connection by other means.
Referring to fig. 1-2, in a first embodiment of the invention, a system 100 for configuring a browser to be compatible with a web page is provided, comprising:
the web page analysis module 10 is configured to detect a web page of a business application system that is incompatible with the browser 500, where the web page incompatible with the browser 500 is a first web page;
a first resource positioning module 20, configured to obtain first page resources of the first web page, and detect a first resource that is incompatible with the browser 500 in the first page resources;
a first resource recovery module 60, configured to recover the first resource into a second resource;
a second resource configuration module 30, configured to configure the second resource at the service end;
the resource replacing module 40 is configured to, in a process that the browser 500 requests the first page resource of the first web page, obtain the second resource from the server, and replace the first resource in the first page resource with the second resource.
In this embodiment, the idea of configuring the system 100 with a browser and a web page compatible to implement compatibility repair from the browser 500 end can enable a user to view page content after opening the browser 500 normally and interactively through adjustment of the rendering process by the browser 500 on the premise that a page of an original web page incompatible with the browser 500 is not modified. The browser 500 is preferably in a C/S (Client-Server) mode. Specifically, the system 100 includes a web page analysis module 10, a first resource location module 20, a first resource repair module 60, a second resource configuration module 30, and a resource replacement module 40. The web page analysis module 10 may find out a web page incompatible with the browser 500 in the business application system, where the web page incompatible with the browser 500 is a first web page; the first resource locating module 20 may find out a first resource causing a page exception from among first page resources of the first web page; the first resource repairing module 60 is configured to repair the first resource into a second resource; the first resource recovery module 60 is preferably a developer tool, and the developer tool can debug the static resource file with problems to form a new static resource file without exception; the second resource configuration module 30 may be used to configure the second resource. When the browser 500 requests a first page resource of a first webpage, the browser 500 acquires the first page resource, replaces the first resource in the first page resource with a second resource through the resource replacement module 40 to form a second page resource, and the browser 500 renders the second page resource. The business application system is preferably an ERP, OA or other office system. Therefore, the system 100 can realize that the original application developer is not relied on to modify the page of the first webpage any more, reduce the cost of technology and fund, and improve the working and production efficiency of the user.
Referring to fig. 2, in the second embodiment of the present invention, the web page analysis module 10 includes:
the access submodule 11 is configured to access the service application system through the browser 500;
the webpage analysis submodule 12 is used for analyzing the webpage composition of the business application system;
and the compatibility judging submodule 13 is configured to judge a webpage in which the service application system is incompatible with the browser 500.
In this embodiment, the web page analysis module 10 specifically finds out a web page incompatible with the browser 500 in the business application system through the access sub-module 11, the web page analysis sub-module 12 and the compatibility determination sub-module 13. The web page analysis sub-module 12 analyzes which web pages the service application system is composed of, for example, css, js, and image of a certain public network/intranet are referred to by the web site.
Referring to fig. 2, in a third embodiment of the present invention, the first resource location module 20 includes:
a first page resource obtaining sub-module 21, configured to obtain a first page resource of the first page;
the first resource positioning sub-module 22 is configured to match the first page resource with compatibility data related to the kernel of the browser 500, and position a first resource that is incompatible with the browser 500 in the first page resources of the web page.
In this embodiment, since the kernel correlations of the respective browsers are different, the web page parsing by the respective browsers is different; the first resource positioning module 20 finds out a first resource causing a page abnormality in the first page resources of the first web page through the first page resource obtaining sub-module 21 and the first resource positioning sub-module 22. The first resource location sub-module 22 obtains, through the interface of the developer tool, what page resources and references of the web page are abnormal or incompatible under the kernel of the current browser 500.
Specifically, the first resource is a static resource file of the web page.
Referring to fig. 2, in a fourth embodiment of the present invention, the second resource allocation module 30 includes:
a second resource configuration submodule 31, configured to perform resource replacement policy configuration on the second resource at the server;
and the second resource storage submodule 32 is configured to store the second resource in the server.
In this embodiment, the second resource configuration module 30 performs resource replacement policy configuration on the second resource at the server, and the policy is compatible with the existing service logic and can ensure normal display of the web page after being implemented; the second resource is stored in the server, and the browser 500 may obtain the second resource from the server.
Preferably, the system 100 further comprises a first URL configuration module 50, which comprises:
a first URL configuration submodule 51, configured to perform association configuration on a first URL (Uniform Resource location, Uniform Resource locator) of the first Resource and the second Resource by the server;
and the first URL storage submodule 52 is configured to store the first URL in the server.
Referring to fig. 2, in a fifth embodiment of the present invention, the resource replacement module 40 includes:
the resource request submodule 41 is configured to request a resource of a web page by the browser 500, and acquire a page resource of the web page;
the webpage judging submodule 42 is used for judging whether the webpage is a first webpage or not;
the resource replacing submodule 43 is configured to, if it is determined that the web page is the first web page, determine that the page resource of the web page is the first page resource, and the browser 500 obtains the second resource from the server; and replacing the first resource in the first page resource with a second resource to form a second page resource.
In this embodiment, the browser 500 obtains the page resource of the web page through the resource request sub-module 41, and when the web page determining sub-module 42 determines that the web page is the first web page, the resource replacing sub-module 43 restores the page resource of the web page to the second page resource, and the browser 500 renders the second page resource to obtain the normally displayed page.
Referring to fig. 2, in the sixth embodiment of the present invention, the web page determining sub-module 42 compares the second URL of the page resource of the web page with the first URL of the server, which is configured in association with the second resource, and if the second URL of the page resource of the web page is the same as the first URL, determines that the web page is the first web page.
In this embodiment, the web page determining sub-module 42 compares the second URL of the acquired page resource with the first URL (i.e. compares the path of the resource file on the network), determines whether the web page is the first web page, and if so, acquires the second resource, and returns the second resource as new response request data to the browser 500, and the browser 500 performs rendering and loading, thereby implementing repairing the page with problems.
Referring to fig. 3, in an embodiment of the present invention, there is also provided a method for configuring a browser to be compatible with a web page, including:
step S301, detecting a webpage incompatible with a browser 500 in a business application system, wherein the webpage incompatible with the browser 500 is a first webpage; realized by the web page analysis module 10;
step S302, acquiring first page resources of the first webpage, and detecting first resources incompatible with the browser 500 in the first page resources; by the first resource location module 20;
step S303, the first resource is repaired to be a second resource; by the first resource remediation module 60;
step S304, the second resource is configured at the server side through the second resource configuration module 30;
step S305, in the process that the browser 500 requests the first page resource of the first webpage, acquiring the second resource from the server, and replacing the first resource with the second resource; by the resource replacement module 40.
In this embodiment, the method for configuring the browser to be compatible with the web page may be implemented by the system 100 for configuring the browser to be compatible with the web page, and the method for configuring the browser to be compatible with the web page by the system 100 for configuring the browser to be compatible with the web page is described in detail in the first embodiment, and thus, details of this embodiment are not described herein again.
In one embodiment of the present invention, the step S301 includes:
accessing the service application system through the browser 500, and realizing the access through the access sub-module 11; analyzing the webpage composition of the business application system, and realizing the analysis through a webpage analysis submodule 12; and judging the web page of the business application system incompatible with the browser 500, and implementing the web page through the compatibility judging submodule 13.
In an embodiment of the present invention, the step S302 includes:
acquiring a first page resource of the first webpage; the method is realized by a first page resource obtaining sub-module 21;
matching the first page resource with compatibility data related to the kernel of the browser 500, and positioning a first resource which is incompatible with the browser 500 in the first page resources of the web page; the sub-module 22 is located by a first resource.
Specifically, the first resource is a static resource file of the web page.
In an embodiment of the present invention, the step S304 includes:
performing resource replacement policy configuration on the second resource at the server; by the second resource configuration submodule 31;
storing the second resource in the server; by a second resource storage submodule 32.
Preferably, the method further comprises:
the server performs association configuration on the first URL of the first resource and the second resource, and is implemented by a first URL configuration submodule 51; and storing the first URL in the server, which is implemented by a first URL storage submodule 52.
In one embodiment of the present invention, the step S305 includes:
the browser 500 requests a resource of a web page to acquire a page resource of the web page; realized by the resource request submodule 41;
judging whether the webpage is a first webpage or not; realized by the web page judgment sub-module 42;
if the webpage is judged to be the first webpage, the page resource of the webpage is the first page resource, and the browser 500 acquires the second resource from the server; replacing a first resource in the first page resources with a second resource to form a second page resource; by the resource replacement submodule 43.
In an embodiment of the present invention, the step of determining whether the webpage is the first webpage in the step S305 includes:
comparing a second URL of the page resource of the webpage with a first URL of the server side, which is configured in a manner of being associated with the second resource, and if the second URL is the same as the first URL, judging that the webpage is the first webpage; this is done by the web page decision sub-module 42.
Referring to fig. 4, the present invention also provides a browser 500, including:
a web page analysis module 510, configured to detect a web page of a business application system that is incompatible with the browser 500, where the web page incompatible with the browser 500 is a first web page;
a first resource positioning module 520, configured to obtain first page resources of the first web page, and detect a first resource that is incompatible with the browser 500 in the first page resources;
a resource replacing module 530, configured to obtain a second resource, and replace a first resource in the first page resource with the second resource; the second resource is configured through a server, and the server is used for configuring the first resource and configuring the first resource as the second resource.
In this embodiment, in order to solve the problem of page compatibility between the browser 500 and the web page, the browser 500 replaces the page resource in the network request process. Specifically, the browser 500 finds out a webpage incompatible with the browser 500 in a business application system through the webpage analysis module 510, where the webpage incompatible with the browser 500 is a first webpage; the first resource locating module 520 may find out a first resource causing a page exception from the first page resources of the first web page; acquiring a second resource without exception from the server; when the browser 500 requests a first page resource of a first webpage, the browser 500 acquires the first page resource, and replaces the first resource in the first page resource with a second resource through the resource replacement module 530 to form a second page resource.
Referring to fig. 4, in an embodiment of the present invention, further comprising:
the data storage module 540 is used for acquiring and storing the second resource from the server;
a rendering module 550, configured to render the second page resource.
The operation process of the browser 500:
referring to fig. 5, when the browser 500 is started, the resource file compatibility policy data (i.e., the second resource) is obtained through the configured server IP address and port, and is locally cached through the data storage module 540 (the configuration data engine in the figure), and if the resource file compatibility policy data locally exists, the comparison and update are performed in a file MD5 (a fifth version of a message digest algorithm) manner. There are two modes when a business application system accesses through the browser 500: one is a compatible mode, in which resource replacement is mainly performed through proxy service, and whether the service application system is handed to a proxy server for proxy is determined by comparing the acquired path on the network of the second resource with the configured server IP address and port. The other is a very fast mode in which resource replacement is performed mainly by the Net module of the browser 500. In both modes, the path on the network of each requested page resource is compared with the path on the network associated with the acquired second resource, if the two paths are the same, the corresponding second resource is acquired, the second resource is returned to the browser 500 as new response request data, and the browser 500 performs rendering and loading, so that the problem page is repaired.
The present invention also provides a storage medium storing a computer program for executing any one of the above task scheduling methods. Such as computer program instructions, which when executed by a computer, may invoke or otherwise provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on fixed or removable storage media and/or transmitted via a data stream over a broadcast or other signal-bearing medium and/or stored on a storage medium of a computer device operating in accordance with the program instructions. Here, according to an embodiment of the present application, a computer device 400 as shown in fig. 6 is included, the computer device 400 preferably includes a storage medium 200 for storing a computer program and a processor 300 for executing the computer program, wherein when the computer program is executed by the processor 300, the computer device 400 is triggered to execute the method and/or the technical solution according to the foregoing embodiments.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the above steps or functions. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
The method according to the invention can be implemented on a computer as a computer-implemented method, or in dedicated hardware, or in a combination of both. Executable code for the method according to the invention or parts thereof may be stored on a computer program product. Examples of computer program products include memory devices, optical storage devices, integrated circuits, servers, online software, and so forth. Preferably, the computer program product comprises non-transitory program code means stored on a computer readable medium for performing the method according to the invention when said program product is executed on a computer.
In a preferred embodiment, the computer program comprises computer program code means adapted to perform all the steps of the method according to the invention when the computer program is run on a computer. Preferably, the computer program is embodied on a computer readable medium.
In summary, the method for configuring the browser to be compatible with the web page of the present invention performs compatibility restoration on the web page resource of the web page at the browser end, so that the original web page is not modified, and the technical and capital investment is reduced. Specifically, the method for configuring the browser to be compatible with the webpage comprises the steps of detecting the webpage which is incompatible with the browser in a business application system, wherein the webpage which is incompatible with the browser is a first webpage; acquiring first page resources of the first webpage, and detecting first resources incompatible with the browser in the first page resources; configuring the first resource at a server side, and configuring the first resource as a second resource; and the browser acquires the second resource from the server and replaces the first resource in the first page resource with the second resource. Therefore, the compatibility adjustment is carried out from the browser aspect, so that the webpage is normally displayed and normally interacts with the user, the cost of technology and capital is reduced, and the working and production efficiency of the user is improved. Various browsers related to the browser kernel, such as browsers related to the browser kernels of Blink, Trident and the like, can realize the replacement of page resources in the browsing process by the method, the system and the like; meanwhile, the page resource replacement in the communication process of the http/https (RSA)/https (national password) protocol is supported.
The present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof, and it should be understood that various changes and modifications can be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
The invention also discloses A1, a method for configuring the compatibility of the browser and the webpage, which comprises the following steps:
detecting a webpage incompatible with a browser in a business application system, wherein the webpage incompatible with the browser is a first webpage;
acquiring first page resources of the first webpage, and detecting first resources incompatible with the browser in the first page resources;
repairing the first resource to a second resource;
configuring the second resource at the server;
and in the process that the browser requests the first page resource of the first webpage, acquiring the second resource from the server, and replacing the first resource with the second resource.
A2, the method for configuring browser and web page compatibility according to A1, wherein the step of detecting the browser-incompatible web page in the business application system includes:
and accessing the business application system through the browser, analyzing the webpage composition of the business application system, and judging the webpage of the business application system incompatible with the browser.
A3, the method for configuring browser to be compatible with web page according to A1, wherein the step of obtaining first page resources of the first web page and the step of detecting first page resources incompatible with the browser comprises:
acquiring a first page resource of the first webpage;
and matching the first page resources with compatibility data related to the kernel of the browser, and positioning first resources which are incompatible with the browser in the first page resources of the webpage.
A4, according to the method for configuring the browser to be compatible with the webpage described in A3, the step of configuring the first resource to be the second resource at the service end includes:
performing resource replacement policy configuration on the second resource at the server;
and storing the second resource in the server.
A5 method for configuring browser to be compatible with web page according to A4,
the first resource is a static resource file of the webpage.
A6, the method for configuring browser compatibility with web page according to A5, the method further comprising:
the server performs association configuration on a first URL of the first resource and the second resource;
and storing the first URL in the server.
A7, according to the method for configuring the browser to be compatible with the webpage A6, in the process that the browser requests the first page resource of the first webpage, the step of obtaining the second resource from the server side and replacing the first resource with the second resource comprises the following steps:
the browser requests resources of a webpage to acquire the page resources of the webpage;
judging whether the webpage is a first webpage or not;
if the webpage is judged to be the first webpage, the page resource of the webpage is the first page resource, and the browser acquires the second resource from the server;
and replacing the first resource in the first page resource with a second resource to form a second page resource.
A8, according to the method for configuring the browser to be compatible with the webpage A7, the step of determining whether the webpage is a first webpage comprises:
and comparing a second URL of the page resource of the webpage with a first URL of the server side, which is configured in association with the second resource, and if the second URL is the same as the first URL, judging that the webpage is the first webpage.
B9, a system for configuring browser to be compatible with web page, comprising:
the webpage analysis module is used for detecting a webpage of a business application system incompatible with a browser, wherein the webpage incompatible with the browser is a first webpage;
the first resource positioning module is used for acquiring first page resources of the first webpage and detecting first resources incompatible with the browser in the first page resources;
the first resource repairing module is used for repairing the first resource into a second resource;
the second resource configuration module is used for configuring the second resource at the service end; and the resource replacing module is used for acquiring the second resource from the server side and replacing the first resource with the second resource in the process that the browser requests the first page resource of the first webpage.
B10, the system for configuring browser to be compatible with web page according to B9, the web page analysis module comprises:
the access submodule is used for accessing the business application system through the browser;
the webpage analysis submodule is used for analyzing the webpage composition of the business application system;
and the compatibility judgment submodule is used for judging the webpage of the business application system incompatible with the browser.
B11, the system for configuring browser to be compatible with web page according to B9, the first resource location module comprising:
the first page resource obtaining submodule is used for obtaining a first page resource of the first page;
and the first resource positioning sub-module is used for matching the first page resource with the compatibility data related to the kernel of the browser and positioning a first resource which is incompatible with the browser in the first page resource of the webpage.
B12, the system for configuring browser to be compatible with web page according to B11, the second resource configuration module comprises:
the second resource configuration submodule is used for carrying out resource replacement strategy configuration on the second resource at the service end;
and the second resource storage submodule is used for storing the second resource in the server.
B13, configuring a browser and a webpage compatible system according to the B12, wherein the first resource is a static resource file of the webpage.
B14, the system for configuring browser compatibility with web page according to B13, the system further comprising a first URL configuration module comprising:
a first URL configuration submodule, configured to perform association configuration on a first URL of the first resource and the second resource by the server; (ii) a
And the first URL storage submodule is used for storing the first URL in the server.
B15, the system for configuring browser to be compatible with web page according to B14, the resource replacing module comprises:
the resource request submodule is used for the browser to request the resources of the webpage and obtain the page resources of the webpage;
the webpage judging submodule is used for judging whether the webpage is a first webpage or not;
the resource replacing submodule is used for determining that the page resource of the webpage is the first page resource if the webpage is determined to be the first webpage, and the browser acquires the second resource from the server side; and replacing the first resource in the first page resource with a second resource to form a second page resource.
B16, according to the system for configuring the browser to be compatible with the webpage in the B15, the webpage judgment sub-module compares the second URL of the webpage resource with the first URL of the server side, which is configured in an associated manner with the second resource, and if the second URL is the same as the first URL, the webpage is judged to be the first webpage.
C17, a browser, comprising:
the webpage analysis module is used for detecting a webpage of a business application system incompatible with the browser, and the webpage incompatible with the browser is a first webpage;
the first resource positioning module is used for acquiring first page resources of the first webpage and detecting first resources incompatible with the browser in the first page resources;
the resource replacing module is used for acquiring a second resource and replacing the first resource in the first page resource with the second resource to form a second page resource; the second resource is configured through a server, and the server is used for configuring the first resource and configuring the first resource as the second resource.
C18, the browser of C17, further comprising:
the data storage module is used for acquiring and storing the second resource from the server;
and the rendering module is used for rendering the second page resource.
D19, a storage medium storing a computer program for executing the method of any one of a 1-a 8 for configuring a browser to be web-compatible.
E20, a computer device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, the processor implementing the method for configuring a browser to be compatible with a web page of any one of A1-A8 when executing the computer program.

Claims (10)

1.一种配置浏览器与网页兼容的方法,其特征在于,包括:1. a method for configuring a browser to be compatible with a web page, is characterized in that, comprising: 检测业务应用系统中与浏览器不兼容的网页,所述与浏览器不兼容的网页为第一网页;Detecting a webpage incompatible with the browser in the business application system, where the webpage incompatible with the browser is the first webpage; 获取所述第一网页的第一页面资源,检测所述第一页面资源中与所述浏览器不兼容的第一资源;Acquire a first page resource of the first webpage, and detect a first resource in the first page resource that is incompatible with the browser; 将所述第一资源修复为第二资源;repairing the first resource to a second resource; 在服务端对所述第二资源进行配置;configure the second resource on the server; 所述浏览器请求所述第一网页的第一页面资源的过程中,从所述服务端获取所述第二资源,将所述第一资源替换为第二资源。In the process of requesting the first page resource of the first web page, the browser obtains the second resource from the server, and replaces the first resource with the second resource. 2.根据权利要求1所述的配置浏览器与网页兼容的方法,其特征在于,所述检测业务应用系统中与浏览器不兼容的网页的步骤包括:2. The method for configuring a browser to be compatible with a web page according to claim 1, wherein the step of detecting a web page that is incompatible with the browser in the business application system comprises: 通过所述浏览器访问所述业务应用系统,分析所述业务应用系统的网页构成,判断出所述业务应用系统与浏览器不兼容的网页。Access the business application system through the browser, analyze the webpage composition of the business application system, and determine the webpages that are incompatible with the business application system and the browser. 3.根据权利要求1所述的配置浏览器与网页兼容的方法,其特征在于,所述获取所述第一网页的第一页面资源,检测所述第一页面资源中与所述浏览器不兼容的第一资源的步骤包括:3 . The method for configuring compatibility between a browser and a webpage according to claim 1 , wherein, by acquiring the first page resource of the first webpage, detecting that the first page resource is not compatible with the browser. 4 . The steps for a compatible first resource include: 获取所述第一网页的第一页面资源;obtaining the first page resource of the first web page; 将所述第一页面资源与所述浏览器的内核相关的兼容性数据进行匹配,定位所述网页的第一页面资源中与所述浏览器不兼容的第一资源。Matching the first page resource with compatibility data related to the kernel of the browser, and locating the first resource in the first page resource of the web page that is incompatible with the browser. 4.根据权利要求1所述的配置浏览器与网页兼容的方法,其特征在于,所述方法还包括:4. The method for configuring browser compatibility with web pages according to claim 1, wherein the method further comprises: 所述服务端对所述第一资源的第一URL与所述第二资源进行关联配置;The server performs association configuration on the first URL of the first resource and the second resource; 将所述第一URL存储于所述服务端。The first URL is stored in the server. 5.根据权利要求4所述的配置浏览器与网页兼容的方法,其特征在于,所述浏览器请求所述第一网页的第一页面资源的过程中,从所述服务端获取所述第二资源,将所述第一资源替换为第二资源的步骤包括:5 . The method for configuring compatibility between a browser and a webpage according to claim 4 , wherein, in the process of requesting the first page resource of the first webpage, the browser obtains the first page resource from the server. 6 . Second resource, the step of replacing the first resource with the second resource includes: 所述浏览器请求网页的资源,获取所述网页的页面资源;The browser requests the resources of the web page, and obtains the page resources of the web page; 判断所述网页是否为第一网页;determining whether the webpage is the first webpage; 若判断所述网页为所述第一网页,则所述网页的页面资源为所述第一页面资源,所述浏览器从所述服务端获取所述第二资源;If it is determined that the web page is the first web page, the page resource of the web page is the first page resource, and the browser obtains the second resource from the server; 将所述第一页面资源中的第一资源替换为第二资源形成第二页面资源。A second page resource is formed by replacing the first resource in the first page resource with the second resource. 6.根据权利要求5所述的配置浏览器与网页兼容的方法,其特征在于,判断所述网页是否为第一网页的步骤包括:6. The method for configuring browser compatibility with a web page according to claim 5, wherein the step of judging whether the web page is the first web page comprises: 将所述网页的页面资源的第二URL与所述服务端的与所述第二资源进行关联配置的第一URL进行比对,若相同,则判断所述网页是所述第一网页。The second URL of the page resource of the web page is compared with the first URL of the server that is configured in association with the second resource, and if they are the same, it is determined that the web page is the first web page. 7.一种配置浏览器与网页兼容的系统,其特征在于,包括:7. A system for configuring a browser to be compatible with a web page, comprising: 网页分析模块,用于检测业务应用系统与浏览器不兼容的网页,所述与浏览器不兼容的网页为第一网页;a webpage analysis module, used for detecting webpages that are incompatible with the browser and the business application system, and the webpages that are incompatible with the browser are the first webpage; 第一资源定位模块,用于获取所述第一网页的第一页面资源,检测所述第一页面资源中与所述浏览器不兼容的第一资源;a first resource locating module, configured to acquire a first page resource of the first web page, and detect a first resource in the first page resource that is incompatible with the browser; 第一资源修复模块,用于将所述第一资源修复为第二资源;a first resource repair module, configured to repair the first resource into a second resource; 第二资源配置模块,用于在服务端对所述第二资源进行配置;资源替换模块,用于所述浏览器请求所述第一网页的第一页面资源的过程中,从所述服务端获取所述第二资源,将所述第一资源替换为第二资源。The second resource configuration module is used for configuring the second resource on the server; the resource replacement module is used for the browser to request the first page resource of the first webpage, from the server Acquire the second resource, and replace the first resource with the second resource. 8.一种浏览器,其特征在于,包括:8. A browser, characterized in that, comprising: 网页分析模块,用于检测业务应用系统与所述浏览器不兼容的网页,所述与浏览器不兼容的网页为第一网页;a webpage analysis module, used for detecting webpages that are incompatible with the browser in the business application system, and the webpages that are incompatible with the browser are the first webpages; 第一资源定位模块,用于获取所述第一网页的第一页面资源,检测所述第一页面资源中与所述浏览器不兼容的第一资源;a first resource locating module, configured to acquire a first page resource of the first web page, and detect a first resource in the first page resource that is incompatible with the browser; 资源替换模块,用于获取第二资源,并将所述第一页面资源中的第一资源替换为第二资源形成第二页面资源;所述第二资源通过服务端配置,所述服务端用于对所述第一资源进行配置,将所述第一资源配置为第二资源。A resource replacement module, configured to acquire a second resource, and replace the first resource in the first page resource with a second resource to form a second page resource; the second resource is configured by the server, and the server uses For configuring the first resource, configure the first resource as a second resource. 9.一种存储介质,其特征在于,用于存储一种用于执行权利要求1~6中任意一种配置浏览器与网页兼容的方法的计算机程序。9 . A storage medium, characterized in that it is used for storing a computer program for executing the method for configuring compatibility between a browser and a web page in any one of claims 1 to 6 . 10 . 10.一种计算机设备,包括存储介质、处理器以及存储在所述存储介质上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1~6任一项所述的配置浏览器与网页兼容的方法。10. A computer device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the rights when executing the computer program The method for configuring a browser to be compatible with a web page according to any one of requirements 1 to 6 is required.
CN202010383734.8A 2020-05-08 2020-05-08 Method, system, browser, storage medium and computer device for configuring browser to be compatible with webpage Pending CN113626738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010383734.8A CN113626738A (en) 2020-05-08 2020-05-08 Method, system, browser, storage medium and computer device for configuring browser to be compatible with webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010383734.8A CN113626738A (en) 2020-05-08 2020-05-08 Method, system, browser, storage medium and computer device for configuring browser to be compatible with webpage

Publications (1)

Publication Number Publication Date
CN113626738A true CN113626738A (en) 2021-11-09

Family

ID=78377391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010383734.8A Pending CN113626738A (en) 2020-05-08 2020-05-08 Method, system, browser, storage medium and computer device for configuring browser to be compatible with webpage

Country Status (1)

Country Link
CN (1) CN113626738A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821751A (en) * 2021-11-24 2021-12-21 中国电力科学研究院有限公司 Browser optimization method, system, computer device and readable storage medium
CN114138961A (en) * 2021-11-30 2022-03-04 掌阅科技股份有限公司 Playing processing method of audio electronic book, computing equipment and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217507A (en) * 2007-12-29 2008-07-09 深圳市迅雷网络技术有限公司 Method, device and system for providing and replacing data in web pages
CN103631905A (en) * 2013-11-22 2014-03-12 北京奇虎科技有限公司 Webpage loading method and browser
CN106126198A (en) * 2016-05-31 2016-11-16 美通云动(北京)科技有限公司 The method and device of the PC end application page is loaded in mobile terminal
CN106326091A (en) * 2015-06-24 2017-01-11 深圳市腾讯计算机系统有限公司 Browser webpage compatibility detection method and system
CN107133165A (en) * 2017-03-22 2017-09-05 腾讯科技(深圳)有限公司 Browser compatibility detection method and device
CN109947637A (en) * 2017-12-21 2019-06-28 中国移动通信集团重庆有限公司 Web page compatibility automated testing method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217507A (en) * 2007-12-29 2008-07-09 深圳市迅雷网络技术有限公司 Method, device and system for providing and replacing data in web pages
CN103631905A (en) * 2013-11-22 2014-03-12 北京奇虎科技有限公司 Webpage loading method and browser
CN106326091A (en) * 2015-06-24 2017-01-11 深圳市腾讯计算机系统有限公司 Browser webpage compatibility detection method and system
CN106126198A (en) * 2016-05-31 2016-11-16 美通云动(北京)科技有限公司 The method and device of the PC end application page is loaded in mobile terminal
CN107133165A (en) * 2017-03-22 2017-09-05 腾讯科技(深圳)有限公司 Browser compatibility detection method and device
CN109947637A (en) * 2017-12-21 2019-06-28 中国移动通信集团重庆有限公司 Web page compatibility automated testing method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821751A (en) * 2021-11-24 2021-12-21 中国电力科学研究院有限公司 Browser optimization method, system, computer device and readable storage medium
CN114138961A (en) * 2021-11-30 2022-03-04 掌阅科技股份有限公司 Playing processing method of audio electronic book, computing equipment and computer storage medium

Similar Documents

Publication Publication Date Title
US10567529B2 (en) Unified tracking data management
US8959483B2 (en) Test framework of visual components in a multitenant database environment
US7757215B1 (en) Dynamic fault injection during code-testing using a dynamic tracing framework
US9092201B2 (en) Platform for development and deployment of system administration solutions
EP2847686B1 (en) Enhanced document and event mirroring for accessing content
US20100218053A1 (en) Web page error reporting
US7945849B2 (en) Identifying appropriate client-side script references
WO2004055693A1 (en) Apparatus and method for invoking a web service in response to a request from a client device
JP2010525489A (en) Loading scripts dynamically
WO2010065796A1 (en) System and method for providing virtual web access
AU2008332701A1 (en) Templating system and method for updating content in real time
CN102436402B (en) Module repairing method in software and software equipment
US7698256B1 (en) History support for stateless Javascript Web client
US20110271149A1 (en) Diagnostic dashboard for web pages
JP2004362000A (en) Web application development support device, component call monitoring device, data processing method and program
CN113626738A (en) Method, system, browser, storage medium and computer device for configuring browser to be compatible with webpage
CN104009880A (en) Web testing method, proxy server and Web testing device
US11556608B2 (en) Caching for single page web applications
CN102662838B (en) The adjustment method of Flash and system in a kind of browser
JP6238221B2 (en) Apparatus, method and program for monitoring execution of software
JP2013080470A (en) Hybrid application execution device and method using web technology
US10180914B2 (en) Dynamic domain name service caching
US11429257B1 (en) Dynamically generated help based on derived hierarchical context
US9171091B2 (en) Storing a journal of local and remote interactions
US20060259896A1 (en) Maintaining reproducibility across multiple software builds

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination