Resource processing methods, apparatus, electronic devices and computer-readable media

By loading and filtering static resources and displaying link addresses in the target plug-in, and processing these resources according to user operations, the problem of inefficient static resource processing caused by the browser caching mechanism is solved, and efficient resource processing and improved user experience is achieved .

CN113190771BActive Publication Date: 2025-02-21BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110457300.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-27
Publication Date
2025-02-21
Estimated Expiration
2041-04-27

AI Technical Summary

Technical Problem

During the front-end development process, due to the browser's related caching mechanism, the processing operation process of static resources is cumbersome, resulting in inefficiency and poor user experience.

Method used

By detecting the link address of the target page, loading relevant static resources, filtering out the required resources, displaying the link address in the target plug-in according to the resource category, and processing these link addresses according to user operations.

Benefits of technology

It realizes efficient processing of resources without cumbersome static resource processing operations, improves processing efficiency and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113190771B_ABST
    Figure CN113190771B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a resource processing method, device, electronic device and medium. A specific implementation of the method includes: in response to detecting the input of the link address of the target page, loading the static resources related to the target page; filtering the static resources to obtain the filtered static resources; displaying the link addresses corresponding to the various resources in the pre-installed target plug-in according to the resource categories of the various resources included in the filtered static resources; and processing the link addresses corresponding to the various resources in the target plug-in according to the received user operations. This implementation can efficiently process the various resources displayed by the target plug-in according to the received user operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a resource processing method, device, electronic device, and computer-readable medium. Background Art

[0002] At present, in the process of front-end development, static resources are often hosted on the server, which can speed up the access to resources. With the iterative update of requirements, some of the static resources may need to be continuously optimized and edited and then re-uploaded to the server. However, due to the relevant cache mechanism of the browser, the subsequent various processing of static resources requested by the page often requires a series of static resource processing operations. The operation process of various processing operations of static resources is relatively cumbersome and has the problem of low efficiency, resulting in a poor user experience. Summary of the invention

[0003] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0004] Some embodiments of the present disclosure propose resource processing methods, devices, electronic devices, and computer-readable media to solve one or more of the technical problems mentioned in the above background technology section.

[0005] In a first aspect, some embodiments of the present disclosure provide a resource processing method, comprising: in response to detecting input of a link address of a target page, loading static resources related to the target page; filtering the static resources to obtain filtered static resources; displaying link addresses corresponding to the resources in a pre-installed target plug-in based on resource categories of the resources included in the filtered static resources; and processing the link addresses corresponding to the resources in the target plug-in according to received user operations.

[0006] Optionally, the filtering of the static resources to obtain filtered static resources includes: filtering resources associated with the target domain name from the static resources to obtain the filtered static resources.

[0007] Optionally, the link addresses corresponding to the above-mentioned each resource in the above-mentioned target plug-in are processed according to the received user operation, including: in response to the above-mentioned user operation to refresh the resources of at least one first target link address selected in the above-mentioned target plug-in, refreshing the resources corresponding to the above-mentioned at least one first target link address.

[0008] Optionally, the above-mentioned processing of the link addresses corresponding to the above-mentioned each resource in the above-mentioned target plug-in according to the received user operation includes: in response to the above-mentioned user operation of refreshing the resources of the selected at least one target selection box in the above-mentioned target plug-in, refreshing the resources of the link address corresponding to the above-mentioned at least one target selection box, wherein the target selection box in the above-mentioned at least one target selection box represents each resource of any resource category in the above-mentioned target plug-in.

[0009] Optionally, the above-mentioned processing of the link addresses corresponding to the above-mentioned each resource in the above-mentioned target plug-in according to the received user operation includes: in response to the above-mentioned user operation of adding resources to the selected at least one second target link address in the above-mentioned target plug-in, storing the various resources corresponding to the above-mentioned at least one second target link address; in response to determining to store the various resources corresponding to the above-mentioned at least one second target link address, adding the above-mentioned at least one second target link address to the list corresponding to the pre-built first target tag in the above-mentioned target plug-in.

