Movatterモバイル変換


[0]ホーム

URL:


CN108268507B - Browser-based processing method and device and electronic equipment - Google Patents

Browser-based processing method and device and electronic equipment
Download PDF

Info

Publication number
CN108268507B
CN108268507BCN201611262683.3ACN201611262683ACN108268507BCN 108268507 BCN108268507 BCN 108268507BCN 201611262683 ACN201611262683 ACN 201611262683ACN 108268507 BCN108268507 BCN 108268507B
Authority
CN
China
Prior art keywords
browser
tab
pages
page
browsers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611262683.3A
Other languages
Chinese (zh)
Other versions
CN108268507A (en
Inventor
陈小帅
张扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co LtdfiledCriticalBeijing Sogou Technology Development Co Ltd
Priority to CN201611262683.3ApriorityCriticalpatent/CN108268507B/en
Publication of CN108268507ApublicationCriticalpatent/CN108268507A/en
Application grantedgrantedCritical
Publication of CN108268507BpublicationCriticalpatent/CN108268507B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention relates to the field of Internet, and discloses a browser-based processing method, a browser-based processing device and electronic equipment, which are used for solving the technical problem of low efficiency of combining tab pages of multiple browsers into the same browser in the prior art. The method comprises the following steps: when M browsers are in an open state, detecting to obtain preset operation, wherein M is a positive integer greater than or equal to 2; and responding to the preset operation, and combining the tab page of at least one browser in the M browsers into a first browser. The technical effect of improving the efficiency of merging the tab pages of a plurality of browsers to the same browser is achieved.

Description

Browser-based processing method and device and electronic equipment
Technical Field
The present invention relates to the field of internet, and in particular, to a browser-based processing method and apparatus, and an electronic device.
Background
With the continuous development of science and technology, electronic technology has also gained rapid development, and the variety of electronic products is also more and more, and people also enjoy various conveniences brought by the development of science and technology. People can enjoy comfortable life brought along with the development of science and technology through various client devices. For example, client devices such as notebook computers, desktop computers, smart phones, and tablet computers have become an important part of people's lives.
In the prior art, a browser is often installed on an electronic device, a plurality of web pages can be accessed through the browser, and there may be many kinds of browsers in the prior art, each of which can open multiple web pages, these web pages often have the same web page repeatedly opened, and in the prior art, the same kind of browser supports the merging of multiple tab pages, for different kinds of browsers, merging of tab pages is not supported, for example, a tab page on an a browser needs to be opened on a B browser, a web link of the tab page needs to be copied, then a tab page is newly created on the browser B, the network address is copied in an address bar of the newly created tab page, therefore, the network link is accessed through the newly-built tab pages, and therefore, the technical problem that the efficiency of combining the tab pages of a plurality of browsers to the same browser is low exists in the prior art.
Disclosure of Invention
The invention provides a browser-based processing method and device and electronic equipment, and aims to solve the technical problem that in the prior art, the efficiency of combining tab pages of multiple browsers into the same browser is low.
In a first aspect, an embodiment of the present invention provides a browser-based processing method, including:
when M browsers are in an open state, detecting to obtain preset operation, wherein M is a positive integer greater than or equal to 2;
and responding to the preset operation, and combining the tab page of at least one browser in the M browsers into a first browser.
With reference to the first aspect, in a first optional embodiment, before the merging the tab page of at least one of the M browsers into the first browser, the method further includes:
detecting and obtaining a selection operation;
and determining the at least one browser from the M browsers in response to the selection operation.
With reference to the first aspect, in a second optional embodiment, the merging the tab page of at least one of the M browsers into the first browser includes:
determining the merged browser from the M browsers;
acquiring network link information of the combined tab page of the browser;
and newly creating network link information of the tab page of the merged browser on the first browser.
With reference to the first aspect, in a third optional embodiment, the merging the tab page of at least one of the M browsers into the first browser includes:
determining the merged browser from the M browsers;
acquiring process information of each browser in the merged browsers;
and running the process information of the tab page of the combined browser through the first browser.
With reference to the first aspect, in a fourth optional embodiment, if the first browser includes at least two processes, the merging the tab page of at least one of the M browsers into the first browser further includes:
determining a first process from the at least two processes;
merging a tab page of the at least one browser to the first process of the first browser.
With reference to any one of the first to fourth optional embodiments of the first aspect, in a fifth optional embodiment, the method further includes:
determining at least two tab pages running on the first browser;
determining whether the two corresponding label pages are label pages with content similarity values larger than the preset similarity value based on whether the network link information of any two label pages is the same; or determining the page content of each of the at least two tab pages; calculating the content similarity value of the page contents of every two tab pages; determining whether the corresponding two tab pages are tab pages with the content similarity value larger than the preset similarity value or not based on the content similarity values of the corresponding two tab pages;
and performing duplicate removal processing on the tab pages with the content similarity values larger than the preset similarity value in the at least two tab pages.
With reference to the fifth optional embodiment of the first aspect, in a sixth optional embodiment, after performing deduplication processing on a tab page of the at least two tab pages whose content similarity value is greater than a preset similarity value, the method further includes:
newly creating a tab page list, wherein the tab page list comprises tab pages removed from the at least two tab pages based on the deduplication operation;
and responding to a recovery operation aiming at a first tab page in the tab page list so as to recover and display the first tab page to the first browser.
With reference to any one of the first to fourth alternative embodiments of the first aspect, in a seventh alternative embodiment, the method further includes:
determining at least two tab pages running on the first browser;
sequencing the at least two label pages according to a first preset rule; or classifying the at least two label pages according to a second preset rule.
With reference to the seventh optional embodiment of the first aspect, in an eighth optional embodiment, the classifying the at least two tab pages according to a second preset rule includes:
classifying each of the at least two tab pages based on prefix information of the network link of each of the tab pages; or,
extracting the subject information of each tab page of the at least two tab pages; classifying each tab page based on the subject information; or,
and classifying the at least two label pages by using a preset classification model.
In a second aspect, an embodiment of the present invention provides a browser-based processing apparatus, including:
the first detection module is used for detecting and obtaining preset operation when M kinds of browsers are in an open state, wherein M is a positive integer greater than or equal to 2;
and the first response module is used for responding to the preset operation and combining the tab page of at least one browser in the M browsers into the first browser.
In combination with the second aspect, in a first optional embodiment, the apparatus further comprises:
the second detection module is used for detecting and obtaining selection operation;
and the second response module is used for responding to the selection operation and determining the at least one browser from the M browsers.
With reference to the second aspect, in a second alternative embodiment, the first response module includes:
a first determining unit, configured to determine a merged browser from the M types of browsers;
a first obtaining unit, configured to obtain network link information of the tab page of the merged browser;
and the newly-built unit is used for newly building the network link information of the tab page of the combined browser on the first browser.
With reference to the second aspect, in a third optional embodiment, the first response module includes:
a second determining unit, configured to determine a merged browser from the M kinds of browsers;
a second obtaining unit, configured to obtain process information of each of the merged browsers;
and the running unit is used for running the process information of the tab page of the combined browser through the first browser.
With reference to the second aspect, in a fourth optional embodiment, if the first browser includes at least two processes, the first response module further includes:
a third determining unit, configured to determine a first process from the at least two processes;
a merging unit, configured to merge the tab page of the at least one browser into the first process of the first browser.
With reference to any one of the first to fourth alternative embodiments of the second aspect, in a fifth alternative embodiment, the apparatus further includes:
the first determining module is used for determining at least two tab pages running on the first browser;
the second determining module is used for determining whether the two corresponding label pages are label pages with content similarity values larger than the preset similarity value based on whether the network link information of any two label pages is the same; or determining the page content of each of the at least two tab pages; calculating the content similarity value of the page contents of every two tab pages; determining whether the corresponding two tab pages are tab pages with the content similarity value larger than the preset similarity value or not based on the content similarity values of the corresponding two tab pages;
and the duplication removing module is used for carrying out duplication removing processing on the label pages with the content similarity values larger than the preset similarity value in the at least two label pages.
With reference to the fifth alternative embodiment of the second aspect, in a sixth alternative embodiment, the apparatus further includes:
the new building module is used for building a tab page list, and the tab page list comprises tab pages removed from the at least two tab pages based on the deduplication operation;
and the third response module is used for responding to the recovery operation aiming at the first tab page in the tab page list so as to recover and display the first tab page to the first browser.
With reference to any one of the first to fourth alternative embodiments of the second aspect, in a seventh alternative embodiment, the apparatus further includes:
the third determining module is used for determining at least two tab pages running on the first browser;
the sorting module is used for sorting the at least two label pages according to a first preset rule; or, the classification module is used for classifying the at least two label pages according to a second preset rule.
With reference to the seventh optional embodiment of the second aspect, in an eighth optional embodiment, the classification module is configured to:
classifying each of the at least two tab pages based on prefix information of the network link of each of the tab pages; or,
extracting the subject information of each tab page of the at least two tab pages; classifying each tab page based on the subject information; or,
and classifying the at least two label pages by using a preset classification model.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors includes instructions for:
when M browsers are in an open state, detecting to obtain preset operation, wherein M is a positive integer greater than or equal to 2;
and responding to the preset operation, and combining the tab page of at least one browser in the M browsers into a first browser.
In combination with the third aspect, in a first alternative embodiment, the electronic device is further configured to execute the one or more programs by the one or more processors including instructions for:
detecting and obtaining a selection operation;
and determining the at least one browser from the M browsers in response to the selection operation.
In combination with the third aspect, in a second alternative embodiment, the electronic device is further configured to execute the one or more programs by the one or more processors including instructions for:
determining the merged browser from the M browsers;
acquiring network link information of the combined tab page of the browser;
and newly creating network link information of the tab page of the merged browser on the first browser.
In combination with the third aspect, in a third alternative embodiment, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
determining the merged browser from the M browsers;
acquiring process information of each browser in the merged browsers;
and running the process information of the tab page of the combined browser through the first browser.
In combination with the third aspect, in a fourth alternative embodiment, if the first browser includes at least two processes, the electronic device is further configured to execute the one or more programs by the one or more processors including instructions for:
determining a first process from the at least two processes;
merging a tab page of the at least one browser to the first process of the first browser.
In combination with any one of the first to fourth alternative embodiments of the third aspect, in a fifth alternative embodiment, the electronic device is further configured to execute, by the one or more processors, the one or more programs including instructions for:
determining at least two tab pages running on the first browser;
determining whether the two corresponding label pages are label pages with content similarity values larger than the preset similarity value based on whether the network link information of any two label pages is the same; or determining the page content of each of the at least two tab pages; calculating the content similarity value of the page contents of every two tab pages; determining whether the corresponding two tab pages are tab pages with the content similarity value larger than the preset similarity value or not based on the content similarity values of the corresponding two tab pages;
and performing duplicate removal processing on the tab pages with the content similarity values larger than the preset similarity value in the at least two tab pages.
In combination with the fifth optional embodiment of the third aspect, in a sixth optional embodiment, the electronic device is further configured to execute the one or more programs by the one or more processors including instructions for:
newly creating a tab page list, wherein the tab page list comprises tab pages removed from the at least two tab pages based on the deduplication operation;
and responding to a recovery operation aiming at a first tab page in the tab page list so as to recover and display the first tab page to the first browser.
With reference to any one of the first to fourth alternative embodiments of the third aspect, in a seventh alternative embodiment, the electronic device is further configured to execute, by the one or more processors, the one or more programs including instructions for:
determining at least two tab pages running on the first browser;
sequencing the at least two label pages according to a first preset rule; or classifying the at least two label pages according to a second preset rule.
In combination with the seventh optional embodiment of the third aspect, in an eighth optional embodiment, the electronic device is further configured to execute the one or more programs by the one or more processors including instructions for:
classifying each of the at least two tab pages based on prefix information of the network link of each of the tab pages; or,
extracting the subject information of each tab page of the at least two tab pages; classifying each tab page based on the subject information; or,
and classifying the at least two label pages by using a preset classification model.
The invention has the following beneficial effects:
in the embodiment of the invention, when the M browsers are in the open state, if the preset operation is detected, the tab pages of at least one browser in the M browsers can be directly merged into the same browser by responding to the preset operation without responding to the operations of repeated copying, new creation and pasting of a user, so that the technical effect of improving the efficiency of merging the tab pages of a plurality of browsers into the same browser is achieved.
Drawings
FIG. 1 is a flow chart of a browser-based processing method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a browser-based processing device according to an embodiment of the present invention;
FIG. 3 is a block diagram of an electronic device for a browser-based processing method according to an embodiment of the present invention;
fig. 4 is a block diagram of a server in an embodiment of the present invention.
Detailed Description
The invention provides a browser-based processing method and device and electronic equipment, and aims to solve the technical problem that in the prior art, the efficiency of combining tab pages of multiple browsers into the same browser is low.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
when the M browsers are in the open state, if the preset operation is detected, the tab pages of at least one browser in the M browsers can be directly combined into the same browser by responding to the preset operation without responding to the operations of repeated copying, new creation and pasting of a user, so that the technical effect of improving the efficiency of combining the tab pages of the multiple browsers into the same browser is achieved.
In order to better understand the technical solutions of the present invention, the following detailed descriptions of the technical solutions of the present invention are provided with the accompanying drawings and the specific embodiments, and it should be understood that the specific features in the embodiments and the examples of the present invention are the detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and the examples of the present invention may be combined with each other without conflict.
In a first aspect, an embodiment of the present invention provides a browser-based processing method, please refer to fig. 1, including:
step S101: when M browsers are in an open state, detecting to obtain preset operation, wherein M is a positive integer greater than or equal to 2;
step S102: and responding to the preset operation, and combining the tab page of at least one browser in the M browsers into a first browser.
For example, the solution is applied to an electronic device with a network access function, such as: mobile phones, tablet computers, notebook computers, PCs (Personal computers), and the like.
In step S101, for example, a plurality of browsers may exist on the electronic device, for example: during the use process of the electronic device, network access may be performed through all three browsers, so that the multiple browsers may be controlled to be in an open state, for example: three tab pages are opened by process 1 of browser a, respectively: page a, page B, page C, two tab pages opened by process 2 of browser a, respectively: page A, page D, opened three tab pages through browser B, are respectively: page A, page E, page F, have opened a tab page through browser C, specifically are: page E.
The preset operation may be various preset operations, such as: the operation of clicking a preset button, the operation of generating a preset gesture, the operation of generating a preset voice control instruction, and the like.
In step S102, the first browser may be a plurality of browsers, and two of the browsers are listed below for description, but is not limited to the following two cases in the specific implementation process.
First, the first browser is a certain browser of the at least one browser.
For example, the first browser may be a browser selected by the user during the merging operation, for example: each browser is respectively provided with a "merge button", which may be set at the top of the browser or on a pull-down menu of the browser, and when a user clicks the merge button of which browser, it is determined that the corresponding browser is the first browser, for example: the user clicks a merge button on the browser A, and then the browser A is determined to be a first browser; still alternatively, in the initialization phase, priorities may be set for each browser, for example: the priority of the browser D is greater than the priority of the browser A is greater than the priority of the browser C is greater than the priority of the browser B, and after the preset operation is detected, the browser which is determined to be in the open state comprises the following steps: the browser comprises a browser A, a browser B and a browser C, wherein the browser A is determined to be the first browser if the priority of the browser A is the highest.
Since the determined first browser is a browser included in at least one browser, in this case, the tab page opened by the first browser itself does not need to be opened in any adjustment, and only the tab pages on other browsers need to be merged into the first browser.
Second, the first browser is a browser other than the at least one browser.
For example, a user is accustomed to using browser D, while browsers that are currently in an open state include: browser a, browser B, browser C, and may incorporate tab pages of browser a, browser B, and browser (i.e., at least one browser) into browser D (i.e., a first browser), in which case the first browser may be selected by the user, or may be determined based on the user's historical operating records, for example: determining the browser with the most use times of the user as the first browser based on the historical operation records, determining the browser with the most user selection as the first browser in the process of the merging operation based on the historical operation records, and the like.
In the implementation process, the tab pages of the respective browsers can be combined into the first browser in various ways, and two of them are listed below for description, and of course, in the implementation process, the tab pages are not limited to the following two cases.
First, the tab pages of the respective browsers are merged into the first browser by: the merging the tab page of at least one browser in the M browsers into the first browser comprises: determining the merged browser from the M browsers; acquiring network link information of the combined tab page of the browser; and newly creating network link information of the tab page of the merged browser on the first browser.
For example, if the first browser is a certain browser of the at least one browser, the merged browser is another browser of the at least one browser except the first browser; if the first browser is a browser other than the at least one browser, the merged browser is all browsers in the at least one browser. The method comprises the steps of combining browsers, acquiring a screenshot of a webpage, wherein for each combined browser, a URL (Uniform resource Locator) corresponding to a tab page opened in browsing can be identified, the URL is network link information, and then each tab page is loaded according to the URL.
Second, the tab pages of the respective browsers are merged to the first browser by: determining the merged browser from the M browsers; acquiring process information of each browser in the merged browsers; and running the process information of the tab page of the combined browser through the first browser.
The description of the incorporated browsers is omitted here because they have already been described above. The first browser may create a sub-process for the process of the merged browser, and then copy and run the process information of other browsers in the sub-process, so that the tab page of the merged browser is opened by the first browser.
In step S102, as an optional embodiment, the method further includes: if the first browser contains at least two processes, merging tab pages of the at least one browser into the same browser, further comprising: determining a first process from the at least two processes; merging tab pages of the at least one browser to the first sub-process of the first browser.
For example, there may be multiple processes for a first browser, each process corresponding to a browser window, in which case the first process needs to be determined first, and the first process may be selected by the user, for example: if the preset operation is an operation of clicking a preset button, the process corresponding to the browser window where the preset button is located may be used as the first process, and the first process may also be a process corresponding to the browser window currently operated by the user.
Thus, after the first process is determined, tab pages of at least two browsers can be merged into the first process, including merging tab pages of processes of the first browser other than the first process into the first process.
In the implementation process, at least one of the M browsers in step S102 may be determined in a variety of ways, and two of the M browsers are listed below for description, but of course, in the implementation process, the two cases are not limited to the following two cases.
First, before the merging the tab pages of at least one of the M browsers into the first browser, the method further comprises: detecting and obtaining a selection operation; and determining the at least one browser from the M browsers in response to the selection operation.
For example, assuming that the first browser is a default browser (e.g., browser D), after detecting a preset operation, the electronic device may select a merged browser through a selection box by the user, the user selects process 1, browser B, and browser C of browser a, and after obtaining the selection operation of the user, the electronic device may open all tab pages opened by process 1, browser B, and browser C of browser a through browser D, and browser D may open page a, page B, page C, page a, page E, page F, page E;
for another example, the preset operation is an operation that the user clicks a "merge button" on a browser window corresponding to process 1 of browser a, after the electronic device detects the preset operation, it is determined that browser a is the first browser and process 1 is the first process, and then the user selects process 2, browser B, and browser C of browser a as browsers to be merged, and then the electronic device determines that at least one browser includes: browser a, browser B, and browser C, then open all tab pages of browser a (process 1, process 2), browser B, and browser C through the browser window of process 1 of browser a, so that the following tab pages can be opened through the browser window of process 1 of browser a: page a, page B, page C, page a, page D, page a, page E, page F, page E.
According to the scheme, the tab page combined to the first browser can be determined based on the user selection operation of the electronic equipment, so that the combined tab page of the browser is more accurate and can better meet the user requirements.
In addition, in the specific implementation process, after tab pages of at least two browsers are opened through the first browser, the combined browser can be closed, so that the display interface occupied by the browsers is reduced.
Second, all of the M browsers are treated as merging at least one browser, i.e., the tab pages of all of the M browsers are merged into the first browser.
For example, after detecting the preset operation, the electronic device determines to merge all tab pages of the browser, for example: if the first browser is browser C, all tab pages of browser a, flow 1, process 2, and browser B may be opened through browser C, so that browser C may open the following tab pages: page a, page B, page C, page a, page D, page a, page E, page F, page E.
According to the scheme, the tab pages of all browsers of the electronic equipment in the opening state can be merged to the first browser based on the preset operation, so that the technical effect of improving the efficiency of merging the tab pages of the browsers is achieved.
In a specific implementation process, at least two tab pages may be opened on the first browser, in this case, some related processing may be performed on the at least two tab pages, so that a user can read page contents of the tab pages more conveniently to improve network access efficiency.
First, the method further comprises: determining at least two tab pages running on the first browser; and performing duplicate removal processing on the tab pages with the content similarity values larger than the preset similarity value in the at least two tab pages.
For example, only one of the tab pages may be retained for which the content similarity value is greater than the preset similarity value, and the other tab pages may be closed.
In a specific implementation process, before performing deduplication processing on a tab page, it is first required to determine the tab page with a similarity value greater than a preset similarity value, where the determination may be performed in various ways, for example:
firstly, based on whether the network link information of any two label pages is the same, whether the corresponding two label pages are the label pages with the content similarity value larger than the preset similarity value is determined, under the normal condition, if the network link information of the two label pages is the same, the two label pages are often indicated as the same webpage, so that the page contents are often the same, therefore, the page similarity values of the two label pages are determined to be larger than the preset similarity value.
Determining the page content of each of the at least two tab pages; calculating the content similarity value of the page contents of every two tab pages; and judging whether the content similarity value is larger than the preset similarity value.
For example, the keywords of the page content of each tab page may be extracted, and then corresponding word vectors may be established (for example, the word vector of page content 1 is [10,3,5,0,6], the word vector of page content 2 is [7,0,4,6,4], which represents that word 1 appears 10 times in page content 1, word 2 appears 3 times, and so on), and then the page similarity values of the page contents of two tab pages may be calculated through the word vectors, where the page similarity values may be calculated in various ways, for example: cosine similarity values, pearson similarity values, adjusted cosine similarity values, and the like; alternatively, the content similarity value may be obtained by calculating a distance value between two word vectors, inverting the distance value, and multiplying the inverted distance value by a specific coefficient, and the like. Based on the scheme, the content similarity values of the page contents of the two tab pages are determined directly through content comparison, so that the method is more accurate and can prevent omission.
Assume that the first browser is browser a, which opens the following tab pages based on the merge operation (of course, deduplication processing may also be performed for tab pages that have not been subjected to the merge operation): page A, page B, page C, page A (second), page D, page A (third), page E (first), page F and page E (second), wherein 9 tab pages are counted, and through the duplication removal processing, the tab pages opened by the browser A comprise: page a, page B, page C, page D, page E, and page F, totaling 6 tab pages, which reduces the number of tab pages without reducing the information provided to the user.
By the scheme, repeated tab pages opened by the browser can be removed, so that the number of tab pages displayed by the browser is reduced, the user is prevented from repeatedly browsing the same page content, or the same page content needs to be screened out with time, and the technical effect of improving the network access efficiency is achieved.
As an optional embodiment, after performing deduplication processing on the tab pages with content similarity values greater than a preset similarity value in the at least two tab pages, the method further includes: newly creating a tab page list, wherein the tab page list comprises tab pages removed from the at least two tab pages based on the deduplication operation; and responding to a recovery operation aiming at a first tab page in the tab page list so as to recover and display the first tab page to the first browser.
For example, assuming that three tab pages, namely page a, page a and page E, are removed based on the foregoing deduplication operation, a tab page list may be newly created for storing the three removed tab pages, and if the user needs to reopen the three tab pages, the user may open the tab page list and select a first tab page needing to be restored to the first browser from the tab page list (that is, the first tab page is a tab page removed from the at least two tab pages based on the deduplication operation), and then reopen the first tab page through the first browser based on the restoration operation.
Through the scheme, the tab pages which are subjected to deduplication processing can be ensured to be quickly recovered, so that the tab pages do not need to be searched again under the condition of error deduplication or the condition that a user wants to open a plurality of similar pages, and the network access efficiency is improved.
Second, the method further comprises: determining at least two tab pages running on the first browser; and classifying the at least two label pages according to a second preset rule.
In a specific implementation process, the second preset rule may be a plurality of rules, for example:
classifying each of the at least two tab pages based on prefix information of the network link of each of the tab pages, for example, the tab pages with the same prefix information may belong to the same category, for example: if the prefix information ishttp://newsThen the category of the tab page may be news, if the prefix information is:http://blogthen the categories of the tabbed pages may all be blogs, etc.
Extracting the subject information of each label page in the at least two label pages; classifying each tab page based on the subject information, for example, the title or page content of the tab page may be obtained, the subject of each tab page may be obtained by inputting the title or page content into a subject model algorithm, and then the tab pages with the same subject are used as the tab pages of the same category.
And thirdly, classifying the at least two label pages by using a preset classification model.
For example, the browser may train a classification model in advance, or obtain an existing classification model as a preset classification model, where the classification model is, for example: and a discriminant analysis model, a cluster analysis model and the like, and the label pages can be directly classified through the classification model after being determined.
After the sorting of the tab pages, the tab pages may be sorted according to the sorting result, for example: when the tab pages are sorted, the tab pages with the same category are displayed in adjacent areas; alternatively, after classifying the respective tab pages, different tab page areas may be defined for each type of tab page, and the tab pages of the same category may be displayed in the same area, and further, category information may be marked in the area, for example: a tabbed area for news categories shows a "news" label on top of it, a tabbed area for blog categories shows a "blog" label on top of it, and so on.
According to the scheme, at least two tab pages displayed by the first browser are classified, so that a user can browse based on the categories when browsing the tab pages, and the network browsing efficiency is improved.
Third, the method further comprises: determining at least two tab pages running on the first browser; and sequencing the at least two label pages according to a first preset rule.
For example, the ordering may be based on a lexicographic ordering of the URLs, i.e., the URLs for each tab page may be determined and then ordered by URL; still alternatively, the sorting may be based on categories of tab pages, such as: arranging tab pages of the same category next to each other, and so on.
In a second aspect, based on the same inventive concept, an embodiment of the present invention provides a browser-based processing apparatus, please refer to fig. 2, including:
thefirst detection module 20 is configured to detect and obtain a preset operation when M types of browsers are in an open state, where M is a positive integer greater than or equal to 2;
a first respondingmodule 21, configured to respond to the preset operation, and merge a tab page of at least one of the M types of browsers into a first browser.
Optionally, the apparatus further comprises:
the second detection module is used for detecting and obtaining selection operation;
and the second response module is used for responding to the selection operation and determining the at least one browser from the M browsers.
Optionally, thefirst response module 21 includes:
a first determining unit, configured to determine a merged browser from the M types of browsers;
a first obtaining unit, configured to obtain network link information of the tab page of the merged browser;
and the newly-built unit is used for newly building the network link information of the tab page of the combined browser on the first browser.
Optionally, thefirst response module 21 includes:
a second determining unit, configured to determine a merged browser from the M kinds of browsers;
a second obtaining unit, configured to obtain process information of each of the merged browsers;
and the running unit is used for running the process information of the tab page of the combined browser through the first browser.
Optionally, if the first browser includes at least two processes, thefirst response module 21 further includes:
a third determining unit, configured to determine a first process from the at least two processes;
a merging unit, configured to merge the tab page of the at least one browser into the first process of the first browser.
Optionally, the apparatus further comprises:
the first determining module is used for determining at least two tab pages running on the first browser;
the second determining module is used for determining whether the two corresponding label pages are label pages with content similarity values larger than the preset similarity value based on whether the network link information of any two label pages is the same; or determining the page content of each of the at least two tab pages; calculating the content similarity value of the page contents of every two tab pages; determining whether the corresponding two tab pages are tab pages with the content similarity value larger than the preset similarity value or not based on the content similarity values of the corresponding two tab pages;
and the duplication removing module is used for carrying out duplication removing processing on the label pages with the content similarity values larger than the preset similarity value in the at least two label pages.
Optionally, the apparatus further comprises:
the new building module is used for building a tab page list, and the tab page list comprises tab pages removed from the at least two tab pages based on the deduplication operation;
and the third response module is used for responding to the recovery operation aiming at the first tab page in the tab page list so as to recover and display the first tab page to the first browser.
Optionally, the apparatus further comprises:
the third determining module is used for determining at least two tab pages running on the first browser;
the sorting module is used for sorting the at least two label pages according to a first preset rule; or, the classification module is used for classifying the at least two label pages according to a second preset rule.
Optionally, the classification module is configured to:
classifying each of the at least two tab pages based on prefix information of the network link of each of the tab pages; or,
extracting the subject information of each tab page of the at least two tab pages; classifying each tab page based on the subject information; or,
and classifying the at least two label pages by using a preset classification model.
Since the apparatus described in the second aspect of the present invention is an apparatus used for implementing the browser-based processing method described in the first aspect of the present invention, and a person skilled in the art can understand the specific structure and the modification of the apparatus described in the second aspect of the present invention based on the browser-based processing method described in the first aspect of the present invention, further description is omitted here, and all apparatuses used for implementing the browser-based processing method described in the first aspect of the present invention belong to the scope of the present invention.
In a third aspect, based on the same inventive concept, an embodiment of the present invention provides an electronic device, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when M browsers are in an open state, detecting to obtain preset operation, wherein M is a positive integer greater than or equal to 2;
and responding to the preset operation, and combining the tab page of at least one browser in the M browsers into a first browser.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
detecting and obtaining a selection operation;
and determining the at least one browser from the M browsers in response to the selection operation.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
determining the merged browser from the M browsers;
acquiring network link information of the combined tab page of the browser;
and newly creating network link information of the tab page of the merged browser on the first browser.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
determining the merged browser from the M browsers;
acquiring process information of each browser in the merged browsers;
and running the process information of the tab page of the combined browser through the first browser.
Optionally, if the first browser includes at least two processes, the electronic device is further configured to execute the one or more programs by one or more processors including instructions for:
determining a first process from the at least two processes;
merging a tab page of the at least one browser to the first process of the first browser.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
determining at least two tab pages running on the first browser;
determining whether the two corresponding label pages are label pages with content similarity values larger than the preset similarity value based on whether the network link information of any two label pages is the same; or determining the page content of each of the at least two tab pages; calculating the content similarity value of the page contents of every two tab pages; determining whether the corresponding two tab pages are tab pages with the content similarity value larger than the preset similarity value or not based on the content similarity values of the corresponding two tab pages;
and performing duplicate removal processing on the tab pages with the content similarity values larger than the preset similarity value in the at least two tab pages.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
newly creating a tab page list, wherein the tab page list comprises tab pages removed from the at least two tab pages based on the deduplication operation;
and responding to a recovery operation aiming at a first tab page in the tab page list so as to recover and display the first tab page to the first browser.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
determining at least two tab pages running on the first browser;
sequencing the at least two label pages according to a first preset rule; or classifying the at least two label pages according to a second preset rule.
Optionally, the electronic device is also configured to execute the one or more programs by the one or more processors including instructions for:
classifying each of the at least two tab pages based on prefix information of the network link of each of the tab pages; or,
extracting the subject information of each tab page of the at least two tab pages; classifying each tab page based on the subject information; or,
and classifying the at least two label pages by using a preset classification model.
Since the electronic device described in the third aspect of the present invention is an electronic device used for implementing the browser-based processing method described in the first aspect of the present invention, and a person skilled in the art can understand a specific structure and a modification of the electronic device described in the third aspect of the present invention based on the browser-based processing method described in the first aspect of the present invention, details of the electronic device are not described herein again, and all electronic devices used for implementing the browser-based processing method described in the first aspect of the present invention belong to the scope of the present invention.
Fig. 3 is a block diagram of anelectronic device 800 illustrating a method for determining characteristics of a communication identity according to an example embodiment. For example, theelectronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3,electronic device 800 may include one or more of the following components: processingcomponent 802,memory 804,power component 806,multimedia component 808,audio component 810, input/output (I/O)interface 812,sensor component 814, andcommunication component 816.
Theprocessing component 802 generally controls overall operation of theelectronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing elements 802 may include one ormore processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, theprocessing component 802 can include one or more modules that facilitate interaction between theprocessing component 802 and other components. For example, theprocessing component 802 can include a multimedia module to facilitate interaction between themultimedia component 808 and theprocessing component 802.
Thememory 804 is configured to store various types of data to support operation at thedevice 800. Examples of such data include instructions for any application or method operating on theelectronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Thepower supply component 806 provides power to the various components of theelectronic device 800. Thepower components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for theelectronic device 800.
Themultimedia component 808 includes a screen that provides an output interface between theelectronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when theelectronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Theaudio component 810 is configured to output and/or input audio signals. For example, theaudio component 810 includes a Microphone (MIC) configured to receive external audio signals when theelectronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in thememory 804 or transmitted via thecommunication component 816. In some embodiments,audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between theprocessing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Thesensor assembly 814 includes one or more sensors for providing various aspects of state assessment for theelectronic device 800. For example, thesensor assembly 814 may detect an open/closed state of thedevice 800, the relative positioning of components, such as a display and keypad of theelectronic device 800, thesensor assembly 814 may also detect a change in the position of theelectronic device 800 or a component of theelectronic device 800, the presence or absence of user contact with theelectronic device 800, orientation or acceleration/deceleration of theelectronic device 800, and a change in the temperature of theelectronic device 800.Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor assembly 814 may also include a light sensor, such as a CMOS or CCD video sensor, for use in imaging applications. In some embodiments, thesensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 816 is configured to facilitate wired or wireless communication between theelectronic device 800 and other devices. Theelectronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, thecommunication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, theelectronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as thememory 804 comprising instructions, executable by theprocessor 820 of theelectronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an electronic device, enable the device to perform a browser-based processing method, the method comprising:
when M browsers are in an open state, detecting to obtain preset operation, wherein M is a positive integer greater than or equal to 2;
and responding to the preset operation, and combining the tab page of at least one browser in the M browsers into a first browser.
Optionally, the readable storage medium is also configured to execute the one or more programs by one or more processors including instructions for:
detecting and obtaining a selection operation;
and determining the at least one browser from the M browsers in response to the selection operation.
Optionally, the readable storage medium is also configured to execute the one or more programs by one or more processors including instructions for:
determining the merged browser from the M browsers;
acquiring network link information of the combined tab page of the browser;
and newly creating network link information of the tab page of the merged browser on the first browser.
Optionally, the readable storage medium is also configured to execute the one or more programs by one or more processors including instructions for:
determining the merged browser from the M browsers;
acquiring process information of each browser in the merged browsers;
and running the process information of the tab page of the combined browser through the first browser.
Optionally, if the first browser includes at least two processes, the readable storage medium is further configured to execute the one or more programs by one or more processors including instructions for:
determining a first process from the at least two processes;
merging a tab page of the at least one browser to the first process of the first browser.
Optionally, the readable storage medium is also configured to execute the one or more programs by one or more processors including instructions for:
determining at least two tab pages running on the first browser;
determining whether the two corresponding label pages are label pages with content similarity values larger than the preset similarity value based on whether the network link information of any two label pages is the same; or determining the page content of each of the at least two tab pages; calculating the content similarity value of the page contents of every two tab pages; determining whether the corresponding two tab pages are tab pages with the content similarity value larger than the preset similarity value or not based on the content similarity values of the corresponding two tab pages;
and performing duplicate removal processing on the tab pages with the content similarity values larger than the preset similarity value in the at least two tab pages.
Optionally, the readable storage medium is also configured to execute the one or more programs by one or more processors including instructions for:
newly creating a tab page list, wherein the tab page list comprises tab pages removed from the at least two tab pages based on the deduplication operation;
and responding to a recovery operation aiming at a first tab page in the tab page list so as to recover and display the first tab page to the first browser.
Optionally, the readable storage medium is also configured to execute the one or more programs by one or more processors including instructions for:
determining at least two tab pages running on the first browser;
sequencing the at least two label pages according to a first preset rule; or classifying the at least two label pages according to a second preset rule.
Optionally, the readable storage medium is also configured to execute the one or more programs by one or more processors including instructions for:
classifying each of the at least two tab pages based on prefix information of the network link of each of the tab pages; or,
extracting the subject information of each tab page of the at least two tab pages; classifying each tab page based on the subject information; or,
and classifying the at least two label pages by using a preset classification model.
Fig. 4 is a schematic diagram of a server in some embodiments of the invention. Theserver 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) andmemory 1932, one or more storage media 1930 (e.g., one or more mass storage devices)storing applications 1942 ordata 1944.Memory 1932 andstorage medium 1930 can be, among other things, transient or persistent storage. The program stored in thestorage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, acentral processor 1922 may be provided in communication with thestorage medium 1930 to execute a series of instruction operations in thestorage medium 1930 on theserver 1900.
Theserver 1900 may also include one ormore power supplies 1926, one or more wired orwireless network interfaces 1950, one or more input-output interfaces 1958, one ormore keyboards 1956, and/or one ormore operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
One or more embodiments of the present invention have at least the following effects:
in the embodiment of the invention, when the M browsers are in the open state, if the preset operation is detected, the tab pages of at least one browser in the M browsers can be directly merged into the same browser by responding to the preset operation without responding to the operations of repeated copying, new creation and pasting of a user, so that the technical effect of improving the efficiency of merging the tab pages of a plurality of browsers into the same browser is achieved.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (25)

