Label page searching method and device and electronic equipment

By entering keywords in the browser's search box and searching in the open and historical tabs, the problem of inefficient searching for specific keywords in the browser is solved, and faster search results are achieved.

CN119415761APending Publication Date: 2025-02-11SHANGHAI SHIZHUANG INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411474713.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

Searching for specific keywords in multiple browser tabs is inefficient, especially when the user needs to look between an open tab and a historically visited tab.

Method used

Get the pending keywords from the browser's search box and search for the open tabs and historically visited tabs. If no matching tab page is found in these places, a search address for third-party search engines is generated for further search by the user.

Benefits of technology

It improves the efficiency of users searching for keywords, reduces the need to switch between multiple tabs, and reduces the burden of recalling pages that have been visited.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119415761A_ABST
    Figure CN119415761A_ABST
Patent Text Reader

Abstract

The invention provides a label page searching method and device and electronic equipment. The method comprises the steps of obtaining a to-be-processed keyword from a search pop-up box of a browser; searching the keyword to be processed in a plurality of label pages of the browser, wherein the plurality of label pages comprise opened label pages and historically accessed label pages; if the target tab page corresponding to the to-be-processed keyword is not searched in the opened tab page and the historically accessed tab page, a search address of a third-party search engine is output, and the search address is used for searching the to-be-processed keyword through the third-party search engine. By effectively integrating the functions of searching the locally opened tab page, the historically accessed tab page and providing the link address of the third-party search engine, a user can start to search in the locally opened tab page, the historically accessed tab page and the third-party search engine only by inputting keywords; and the keyword searching efficiency is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer software and browser plug-in development, and more specifically, to a tab search method, device and electronic device. Background Art

[0002] At present, when a user opens a large number of tabs in the browser of the current computer, it is usually necessary to click each tab to find the tab with a specific keyword. However, the user may have mistakenly remembered that the tab containing the specific keyword has been closed, or the tab containing the specific keyword has been opened in the browser of another computer. At this time, it is necessary to reopen a third-party search engine page to search for the specific keyword. Therefore, the current efficiency of users searching for keywords is low. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a tab search method, device and electronic device for improving the problem of low efficiency in searching for keywords.

[0004] The embodiment of the present application provides a tab search method, including: obtaining a keyword to be processed from a search bullet box of a browser; searching for the keyword to be processed in multiple tabs of the browser, the multiple tabs including: an opened tab and a tab visited in history; if the target tab corresponding to the keyword to be processed is not found in the opened tab and the tab visited in history, then outputting the search address of a third-party search engine, the search address is used to use the third-party search engine to search for the keyword to be processed. In the implementation process of the above scheme, by obtaining the keyword from the search bullet box of the browser, and searching in the user's opened tabs and historical records, and if no page related to the keyword is found in these places, a search address of a third-party search engine will be generated for the user to further search, so that the user does not have to switch between multiple tabs to find relevant information, nor does he have to recall the pages he has visited. Therefore, by effectively integrating the functions of searching the local opened tabs, the historically visited tabs and providing the link address of the third-party search engine, the user only needs to enter the keyword to start searching in the local opened tabs, the historically visited tabs and the provided third-party search engine, which effectively improves the efficiency of searching for keywords.

[0005] Optionally, in an embodiment of the present application, searching for keywords to be processed in multiple tabs of a browser includes: for each tab of the multiple tabs of the browser, obtaining the title, link address and / or page content of the tab; if the title, link address and / or page content of the tab contains keywords to be processed, adding the tab to the target tab corresponding to the keywords to be processed. In the implementation of the above scheme, when the keywords to be processed are contained in the title, link address and / or page content of the tab, the tab is added to the target tab corresponding to the keywords to be processed, so that the user can search for the target tab in any combination of the title, link address and / or page content of the tab, thereby improving the situation where the user only remembers one of them (such as the keywords in the page content) and it is difficult to find the target tab, thereby improving the efficiency of the user's keyword search.

[0006] Optionally, in an embodiment of the present application, the keywords to be processed include: multiple keywords; searching for the keywords to be processed in multiple tabs of the browser includes: for each tab of the multiple tabs of the browser, if the tab contains any of the multiple keywords, then adding the tab to the target tab corresponding to the keywords to be processed. In the implementation of the above scheme, by adding the tab to the target tab corresponding to the keywords to be processed when any of the multiple keywords is included in the tab, the search pop-up box of the browser can support fuzzy search of any of the multiple keywords, so that users can use multiple keywords for fuzzy search, which improves the situation where users find it difficult to find the target tab only through a single keyword, and greatly improves the efficiency of users' search for tabs.

[0007] Optionally, in an embodiment of the present application, searching for keywords to be processed in multiple tabs of the browser includes: merging and deduplicating the opened tabs and the tabs that have been visited in the past to obtain multiple tabs after deduplication; searching for target tabs corresponding to the keywords to be processed in the multiple tabs after deduplication. In the implementation of the above scheme, by merging and deduplicating the opened tabs and the tabs that have been visited in the past, users can quickly find keywords in an integrated list without having to search in different places separately, thereby greatly improving the efficiency of users' search for tabs.

[0008] Optionally, in an embodiment of the present application, searching for keywords to be processed in multiple tabs of the browser includes: searching for keywords to be processed in opened tabs; if the target tab corresponding to the keywords to be processed is not found in the opened tabs, searching for keywords to be processed in the tabs that have been visited historically. In the implementation of the above scheme, by first searching in the opened tabs where the target is most likely to be found, and if not found, expanding to the tabs that have been visited historically, this multi-level search method can ensure that the search is as comprehensive as possible without missing possible related pages, thereby effectively improving the comprehensiveness of the search. This strategy can dynamically adjust the search scope according to the current user's activity, which not only improves the efficiency of the search but also takes into account the breadth of the search.