[0010] Optionally, the method further includes: in response to detecting that the user clicks the first target tag in the target plug-in, displaying each resource corresponding to the at least one second target link address in the target plug-in for the user to process each resource corresponding to the at least one second target link address.

[0011] Optionally, the above-mentioned processing of the link addresses corresponding to the above-mentioned each resource in the above-mentioned target plug-in according to the received user operation includes: in response to the above-mentioned user operation to export resources for the selected at least one third target link address in the above-mentioned target plug-in, exporting and converting the above-mentioned at least one third target resource into a file in a target format.

[0012] Optionally, the above-mentioned processing of the link addresses corresponding to the above-mentioned each resource in the above-mentioned target plug-in according to the received user operation includes: in response to the above-mentioned user operation of clicking the import button in the above-mentioned target plug-in, converting the above-mentioned target file to obtain at least one fourth target resource; adding the link address corresponding to the above-mentioned at least one fourth target resource to the list corresponding to the pre-built second target tag in the above-mentioned target plug-in, and storing the above-mentioned at least one fourth target resource.

[0013] In a second aspect, some embodiments of the present disclosure provide a resource processing device, comprising: a loading unit, configured to load static resources related to the target page in response to detecting an input of a link address of the target page; a screening unit, configured to screen the static resources to obtain screened static resources; a display unit, configured to display the link addresses corresponding to the above-mentioned resources in a pre-installed target plug-in based on the resource categories of the various resources included in the above-mentioned screened static resources; and a processing unit, configured to process the link addresses corresponding to the above-mentioned resources in the target plug-in according to received user operations.

[0014] Optionally, the screening unit may be further configured to: screen resources associated with the target domain name from the static resources to obtain the screened static resources.

[0015] Optionally, the processing unit may be further configured to: in response to the user operation of refreshing resources of at least one first target link address selected in the target plug-in, refresh resources corresponding to the at least one first target link address.

[0016] Optionally, the processing unit can be further configured to: in response to the above-mentioned user operation to refresh the resources of the selected at least one target selection box in the above-mentioned target plug-in, refresh the resources of the link address corresponding to the above-mentioned at least one target selection box, wherein the target selection box in the above-mentioned at least one target selection box represents each resource of any resource category in the above-mentioned target plug-in.

[0017] Optionally, the processing unit can be further configured to: in response to the above-mentioned user operation of adding resources to the selected at least one second target link address in the above-mentioned target plug-in, store each resource corresponding to the above-mentioned at least one second target link address; in response to determining to store each resource corresponding to the above-mentioned at least one second target link address, add the above-mentioned at least one second target link address to the list corresponding to the pre-built first target tag in the above-mentioned target plug-in.

[0018] Optionally, the processing unit can be further configured to: in response to detecting that the user clicks the above-mentioned first target tag in the above-mentioned target plug-in, display the various resources corresponding to the above-mentioned at least one second target link address in the above-mentioned target plug-in for the user to process the various resources corresponding to the above-mentioned at least one second target link address.

[0019] Optionally, the processing unit may be further configured to: in response to the user operation of exporting resources for at least one third target link address selected in the target plug-in, export and convert the at least one third target resource into a file in a target format.

[0020] Optionally, the processing unit can be further configured to: in response to the user operation of clicking an import button in the target plug-in, convert the target file to obtain at least one fourth target resource; add the link address corresponding to the at least one fourth target resource to the list corresponding to the pre-built second target tag in the target plug-in, and store the at least one fourth target resource.

[0021] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0022] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner in the first aspect is implemented.

[0023] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: the resource processing method of some embodiments of the present disclosure can efficiently process various resources displayed by the target plug-in according to the received user operation. Specifically, due to the relevant cache mechanism of the browser, various processing of static resources requested by the page often requires a series of static resource processing operations. The operation process of various processing operations of static resources is relatively cumbersome, and there is a problem of low efficiency, resulting in poor user experience. Based on this, the resource processing method of some embodiments of the present disclosure can first, in response to the input of the link address of the target page being detected, load the static resources related to the above target page. Then, the static resources are filtered to obtain the required resources. Furthermore, the link addresses corresponding to the filtered and required resources are displayed in the target plug-in according to the resource categories of the various resources included in the filtered static resources. By displaying the link addresses corresponding to the filtered and required resources in the target plug-in, the processed resources can be obtained more efficiently and conveniently. Finally, according to the received user operation, the link addresses corresponding to the above resources in the above target plug-in are processed. As a result, without the need for a series of cumbersome static resource processing operations, each resource can be processed more efficiently, thereby improving the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0025] Figure 1 is a schematic diagram of an application scenario of a resource processing method according to some embodiments of the present disclosure;

[0026] Figure 2 is a flow chart of some embodiments of the resource processing method according to the present disclosure;

[0027] Figure 3 is a schematic diagram of a target plug-in in some embodiments of the resource processing method according to the present disclosure;

[0028] Figure 4 is a schematic diagram of a resource appending operation in some embodiments of the resource processing method according to the present disclosure;

[0029] Figure 5 is a schematic diagram of a resource refresh operation in some embodiments of the resource processing method according to the present disclosure;

[0030] Figure 6 is a schematic diagram of a resource export operation in some embodiments of the resource processing method according to the present disclosure;

[0031] Figure 7 are flow charts of other embodiments of the resource processing method according to the present disclosure;

[0032] Figure 8 is a schematic diagram of a resource refresh operation in some embodiments of the resource processing method according to the present disclosure;

[0033] Fig. 9 is a schematic diagram of the structure of some embodiments of the resource processing device according to the present disclosure;

[0034] Fig.10 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0035] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0036] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0037] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0038] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0039] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0040] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0041] Figure 1 It is a schematic diagram of an application scenario of the resource processing method according to some embodiments of the present disclosure.

[0042] exist Figure 1 In the application scenario, in response to detecting the input of the link address 102 of the target page 103, the electronic device 101 can first load the static resource 104 related to the target page 103. In this scenario, the link address 102 can be: https: / / www.u**confont.com. Static resources 104It may include: a first format file 1041, a second format file 1042, a first format picture 1043, and a second format picture 1044. Among them, the first format file 1041 may be a JS (JavaScript) file. The second format file 1042 may be a CSS (Cascading Style Sheets) file. The first format picture 1043 may be a picture in the JPG (Joint Photographic Experts Group) format. The second format picture 1044 may be a picture in the PNG (Portable Network Graphics) format. Then, the above-mentioned static resources 104 are filtered to obtain the filtered static resources 105. In this application scenario, the filtered static resources 105 may include: a second format file 1041 and a first format picture 1043. Furthermore, according to the resource category of each resource included in the above-mentioned filtered static resources 105, the link address corresponding to the above-mentioned each resource is displayed in the pre-installed target plug-in 106. In this application scenario, the resource category corresponding to the second format file 1041 may be a JS file category. The first format picture 1043 may be a JPG picture category. The link address 1061 corresponding to the second format file 1041 may be: “https: / / www.i**ffont.com / mat / pac.index_2020”. The link address 1062 corresponding to the first format image 1031 may be: https: / / www.p** ufont.com / mat / pc.index_2021 Finally, according to the received user operation, the link addresses corresponding to the above-mentioned resources in the above-mentioned target plug-in 106 are processed. Optionally, in response to the user operation of refreshing the resources of at least one first target link address selected in the above-mentioned target plug-in 106, the resources corresponding to the above-mentioned at least one first target link address are refreshed.

[0043] It should be noted that the electronic device 101 can be hardware or software. When the electronic device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or it can be implemented as a single server or a single terminal device. When the electronic device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, for example, or it can be implemented as a single software or software module. No specific limitation is made here.

[0044] It should be understood that Figure 1 The number of electronic devices in the embodiment is only for illustration. Any number of electronic devices may be provided according to implementation requirements.

[0045] Continue to refer Figure 2, shows a process 200 of some embodiments of the resource processing method according to the present disclosure. The resource processing method comprises the following steps:

