Multi-tab management method and device, computer equipment and storage medium
By optimizing the tab display order through natural language processing and browsing behavior data, the problem of excessive browser memory usage was solved, page loading speed and user operation efficiency were improved, and more efficient tab management was achieved.
Patent Information
- Application Number
- CN202511763980.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-27
- Publication Date
- 2026-02-27
AI Technical Summary
Existing tab management methods result in excessive browser memory usage, affecting page loading speed and overall performance, and reducing user browsing experience and work efficiency.
Keywords from tabs are extracted using natural language processing technology. Combined with a pre-built categorized thesaurus and user browsing behavior data, the display order of tabs is dynamically optimized and displayed within the browser page. This includes features such as hibernation and lightweighting of excessive tabs, and providing keyboard shortcuts and search functionality to improve switching efficiency.
It significantly improves the efficiency of user navigation and tab switching. By dynamically optimizing the tab layout, it enhances users' work or study efficiency, reduces system resource consumption, avoids browser lag, and improves the overall speed and stability of web pages.
Smart Images

Figure CN121579807A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of webpage interaction, and in particular to a multi-tab page tab management method and device, computer equipment and a storage medium. BACKGROUND
[0002] A tab page tab is a common user interface component used to organize and switch different content views within the same window or area. It consists of a set of horizontally arranged tabs and corresponding content panels, and users can quickly switch between different content by clicking on the tabs without jumping to a new page. In the process of web browsing, users often open multiple tab page tabs at the same time to handle various tasks or obtain various information.
[0003] However, in the existing tab management method, too many tabs will cause the browser memory usage to be too high, thereby affecting the loading speed and overall performance of the webpage, and reducing the browsing experience and work efficiency of the user. SUMMARY
[0004] Therefore, it is necessary to provide a multi-tab page tab management method, device, computer equipment and storage medium capable of improving the loading speed and performance of the webpage.
[0005] In a first aspect, the present application provides a multi-tab page tab management method, which comprises:
[0006] Obtaining the titles and page contents of multiple tab page tabs opened in a browser;
[0007] Extracting keywords of the tab page tabs from the titles and page contents by natural language processing to obtain tab keywords of the multiple tab page tabs;
[0008] Matching the extracted tab keywords of the multiple tab page tabs with a pre-constructed classification word library to determine classification results of the multiple tab page tabs;
[0009] Determining a display order of the multiple tab page tabs according to the usage of the multiple tab page tabs and the classification results of the multiple tab page tabs;
[0010] Displaying the multiple tab page tabs in the browser page based on the display order.
[0011] In one embodiment, the matching of the extracted tab keywords of the multiple tab page tabs with the pre-constructed classification word library to determine the classification results of the multiple tab page tabs comprises:
[0012] Matching the extracted tab keywords of the multiple tab page tabs with the pre-constructed classification word library to determine a preliminary classification based on the multiple tab page tabs;
[0013] Based on user browsing behavior data of the multiple tabs, a more detailed classification is determined under the initial classification to obtain the classification results of the multiple tabs.
[0014] The browsing behavior data includes at least one of the following: dwell time, access frequency, and operation type.
[0015] In one embodiment, determining the refined classification under the initial classification based on user browsing behavior data of the multiple tabs to obtain the classification results of the multiple tabs includes:
[0016] Collect user dwell time, access frequency, and operation type on the multiple tabs;
[0017] If the cumulative dwell time of the target tab exceeds the dwell time threshold, the access frequency exceeds the access frequency threshold, and the proportion of a specific operation type exceeds the proportion threshold of a specific operation, then the target tab will be refined from the preliminary classification to a subclass that matches the specific operation type, so as to obtain the classification result of the target tab.
[0018] In one embodiment, the usage of the multiple tabs includes: usage frequency and recent access time; determining the display order of the multiple tabs based on their usage and classification results includes:
[0019] The number of times each tab is accessed within a preset time period is counted, and the usage frequency weight is determined based on the number of accesses.
[0020] Determine the time weight based on the most recent access time of the multiple tabs;
[0021] Based on the usage frequency weight and the time weight, the sorting score of the multiple tabs is determined;
[0022] The display order of the multiple tabs is determined based on their sorting scores.
[0023] In one embodiment, the method further includes:
[0024] The resource usage indicators of the multiple tabs are sampled and monitored at preset intervals. The resource usage indicators include at least one of the following: memory usage, CPU utilization, and network bandwidth usage rate.
[0025] If the target tab meets the hibernation conditions, perform a hibernation operation on the tab and / or perform lightweight processing.
[0026] The sleep conditions include: no user operation within a preset time period, and / or, resource usage exceeding a set threshold; the sleep operation includes pausing unnecessary script execution and resource loading; and the lightweight processing includes: compressing page image resolution while retaining the basic page framework and some key data.
[0027] In one embodiment, the method further includes:
[0028] In response to receiving the first shortcut key operation, switch from the current tab to the first tab that is listed first;
[0029] In response to receiving a second shortcut key operation, switch from the current tab to the second tab that is next in the list;
[0030] In response to receiving a third shortcut key operation, switch from the current tab to the third tab specified by the identification information in the third shortcut key operation;
[0031] The first, second, and third shortcut key operations are all different, and the identification information in the third shortcut key operation is used to indicate the display order of the third tab in the browser.
[0032] In one embodiment, the browser's toolbar or tab bar includes a search box; the method further includes:
[0033] In response to receiving the user's input keywords in the search box, the system performs a search and match on the titles and page text content of the multiple tabs based on the input keywords to obtain matching results;
[0034] Based on the matching degree of the matching results and the most recent access time, the multiple tabs are sorted and the sorted list of the multiple tabs is displayed.
[0035] In response to a user's click on a target list item in the sorted list, switch to the tab corresponding to the target list item.
[0036] Secondly, this application also provides a multi-tab management device, including:
[0037] The acquisition module is used to retrieve the titles and page content of multiple open tabs in the browser;
[0038] The extraction module is used to extract keywords from the title and page content using natural language processing to obtain the tab keywords for multiple tabs.
[0039] The matching module is used to match the extracted tab keywords of multiple tabs with a pre-built classification thesaurus to determine the classification results of multiple tabs;
[0040] The determination module is used to determine the display order of the multiple tabs based on their usage and classification results.
[0041] The display module is used to display the multiple tabs within the browser page based on the display order.
[0042] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0043] Get the titles and page content of multiple open tabs in the browser;
[0044] Keywords are extracted from the title and page content using natural language processing to obtain the tab keywords for multiple tabs;
[0045] The extracted tab keywords are matched with a pre-built classification thesaurus to determine the classification results of the multiple tabs.
[0046] The display order of the multiple tabs is determined based on their usage and classification.
[0047] Based on the aforementioned display order, the multiple tabs are displayed within the browser page.
[0048] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0049] Get the titles and page content of multiple open tabs in the browser;
[0050] Keywords are extracted from the title and page content using natural language processing to obtain the tab keywords for multiple tabs;
[0051] The extracted tab keywords are matched with a pre-built classification thesaurus to determine the classification results of the multiple tabs.
[0052] The display order of the multiple tabs is determined based on their usage and classification.
[0053] Based on the aforementioned display order, the multiple tabs are displayed within the browser page.
[0054] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0055] Get the titles and page content of multiple open tabs in the browser;
[0056] Keywords are extracted from the title and page content using natural language processing to obtain the tab keywords for multiple tabs;
[0057] The extracted tab keywords are matched with a pre-built classification thesaurus to determine the classification results of the multiple tabs.
[0058] The display order of the multiple tabs is determined based on their usage and classification.
[0059] Based on the aforementioned display order, the multiple tabs are displayed within the browser page.
[0060] The aforementioned multi-tab management method, device, computer equipment, and storage medium acquire the titles and page content of multiple open tabs in a browser; extract keywords from the titles and page content using natural language processing to obtain tab keywords for the multiple tabs; match the extracted tab keywords with a pre-built classification thesaurus to determine the classification results of the multiple tabs; determine the display order of the multiple tabs based on their usage and classification results; and display the multiple tabs within the browser page based on the display order. By automatically analyzing and categorizing tab content, users can quickly understand the topic distribution of opened pages. The sorting based on page content classification and usage prioritizes frequently used or recently used pages of the same type, significantly improving the efficiency of user navigation and tab switching. Dynamically optimizing the tab layout also helps improve user work or study efficiency. Attached Figure Description
[0061] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0062] Figure 1 This is a diagram illustrating the application environment of a multi-tab management method in one embodiment.
[0063] Figure 2 This is a flowchart illustrating a multi-tab management method in one embodiment;
[0064] Figure 3 This is a flowchart illustrating a multi-tab management method in another embodiment;
[0065] Figure 4 This is a flowchart illustrating a multi-tab management method in another embodiment;
[0066] Figure 5 This is a flowchart illustrating a multi-tab management method in another embodiment;
[0067] Figure 6 This is a flowchart illustrating a multi-tab management method in another embodiment;
[0068] Figure 7 This is a flowchart illustrating a multi-tab management method in another embodiment;
[0069] Figure 8 This is a flowchart illustrating a multi-tab management method in another embodiment;
[0070] Figure 9 This is a structural block diagram of a multi-tab management device in one embodiment. Detailed Implementation
[0071] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0072] The multi-tab management method provided in this application can be applied to, for example, Figure 1 The application environment shown. The computer device can be a terminal, and its internal structure diagram can be as follows. Figure 1As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a multi-tab management method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0073] Those skilled in the art will understand that Figure 1 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0074] In one embodiment, such as Figure 2 As shown, a multi-tab page management method is provided, which can be applied to... Figure 1 Taking the terminal in the example, the explanation includes:
[0075] S201, retrieve the titles and page content of multiple open tabs in the browser.
[0076] In this embodiment, the title text of all currently open tabs within the browser window and the text content in the complete Document Object Model (DOM) of their corresponding web pages are obtained. Optionally, all text paragraphs, list items, and comments in documents across multiple tab pages can be obtained.
[0077] Optionally, the title and page content of the newly opened tab can be automatically obtained each time the user triggers the action of opening a tab; or, the titles and page content of multiple opened tabs can be obtained when the number of opened tabs exceeds a preset number; or, the titles and page content of multiple opened tabs in the browser can be obtained periodically according to a preset time interval.
[0078] Optionally, pre-installed components can be used to obtain the titles and page content of multiple open tabs in the browser. For example, a first preset component can be used to obtain the title text on the tab bar; further, a second preset component can be used to access the Document Object Model (DOM) structure within the webpage document. The second preset component injects a predefined content script into the target tab. This content script runs within the context of the target page, thus allowing it to access the page's DOM. After the script is executed, it traverses the DOM tree to extract the required text content.
[0079] S202 uses natural language processing to extract keywords from the title and page content to obtain the tab keywords for multiple tabs.
[0080] In this embodiment, natural language processing technology is used to extract keywords from tab titles. Through lexical analysis and part-of-speech tagging, key nouns, verbs, adjectives, and other words are identified. For example, for a tab titled "Database Table Structure Design Tool," keywords such as "database," "table structure," and "design" are extracted.
[0081] S203, match the extracted tab keywords with a pre-built classification thesaurus to determine the classification results of the multiple tabs.
[0082] In this embodiment, the extracted tab keywords are matched with a pre-built categorized thesaurus. A categorized thesaurus including multiple categories can be pre-built in the terminal to determine which category the extracted keywords for each tab belong to, thus determining the categorization results for multiple tabs.
[0083] Optionally, a correspondence between keywords and classification results can be pre-built, and the classification results of the tab keywords can be determined based on this correspondence and the tab keywords.
[0084] For example, the categorization thesaurus includes common category tags such as database management, data query, and data modeling. If a keyword has a high degree of matching with the database management category tag, then the keyword can be identified as belonging to the database management category.
[0085] S204. Determine the display order of multiple tabs based on their usage and classification.
[0086] In this embodiment, the rating of each tab can be determined based on the usage and classification results of multiple tabs, and the display order of multiple tabs can be determined based on the rating of multiple tabs; alternatively, the display level of each tab can be determined first based on the usage of each tab, with tabs of higher display levels displayed first. Further, for each display level, the display order of each tab can be determined based on the classification results of each tab in that display level.
[0087] As an optional implementation, the display order of each tab in each display level can be determined according to the preset priority of each classification result. For example, if multiple tabs include tab1, tab2, tab3, tab4, tab5, and tab6, firstly, based on the usage of each tab, it is determined that tab3 belongs to the first display level, tab2 and tab4 belong to the second display level, and tab1, tab5, and tab6 belong to the third display level. Here, the first display level is the highest display level, and the third display level is the lowest display level. For the second display level, based on the classification results, the display order of tab2 is determined to be earlier than tab4. For the third display level, based on the classification results, the display order of tab6 is determined to be earlier than tab1 and tab5, and the display order of tab1 is earlier than tab5. That is, the display order of multiple tabs is tab3, tab2, tab4, tab6, tab1, and tab5.
[0088] S205 displays multiple tabs within a browser page based on the display order.
[0089] In this embodiment, the terminal applies the internally calculated display order to the browser's user interface. Without changing the browser's original functions, the visual positions of these tabs are rearranged in the tab bar area according to a determined new order, thereby presenting the processing results intuitively to the user, enabling them to navigate and switch more efficiently.
[0090] The aforementioned multi-tab management method involves: obtaining the titles and content of multiple open tabs in the browser; extracting keywords from the titles and content using natural language processing to obtain tab keywords; matching the extracted tab keywords with a pre-built classification thesaurus to determine the classification results of the multiple tabs; determining the display order of the multiple tabs based on their usage and classification results; and displaying the multiple tabs on the browser page based on the display order. By automatically analyzing and classifying tab content, the method effectively reduces the user's memory and organization burden, allowing users to quickly understand the topic distribution of opened pages. The method also prioritizes frequently used or recently used pages based on page content classification and usage, significantly improving the efficiency of user navigation and tab switching. Furthermore, by dynamically optimizing the tab layout, the method helps improve the user's work or study efficiency.
[0091] In one embodiment, one implementation of S203 above is provided, such as... Figure 3 As shown, the above-mentioned "matching the extracted tab keywords with a pre-built classification thesaurus to determine the classification results of the multiple tabs" includes:
[0092] S301, Match the extracted tab keywords of multiple tabs with a pre-built classification thesaurus to determine the preliminary classification based on multiple tabs.
[0093] In this embodiment of the application, a correspondence between keywords and preliminary classifications is pre-constructed, and a classification thesaurus is formed based on this correspondence. Thus, the preliminary classification of each tab is determined based on the tab keywords and the classification thesaurus.
[0094] S302, Based on user browsing behavior data of multiple tabs, determine the refined classification under the initial classification to obtain the classification results of multiple tabs.
[0095] The browsing behavior data includes at least one of the following: dwell time, access frequency, and operation type; the preliminary classification includes multiple detailed classifications. For example, the preliminary classification may include category A, category B, and category C, and category A may include multiple detailed classifications, such as a1, a2, and a3.
[0096] In this embodiment of the application, user browsing behavior data for multiple tabs is obtained, and then the refined category corresponding to the tab is determined based on the browsing behavior data, thereby determining the classification result of each tab.
[0097] For example, for each tab, if the browsing behavior data includes dwell time and access frequency, at least one candidate refined category can be determined from the preliminary category based on the dwell time, and then the refined category corresponding to the tab can be determined from the at least one candidate refined category based on the access frequency.
[0098] For example, the score values of each data item in the browsing behavior data can be determined according to the preset correspondence, the score values can be weighted according to the preset weight to obtain the total score value corresponding to each tab, and then the classification result corresponding to each tab can be determined according to the correspondence between the total score value and the refined classification.
[0099] In the above application embodiment, the initial classification based on multiple tabs is first determined by matching the tab keywords with a pre-built classification thesaurus. Then, based on the initial classification, a refined classification is determined based on the browsing behavior data of multiple tabs. Through the two classification steps, the accuracy of the classification results is improved.
[0100] In one embodiment, one implementation of S302 described above is provided, such as... Figure 4 As shown, the above-mentioned "based on user browsing behavior data of multiple tabs, determining the refined classification under the initial classification to obtain the classification results of multiple tabs" includes:
[0101] S401 collects the user's dwell time, access frequency, and operation type on multiple tabs.
[0102] Taking the database management page as an example, operation types include specific operations such as creating and modifying tables. Alternatively, operation types can include click operations, input operations, and browsing operations.
[0103] In this embodiment, the access frequency of each tab can be determined by counting the number of times a user visits each tab within a certain time period; the more times it is visited, the higher the usage frequency. A preset timer can be used to obtain the time a user spends on each tab; optionally, clicking on that tab can be used as the start time, and clicking on other tabs can be used as the end time.
[0104] S402, if the cumulative dwell time of the target tab exceeds the dwell time threshold, the access frequency exceeds the access frequency threshold, and the proportion of a specific operation type exceeds the proportion threshold of a specific operation, then the target tab is refined from the initial classification to a subclass that matches the specific operation type, so as to obtain the classification result of the target tab.
[0105] In this embodiment, the target tab can be any of multiple tabs. The terminal pre-stores a dwell time threshold, an access frequency threshold, and an operation percentage threshold. As a classification case, if the cumulative dwell time of the target tab exceeds the dwell time threshold or the access frequency exceeds the access frequency threshold, then the operation on the target tab is valid. If the percentage of a specific operation type exceeds the specific operation percentage threshold, the target tab is refined from the initial classification to a subclass that matches the specific operation type to obtain the classification result of the target tab.
[0106] Optionally, if users frequently create and modify database tables on a tab initially categorized as "Database Management" and spend a significant amount of time on it, the category can be further refined to "Database Table Structure Management." For newly opened tabs, classification is determined based on the user's current operational context. For example, tabs opened after a user searches for database optimization methods can be categorized as related to database optimization.
[0107] Optionally, tabs can be sorted based on a combination of user frequency and most recent access time. The most recent access time is accurate to the second, with the most recently accessed tabs appearing first. For tabs with the same usage frequency, they are sorted according to their most recent access time.
[0108] For example, in database management, a user opens multiple related tabs, such as the database table structure design page, the data insertion page, and the data query page. First, keyword extraction and classification matching are performed on these tab titles, automatically categorizing them as "database management." Then, based on the user's access patterns to each tab over the past week, assuming the user accessed the database table structure design page 10 times (most recently 30 minutes ago) and the data query page 10 times (most recently 10 minutes ago), the data query page will be ranked higher than the database table structure design page due to its more recent access time.
[0109] In the above-mentioned application embodiments, the collected browsing behavior data is judged based on the dwell time threshold, the access frequency threshold, and the operation ratio threshold, thereby improving the accuracy of the classification results.
[0110] In one embodiment, an implementation of S204 above is provided, wherein the usage of multiple tabs includes: usage frequency and recent access time, such as... Figure 5 As shown, the above "determining the display order of multiple tabs based on their usage and classification results" includes:
[0111] S501, count the number of times each tab is accessed within a preset time period, and determine the usage frequency weight based on the number of accesses.
[0112] In this embodiment, the number of times a user visits each tab within a preset time period is counted. Further, a usage frequency weight is determined for each tab based on this number of visits. The more visits a tab receives, the higher its usage frequency weight. For example, if a "Project Requirements Document" tab is visited 20 times during this period, while an "API Interface Document" tab is visited 5 times, then the usage frequency weight of the "Project Requirements Document" tab will be significantly higher than that of the "API Interface Document" tab.
[0113] Optionally, the frequency weight can be the ratio of the number of visits to a preset time period.
[0114] S502 determines the time weight based on the most recent access time of multiple tabs.
[0115] In this embodiment, the time of the most recent user activation of each tab is recorded, accurate to the second. Based on this timestamp, a time weight is determined for each tab. Optionally, the more recently accessed the tab, the higher its time weight; the further back in time the time, the smaller the decay in its time weight.
[0116] S503 determines the sorting score of multiple tabs based on usage frequency weight and time weight.
[0117] As an optional implementation, for each tab, the sum of the frequency weight and the time weight can be determined as the frequency weight and time weight, and the sorting score of multiple tabs can be determined.
[0118] As another alternative implementation, for each tab, the frequency of use weight and time weight can be weighted and summed according to a preset ratio to determine the ranking score of multiple tabs.
[0119] S504 determines the display order of multiple tabs based on their sorting scores.
[0120] In this embodiment of the application, multiple tabs can be sorted in descending order according to the sorting score of each tab to obtain a sorting result, and the sorting result can be used as the display order of multiple tabs.
[0121] In the above application embodiments, the sorting scores of multiple tabs are first determined based on two dimensions: usage frequency weight and time weight, and then the display order of multiple tabs is determined, thereby improving the accuracy and reliability of the display order.
[0122] In one embodiment, such as Figure 6 As shown, the above multi-tab management method also includes:
[0123] S601 samples and monitors the resource usage metrics of multiple tabs at preset intervals.
[0124] The resource usage metrics include at least one of the following: memory usage, CPU utilization, and network bandwidth usage rate.
[0125] In this embodiment, at preset time intervals, such as every 30 seconds, resource usage metrics for all open tabs in the browser are automatically sampled and monitored. For example, resource usage metrics may include the memory size occupied by each tab; or, resource usage metrics may include the CPU utilization of its process; or, resource usage metrics may include the memory size occupied by each tab, the CPU utilization of its process, and the real-time network bandwidth usage rate. That is, resource usage metrics include one or more of the following: memory usage, CPU utilization, and network bandwidth usage rate.
[0126] S602, if the target tab meets the hibernation conditions, perform a hibernation operation on the tab and / or perform lightweight processing.
[0127] The hibernation conditions include: no user operation within a preset time period, and / or, resource usage exceeding a set threshold; hibernation operations include pausing the execution of unnecessary scripts and resource loading; lightweight processing includes: compressing page image resolution while retaining the basic page framework and some key data.
[0128] In this embodiment, when a tab is detected to have had no user interaction for a period of time and has high resource consumption, the system puts the tab into background hibernation. In hibernation mode, unnecessary operations such as script execution and image loading are paused, retaining only the basic page framework and key data to reduce memory and CPU resource consumption. For tabs with many images or complex scripts, lightweight processing can be performed before hibernation, such as compressing images to a lower resolution and pausing complex animation effects and background data update tasks. When the user clicks the tab again, the system quickly restores its previous state, reloading images, executing scripts, etc., allowing the user to seamlessly continue browsing.
[0129] For example, a time period can be 15 minutes; user operations can include mouse clicks, keyboard input, page scrolling, etc.; high resource usage can be defined as memory usage exceeding the preset limit, such as memory usage exceeding twice the average memory usage of a browser.
[0130] For example, in a database monitoring scenario, a user opens multiple database performance monitoring pages, database log analysis pages, and database connection status viewing pages. After prolonged inactivity, the resource optimization management module detects that one of the database performance monitoring pages has high memory usage and meets the hibernation criteria. The system puts it into hibernation mode, pausing real-time data updates and the execution of some non-critical scripts, while compressing some images on the page. When the user clicks the tab again, the system quickly resumes the previous real-time data updates, reloads high-quality images, and executes the previously paused scripts. The user can continue to view the database performance monitoring data normally. Throughout this process, the running speed and stability of other currently used tabs are not significantly affected, and the overall performance of the webpage is effectively guaranteed.
[0131] In the above-mentioned embodiments, the resource optimization management module effectively reduces system resource consumption, avoids browser lag and performance degradation caused by too many tabs, and enables other tabs in use to load and run more smoothly, thereby improving the overall running speed and stability of the webpage.
[0132] In one embodiment, such as Figure 7 As shown, the above multi-tab management method also includes:
[0133] S701, in response to receiving the first shortcut key operation, switches from the current tab to the first tab that is sorted first.
[0134] S702, in response to receiving a second shortcut key operation, switches from the current tab to the second tab that is next in the order.
[0135] S703, in response to receiving a third shortcut key operation, switches from the current tab to the third tab specified by the identifier information in the third shortcut key operation.
[0136] The first, second, and third shortcut key operations are all different. The identification information in the third shortcut key operation is used to indicate the display order of the third tab in the browser.
[0137] In this embodiment, a set of shortcut keys is pre-built, and tab switching is performed based on the shortcut key operation triggered by the user. For example, the first shortcut key operation can be pressing Ctrl + Tab, which, in response to receiving the first shortcut key operation, switches from the current tab to the first tab in the sorted list; the second shortcut key operation can be Ctrl + Shift + Tab, which, in response to receiving the second shortcut key operation, switches from the current tab to the second tab in the sorted list.
[0138] Optionally, the identifier information in the third shortcut key operation can be numerical information. For example, the third shortcut key operation can be pressing Ctrl + Tab + a number key. When the number key is 1, the corresponding tab is the tab with the first position in the display order. When the number key is 2, the corresponding tab is the tab with the second position in the display order, and so on. In response to receiving the third shortcut key operation, you can switch from the current tab to the third tab specified by the identifier information in the third shortcut key operation.
[0139] For example, when developing a database, a user may have multiple pages open simultaneously, such as the database stored procedure writing page, the database function debugging page, and the database schema documentation page. When the user needs to quickly switch to the database function debugging page, they can simply press Ctrl + Tab + 2 (assuming the page is the second one) to quickly switch to the target tab.
[0140] In the above-described embodiments, the quick switching function greatly improves the speed and accuracy of tab switching, and reduces user operation steps and time costs.
[0141] In one embodiment, the browser's toolbar or tab bar includes a search box, such as... Figure 8 As shown, the above multi-tab management method also includes:
[0142] S801, in response to receiving the keyword input by the user in the search box, performs a search and match on the titles of multiple tabs and the text content of the page based on the input keyword to obtain the matching results.
[0143] In this embodiment, when a user enters a keyword (e.g., "data analysis methods"), in response to the user's input in the browser's specific search box, the terminal performs a full-text search and matching on the titles and page text content of all currently open tabs, returning all tabs containing the keyword as matching results. For example, a tab titled "Usage of Statistical Analysis Tools" and another tab whose content repeatedly mentions "data analysis methods" will both be included in the matching result set.
[0144] S802: Based on the matching degree of the matching results and the most recent access time, sort multiple tabs and display the sorted list of multiple tabs.
[0145] In this embodiment, the matched tabs are sorted based on two dimensions: the degree of matching and the most recent access time. For example, tabs whose keywords appear in the title or are frequently appearing in the page content and in prominent positions have a higher degree of matching. Combining these two factors, tabs with higher matching degrees and more recent access times are ranked higher. Furthermore, the sorted list of tabs is displayed to the user through a presentation interface.
[0146] S803 responds to the user's click operation on the target list item in the sorted list and switches to the tab corresponding to the target list item.
[0147] In this embodiment, the system responds to a user's click selection of a target item in the sorted list. Subsequently, the browser automatically switches the view to the original tab corresponding to that target list item and activates it as the current page, allowing the user to immediately browse the page's detailed content.
[0148] Optionally, a search box can be placed in the browser toolbar or near the tab bar. When a user enters keywords in the search box, the search is performed in real time across all open tab titles and page content. For tab titles, a combination of exact and fuzzy matching is used. If the keyword exactly matches the title, the tab is displayed first; if it partially matches, it is sorted based on a combination of match degree and most recent access time. For searching page content, the browser's rendering engine provides an interface to obtain the page text content, and then a string matching algorithm is used for the search. Search results can be displayed in a list below the search box. If a user clicks on a list item, the terminal can quickly switch to the corresponding tab in response to the click.
[0149] For example, if a user wants to find a page related to a specific stored procedure, they can enter the stored procedure name as a keyword in the search box. The system will search all tabs. If there is a completely matching tab title, such as "[Database Name] - [Stored Procedure Name] Writing Page", that tab will be displayed first. If there is no completely matching tab, but there are partially matching tabs with titles or page content containing the keyword, the system will sort them according to the degree of matching and the most recent access time and display them in the search results list. The user can click on the corresponding list item to switch to the target tab.
[0150] In the above application embodiments, the search function greatly improves the speed and accuracy of tab switching, and reduces user operation steps and time costs.
[0151] In one embodiment, a complete multi-tab management method is provided, including:
[0152] S1 retrieves the titles and page content of multiple open tabs in the browser.
[0153] S2 extracts keywords from the title and page content using natural language processing to obtain the tab keywords for multiple tabs.
[0154] S3. The extracted tab keywords are matched with a pre-built classification thesaurus to determine the preliminary classification based on the multiple tabs.
[0155] S4 collects the user's dwell time, access frequency, and operation type on multiple tabs.
[0156] S5. If the cumulative dwell time of the target tab exceeds the dwell time threshold, the access frequency exceeds the access frequency threshold, and the proportion of a specific operation type exceeds the proportion threshold of a specific operation, then the target tab will be refined from the initial classification to a subclass that matches the specific operation type to obtain the classification result of the target tab.
[0157] S6: Count the number of times each tab is accessed within a preset time period, and determine the usage frequency weight based on the number of accesses.
[0158] S7 determines the time weight based on the most recent access time of multiple tabs.
[0159] S8 determines the sorting score of multiple tabs based on usage frequency weight and time weight.
[0160] S9 determines the display order of multiple tabs based on their sorting scores.
[0161] S10 displays multiple tabs within the browser page based on the display order.
[0162] S11 samples and monitors the resource usage metrics of multiple tabs at preset intervals.
[0163] S12, if the target tab meets the hibernation conditions, perform hibernation operation on the tab and / or lightweight processing.
[0164] S12, in response to receiving the first shortcut key operation, switches from the current tab to the first tab in the sorted list.
[0165] S13, in response to receiving a second shortcut key operation, switches from the current tab to the second tab that is next in the order.
[0166] S14, in response to receiving a third shortcut key operation, switch from the current tab to the third tab specified by the identifier information in the third shortcut key operation.
[0167] S15, in response to receiving the user's input keywords in the search box, performs a search and match on the titles of multiple tabs and the text content of the page based on the input keywords to obtain the matching results;
[0168] S15, based on the matching degree of the matching results and the most recent access time, sort multiple tabs and display the sorted list of multiple tabs;
[0169] S16, in response to the user's click operation on the target list item in the sorted list, switch to the tab corresponding to the target list item.
[0170] The aforementioned multi-tab management method involves: obtaining the titles and content of multiple open tabs in the browser; extracting keywords from the titles and content using natural language processing to obtain tab keywords; matching the extracted tab keywords with a pre-built classification thesaurus to determine the classification results of the multiple tabs; determining the display order of the multiple tabs based on their usage and classification results; and displaying the multiple tabs on the browser page based on the display order. By automatically analyzing and classifying tab content, the method effectively reduces the user's memory and organization burden, allowing users to quickly understand the topic distribution of opened pages. The method also prioritizes frequently used or recently used pages based on page content classification and usage, significantly improving the efficiency of user navigation and tab switching. Furthermore, by dynamically optimizing the tab layout, the method helps improve the user's work or study efficiency.
[0171] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0172] Based on the same inventive concept, this application also provides a multi-tab management device for implementing the multi-tab management method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more multi-tab management device embodiments provided below can be found in the limitations of the multi-tab management method described above, and will not be repeated here.
[0173] In one embodiment, such as Figure 9 As shown, a multi-tab management device is provided, including: an acquisition module 10, an extraction module 11, a matching module 12, a confirmation module 13, and a display module 14, wherein:
[0174] Module 10 is used to obtain the titles and page content of multiple open tabs in the browser.
[0175] Extraction module 11 is used to extract keywords from the title and page content through natural language processing to obtain the tab keywords of multiple tabs.
[0176] The matching module 12 is used to match the extracted tab keywords of multiple tabs with a pre-built classification thesaurus to determine the classification results of the multiple tabs.
[0177] Module 13 is used to determine the display order of multiple tabs based on their usage and classification.
[0178] Display module 14 is used to display multiple tabs within a browser page based on the display order.
[0179] In one embodiment, the matching module 12 includes: a matching unit and a first determining unit, wherein:
[0180] The matching unit is used to match the extracted tab keywords of multiple tabs with a pre-built classification thesaurus to determine the preliminary classification based on the multiple tabs.
[0181] The first determining unit is used to determine the refined classification under the preliminary classification based on the user's browsing behavior data of multiple tabs, so as to obtain the classification results of multiple tabs.
[0182] The browsing behavior data includes at least one of the following: dwell time, access frequency, and operation type.
[0183] In one embodiment, the second determining unit is specifically used to collect the user's dwell time, access frequency, and operation type for multiple tabs; if the cumulative dwell time of the target tab exceeds the dwell time threshold, the access frequency exceeds the access frequency threshold, and the proportion of a specific operation type exceeds the proportion threshold of a specific operation, then the target tab is refined from the initial classification to a subclass that matches the specific operation type, so as to obtain the classification result of the target tab.
[0184] In one embodiment, the determining module 13 includes: a statistical unit, a second determining unit, a third determining unit, and a fourth determining unit, wherein:
[0185] The statistics unit is used to count the number of times each tab is accessed within a preset time period, and to determine the usage frequency weight based on the number of accesses.
[0186] The second determining unit is used to determine the time weight based on the most recent access time of multiple tabs.
[0187] The third determining unit is used to determine the sorting score of multiple tabs based on usage frequency weight and time weight.
[0188] The fourth determining unit is used to determine the display order of multiple tabs based on their sorting scores.
[0189] In one embodiment, the above-mentioned multi-tab management device further includes: a sampling module and a processing module, wherein:
[0190] The sampling module is used to sample and monitor the resource usage indicators of multiple tabs at preset intervals. The resource usage indicators include at least one of the following: memory usage, CPU utilization, and network bandwidth usage rate.
[0191] The processing module is used to perform a hibernation operation on the tab when the target tab meets the hibernation conditions, and / or perform lightweight processing.
[0192] The hibernation conditions include: no user operation within a preset time period, and / or, resource usage exceeding a set threshold; hibernation operations include pausing the execution of unnecessary scripts and resource loading; lightweight processing includes: compressing page image resolution while retaining the basic page framework and some key data.
[0193] In one embodiment, the multi-tab management device further includes: a first switching module, a second switching module, and a third switching module, wherein:
[0194] The first switching module is used to switch from the current tab to the first tab in the sorted list in response to receiving the first shortcut key operation.
[0195] The second switching module is used to switch from the current tab to the second tab in the order of the next tab in response to receiving a second shortcut key operation.
[0196] The third switching module is used to switch from the current tab to the third tab specified by the identifier information in the third shortcut key operation in response to receiving a third shortcut key operation.
[0197] The first, second, and third shortcut key operations are all different. The identification information in the third shortcut key operation is used to indicate the display order of the third tab in the browser.
[0198] In one embodiment, the multi-tab management device further includes: a search matching module, a sorting module, and a fourth switching module, wherein:
[0199] The search matching module is used to respond to the keywords entered by the user in the search box, and to perform search matching in the titles of multiple tabs and the text content of the page based on the entered keywords to obtain matching results.
[0200] The sorting module is used to sort multiple tabs based on the degree of matching of the matching results and the most recent access time, and to display the sorted list of multiple tabs.
[0201] The fourth switching module is used to respond to the user's click operation on the target list item in the sorted list and switch to the tab corresponding to the target list item.
[0202] Each module in the aforementioned multi-tab management device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0203] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0204] Get the titles and page content of multiple open tabs in the browser;
[0205] Keyword extraction is performed on the title and page content using natural language processing to obtain the tab keywords for multiple tabs;
[0206] The extracted tab keywords are matched with a pre-built classification thesaurus to determine the classification results of the multiple tabs.
[0207] The display order of multiple tabs is determined based on their usage and classification.
[0208] Based on the display order, multiple tabs are displayed within the browser page.
[0209] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0210] The extracted tab keywords are matched with a pre-built classification thesaurus to determine the preliminary classification based on the multiple tabs.
[0211] Based on user browsing behavior data across multiple tabs, a more detailed classification is determined under the initial classification to obtain the classification results for multiple tabs.
[0212] The browsing behavior data includes at least one of the following: dwell time, access frequency, and operation type.
[0213] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0214] Collect data on user dwell time, access frequency, and operation type across multiple tabs;
[0215] If the cumulative dwell time of the target tab exceeds the dwell time threshold, the access frequency exceeds the access frequency threshold, and the proportion of a specific operation type exceeds the proportion threshold of a specific operation, then the target tab will be refined from the initial classification to a subclass that matches the specific operation type, so as to obtain the classification result of the target tab.
[0216] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0217] Count the number of times each tab is accessed within a preset time period, and determine the usage frequency weight based on the number of accesses;
[0218] Determine time weights based on the most recent access time of multiple tabs;
[0219] The ranking scores of multiple tabs are determined based on usage frequency weights and time weights.
[0220] The display order of multiple tabs is determined based on their sorting scores.
[0221] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0222] Resource usage metrics for multiple tabs are sampled and monitored at preset intervals. These metrics include at least one of the following: memory usage, CPU utilization, and network bandwidth usage.
[0223] If the target tab meets the hibernation conditions, perform a hibernation operation on the tab and / or perform lightweight processing.
[0224] The hibernation conditions include: no user operation within a preset time period, and / or, resource usage exceeding a set threshold; hibernation operations include pausing the execution of unnecessary scripts and resource loading; lightweight processing includes: compressing page image resolution while retaining the basic page framework and some key data.
[0225] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0226] In response to receiving the first shortcut key operation, switch from the current tab to the first tab that is listed first;
[0227] In response to receiving a second shortcut key operation, switch from the current tab to the second tab that is next in the list;
[0228] In response to receiving a third shortcut key operation, switch from the current tab to the third tab specified by the identifier information in the third shortcut key operation;
[0229] The first, second, and third shortcut key operations are all different. The identification information in the third shortcut key operation is used to indicate the display order of the third tab in the browser.
[0230] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0231] In response to receiving keywords entered by the user in the search box, the system performs a search and match based on the entered keywords in the titles of multiple tabs and the text content of the page to obtain matching results.
[0232] Based on the matching degree of the matching results and the most recent access time, multiple tabs are sorted and a sorted list of multiple tabs is displayed.
[0233] In response to a user's click on a target list item in the sorted list, switch to the tab corresponding to the target list item.
[0234] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0235] Get the titles and page content of multiple open tabs in the browser;
[0236] Keyword extraction is performed on the title and page content using natural language processing to obtain the tab keywords for multiple tabs;
[0237] The extracted tab keywords are matched with a pre-built classification thesaurus to determine the classification results of the multiple tabs.
[0238] The display order of multiple tabs is determined based on their usage and classification.
[0239] Based on the display order, multiple tabs are displayed within the browser page.
[0240] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0241] The extracted tab keywords are matched with a pre-built classification thesaurus to determine the preliminary classification based on the multiple tabs.
[0242] Based on user browsing behavior data across multiple tabs, a more detailed classification is determined under the initial classification to obtain the classification results for multiple tabs.
[0243] The browsing behavior data includes at least one of the following: dwell time, access frequency, and operation type.
[0244] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0245] Collect data on user dwell time, access frequency, and operation type across multiple tabs;
[0246] If the cumulative dwell time of the target tab exceeds the dwell time threshold, the access frequency exceeds the access frequency threshold, and the proportion of a specific operation type exceeds the proportion threshold of a specific operation, then the target tab will be refined from the initial classification to a subclass that matches the specific operation type, so as to obtain the classification result of the target tab.
[0247] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0248] Count the number of times each tab is accessed within a preset time period, and determine the usage frequency weight based on the number of accesses;
[0249] Determine time weights based on the most recent access time of multiple tabs;
[0250] The ranking scores of multiple tabs are determined based on usage frequency weights and time weights.
[0251] The display order of multiple tabs is determined based on their sorting scores.
[0252] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0253] Resource usage metrics for multiple tabs are sampled and monitored at preset intervals. These metrics include at least one of the following: memory usage, CPU utilization, and network bandwidth usage.
[0254] If the target tab meets the hibernation conditions, perform a hibernation operation on the tab and / or perform lightweight processing.
[0255] The hibernation conditions include: no user operation within a preset time period, and / or, resource usage exceeding a set threshold; hibernation operations include pausing the execution of unnecessary scripts and resource loading; lightweight processing includes: compressing page image resolution while retaining the basic page framework and some key data.
[0256] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0257] In response to receiving the first shortcut key operation, switch from the current tab to the first tab that is listed first;
[0258] In response to receiving a second shortcut key operation, switch from the current tab to the second tab that is next in the list;
[0259] In response to receiving a third shortcut key operation, switch from the current tab to the third tab specified by the identifier information in the third shortcut key operation;
[0260] The first, second, and third shortcut key operations are all different. The identification information in the third shortcut key operation is used to indicate the display order of the third tab in the browser.
[0261] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0262] In response to receiving keywords entered by the user in the search box, the system performs a search and match based on the entered keywords in the titles of multiple tabs and the text content of the page to obtain matching results.
[0263] Based on the matching degree of the matching results and the most recent access time, multiple tabs are sorted and a sorted list of multiple tabs is displayed.
[0264] In response to a user's click on a target list item in the sorted list, switch to the tab corresponding to the target list item.
[0265] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0266] Get the titles and page content of multiple open tabs in the browser;
[0267] Keyword extraction is performed on the title and page content using natural language processing to obtain the tab keywords for multiple tabs;
[0268] The extracted tab keywords are matched with a pre-built classification thesaurus to determine the classification results of the multiple tabs.
[0269] The display order of multiple tabs is determined based on their usage and classification.
[0270] Based on the display order, multiple tabs are displayed within the browser page.
[0271] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0272] The extracted tab keywords are matched with a pre-built classification thesaurus to determine the preliminary classification based on the multiple tabs.
[0273] Based on user browsing behavior data across multiple tabs, a more detailed classification is determined under the initial classification to obtain the classification results for multiple tabs.
[0274] The browsing behavior data includes at least one of the following: dwell time, access frequency, and operation type.
[0275] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0276] Collect data on user dwell time, access frequency, and operation type across multiple tabs;
[0277] If the cumulative dwell time of the target tab exceeds the dwell time threshold, the access frequency exceeds the access frequency threshold, and the proportion of a specific operation type exceeds the proportion threshold of a specific operation, then the target tab will be refined from the initial classification to a subclass that matches the specific operation type, so as to obtain the classification result of the target tab.
[0278] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0279] Count the number of times each tab is accessed within a preset time period, and determine the usage frequency weight based on the number of accesses;
[0280] Determine time weights based on the most recent access time of multiple tabs;
[0281] The ranking scores of multiple tabs are determined based on usage frequency weights and time weights.
[0282] The display order of multiple tabs is determined based on their sorting scores.
[0283] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0284] Resource usage metrics for multiple tabs are sampled and monitored at preset intervals. These metrics include at least one of the following: memory usage, CPU utilization, and network bandwidth usage.
[0285] If the target tab meets the hibernation conditions, perform a hibernation operation on the tab and / or perform lightweight processing.
[0286] The hibernation conditions include: no user operation within a preset time period, and / or, resource usage exceeding a set threshold; hibernation operations include pausing the execution of unnecessary scripts and resource loading; lightweight processing includes: compressing page image resolution while retaining the basic page framework and some key data.
[0287] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0288] In response to receiving the first shortcut key operation, switch from the current tab to the first tab that is listed first;
[0289] In response to receiving a second shortcut key operation, switch from the current tab to the second tab that is next in the list;
[0290] In response to receiving a third shortcut key operation, switch from the current tab to the third tab specified by the identifier information in the third shortcut key operation;
[0291] The first, second, and third shortcut key operations are all different. The identification information in the third shortcut key operation is used to indicate the display order of the third tab in the browser.
[0292] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0293] In response to receiving keywords entered by the user in the search box, the system performs a search and match based on the entered keywords in the titles of multiple tabs and the text content of the page to obtain matching results.
[0294] Based on the matching degree of the matching results and the most recent access time, multiple tabs are sorted and a sorted list of multiple tabs is displayed.
[0295] In response to a user's click on a target list item in the sorted list, switch to the tab corresponding to the target list item.
[0296] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0297] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0298] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A multi-tab page management method, characterized in that, The method includes: Get the titles and page content of multiple open tabs in the browser; Keywords are extracted from the title and page content using natural language processing to obtain the tab keywords for multiple tabs; The extracted tab keywords are matched with a pre-built classification thesaurus to determine the classification results of the multiple tabs. The display order of the multiple tabs is determined based on their usage and classification. Based on the aforementioned display order, the multiple tabs are displayed within the browser page.
2. The method according to claim 1, characterized in that, The step of matching the extracted tab keywords with a pre-built classification thesaurus to determine the classification results of the multiple tabs includes: The extracted tab keywords are matched with a pre-built classification thesaurus to determine a preliminary classification based on the multiple tabs. Based on user browsing behavior data of the multiple tabs, a more detailed classification is determined under the initial classification to obtain the classification results of the multiple tabs. The browsing behavior data includes at least one of the following: dwell time, access frequency, and operation type.
3. The method according to claim 2, characterized in that, The step of determining a refined classification under the initial classification based on user browsing behavior data of the multiple tabs, to obtain the classification results of the multiple tabs, includes: Collect user dwell time, access frequency, and operation type on the multiple tabs; If the cumulative dwell time of the target tab exceeds the dwell time threshold, the access frequency exceeds the access frequency threshold, and the proportion of a specific operation type exceeds the proportion threshold of a specific operation, then the target tab will be refined from the preliminary classification to a subclass that matches the specific operation type, so as to obtain the classification result of the target tab.
4. The method according to any one of claims 1 to 3, characterized in that, The usage information of the multiple tabs includes: usage frequency and recent access time; determining the display order of the multiple tabs based on their usage information and classification results includes: The number of times each tab is accessed within a preset time period is counted, and the usage frequency weight is determined based on the number of accesses. Determine the time weight based on the most recent access time of the multiple tabs; Based on the usage frequency weight and the time weight, the sorting score of the multiple tabs is determined; The display order of the multiple tabs is determined based on their sorting scores.
5. The method according to any one of claims 1 to 3, characterized in that, The method further includes: The resource usage indicators of the multiple tabs are sampled and monitored at preset intervals. The resource usage indicators include at least one of the following: memory usage, CPU utilization, and network bandwidth usage rate. If the target tab meets the hibernation conditions, perform a hibernation operation on the tab and / or perform lightweight processing. The sleep conditions include: no user operation within a preset time period, and / or, resource usage exceeding a set threshold; the sleep operation includes pausing unnecessary script execution and resource loading; and the lightweight processing includes: compressing page image resolution while retaining the basic page framework and some key data.
6. The method according to any one of claims 1 to 3, characterized in that, The method further includes: In response to receiving the first shortcut key operation, switch from the current tab to the first tab that is listed first; In response to receiving a second shortcut key operation, switch from the current tab to the second tab that is next in the list; In response to receiving a third shortcut key operation, switch from the current tab to the third tab specified by the identification information in the third shortcut key operation; The first, second, and third shortcut key operations are all different, and the identification information in the third shortcut key operation is used to indicate the display order of the third tab in the browser.
7. The method according to any one of claims 1 to 3, characterized in that, The browser's toolbar or tab bar includes a search box; the method further includes: In response to receiving the user's input keywords in the search box, the system performs a search and match on the titles and page text content of the multiple tabs based on the input keywords to obtain matching results; Based on the matching degree of the matching results and the most recent access time, the multiple tabs are sorted and the sorted list of the multiple tabs is displayed. In response to a user's click on a target list item in the sorted list, switch to the tab corresponding to the target list item.
8. A multi-tab management device, characterized in that, The device includes: The acquisition module is used to retrieve the titles and page content of multiple open tabs in the browser; The extraction module is used to extract keywords from the title and page content using natural language processing to obtain the tab keywords for multiple tabs. The matching module is used to match the extracted tab keywords of multiple tabs with a pre-built classification thesaurus to determine the classification results of multiple tabs; The determination module is used to determine the display order of the multiple tabs based on their usage and classification results. The display module is used to display the multiple tabs within the browser page based on the display order.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.