[0009] Optionally, in an embodiment of the present application, after searching for the keywords to be processed in multiple tabs of the browser, it also includes: if the target tab corresponding to the keywords to be processed is searched in the opened tabs and / or the tabs visited in the past, the title and / or link address of the target tab is displayed. In the implementation process of the above scheme, the user can quickly locate the required page by viewing the title and link address, without having to open each tab to confirm whether it is the page they want to find. Since the search results provide sufficient information, the user can reduce the situation of opening the wrong page due to misjudgment, thereby improving the user's search efficiency for tabs.

[0010] Optionally, in an embodiment of the present application, after displaying the target tab page corresponding to the keyword to be processed, it also includes: obtaining the target link address after clicking; judging whether the target link address is matched in the tab link addresses corresponding to the multiple tab pages that have been opened; if so, displaying the tab page corresponding to the target link address in the browser as a focus window. In the implementation process of the above scheme, by directly reusing the tab page corresponding to the target link address (i.e., displaying the tab page corresponding to the target link address in the browser as a focus window) when the target link address is matched in the tab link addresses corresponding to the multiple tab pages that have been opened, instead of opening a new tab page corresponding to the target link address, the resource consumption of the electronic device (such as a personal computer or a personal notebook, etc.) is effectively saved.

[0011] Optionally, in an embodiment of the present application, after determining whether the target link address is matched in the label link addresses corresponding to the multiple opened tabs, it also includes: if the target link address is not matched in the label link addresses corresponding to the multiple opened tabs, a new tab corresponding to the target link address is opened, and the tabs corresponding to the target link address are automatically grouped. In the implementation process of the above scheme, after the user clicks on a new link address, if the link address does not exist in any opened tab, the system will automatically open a new tab for it, so that the user does not need to manually search or manage tabs, so that the user does not need to remember whether he has opened a certain page, nor does he need to manually search between multiple tabs. The system automatically completes these tasks, reducing the user's cognitive burden, thereby improving the efficiency of the user's operation of tabs.

[0012] Optionally, in an embodiment of the present application, the tabs corresponding to the target link address are automatically grouped, including: obtaining the title of the tab corresponding to the target link address, and obtaining the domain name address from the target link address; determining whether the target link address, the title of the tab and / or the domain name address include preset text; if so, the tab corresponding to the target link address is classified into the group of preset text. In the implementation process of the above scheme, by automatically determining whether the title, link address or domain name of the tab contains preset text, the system can automatically classify the relevant pages into corresponding groups, so that the user does not need to manually drag the pages to different groups, and the system automatically completes this process, reducing the user's operating burden, thereby improving the efficiency of the user's operation of the tab.

[0013] Optionally, in an embodiment of the present application, the search pop-up box of the browser pops up in response to the pressing of a preset shortcut key. In the implementation process of the above solution, the search pop-up box is quickly opened by the shortcut key without manually clicking the search box of the browser. This method is faster than traditional mouse operation, especially when the user needs to search frequently. For users who often use keyboard shortcuts, this method reduces the dependence on the mouse and effectively improves the user's search efficiency.

[0014] The embodiment of the present application also provides a tab search device, including: a keyword acquisition module, used to obtain the keywords to be processed from the search pop-up box of the browser; a keyword search module, used to search for the keywords to be processed in multiple tabs of the browser, and the multiple tabs include: opened tabs and historically visited tabs; a third-party search module, used to output the search address of the third-party search engine if the target tab corresponding to the keywords to be processed is not found in the opened tabs and the historically visited tabs, and the search address is used to use the third-party search engine to search for the keywords to be processed.

[0015] Optionally, in an embodiment of the present application, the keyword search module includes: a tab content acquisition sub-module, used to obtain the title, link address and / or page content of each tab in the multiple tabs of the browser; a target tab adding sub-module, used to add the tab to the target tab corresponding to the keyword to be processed if the title, link address and / or page content of the tab contains the keyword to be processed.

[0016] Optionally, in an embodiment of the present application, the keywords to be processed include: multiple keywords; the keyword search module includes: a target tab retrieval sub-module, which is used to add each tab of the multiple tabs of the browser to the target tab corresponding to the keyword to be processed if the tab contains any keyword of the multiple keywords.

[0017] Optionally, in an embodiment of the present application, the keyword search module includes: a tab merging and deduplication sub-module, used to merge and deduplication the opened tabs and the historically visited tabs to obtain multiple deduplicated tabs; a target tab search sub-module, used to search for the target tab corresponding to the keyword to be processed in the multiple deduplicated tabs.

[0018] Optionally, in an embodiment of the present application, the keyword search module includes: a first tab search sub-module, used to search for the keyword to be processed in the opened tabs; and a second tab search sub-module, used to search for the keyword to be processed in the historically visited tabs if the target tab corresponding to the keyword to be processed is not found in the opened tabs.

[0019] Optionally, in an embodiment of the present application, the tab search device also includes: a target tab display module, which is used to display the title and / or link address of the target tab if the target tab corresponding to the keyword to be processed is searched in the opened tabs and / or historically visited tabs.

[0020] Optionally, in an embodiment of the present application, the tab search device also includes: a link address acquisition module, used to obtain the target link address after clicking; a link address matching module, used to determine whether the target link address is matched among the tab link addresses corresponding to the multiple tabs that have been opened; and a tab window display module, used to display the tab corresponding to the target link address in the browser as a focus window if the target link address is matched among the tab link addresses corresponding to the multiple tabs that have been opened.

[0021] Optionally, in an embodiment of the present application, the tab search device also includes: a tab automatic grouping module, which is used to open a new tab corresponding to the target link address if the target link address is not matched in the tab link addresses corresponding to multiple opened tabs, and automatically group the tabs corresponding to the target link address.

[0022] Optionally, in an embodiment of the present application, the automatic tab grouping module includes: a domain name address acquisition submodule, used to obtain the title of the tab page corresponding to the target link address, and obtain the domain name address from the target link address; a preset text judgment submodule, used to judge whether the target link address, the title of the tab page and / or the domain name address include preset text; a tab grouping submodule, used to classify the tab page corresponding to the target link address into the preset text group if the target link address, the title of the tab page and / or the domain name address include preset text.

[0023] Optionally, in an embodiment of the present application, the browser's search pop-up box pops up in response to pressing a preset shortcut key.

[0024] An embodiment of the present application further provides an electronic device, including: a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the machine-readable instructions execute the method described above when executed by the processor.

[0025] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described above is executed.

[0026] The embodiment of the present application also provides a computer program product, including: a computer program or a computer instruction, and the computer program or the computer instruction executes the method described above when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A schematic diagram of a flow chart of a tab page search method provided in an embodiment of the present application is shown;

[0029] Figure 2 An interactive schematic diagram of a graphical user interface of a search pop-up box of a browser provided in an embodiment of the present application is shown;

[0030] Figure 3 An interactive schematic diagram of searching using a third-party search engine provided in an embodiment of the present application is shown;

[0031] Figure 4 A schematic diagram of a process of searching tab pages in sequence provided by an embodiment of the present application is shown;

[0032] Figure 5 A schematic diagram of a flow chart of realizing the multiplexing function of the target tab page provided in an embodiment of the present application is shown;

[0033] Figure 6 An interactive schematic diagram showing the multiplexing function of the target tab page provided in an embodiment of the present application;

[0034] Figure 7 A flow chart of a tab page search device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] To make the purpose, technical scheme and advantages of the embodiment of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. It should be understood that the drawings in the embodiment of the present application only serve the purpose of explanation and description, and are not used to limit the protection scope of the embodiment of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in the embodiment of the present application shows the operations implemented according to some embodiments of the embodiment of the present application. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented. In addition, those skilled in the art, under the guidance of the content of the embodiment of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0036] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all embodiments. The components of the embodiments of the present application described and shown in the drawings generally here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the embodiments of the present application claimed, but merely represents the selected embodiments of the embodiments of the present application.

[0037] It is understandable that the "first" and "second" in the embodiments of the present application are used to distinguish similar objects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit the difference. In the description of the embodiments of the present application, the term "and / or" is merely a description of the association relationship of associated objects, indicating that there may be three relationships, such as A and / or B, which can represent: A exists alone, A and B exist, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. The term "multiple" refers to more than two (including two), and similarly, "multiple groups" refers to more than two groups (including two groups).

[0038] It should be noted that the tab search method provided in the embodiment of the present application can be executed by an electronic device, where the electronic device refers to a device terminal or server with the function of executing a computer program, such as a smart phone, a personal computer, a tablet computer, a personal digital assistant, or a mobile Internet device. A server refers to a device that provides computing services through a network, such as an x86 server and a non-x86 server, and a non-x86 server includes a mainframe, a minicomputer, and a UNIX server.

[0039] The following describes an example of an application scenario in which the tab search method is applicable: the tab search method can be used to enhance the tab search function of a browser, and the tab search method can also be used to develop a browser plug-in, etc. The above-mentioned browsers include but are not limited to: Chrome browser, Chromium browser, Firefox browser, Microsoft Edge browser, etc.

[0040] In the related art, when a user uses a browser, he usually opens many web page windows, and each web page window contains many tabs, and some of these tabs may be repeated. When a user wants to search for a specific keyword from a large number of tabs, it is difficult to search and focus on the tab containing the specific keyword. This is because it is possible that the user has remembered it wrong, and the tab containing the specific keyword that the user wants has been closed, or the user has opened the tab containing the specific keyword in the browser of another computer, instead of opening or opening the tab containing the specific keyword in the browser of the current computer. At this time, the user needs to reopen a third-party search engine page to search for the specific keyword. Therefore, the above situations will lead to low efficiency in the user's keyword search.

[0041] For the above questions, please see Figure 1The flowchart of the tab search method provided by the embodiment of the present application is shown; the main idea of ​​the tab search method is to obtain keywords from the search box of the browser and search in the user's opened tabs and history records. If the page related to the keyword is not found in these places, a search address of a third-party search engine will be generated for the user to further search, so that the user does not have to switch between multiple tabs to find relevant information, nor does he have to recall the pages he has visited, thereby effectively improving the efficiency of the user's search for keywords. The implementation method of the above-mentioned tab search method may include:

[0042] Step S110: Obtain the keywords to be processed from the search box of the browser.

[0043] See also Figure 2 The interactive schematic diagram of the graphical user interface of the search pop-up box of the browser provided by the embodiment of the present application is shown; the implementation method of the above step S110 is, for example: assuming that four tabs are opened in a browser window (see Figure 2 The titles of the four tabs are: Tab 1, Tab 2, Tab 3 and Tab 4, and the URLs of the four tabs are: dev.abc.com / index.html, www.edf.com, www.ghi.com and www.jkl.com. If the user wants to search for keywords in the four opened tabs and the tabs visited in the past, he can click the "Plugin 1" icon on the browser or press the custom shortcut key to wake up the browser's search pop-up box (see Figure 2 ). After waking up the search pop-up window of the browser, the user can enter the keywords to be processed in the search box with a magnifying glass. When the user presses the Enter key or clicks the magnifying glass, the electronic device can obtain the keywords to be processed entered by the user from the search pop-up window of the browser, and execute the following search steps, and then display the search results obtained in the search steps below the search pop-up window in almost real time. Among them, the above-mentioned browsers include but are not limited to: Chrome browser, Chromium browser, Firefox browser, Microsoft Edge browser, etc.

[0044] It is understandable that the above shows one way of presenting the browser's search pop-up box in the graphical user interface. In actual practice, there are many other ways of presentation. For example, the developer or user adopts the latest designed custom style or style (that is, does not adopt the pop-up box that comes with the native browser plug-in), or, adds a tree navigation to the left side of the search pop-up box, or sets the search pop-up box on the top, bottom, left or right side of the browser, etc., or, directly covers the entire browser window with the search pop-up box so that the complete tab title and link address can be displayed.

[0045] The above-mentioned search pop-up window is displayed in the browser, and its layout and display mode are limited by the browser window size and window position. For example, after the browser is moved, the search pop-up window cannot fully display the link address or title of the tab page and other data content. Therefore, in order to improve the limitations of the layout and display mode of the search pop-up window, the presentation position and presentation mode of the search pop-up window can be customized by the user according to the specific situation, so that the user can fully see the link address or title of the tab page and other data content in the search pop-up window. Therefore, the presentation position and presentation mode of the pop-up window should not be understood as a limitation of the embodiments of the present application.

[0046] Step S120: Searching for the keyword to be processed in multiple tabs of the browser, where the multiple tabs include: opened tabs and historically visited tabs.

[0047] It is understandable that since there are many implementation methods of step S120, the implementation methods of step S120 are described in detail below.

[0048] Step S130: If the target tab corresponding to the keyword to be processed is not found in the opened tabs and the tabs visited in history, the search address of the third-party search engine is output, and the search address is used to search for the keyword to be processed using the third-party search engine.

[0049] See also Figure 3An interactive schematic diagram of searching using a third-party search engine provided by an embodiment of the present application is shown; an implementation method of the above step S130 is, for example: assuming that the keyword to be processed that the user wants to search is "content operation", but the target tab corresponding to the keyword is not found in the opened tabs and the tabs visited in the past, the electronic device can output the search address of the third-party search engine, so that the user can use the third-party search engine to search for the keyword to be processed. Among them, the above-mentioned third-party search engine can be customized by the user in advance, or it can be built into the configuration file corresponding to the search pop-up box by the developer in advance. The third-party search engine includes but is not limited to: Baidu search, Google search and / or Zhihu, etc. Therefore, in actual use, the user can use the browser or browser plug-in enhanced by the tab search method as a third-party search engine, thereby greatly improving the efficiency of the user's use of the browser to search for keywords.

[0050] In the implementation process of the above scheme, keywords are obtained from the search pop-up box of the browser and searched in the user's opened tabs and history. If the page related to the keyword is not found in these places, a search address of a third-party search engine is generated for the user to further search, so that the user does not have to switch between multiple tabs to find relevant information, nor does he have to recall the pages he has visited. By effectively integrating the functions of searching the locally opened tabs, the historically visited tabs and providing the link address of the third-party search engine, the user only needs to enter the keyword to start searching in the locally opened tabs, the historically visited tabs and the provided third-party search engine, which effectively improves the efficiency of searching for keywords.

[0051] As an optional implementation of the above step S120, the above implementation of searching for the keywords to be processed in multiple tabs of the browser may include:

[0052] Step S121: for each tab page among the multiple tab pages of the browser, obtain the title, link address and / or page content of the tab page.

[0053] The implementation method of the above step S121 is, for example: in the actual development process, the function code of the browser's search pop-up box can be injected (Injection) into each open tab in advance through React technology, and the function code here may include a Document Object Model (DOM) element. Therefore, the electronic device can obtain the title, link address and / or page content of the tab by injecting the function code into each of the multiple tabs that have been opened. Furthermore, the title, link address and / or page content of the tabs that have been visited historically can be obtained from the browser's historical access data. Then, two arrays are used to store these contents respectively. Specifically, the first array is used to store the title, link address and / or page content of the opened tabs, and the second array is used to store the title, link address and / or page content of the tabs that have been visited historically.

[0054] Step S122: If the title, link address and / or page content of the tab page contains the keyword to be processed, then the tab page is added to the target tab page corresponding to the keyword to be processed.

[0055] It is understandable that the above-mentioned keywords to be processed can be one keyword or multiple keywords, and the above-mentioned multiple keywords can be connected by the "and" connector, or by the "or" connector, or by the mixed connectors of "and" and "or". Therefore, there are many situations in which the above tab page title, link address and / or page content contain keywords to be processed:

[0056] In the first case, a keyword case is for example: for each of the multiple tabs of the browser, if the title, link address and / or page content of the tab contains a keyword, the tab is added to the target tab corresponding to the keyword to be processed, thereby realizing a fuzzy search process of a keyword for multiple metadata. Another example of a keyword case is: if the title, link address or page content of the above tab contains a keyword, the tab is added to the target tab corresponding to the keyword to be processed, thereby realizing a fuzzy search process of a keyword for a metadata.

[0057] In the second case, for fuzzy retrieval of multiple keywords of a metadata, for each tab in the multiple tabs of the browser, if the title, link address or page content of the tab contains any of the multiple keywords, the tab is added to the target tab corresponding to the keyword to be processed, thereby realizing the fuzzy retrieval process of multiple keywords of a metadata.

[0058] In the third case, fuzzy search of multiple keywords for multiple metadata, for example: for each of the multiple tabs of the browser, if the title, link address and / or page content of the tab contains any of the multiple keywords, the tab is added to the target tab corresponding to the keyword to be processed, thereby realizing the fuzzy search process of multiple keywords for multiple metadata. For another example: if the title of the tab contains the first keyword among the multiple keywords, and the link address contains the second keyword among the multiple keywords, and the page content contains the third keyword among the multiple keywords, the tab is added to the target tab corresponding to the keyword to be processed, thereby realizing the fuzzy search process of multiple keywords for multiple metadata. For another example: if the title of the tab contains the first keyword combination among the multiple keywords, and the link address contains the second keyword combination among the multiple keywords, and the page content contains the third keyword combination among the multiple keywords, the tab is added to the target tab corresponding to the keyword to be processed, thereby realizing the fuzzy search process of multiple keywords for multiple metadata. Among them, the above-mentioned keyword combination can be a combination connected by the "and" connector, a combination connected by the "or" connector, or a combination connected by a mixed connector of "and" and "or".

[0059] The implementation method of the above step S122 is, for example: if the current category selected by the user is all tabs, the first array and the second array are merged to obtain a merged array, and then the merged array can be deduplicated according to the domain name (origin) and path (pathname) of the link address to obtain a deduplicated array; wherein the deduplicated array includes: the title, link address and / or page content of each tab, and the above merging and deduplication process can be expressed as follows using TypeScript pseudo code:

[0060]

[0061] Then, since the above deduplicated array includes the title, link address and / or page content of each tab page, the title, link address and / or page content of each tab page can be obtained from the above deduplicated array. If any of the multiple keywords are matched in the title, link address and / or page content of the tab page, that is, the title, link address and / or page content of the tab page contains any of the multiple keywords, then the tab page is added to the target tab page corresponding to the keyword to be processed. The above matching process and the process of determining the target tab page can be expressed as follows using TypeScript pseudo code:

[0062] const keywords = keyword.split("); / / Multiple keywords are separated by spaces

[0063] / / Here res is the array after deduplication

[0064] const res=(Array.from(urlMap.values())||[]).filter((item)=>{

[0065] if(keywords.length>1){

[0066] / / Match any one of the multiple keywords

[0067] return keywords.every(

[0068] (keyword)=>(item.title as string)? .includes(keyword)||item.url? .includes(keyword), );

[0070] }

[0071] return(item.title as string)? .includes(keyword)||item.url? .includes(keyword);

[0072] });

[0073] As another optional implementation of the above step S120, the above keywords to be processed include: multiple keywords; searching for keywords to be processed in multiple tabs of the browser, including: for each tab of the multiple tabs of the browser, if the title, link address and / or page content of the tab contains any of the multiple keywords, then the tab is added to the target tab corresponding to the keyword to be processed. In the implementation of the above scheme, when any of the multiple keywords is included in the tab, the tab is added to the target tab corresponding to the keyword to be processed, so that the search pop-up box of the browser can support fuzzy search of any of the multiple keywords, so that users can use multiple keywords for fuzzy search, which improves the situation where users find it difficult to find the target tab only through a single keyword, and greatly improves the efficiency of users' search for tabs.

[0074] As another optional implementation of the above step S120, in the process of searching for the keywords to be processed in multiple tabs of the browser, the keywords may be merged and deduplicated first and then searched. This implementation may include:

[0075] Step S123: Merge the opened tabs and the tabs that have been visited in the past to remove duplicates, and obtain multiple tabs after removing duplicates.

[0076] An implementation example of the above step S123 is: if the current category selected by the user is all tabs, the opened tabs and the historically visited tabs are merged to obtain a merged tab set, and then the merged tab set is deduplicated to obtain multiple deduplicated tabs.

[0077] Step S124: Search the target tab page corresponding to the keyword to be processed in the multiple tab pages after deduplication.

[0078] An implementation example of the above-mentioned step S124 is as follows: after obtaining multiple deduplicated tab pages, search for any keyword among the keywords to be processed in the page number content of each tab page among the multiple deduplicated tab pages; if any keyword among the keywords to be processed is found in the page number content of the tab page, add the tab page to the target tab page corresponding to the keyword to be processed.

[0079] In the process of implementing the above solution, since users are usually accustomed to searching in multiple places separately, they do not realize that integrating this information can greatly improve search efficiency. However, the above solution can effectively merge the opened tabs and the historically visited tabs to remove duplication, allowing users to quickly find keywords in an integrated list without having to search in different places separately, thereby greatly improving the user's search efficiency for tabs.

[0080] See also Figure 4 The flowchart of searching tabs in sequence provided by an embodiment of the present application is shown; as another optional implementation of the above step S120, in the process of searching for the keywords to be processed in multiple tabs of the browser, the tabs can also be searched in sequence, that is, when no opened tabs are searched, the tabs visited in the history are searched again, and this implementation may include:

[0081] Step S125: Search the keywords to be processed in the opened tabs.

[0082] An implementation example of the above-mentioned step S125 is as follows: for each tab page among the multiple tab pages that have been opened, the title, link address and / or page content of the tab page are obtained through the function code injected into the tab page. If the title, link address and / or page content of the tab page contains the keyword to be processed, the tab page is added to the target tab page corresponding to the keyword to be processed.

[0083] Step S126: If the target tab page corresponding to the keyword to be processed is searched in the opened tab pages, the title and / or link address of the target tab page is displayed.

[0084] Step S127: If the target tab page corresponding to the keyword to be processed is not found in the opened tab pages, the keyword to be processed is searched in the tab pages that have been visited historically.

[0085] The implementation method of the above steps S126 to S127 is, for example: if the target tab page corresponding to the keyword to be processed is searched in the opened tab page, the title and / or link address of the target tab page can be directly displayed; if the target tab page corresponding to the keyword to be processed is not searched in the opened tab page, it can be determined whether the keyword to be processed is searched in the tab page that has been visited historically, and if the target tab page corresponding to the keyword to be processed is searched in the tab page that has been visited historically, the title and / or link address of the target tab page is displayed. If the target tab page corresponding to the keyword to be processed is not searched in the tab page that has been visited historically, it means that the target tab page corresponding to the keyword to be processed is not searched in the opened tab page and the tab page that has been visited historically, then the search address of the third-party search engine is output, so that the user can use the search address to continue searching for the keyword to be processed in the third-party search engine.

[0086] As an optional implementation of the above-mentioned tab page search method, after searching for the keywords to be processed in multiple tab pages of the browser, the tab pages may also be displayed. This implementation may include:

[0087] Step S128: If the target tab page corresponding to the keyword to be processed is searched in the opened tab pages and / or the tab pages visited in history, the title and / or link address of the target tab page is displayed.

[0088] The implementation method of the above step S128 is, for example: for each tab page that has been opened and / or the tab pages that have been visited in the past, the title, link address and / or page content of the tab page are obtained through the function code injected into the tab page. If the title, link address and / or page content of the tab page contains the keyword to be processed, the tab page can be added to the target tab page corresponding to the keyword to be processed, and the target tab page corresponding to the keyword to be processed can be obtained. Then, the title of the target tab page (for example, Figure 2 1, 2, etc.) and / or link addresses (e.g. Figure 2 (www.edf.com).

[0089] See also Figure 5 The flowchart of the embodiment of the present application provided by the embodiment of the present application is shown; as an optional implementation of the above-mentioned tab search method, after displaying the target tab corresponding to the keyword to be processed, if the target tab has been opened, the reuse function of the target tab can also be realized, and the implementation may include:

[0090] Step S210: Obtain the target link address after clicking.

[0091] See also Figure 6 The interactive diagram of the multiplexing function of the target tab provided by the embodiment of the present application is shown; the implementation method of the above step S210 is, for example: the function code of the search pop-up box of the browser can be used to monitor in the background, so as to monitor whether there is a click on the web link from other applications (such as instant messaging software). If it is monitored that there is a click on the web link from other applications, the target link address after the click is obtained in the background through the function code of the search pop-up box. Figure 5 The instant messaging software in the browser can communicate with the robot trained by the pre-trained large language model, and the robot can answer questions based on the real-time screen image. For example, the robot is asked the link address of tab 2, and the robot responds that the link address of tab 2 is www.edf.com. Then, the robot is asked to simulate clicking the link address of tab 2. The browser can monitor the robot in the instant messaging software in the background that it is simulating clicking the link address of tab 2 by searching the function code of the pop-up box, thereby obtaining the link address of tab 2.

[0092] Step S220: Determine whether the target link address is matched among the tab link addresses corresponding to the multiple tab pages that have been opened.

[0093] The implementation of the above step S220 is, for example: determining whether the current category selected by the user is an open tab page. If the current category selected by the user is an open tab page, determining whether the target link address is matched in the tab link addresses corresponding to the multiple opened tab pages through the function code of the search pop-up box. It can be understood that the function code of the search pop-up box can be written in the TypeScript programming language. Specifically, referring to Figure 5 A robot used for conversation in an instant messaging software in the browser is allowed to simulate clicking on the link address of tab 2. After the robot simulates clicking on the link address of tab 2, the browser can determine whether the link address of tab 2 is matched in the tab link addresses corresponding to the multiple tabs that have been opened. If the browser matches the link address of tab 2 in the tab link addresses corresponding to the multiple tabs that have been opened, the browser automatically changes from the focused tab 1 to displaying tab 2 in the form of a focused window, thereby completing the tab reuse function.

[0094] Step S230: if the target link address is matched among the tab link addresses corresponding to the multiple tab pages that have been opened, the tab page corresponding to the target link address is displayed in the browser in the form of a focus window.

[0095] An example of an implementation of the above step S230 is: if the target link address is matched in the tab link addresses corresponding to the multiple tabs that have been opened, and the tab reuse function has been enabled, the tab corresponding to the target link address will be displayed in the browser as a focus window instead of creating a new tab. On the contrary, if the target link address is matched in the tab link addresses corresponding to the multiple tabs that have been opened, but the user has not enabled the tab reuse function, a new tab can be directly created in the browser, and then the target link address can be accessed in the tab. The above tab reuse function can be expressed using TypeScript pseudocode as follows:

[0096]

[0097] In the implementation process of the above scheme, when the target link address is matched in the tab link addresses corresponding to the multiple tabs that have been opened, the tab corresponding to the target link address is directly reused (that is, the tab corresponding to the target link address is displayed in the browser as a focus window) instead of opening a new tab corresponding to the target link address, thereby effectively saving the resource consumption of the electronic device (such as a personal computer or a personal notebook, etc.), including memory usage, CPU usage, and network traffic, etc. Furthermore, since the need to repeatedly open pages is reduced, the overall performance of the browser is improved, especially when processing a large number of tabs, thereby further improving the overall performance of the browser.

[0098] As an optional implementation of the above-mentioned tab page search method, after determining whether the target link address is matched in the tab link addresses corresponding to the multiple tab pages that have been opened, it also includes:

[0099] Step S240: If the target link address is not matched in the tab link addresses corresponding to the multiple opened tab pages, a new tab page corresponding to the target link address is opened, and the tab pages corresponding to the target link address are automatically grouped.

[0100] An example of an implementation of the above step S240 is: assuming that the target link address is dev.abc.com / test.html, then none of the four tabs in the figure contains the target link address, that is, the target link address is not matched in the tab link addresses corresponding to the multiple tabs that have been opened. At this time, a new tab corresponding to the target link address can be opened, and the tabs corresponding to the target link address can be automatically grouped. The implementation of automatic grouping is described below.

[0101] As an optional implementation of the above step S240, the above implementation of automatically grouping the tab pages corresponding to the target link address may include:

[0102] Step S241: Obtain the title of the tab page corresponding to the target link address, and obtain the domain name address from the target link address.

[0103] The implementation method of the above step S241 is, for example: assuming that the target link address is dev.abc.com / test.html, then the title of the tab page corresponding to the target link address is tab page 5, and the domain name address obtained from the target link address is dev.abc.com.

[0104] Step S242: Determine whether the target link address, the title of the tab page and / or the domain name address includes a preset text.

[0105] For example, in the implementation of step S242, assuming that the preset text is abc.com, it can be known that the domain name address of the tab 1 (dev.abc.com / index.html) and the domain name address of the tab 5 (dev.abc.com / test.html) both include the preset text (abc.com).

[0106] Step S243: If the target link address, the title of the tab page and / or the domain name address include preset text, the tab page corresponding to the target link address is classified into the group of preset text.

[0107] For example, the implementation method of the above step S243 is: assuming that the preset text is abc.com, when the domain name address of the above tab page 1 (dev.abc.com / index.html) and the domain name address of the tab page 5 (dev.abc.com / test.html) both include the preset text (abc.com), the tab page 1 and the tab page 5 can be classified into the group of the preset text (abc.com). In the implementation process of the above scheme, by automatically determining whether the title, link address or domain name of the tab page contains the preset text, the system can automatically classify the relevant pages into the corresponding groups, so that the user does not need to manually drag the page to different groups. The system automatically completes this process, reducing the user's operating burden, thereby improving the efficiency of the user's operation of the tab page.

[0108] As an optional implementation of the above-mentioned tab search method, the browser's search pop-up box pops up in response to the pressing of a preset shortcut key, and the above-mentioned preset shortcut keys include but are not limited to: Command key + K key combination, Control key + K key combination or Alt key + Space key and other key combinations. In the implementation process of the above scheme, the search pop-up box is quickly opened through the shortcut key without manually clicking the browser's search box. This method is faster than traditional mouse operation, especially when the user needs to search frequently. For users who often use keyboard shortcuts, this method reduces dependence on the mouse and effectively improves the user's search efficiency.

[0109] See also Figure 7 The flowchart of the tab page search device provided by the embodiment of the present application is shown. The embodiment of the present application provides a tab page search device 300, including:

[0110] The keyword acquisition module 310 is used to acquire the keywords to be processed from the search box of the browser.

[0111] The keyword search module 320 is used to search for keywords to be processed in multiple tabs of the browser, and the multiple tabs include: opened tabs and historically visited tabs.

[0112] The third-party search module 330 is used to output the search address of the third-party search engine if the target tab corresponding to the keyword to be processed is not found in the opened tabs and the tabs visited in the history. The search address is used to search for the keyword to be processed using the third-party search engine.

[0113] As an optional implementation of the above device, the keyword search module includes:

[0114] The tab page content acquisition submodule is used to acquire the title, link address and / or page content of each tab page among the multiple tab pages of the browser.

[0115] The target tab page adding submodule is used to add the tab page to the target tab page corresponding to the to-be-processed keyword if the title, link address and / or page content of the tab page contain the to-be-processed keyword.

[0116] As an optional implementation of the above device, the keywords to be processed include: multiple keywords; the keyword search module includes:

[0117] The target tab page search submodule is used to add each tab page among the multiple tab pages of the browser to the target tab page corresponding to the keyword to be processed if the tab page contains any keyword among the multiple keywords.

[0118] As an optional implementation of the above device, the keyword search module includes:

[0119] The tab merging and deduplication submodule is used to merge and dedupe the opened tabs and the tabs that have been visited historically to obtain multiple deduplicated tabs.

[0120] The target tab page search submodule is used to search for the target tab page corresponding to the keyword to be processed in multiple tab pages after deduplication.

[0121] As an optional implementation of the above device, the keyword search module includes:

[0122] The first tab page search submodule is used to search for keywords to be processed in the opened tab pages.

[0123] The second tab page search submodule is used to search for the keyword to be processed in the tab pages that have been visited in history if the target tab page corresponding to the keyword to be processed is not found in the opened tab pages.

[0124] As an optional implementation of the above device, the tab page search device further includes:

[0125] The target tab page display module is used to display the title and / or link address of the target tab page if the target tab page corresponding to the keyword to be processed is searched in the opened tab pages and / or the tab pages visited in the history.

[0126] As an optional implementation of the above device, the tab page search device further includes:

[0127] The link address acquisition module is used to obtain the target link address after clicking.

[0128] The link address matching module is used to determine whether the target link address is matched in the tag link addresses corresponding to the multiple opened tabs.

[0129] The tab window display module is used to display the tab page corresponding to the target link address in the browser in the form of a focus window if a target link address is matched among the tab link addresses corresponding to the multiple tab pages that have been opened.

[0130] As an optional implementation of the above device, the tab page search device further includes:

[0131] The tab page automatic grouping module is used to open a new tab page corresponding to the target link address if no target link address is matched in the tab link addresses corresponding to the multiple tab pages that have been opened, and to automatically group the tab pages corresponding to the target link address.

[0132] As an optional implementation of the above device, the tab page automatic grouping module includes:

[0133] The domain name address acquisition submodule is used to obtain the title of the tab page corresponding to the target link address and obtain the domain name address from the target link address.

[0134] The preset text determination submodule is used to determine whether the target link address, the title of the tab page and / or the domain name address includes the preset text.

[0135] The tag grouping submodule is used to classify the tag page corresponding to the target link address into the group of preset text if the target link address, the title of the tag page and / or the domain name address include preset text.

[0136] As an optional implementation of the above device, the browser's search pop-up box pops up in response to a pressing operation of a preset shortcut key.

[0137] It should be understood that the device corresponds to the above-mentioned tab search method embodiment and can execute the various steps involved in the above-mentioned method embodiment. The specific functions of the device can be found in the description above, and the detailed description is appropriately omitted here. The device includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system (OS) of the device.

[0138] An electronic device provided in an embodiment of the present application includes: a processor and a memory, the memory storing machine-readable instructions executable by the processor, and the above method is performed when the machine-readable instructions are executed by the processor.

[0139] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to execute the above method. Wherein, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk.

[0140] The embodiment of the present application also provides a computer program product, including: a computer program or a computer instruction, and the computer program or the computer instruction executes the method described above when executed by a processor.

[0141] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0142] In several embodiments provided by the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device embodiments described above are only schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a part of a module, a program segment or a code, and a part of a module, a program segment or a code includes one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also be different from the order of occurrence marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which is mainly determined by the functions involved.

[0143] In addition, each functional module of each embodiment in the embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. In addition, in the description of this specification, the description of reference terms "one embodiment", "some embodiments", "example", "specific example", "some examples", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of the present application. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples without contradiction.

[0144] The above description is only an optional implementation manner of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be covered within the protection scope of the embodiments of the present application.

Claims

1. A method for searching a tab page, characterized in that: include: Get the keywords to be processed from the search box of the browser; Searching for the keyword to be processed in multiple tabs of the browser, wherein the multiple tabs include: opened tabs and historically visited tabs; If the target tab corresponding to the keyword to be processed is not found in the opened tabs and the historically visited tabs, a search address of a third-party search engine is output, and the search address is used to search for the keyword to be processed using the third-party search engine.

2. The method according to claim 1, characterized in that The step of searching for the to-be-processed keyword in the multiple tabs of the browser includes: For each tab page of the multiple tab pages of the browser, obtain the title, link address and / or page content of the tab page; If the title, link address and / or page content of the tab page contains the keyword to be processed, the tab page is added to the target tab page corresponding to the keyword to be processed.

3. The method according to claim 1, characterized in that The keywords to be processed include: a plurality of keywords; the searching for the keywords to be processed in the plurality of tabs of the browser includes: For each tab page among the multiple tab pages of the browser, if the tab page contains any keyword among the multiple keywords, the tab page is added to the target tab page corresponding to the keyword to be processed.

4. The method according to claim 1, characterized in that: The step of searching for the to-be-processed keyword in the multiple tabs of the browser includes: Merge the opened tabs and the historically visited tabs to remove duplicates, and obtain multiple tabs after removing duplicates; Search the multiple tab pages after deduplication for a target tab page corresponding to the keyword to be processed.

5. The method according to claim 1, characterized in that The step of searching for the to-be-processed keyword in the multiple tabs of the browser includes: Searching the keyword to be processed in the opened tab; If the target tab page corresponding to the keyword to be processed is not found in the opened tab pages, the keyword to be processed is searched in the tab pages that have been visited historically.

6. The method according to claim 1, characterized in that After searching the keywords to be processed in multiple tabs of the browser, the method further includes: If the target tab page corresponding to the to-be-processed keyword is searched in the opened tab pages and / or the historically visited tab pages, the title and / or link address of the target tab page is displayed.

7. The method according to claim 6, characterized in that After displaying the target tab page corresponding to the keyword to be processed, the method further includes: Obtaining a target link address after clicking, and determining whether the target link address is matched in the tab link addresses corresponding to the multiple tab pages that have been opened; If so, the tab page corresponding to the target link address is displayed in the browser in the form of a focus window.

8. The method according to claim 7, characterized in that After determining whether the target link address is matched in the tag link addresses corresponding to the multiple opened tab pages, the method further includes: If the target link address is not matched in the tab link addresses corresponding to the multiple opened tab pages, a new tab page corresponding to the target link address is opened, and the tab pages corresponding to the target link address are automatically grouped.

9. The method according to claim 8, characterized in that The automatically grouping the tab pages corresponding to the target link addresses includes: Obtaining the title of the tab page corresponding to the target link address, and obtaining the domain name address from the target link address; Determining whether the target link address, the title of the tab page and / or the domain name address include preset text; If so, the tab page corresponding to the target link address is included in the group of the preset text.

10. The method according to any one of claims 1 to 9, characterized in that: The search pop-up box of the browser pops up in response to pressing a preset shortcut key.

11. A tab page search device, characterized in that: include: The keyword acquisition module is used to obtain the keywords to be processed from the search box of the browser; A keyword search module, used to search for the to-be-processed keyword in multiple tabs of the browser, wherein the multiple tabs include: opened tabs and historically visited tabs; A third-party search module is used to output a search address of a third-party search engine if the target tab corresponding to the keyword to be processed is not found in the opened tabs and the historically visited tabs. The search address is used to search for the keyword to be processed using the third-party search engine.

12. An electronic device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the machine-readable instructions are executed by the processor to perform any method according to claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is executed.

14. A computer program product, characterized in that include: A computer program or a computer instruction, wherein when the computer program or the computer instruction is executed by a processor, the method according to any one of claims 1 to 10 is executed.