[0046] Step 201 : in response to detecting an input of a link address of a target page, loading static resources related to the target page.

[0047] In some embodiments, in response to detecting the input of the link address of the target page, the execution body of the resource processing method (eg Figure 1 The electronic device shown in the figure can load static resources related to the target page through a static resource loading request. The target page can be a web page that the user wants to open. Static resources can be resources that the user has accessed multiple times and whose source code has not changed. Static resources include but are not limited to at least one of the following: CSS files, JS files, PNG files, JPG files, GIF (Graphics Interchange Format) images, TTF (TrueTypeFont) font files.

[0048] It should be noted that after completing the static resource loading request, the above-mentioned execution subject can use the extended application programming interface (API) provided by the browser to generate a callback function. Among them, the above-mentioned callback function can be a function passed as a parameter, which can be used to monitor the static resources loaded by the current page. As an example, the above-mentioned application programming interface can be chrome.webRequest.onBeforeRequest, which can ensure that it is triggered and monitored when a request is about to occur on the page.

[0049] Step 202, screening the above static resources to obtain screened static resources.

[0050] In some embodiments, the execution subject may filter the static resources to obtain filtered static resources. As an example, the execution subject may filter the link addresses corresponding to the static resources by setting relevant filter parameters to obtain filtered static resources.

[0051] In some optional implementations of some embodiments, the execution subject may filter resources associated with the target domain name from the static resources to obtain the filtered static resources. The target domain name may be pre-set. There may be at least one target domain name.

[0052] It should be noted that the above-mentioned execution entity can first establish at least one category file corresponding to the above-mentioned target domain name. Then, classify the resources in the filtered static resources. Finally, according to the resource category of each resource in the filtered static resources, store each resource in the corresponding category file in turn to facilitate the subsequent display of the link address corresponding to each resource in the target plug-in. Among them, the resource category can be the category to which the resource belongs. The resource category can include but is not limited to at least one of the following: CSS file category, JPG image category, JS file category, GIF image category, PNG image category.

[0053] As an example, the execution entity may set relevant filter parameters to filter the link addresses of resources associated with the target domain name from the static resources, so as to obtain the filtered static resources.

[0054] As another example, the above-mentioned relevant filter parameter can be: "*: / / static.360busyimg.com / *.${type}", or "*: / / misc.360busyimg.com / *.${type}". Thus, the above-mentioned execution subject can obtain the static resources of the link address www.static.360busyimg.com and the static resources of the link address www.misc.360busyimg.com. The target domain name can include: static.360buyimg.com, misc.360buyimg.com.

[0055] Step 203: displaying the link address corresponding to each resource in the pre-installed target plug-in according to the resource category of each resource included in the filtered static resources.

[0056] In some embodiments, the execution subject may display the link address corresponding to each resource in the pre-installed target plug-in according to the resource category of each resource included in the filtered static resources.

[0057] Here, the target plugin's version number, icon reference, permissions used during script execution, and configuration scripts run in the background are pre-configured.

[0058] As an example, Figure 3As shown, it is shown that the link addresses corresponding to each resource are displayed in the target plug-in. Among them, the link addresses corresponding to each resource may be in the list corresponding to "** Mall" in the target plug-in. The link addresses corresponding to each resource may include: a first link address, a second link address, a third link address, a fourth link address, a fifth link address, a sixth link address, and a seventh link address. Among them, the first link address may be: "https: / / static.360**busyimg.com / mat / pac.index_2020". The resource category of the first link address may be a CSS file category. The second link address may be: "https: / / static.360**busyimg.com / mat / pc.index_2010". The resource category of the second link address may be a CSS file category. The third link address may be: "https: / / static.360**busyimg.com / mt / mat.index_2010". The resource category of the third link address may be a JS file category. The fourth link address may be: "https: / static.360**busyimg.com / mat / lib.index_2021". The resource category of the fourth link address may be a PNG picture category. The fifth link address may be: “https: / / static.360**busyimg.com / mat / sfw.index_2021”. The resource category of the fifth link address may be a PNG picture category. The sixth link address may be: “https: / / static.360**busyimg.com / mat / pct.indexs_2021”. The resource category of the sixth link address may be a JPG picture category. The seventh link address may be: “https: / / static.360**busyimg.com / mat / jyt.indexs_2020”. The resource category of the seventh link address may be a JPG picture category.

[0059] Here, according to the resource category of each resource, the link addresses corresponding to the resources of the same resource category are put together. In addition, the resource categories are sorted, and the resources corresponding to the resource categories in the front are placed at the front of the list. The resources corresponding to the resource categories in the back are placed at the back of the list.

[0060] Step 204: Process the link addresses corresponding to the above-mentioned resources in the above-mentioned target plug-in according to the received user operation.

[0061] In some embodiments, the execution subject may process the link addresses corresponding to the resources in the target plug-in according to the received user operation, wherein the user operation may be an operation of processing the link addresses in the target plug-in by the user.

[0062] As an example, in response to the user operation of deleting the target link address corresponding to the target resource in the above resources, the target link address in the above target plug-in is deleted.

[0063] In some optional implementations of some embodiments, the processing of the link addresses corresponding to the various resources in the target plug-in according to the received user operation may include the following steps:

[0064] The first step is to store resources corresponding to the at least one second target link address in the target plug-in in response to the user operation of adding resources to the selected at least one second target link address.

[0065] As an example, the user operation may be an operation of selecting a selection box corresponding to at least one second target link address and adding resources to the resources corresponding to the at least one second target link address.

[0066] Here, when the selection box corresponding to at least one second target link address is selected, the above-mentioned execution subject can first add a new label based on the original label corresponding to at least one second target link address. The label is set with a corresponding universally unique identifier (UUID) and name. In order to ensure uniformity, the universally unique identifier can be spliced ​​with a specific structure to ensure the uniqueness of the label. The above-mentioned execution subject can also interact with the browser's label system through chrome.tabs.

[0067] As another example, the execution subject may use the Object.assign method to ensure that the original label is not lost.

[0068] As yet another example, the at least one second target link address may be stored in a storage system of the target browser.

[0069] In a second step, in response to determining to store each resource corresponding to the at least one second target link address, the at least one second target link address is added to a list corresponding to the pre-constructed first target tag in the target plug-in.

[0070] As an example, Figure 4 As shown, Figure 4Figure 401 in the figure may represent that the user selects the selection box of at least one second target link address, and the user clicks the append button. The at least one second target link address includes:

[0071] https: / / static.360**busyimg.com / mat / pac.index_2020",

[0072] https: / / static.360**busyimg.com / mt / mat.index_2010、

[0073] https: / / static.360**busyimg.com / mat / sfw.index_2021、

[0074] https: / / static.360**busyimg.com / mat / pct.indexs_2021.

[0075] Then, at least one second target link address is stored. Finally, in response to determining to store each resource corresponding to the at least one second target link address, the at least one second target link address is added to the list corresponding to the pre-built "low price promotion" tag in the target plug-in. The list corresponding to the "low price promotion" tag can refer to Figure 4 Figure 402 in .

[0076] Optionally, in response to detecting that the user clicks the first target tag in the target plug-in, the execution subject may display the resources corresponding to the at least one second target link address in the target plug-in for the user to process the resources corresponding to the at least one second target link address. As an example, the user refreshes the resources corresponding to the at least one second target link address.

[0077] In some optional implementations of some embodiments, in response to the user operation of refreshing resources of at least one target selection box selected in the target plug-in, the execution entity may refresh the resources of the link address corresponding to the at least one target selection box, wherein the target selection box in the at least one target selection box represents each resource of any resource category in the target plug-in.

[0078] As an example, Figure 5 As shown, Figure 5It shows that the user selects the target selection box corresponding to JPG in the target plug-in, and the user clicks the refresh button. Then, all resources of the JPG image category in the list corresponding to "** Mall" in the target plug-in are refreshed.

[0079] In some optional implementations of some embodiments, in response to the user operation to export resources for at least one third target link address selected in the target plug-in, the execution entity may export and convert the at least one third target resource into a file in a target format.

[0080] As an example, the above execution subject can use the new Bold method to convert files. The bold constructor itself supports converting strings into files. It uses url.createObjectUrl(bold / file) to convert it into the link address of the corresponding binary file stream, and sets the converted file structure to Json format to facilitate other subsequent operations. Among them, the exported related Json files can be directly imported into the target plug-in as a whole later. The readAsText method of the FileReader function can be used to read the file, the onload listener and the read callback function can be used. The Object.assign method is used to append the Json object to the object corresponding to the label, and the label is stored as a whole to ensure data persistence.

[0081] As an example, Figure 6 As shown, Figure 6 It shows that the user selects the selection box corresponding to at least one third target link address in the target plug-in, and the user clicks the export button. The at least one third target link address may include:

[0082] https: / / static.360**busyimg.com / mat / pac.index_2020",

[0083] https: / / static.360**busyimg.com / mt / mat.index_2010.

[0084] Furthermore, the resource corresponding to at least one third target link address in the list corresponding to "low price promotion" in the target plug-in is exported and converted into a file in the target format.

[0085] In some optional implementations of some embodiments, the processing of the link addresses corresponding to the various resources in the target plug-in according to the received user operation may include the following steps:

[0086] The first step is to convert the target file in response to the user operation of clicking an import button in the target plug-in to obtain at least one fourth target resource.

[0087] The second step is to add the link address corresponding to the at least one fourth target resource to the list corresponding to the pre-built second target tag in the target plug-in, and store the at least one fourth target resource.

[0088] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: the resource processing method of some embodiments of the present disclosure can efficiently process various resources displayed by the target plug-in according to the received user operation. Specifically, due to the relevant cache mechanism of the browser, various processing of static resources requested by the page often requires a series of static resource processing operations. The operation process of various processing operations of static resources is relatively cumbersome, and there is a problem of low efficiency, resulting in poor user experience. Based on this, the resource processing method of some embodiments of the present disclosure can first, in response to the input of the link address of the target page being detected, load the static resources related to the above target page. Then, the static resources are filtered to obtain the required resources. Furthermore, the link addresses corresponding to the filtered and required resources are displayed in the target plug-in according to the resource categories of the various resources included in the filtered static resources. By displaying the link addresses corresponding to the filtered and required resources in the target plug-in, the processed resources can be obtained more efficiently and conveniently. Finally, according to the received user operation, the link addresses corresponding to the above resources in the above target plug-in are processed. As a result, without the need for a series of cumbersome static resource processing operations, each resource can be processed more efficiently, thereby improving the processing efficiency.

[0089] Further references Figure 7 , shows a process 700 of another embodiment of the resource processing method according to the present disclosure. The resource processing method comprises the following steps:

[0090] Step 701: In response to detecting an input of a link address of a target page, static resources related to the target page are loaded.

[0091] Step 702, screening the above static resources to obtain screened static resources.

[0092] Step 703: Display the link address corresponding to each resource in the pre-installed target plug-in according to the resource category of each resource included in the filtered static resources.

[0093] In some embodiments, the specific implementation of steps 701-703 and the technical effects thereof can be referred to in Figure 2The steps 201-203 in the corresponding embodiment are not described in detail here.

[0094] Step 704: In response to the user operation of refreshing resources for the selected at least one first target link address in the target plug-in, the resources corresponding to the at least one first target link address are refreshed.

[0095] In some embodiments, in response to the user operation of refreshing the resources of at least one first target link address selected in the target plug-in, the execution subject (such as Figure 1 The electronic device 101 shown can refresh the resources corresponding to the at least one first target link address.

[0096] As an example, Figure 8 As shown, Figure 8 It shows that the user selects the selection box corresponding to at least one first target link address in the target plug-in, and the user clicks the refresh button. The at least one first target link address may include:

[0097] https: / / static.360**busyimg.com / mat / pac.index_2020",

[0098] https: / / static.360**busyimg.com / mt / mat.index_2010、

[0099] https: / / static.360**busyimg.com / mat / sfw.index_2021、

[0100] https: / / static.360**busyimg.com / mat / pct.indexs_2021.

[0101] Furthermore, a refresh operation is performed on the resources corresponding to at least one first target link address in the list corresponding to "** Mall" in the target plug-in.

[0102] from Figure 7 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 7 The process 700 of the resource processing method in some corresponding embodiments further highlights the specific steps of refreshing the resources corresponding to some link addresses in the target plug-in. Therefore, the schemes described in these embodiments can refresh the resources corresponding to each link address in the target plug-in more efficiently and conveniently, thereby improving the refresh efficiency of static resources.

[0103] Further references Fig. 9 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a resource processing device. These device embodiments are Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0104] like Fig. 9 As shown, a resource processing device 900 includes: a loading unit 901, a screening unit 902, a display unit 903 and a processing unit 904. The loading unit 901 is configured to load static resources related to the target page in response to detecting an input of a link address of the target page. The screening unit 902 is configured to screen the static resources to obtain the filtered static resources. The display unit 903 is configured to display the link addresses corresponding to the above-mentioned resources in a pre-installed target plug-in according to the resource categories of the various resources included in the above-mentioned filtered static resources. The processing unit 904 is configured to process the link addresses corresponding to the above-mentioned resources in the above-mentioned target plug-in according to the received user operations.

[0105] In some optional implementations of some embodiments, the screening unit 902 in the above-mentioned device 900 may be further configured to: screen resources associated with the target domain name from the above-mentioned static resources to obtain the above-mentioned screened static resources.

[0106] In some optional implementations of some embodiments, the processing unit 904 in the above-mentioned device 900 can be further configured to: in response to the above-mentioned user operation to refresh resources of at least one first target link address selected in the above-mentioned target plug-in, refresh the resources corresponding to the above-mentioned at least one first target link address.

[0107] In some optional implementations of some embodiments, the processing unit 904 in the above-mentioned device 900 can be further configured to: in response to the above-mentioned user operation to refresh the resources of the selected at least one target selection box in the above-mentioned target plug-in, refresh the resources of the link address corresponding to the above-mentioned at least one target selection box, wherein the target selection box in the above-mentioned at least one target selection box represents each resource of any resource category in the above-mentioned target plug-in.

[0108] In some optional implementations of some embodiments, the processing unit 904 in the above-mentioned device 900 can be further configured to: in response to the above-mentioned user operation of appending resources to the selected at least one second target link address in the above-mentioned target plug-in, store each resource corresponding to the above-mentioned at least one second target link address; in response to determining to store each resource corresponding to the above-mentioned at least one second target link address, add the above-mentioned at least one second target link address to the list corresponding to the pre-built first target tag in the above-mentioned target plug-in.

[0109] In some optional implementations of some embodiments, the processing unit 904 in the above-mentioned device 900 can be further configured to: in response to detecting that the user clicks the above-mentioned first target tag in the above-mentioned target plug-in, display the various resources corresponding to the above-mentioned at least one second target link address in the above-mentioned target plug-in for the user to process the various resources corresponding to the above-mentioned at least one second target link address.

[0110] In some optional implementations of some embodiments, the processing unit 904 in the above-mentioned device 900 can be further configured to: in response to the above-mentioned user operation to export resources for at least one third target link address selected in the above-mentioned target plug-in, export and convert the above-mentioned at least one third target resource into a file in a target format.

[0111] In some optional implementations of some embodiments, the processing unit 904 in the above-mentioned device 900 can be further configured to: in response to the above-mentioned user operation of clicking the import button in the above-mentioned target plug-in, convert the above-mentioned target file to obtain at least one fourth target resource; add the link address corresponding to the above-mentioned at least one fourth target resource to the list corresponding to the pre-built second target tag in the above-mentioned target plug-in, and store the above-mentioned at least one fourth target resource.

[0112] It is understood that the units described in the device 900 are similar to those described in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 900 and the units included therein, and will not be described in detail here.

[0113] Reference below Fig.10 , which shows an electronic device (eg, Figure 1 A schematic diagram of the structure of an electronic device (electronic device in FIG. 1000). Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0114] like Fig.10 As shown, the electronic device 1000 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0115] Typically, the following devices may be connected to the I / O interface 1005: an input device 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1008 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the electronic device 1000 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 1000 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Fig.10 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0116] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include 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 flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0117] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the 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 some embodiments of the present disclosure, the 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 some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. 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. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0118] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0119] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to detecting the input of the link address of the target page, loads the static resources related to the target page; filters the static resources to obtain the filtered static resources; based on the resource categories of the resources included in the filtered static resources, displays the link addresses corresponding to the resources in the pre-installed target plug-in; and processes the link addresses corresponding to the resources in the target plug-in according to the received user operations.

[0120] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0121] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the 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 square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession 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 square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0122] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor including a loading unit, a screening unit, a display unit, and a processing unit. The names of these units do not constitute limitations on the units themselves in certain circumstances, for example, the loading unit may also be described as "a unit for loading static resources related to the target page in response to detecting an input of a link address of the target page".

[0123] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0124] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A resource processing method, comprising: In response to detecting input of a link address of a target page, loading static resources related to the target page; Screening the static resources to obtain screened static resources; According to the resource category of each resource included in the filtered static resources, display the link address corresponding to each resource in the pre-installed target plug-in; According to the received user operation, the link addresses corresponding to the various resources in the target plug-in are processed.

2. The method according to claim 1, wherein: The filtering of the static resources to obtain the filtered static resources includes: The resources associated with the target domain name are screened from the static resources to obtain the screened static resources.

3. The method according to claim 1, wherein: The processing of the link addresses corresponding to the various resources in the target plug-in according to the received user operation includes: In response to the user operation of refreshing resources of the selected at least one first target link address in the target plug-in, resources corresponding to the at least one first target link address are refreshed.

4. The method according to claim 1, wherein: The processing of the link addresses corresponding to the various resources in the target plug-in according to the received user operation includes: In response to the user operation of refreshing resources of at least one selected target selection box in the target plug-in, the resources of the link address corresponding to the at least one target selection box are refreshed, wherein the target selection box in the at least one target selection box represents each resource of any resource category in the target plug-in.