CN201611262683.3A2016-12-302016-12-30Browser-based processing method and device and electronic equipmentActiveCN108268507B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201611262683.3ACN108268507B (en)2016-12-302016-12-30Browser-based processing method and device and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201611262683.3ACN108268507B (en)2016-12-302016-12-30Browser-based processing method and device and electronic equipment

Publications (2)

Publication NumberPublication Date
CN108268507A CN108268507A (en)2018-07-10
CN108268507Btrue CN108268507B (en)2021-06-22

Family

ID=62755319

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201611262683.3AActiveCN108268507B (en)2016-12-302016-12-30Browser-based processing method and device and electronic equipment

Country Status (1)

CountryLink
CN (1)CN108268507B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109240776A (en)*2018-07-202019-01-18上海斐讯数据通信技术有限公司A kind of duplicate method for closing of webpage and system
CN110889066A (en)*2018-08-162020-03-17广州金山移动科技有限公司Method and device for opening webpage in client software and electronic equipment
CN115426510B (en)*2022-08-242024-02-02北京嗨动视觉科技有限公司Program arrangement method, program arrangement device, electronic apparatus, and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103645968A (en)*2013-12-022014-03-19北京奇虎科技有限公司Browser status restoration method and device
CN105653585A (en)*2015-12-212016-06-08北京奇虎科技有限公司Method and device for switching webpages in browser labels

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8893042B2 (en)*2010-09-142014-11-18Microsoft CorporationDetermination and display of relevant websites
US9197513B2 (en)*2012-05-032015-11-24Salesforce.Com, Inc.Computer implemented methods and apparatus for representing a portion of a user interface as a network address
CN102982169B (en)*2012-12-122017-05-24北京奇虎科技有限公司Browser and method for isolating webpage plugins
CN103559228B (en)*2013-10-222017-10-31北京奇虎科技有限公司The loading method and device of Shipping Options Page in browser

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103645968A (en)*2013-12-022014-03-19北京奇虎科技有限公司Browser status restoration method and device
CN105653585A (en)*2015-12-212016-06-08北京奇虎科技有限公司Method and device for switching webpages in browser labels