5. The method according to claim 1, wherein: The processing of the link addresses corresponding to the various resources in the target plug-in according to the received user operation includes: In response to the user operation of adding resources to the selected at least one second target link address in the target plug-in, storing each resource corresponding to the at least one second target link address; In response to determining to store each resource corresponding to the at least one second target link address, the at least one second target link address is added to a list corresponding to the pre-constructed first target tag in the target plug-in.

6. The method according to claim 5, wherein: The method further comprises: In response to detecting that the user clicks the first target tag in the target plug-in, the resources corresponding to the at least one second target link address are displayed in the target plug-in for the user to process the resources corresponding to the at least one second target link address.

7. The method according to claim 1, wherein: The processing of the link addresses corresponding to the various resources in the target plug-in according to the received user operation includes: In response to the user operation of exporting resources for the selected at least one third target link address in the target plug-in, the at least one third target resource is exported and converted into a file in a target format.

8. The method according to claim 1, wherein: The processing of the link addresses corresponding to the various resources in the target plug-in according to the received user operation includes: In response to the user operation of clicking an import button in the target plug-in, converting the target file to obtain at least one fourth target resource; The link address corresponding to the at least one fourth target resource is added to the list corresponding to the pre-constructed second target tag in the target plug-in, and the at least one fourth target resource is stored.

9. A resource processing device, comprising: a loading unit, configured to load static resources related to the target page in response to detecting an input of a link address of the target page; A screening unit, configured to screen the static resources to obtain screened static resources; A display unit is configured to display the link address corresponding to each resource in the pre-installed target plug-in according to the resource category of each resource included in the filtered static resources; The processing unit is configured to process the link addresses corresponding to the various resources in the target plug-in according to the received user operation.

10. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Webpage content processing method, webpage content processing device and browser client side

    CN104239332A