Also Published As

Publication numberPublication date
CN108268507A (en)2018-07-10

Similar Documents

PublicationPublication DateTitle
EP3407215B1 (en)Method, device, and computer-readable storage medium for collecting information resources
JP6051338B2 (en) Page rollback control method, page rollback control device, terminal, program, and recording medium
US20180260081A1 (en)Task switching or task launching based on a ranked list of tasks
KR102518172B1 (en) Apparatus and method for providing user assistance in a computing system
CN108664663A (en)Recommendation information display methods, device and storage medium
CN107291772B (en)Search access method and device and electronic equipment
KR101626874B1 (en)Mobile terminal and method for transmitting contents thereof
TW201743195A (en)Display method, device, equipment and system for dynamic lists
CN107491453B (en)Method and device for identifying cheating web pages
CN111382339A (en)Search processing method and device and search processing device
CN106649525A (en)Method and device for displaying webpage information
CN105373580A (en)Method and device for displaying subjects
CN106815291B (en)Search result item display method and device and search result item display device
CN107436896B (en)Input recommendation method and device and electronic equipment
CN108268507B (en)Browser-based processing method and device and electronic equipment
CN108111603A (en)Information recommendation method and device, terminal equipment and storage medium
US20190026380A1 (en)Method and apparatus for processing bookmark and terminal device
CN109918624A (en)A kind of calculation method and device of web page text similarity
CN106951478B (en)Data processing method and device
CN106776990B (en)Information processing method and device and electronic equipment
CN107784037B (en)Information processing method and device, and device for information processing
CN112559852B (en) Information recommendation method and device
CN109492249B (en)Rapid generation method and device of design drawing and terminal equipment
CN116910368A (en) Content processing methods, devices, equipment and storage media
CN112651221B (en) A data processing method, a data processing device and a data processing device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp