CN115390969A - Popup window control method and system - Google Patents

Popup window control method and system Download PDF

Info

Publication number
CN115390969A
CN115390969A CN202211023520.5A CN202211023520A CN115390969A CN 115390969 A CN115390969 A CN 115390969A CN 202211023520 A CN202211023520 A CN 202211023520A CN 115390969 A CN115390969 A CN 115390969A
Authority
CN
China
Prior art keywords
page
popup
information
pop
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211023520.5A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Shuzhilian Technology Co Ltd
Original Assignee
Chengdu Shuzhilian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Shuzhilian Technology Co Ltd filed Critical Chengdu Shuzhilian Technology Co Ltd
Priority to CN202211023520.5A priority Critical patent/CN115390969A/en
Publication of CN115390969A publication Critical patent/CN115390969A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Abstract

The invention discloses a popup window control method and a system, which relate to the field of page control, and the method comprises the following steps: step 1: collecting attribute information of all webpage pages in an open state; and 2, step: judging whether the webpage is a popup page or not based on the attribute information; and 3, step 3: monitoring page operation of a webpage; and 4, step 4: if the webpage switching operation occurs, closing the corresponding popup page; the method can automatically close the pop-up window.

Description

Popup window control method and system
Technical Field
The invention relates to the field of page control, in particular to a popup window control method and system.
Background
Pop-up notification (pop-up notification) generally refers to a window that pops up automatically when a webpage, software, a mobile phone APP, and the like are opened.
In the prior art, a lot of software has a popup blocking function, and can shield and block a large number of popups, but in an actual browsing process, many popups still exist, for example, when a user browses a web page, many web page contents are presented in a popup mode, but these contents are not advertisement or junk contents, and cannot be blocked by the software, and the number of popups of the user in a continuous browsing process of the web page becomes more and more, so that a browser interface becomes unfriendly, and a computer operation load is increased, and the user returns to close these popups, which requires the user to perform corresponding operations, so that the operations become cumbersome.
Disclosure of Invention
In order to realize the automatic closing of the pop-up window, the invention provides a pop-up window control method, which comprises the following steps:
step 1: collecting attribute information of all webpage pages in an open state;
step 2: judging whether the webpage is a popup page or not based on the attribute information;
and step 3: monitoring page operation of a webpage;
and 4, step 4: and if the webpage switching operation occurs, closing the corresponding popup window page.
The method comprises the steps that when a user uses the browser, information of all opened browsers is collected, whether the browsers are popup pages or not is judged based on the collected information, if the browsers are popup pages and page switching operation occurs to the user, the popup pages are closed, the user switches the pages, namely the user does not browse the current popup pages, the popup pages are automatically closed, the user does not need to return to close the popup pages, user operation is simplified, and the situation that a large number of popup pages operate and the load of a computer is reduced is avoided.
Preferably, the step 2 further comprises:
if the webpage is a popup page, acquiring page content information of the popup page;
generating classification information of the popup page based on the page content information;
the step 4 specifically comprises:
and if the webpage switching operation occurs, closing the popup pages in the preset category.
The method classifies the popup pages, closes the popup pages with low probability of browsing the user again according to the classification, simplifies user operation without returning to close the popup pages, avoids operating a large number of popup pages, reduces load of a computer, and simultaneously avoids closing the popup pages which are possibly browsed by important users again.
Preferably, the method monitors whether a page switching operation occurs in the following manner, and the method includes:
and monitoring the hash value of the route, and if the hash value changes, judging that webpage page switching operation occurs.
Preferably, the method can orderly and accurately close the corresponding pop-up window in the following way, and the method comprises the following steps:
presetting an attribute value of a popup closing button;
judging whether a node list of a popup closing button exists or not;
and if the node list of the closing popup button exists, circularly traversing the nodes in the node list, and if the click event of the node exists, automatically executing the click event of the node and closing the corresponding popup page.
Preferably, the step 1 further comprises:
collecting login information of a user browser, wherein the login information comprises identity information and login state information of a user, and the login state comprises a working state and a non-working state;
when the login state of a user is a working state, if a plurality of popup pages exist and webpage page switching operation occurs, closing all the popup pages; that is, when the user is in the working state, in order to improve the working state of the user, avoid the user from being disturbed by the pop-up windows, and reduce the load of the computer to the maximum extent, all the pop-up windows are closed.
When the login state of the user is a non-working state, if a plurality of popup pages exist and webpage switching operation occurs, analyzing the popup pages, and closing one or more popup pages based on the analysis result. Namely, when the user is in the non-working state, one or more popup pages are closed according to the analysis result, so that the browsing pleasure in the non-working state is kept while the computer load is reduced.
Preferably, the analyzing the pop-up page includes:
analyzing the page contents of the pop-up pages to obtain page content information, wherein the page content information comprises page subject information, advertisement information proportion in the page and associated information of adjacent page pages;
matching the page subject information with a preset keyword, and closing the pop-up window page if the matching is successful; namely, if the popup pages related to the preset keywords exist, the popup pages are automatically closed.
Judging whether the advertisement information ratio in the page exceeds a first threshold value or not, and if so, closing the pop-up window page; namely, if the advertisement popup is judged to be the advertisement popup, the advertisement popup is automatically closed.
And calculating the association value of the current pop-up window page and the adjacent webpage page, and closing the pop-up window page if the association value is lower than a second threshold value. Namely, the difference between the popup window and the popup window page content browsed by the user before is larger, and the popup window which is irrelevant to the popup window is judged to be automatically closed. The mode through above-mentioned several kinds of self-closing popup can self-closing popup on the one hand, and on the other hand can effectually close invalid popup, avoids closing effectual popup, has realized reducing computer load, simplifies user operation, and ensures that user's browser uses the effect of experiencing, avoids being closed by the mistake and reopening.
Preferably, the calculating the relevance value between the current pop-up page and the adjacent webpage page specifically includes:
extracting page contents of a current pop-up window page and an adjacent webpage page;
and comparing the relevance between the content of the current pop-up window page and the content of the adjacent webpage page, and calculating to obtain a relevance value.
The relevance between the previous popup page and the adjacent webpage can be accurately calculated by comparing the page contents of the current popup page and the adjacent webpage, and whether the popup page is a malicious popup or a user intentionally clicks to pop up can be accurately judged based on the relevance.
Preferably, the method further comprises:
if the webpage is judged to be the popup page, storing the path information and the corresponding name information of the popup page to obtain first storage information;
when the popup page is closed, storing the time information and the corresponding name information of the closed popup page to obtain second storage information;
judging whether the popup page is closed by mistake, if so, obtaining the name information of the popup page which is closed by mistake based on the second storage information, and obtaining the path information of the popup page which is closed by mistake based on the name information of the popup page which is closed by mistake and the first storage information;
and recovering the popped window page which is closed by mistake based on the path information of the popped window page which is closed by mistake.
Wherein, the user can produce a lot of popup pages at the in-process of using, and some popup pages are useful to the user, but can be judged by mistake and can be needless popup and then close, and in order to prevent to be closed by the mistake, this method can also be based on the path information of the popup page that is closed by the mistake and resume the popup page that is closed by the mistake, avoids the user oneself to go to resume, has saved the operation, has improved efficiency, has also avoided the condition that effective popup was closed by the mistake.
Preferably, the method further comprises:
if the webpage is judged to be the popup page, page content information and path information of the popup page are stored to obtain third storage information;
judging whether a popup page is closed by mistake, if so, acquiring real-time page content information of a current browsing page, comparing the similarity of the real-time page content information with page content information in third storage information, and acquiring historical path information corresponding to the page content information with the highest similarity with the real-time page content information in the third storage information;
and recovering the popup page which is closed by mistake based on the historical path information.
In order to prevent the mistaken closing, the method can also recover the mistakenly closed popup pages based on the path information of the mistakenly closed popup pages, avoid the user from recovering by himself, save operation, improve efficiency, and avoid the situation that effective popup windows are closed by mistake.
Preferably, when the user finds that the popup is closed by mistake, the user can click a button on the page to quickly restore the popup page. According to the method, a false closing button is arranged on a current webpage, and when the false closing button is clicked, the fact that the popup window page is closed by mistake is judged.
In order to achieve the above object, the present invention further provides a pop-up window control system, including:
the acquisition unit is used for acquiring attribute information of all webpage pages in an open state;
the judging unit is used for judging whether the webpage is a popup page or not based on the attribute information;
the monitoring unit is used for monitoring the page operation of the webpage;
and the closing unit is used for closing the corresponding popup page if the webpage switching operation occurs.
The invention also provides an image processing device, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the steps of the popup window control method when executing the computer program.
The present invention also provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the pop-up window control method.
One or more technical schemes provided by the invention at least have the following technical effects or advantages:
the invention can automatically close the pop-up window, reduce the load of the computer and avoid the complicated operation of a user.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention;
FIG. 1 is a schematic flow chart of a pop-up window control method;
fig. 2 is a schematic diagram of the pop-up window control system.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present invention may be combined with each other without conflicting with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described and thus the scope of the present invention is not limited by the specific embodiments disclosed below.
It should be understood that "system", "device", "unit" and/or "module" as used herein is a method for distinguishing different components, elements, parts, portions or assemblies of different levels. However, other words may be substituted by other expressions if they accomplish the same purpose.
As used in this specification and the appended claims, the terms "a," "an," "the," and/or "the" are not intended to be inclusive in the singular, but rather are intended to be inclusive in the plural, unless the context clearly dictates otherwise. In general, the terms "comprises" and "comprising" are intended to cover only the explicitly identified steps or elements as not constituting an exclusive list and that the method or apparatus may comprise further steps or elements.
Flowcharts are used in this specification to illustrate the operations performed by the system according to embodiments of the present specification. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, the various steps may be processed in reverse order or simultaneously. Meanwhile, other operations may be added to or removed from these processes.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a pop-up window control method, a pop-up window control method according to an embodiment of the present invention includes:
step 1: collecting attribute information of all webpage pages in an open state;
step 2: judging whether the webpage is a popup page or not based on the attribute information;
and 3, step 3: monitoring page operation of a webpage;
and 4, step 4: and if the webpage switching operation occurs, closing the corresponding popup window page.
The attribute information includes the length and width of the page, and the length and width of the popup page are both smaller than the normal page width, so that whether the page is a popup page can be judged according to the length and width of the page, or whether the page is a popup page can be judged according to identity information or tag information which is carried by the popup page and can be distinguished from other pages.
The method can be realized in a specific mode that:
and adding a function for globally monitoring the change of the hash value, and executing the content in the function body once the change of the hash value of the route is monitored.
And returning the node list of the closing popup button by using the preset class attribute value of the closing popup button.
If the node list exists, executing the step four, otherwise, finishing the function execution.
And circularly traversing the node list, and if the click event of the node exists, automatically executing the click event of the node.
In an embodiment of the present invention, step 2 further includes:
if the webpage is a popup page, acquiring page content information of the popup page;
generating classification information of the popup page based on the page content information;
the step 4 specifically includes:
and if the webpage switching operation occurs, closing the popup pages in the preset category.
The pop-up window page can be classified in multiple modes, can be divided into a user selection pop-up window according to the pop-up window mode, can also be divided into automatic pop-up windows, can be reserved for the pop-up window of the user selection pop-up window and can be closed for automatic pop-up, also can be classified according to the content of the pop-up window, and is divided into advertisement pop-up windows or other pop-up windows, so that the advertisement pop-up windows can be closed, other pop-up windows are reserved, and the like, namely, the pop-up windows can be classified and correspondingly closed, effective pop-up windows are reserved, and invalid pop-up windows are closed.
In an embodiment of the present invention, the method includes:
and monitoring the hash value of the route, and if the hash value changes, judging that webpage page switching operation occurs. When the page is sent and switched, the hash value in the route changes, the hash value can be monitored, and if the hash value changes, the page switching operation can be judged quickly and accurately.
In an embodiment of the present invention, the method includes:
presetting an attribute value of a popup closing button;
judging whether a node list of a popup closing button exists or not;
and if the node list of the closed popup button exists, circularly traversing the nodes in the node list, and if the click event of the node exists, automatically executing the click event of the node and closing the corresponding popup page.
In the embodiment of the invention, the route is combined with the page rendering, and the corresponding operation is executed by monitoring the change of the route to control the rendering of the page. And setting a global monitoring function in the system, monitoring whether the hash value changes, and acquiring all popup window closing buttons under the document through a unified popup window closing class name if the hash value is monitored to change. If the popup closing button exists under the document, the popup is traversed circularly, and the closing clicking event of each popup is executed automatically, so that the aim of automatically closing the popup during page switching is fulfilled, user operation is reduced, and user experience is improved.
In the embodiment of the present invention, step 1 further includes:
collecting login information of a user browser, wherein the login information comprises identity information and login state information of a user, and the login state comprises a working state and a non-working state; the user identity information can be utilized to judge whether the user is suitable for browsing the popup window or not, and assist in judging whether the popup window needs to be closed or not;
when the login state of a user is a working state, if a plurality of popup pages exist and webpage page switching operation occurs, closing all the popup pages; if the user is working and 5 popup windows exist in the browser, the 5 popup windows are all closed, and the working efficiency of the user can be guaranteed not to be interfered by the popup windows.
When the login state of the user is a non-working state, if a plurality of popup pages exist and webpage page switching operation occurs, analyzing the popup pages, and closing one or more popup pages based on the analysis result. If the user is resting to browse the webpage information, wherein 8 popup windows exist, the popup windows can be analyzed, and partial popup windows can be closed.
In the embodiment of the present invention, the analyzing the popup page includes:
analyzing the page contents of the pop-up pages to obtain page content information, wherein the page content information comprises page subject information, advertisement information proportion in the page and associated information of adjacent page pages;
matching the page subject information with a preset keyword, and closing the pop-up window page if the matching is successful; for example, the keywords may be pornography, yellow, violence, illegal, gambling, etc., and if the subjects are popup, the closing is automatically performed.
Judging whether the advertisement information proportion in the page exceeds a first threshold value or not, and if so, closing the pop-up window page; if the threshold value can be set to 30%, if the advertisement content in a popup exceeds 30%, the popup is automatically closed, and the advertisement information can be realized by adopting an advertisement identification method or an advertisement identification module, generally by text identification or image content identification or a combination of the text identification and the image content identification.
And calculating the association value of the current pop-up window page and the adjacent webpage page, and closing the pop-up window page if the association value is lower than a second threshold value.
In the embodiment of the present invention, the calculating the relevance value between the current pop-up window page and the adjacent web page specifically includes:
extracting page contents of a current pop-up window page and an adjacent webpage page;
and comparing the relevance between the content of the current pop-up window page and the content of the adjacent webpage page, and calculating to obtain a relevance value.
The relevancy is mainly expressed in the aspect 2, on one hand, the relevancy is the text information content of the page, on the other hand, the text information content can be extracted through a text content extraction technology to perform relevancy calculation and comparison, on the other hand, the image is extracted from the webpage, then, the relevancy matching is performed on the image, and the relevancy calculation result is obtained based on the matching result.
In an embodiment of the present invention, the method further includes:
if the webpage is judged to be the popup page, storing the path information and the corresponding name information of the popup page to obtain first storage information;
when the popup page is closed, storing the time information and the corresponding name information of the closed popup page to obtain second storage information;
judging whether the pop-up window page is closed by mistake, if so, obtaining the name information of the pop-up window page closed by mistake based on the second storage information, and obtaining the path information of the pop-up window page closed by mistake based on the name information of the pop-up window page closed by mistake and the first storage information;
and recovering the popup page which is closed by mistake based on the path information of the popup page which is closed by mistake.
When a popup page is closed by mistake, a user can roughly remember the name and time of the popup page which is closed by mistake or the user wants to recover, and generally does not remember the path information of the popup, so that the popup page which needs to be replied can be quickly found based on the name and time of the popup page, for example, the user remembers that there is a popup of NBA at 12 o' clock, and at the moment, the user can quickly recover the popup by using the time and the name of the NBA.
Wherein, in the embodiment of the present invention, the method further includes:
if the webpage is judged to be the popup page, storing the page content information and the path information of the popup page to obtain third storage information;
judging whether a popup page is closed by mistake, if so, obtaining real-time page content information of the current browsing page, comparing the similarity of the real-time page content information with page content information in third storage information, and obtaining historical path information corresponding to the page content information with the highest similarity of the real-time page content information in the third storage information;
and recovering the popup page which is closed by mistake based on the historical path information.
If the user is browsing the page of the automobile content currently and matches a popup window of an automobile commodity in the history popup window, the popup window is recovered preferentially to avoid recovering other unnecessary popup windows.
In the embodiment of the invention, the method is provided with the error closing button on the current webpage, and when the error closing button is clicked, the popup window page is judged to be closed by error. The position, size and spanwise form of the button may be set according to actual needs, and this embodiment is not particularly limited.
Example two
Referring to fig. 2, fig. 2 is a schematic composition diagram of a pop-up window control system, an embodiment of the present invention provides a pop-up window control system, including:
the acquisition unit is used for acquiring attribute information of all webpage pages in an open state;
the judging unit is used for judging whether the webpage is a popup page or not based on the attribute information;
the monitoring unit is used for monitoring the page operation of the webpage;
and the closing unit is used for closing the corresponding popup page if the webpage switching operation occurs.
EXAMPLE III
The third embodiment of the present invention provides a street vitality obtaining apparatus, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the street vitality obtaining method when executing the computer program.
Example four
The fourth embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the pop-up window control method are implemented.
The processor may be a Central Processing Unit (CPU), or other general-purpose processor, a digital signal processor (digital signal processor), an Application Specific Integrated Circuit (Application Specific Integrated Circuit), an off-the-shelf programmable gate array (field programmable gate array) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory can be used for storing the computer program and/or the module, and the processor can realize various functions of the popup window control device in the invention by operating or executing data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
The pop-up window control device, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, all or part of the flow in the method of implementing the embodiments of the present invention may also be stored in a computer readable storage medium through a computer program, and when the computer program is executed by a processor, the computer program may implement the steps of the above-described method embodiments. Wherein the computer program comprises computer program code, an object code form, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, a point carrier signal, a telecommunications signal, a software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in the jurisdiction.
While the invention has been described with respect to the basic concepts, it will be apparent to those skilled in the art that the foregoing detailed disclosure is only by way of example and not intended to limit the invention. Various modifications, improvements and adaptations to the present description may occur to those skilled in the art, though not explicitly described herein. Such alterations, modifications, and improvements are intended to be suggested in this specification, and are intended to be within the spirit and scope of the exemplary embodiments of this specification.
Also, the description uses specific words to describe embodiments of the specification. Reference throughout this specification to "one embodiment," "an embodiment," and/or "some embodiments" means that a particular feature, structure, or characteristic described in connection with at least one embodiment of the specification is included. Therefore, it is emphasized and should be appreciated that two or more references to "an embodiment" or "one embodiment" or "an alternative embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, some features, structures, or characteristics of one or more embodiments of the specification may be combined as appropriate.
Moreover, those skilled in the art will appreciate that aspects of the present description may be illustrated and described in terms of several patentable categories or situations, including any new and useful combination of processes, machines, manufacture, or materials, or any new and useful modification thereof. Accordingly, aspects of this description may be performed entirely by hardware, entirely by software (including firmware, resident software, micro-code, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data block," module, "" engine, "" unit, "" component, "or" system. Furthermore, aspects of the present description may be represented as a computer product, including computer readable program code, embodied in one or more computer readable media.
The computer storage medium may comprise a propagated data signal with the computer program code embodied therewith, for example, on a baseband or as part of a carrier wave. The propagated signal may take any of a variety of forms, including electromagnetic, optical, etc., or any suitable combination. A computer storage medium may be any computer-readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code located on a computer storage medium may be propagated over any suitable medium, including radio, cable, fiber optic cable, RF, or the like, or any combination of the preceding.
Computer program code required for the operation of various portions of this specification may be written in any one or more programming languages, including an object oriented programming language such as Java, scala, smalltalk, eiffel, JADE, emerald, C + +, C #, VB.NET, python, and the like, a conventional programming language such as C, visual Basic, fortran 2003, perl, COBOL 2002, PHP, ABAP, a dynamic programming language such as Python, ruby, and Groovy, or other programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any network format, such as a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet), or in a cloud computing environment, or as a service, such as a software as a service (SaaS).
Additionally, the order in which the elements and sequences of the process are recited in the specification, the use of alphanumeric characters, or other designations, is not intended to limit the order in which the processes and methods of the specification occur, unless otherwise specified in the claims. While various presently contemplated embodiments of the invention have been discussed in the foregoing disclosure by way of example, it is to be understood that such detail is solely for that purpose and that the appended claims are not limited to the disclosed embodiments, but, on the contrary, are intended to cover all modifications and equivalent arrangements that are within the spirit and scope of the embodiments herein. For example, although the system components described above may be implemented by hardware devices, they may also be implemented by software-only solutions, such as installing the described system on an existing server or mobile device.
Similarly, it should be noted that in the foregoing description of embodiments of the present specification, various features are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure aiding in the understanding of one or more of the embodiments. This method of disclosure, however, is not intended to imply that more features are required than are expressly recited in the claims. Indeed, the embodiments may be characterized as having less than all of the features of a single embodiment disclosed above.
For each patent, patent application publication, and other material, such as articles, books, specifications, publications, documents, etc., cited in this specification, the entire contents of each are hereby incorporated by reference into the specification. Except where the application history document does not conform to or conflict with the contents of the present specification, it is to be understood that the application history document, as used herein in the present specification or appended claims, is intended to define the broadest scope of the present specification (whether presently or later in the specification) rather than the broadest scope of the present specification. It is to be understood that the descriptions, definitions and/or uses of terms in the accompanying materials of this specification shall control if they are inconsistent or contrary to the descriptions and/or uses of terms in this specification.
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 (10)

1. A pop-up window control method, the method comprising:
step 1: collecting attribute information of all webpage pages in an open state;
step 2: judging whether the webpage is a popup page or not based on the attribute information;
and 3, step 3: monitoring page operation of a webpage;
and 4, step 4: and if the webpage switching operation occurs, closing the corresponding popup window page.
2. The pop-up control method of claim 1, wherein the step 2 further comprises:
if the webpage is a popup page, acquiring page content information of the popup page;
generating classification information of the popup page based on the page content information;
the step 4 specifically includes:
and if the webpage switching operation occurs, closing the popup pages in the preset category.
3. The pop-up window control method of claim 1, wherein the method comprises:
and monitoring the hash value of the route, and if the hash value changes, judging that webpage page switching operation occurs.
4. The pop-up window control method of claim 1, wherein the method comprises:
presetting an attribute value of a popup closing button;
judging whether a node list for closing the popup button exists or not;
if the node list of the closing popup button exists, the nodes in the node list are circularly traversed, if the click event of the node exists, the click event of the node is automatically executed, and the corresponding popup page is closed;
the step 1 further comprises:
collecting login information of a user browser, wherein the login information comprises identity information and login state information of a user, and the login state comprises a working state and a non-working state;
when the login state of a user is a working state, if a plurality of popup pages exist and webpage page switching operation occurs, closing all the popup pages;
when the login state of the user is a non-working state, if a plurality of popup pages exist and webpage page switching operation occurs, analyzing the popup pages, and closing one or more popup pages based on the analysis result.
5. The pop-up window control method of claim 4, wherein the analyzing the pop-up window page comprises:
analyzing the page contents of a plurality of pop-up window pages to obtain page content information, wherein the page content information comprises page subject information, advertisement information proportion in the page and associated information of adjacent page pages;
matching the page subject information with a preset keyword, and closing the pop-up window page if the matching is successful;
judging whether the advertisement information ratio in the page exceeds a first threshold value or not, and if so, closing the pop-up window page;
and calculating the association value of the current pop-up window page and the adjacent webpage page, and closing the pop-up window page if the association value is lower than a second threshold value.
6. The pop-up window control method according to claim 5, wherein the calculating the relevance value between the current pop-up window page and the adjacent webpage page specifically comprises:
extracting page contents of a current pop-up window page and an adjacent webpage page;
and comparing the relevance between the content of the current pop-up window page and the content of the adjacent webpage page, and calculating to obtain a relevance value.
7. The pop-up control method of claim 1, further comprising:
if the webpage is judged to be the popup page, storing the path information and the corresponding name information of the popup page to obtain first storage information;
when the popup page is closed, storing the time information and the corresponding name information of the closed popup page to obtain second storage information;
judging whether the popup page is closed by mistake, if so, obtaining the name information of the popup page which is closed by mistake based on the second storage information, and obtaining the path information of the popup page which is closed by mistake based on the name information of the popup page which is closed by mistake and the first storage information;
and recovering the popped window page which is closed by mistake based on the path information of the popped window page which is closed by mistake.
8. The pop-up window control method of claim 1, further comprising:
if the webpage is judged to be the popup page, storing the page content information and the path information of the popup page to obtain third storage information;
judging whether a popup page is closed by mistake, if so, acquiring real-time page content information of a current browsing page, comparing the similarity of the real-time page content information with page content information in third storage information, and acquiring historical path information corresponding to the page content information with the highest similarity with the real-time page content information in the third storage information;
and recovering the pop-up window page which is closed by mistake based on the historical path information.
9. The pop-up window control method according to claim 7 or 8, wherein the method is characterized in that a false close button is provided on the current webpage, and when the false close button is clicked, it is determined that the pop-up window page is closed by mistake.
10. A pop-up window control system, the system comprising:
the acquisition unit is used for acquiring attribute information of all webpage pages in an open state;
the judging unit is used for judging whether the webpage is a popup page or not based on the attribute information;
the monitoring unit is used for monitoring the page operation of the webpage;
and the closing unit is used for closing the corresponding popup page if the webpage switching operation occurs.
CN202211023520.5A 2022-08-25 2022-08-25 Popup window control method and system Pending CN115390969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211023520.5A CN115390969A (en) 2022-08-25 2022-08-25 Popup window control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211023520.5A CN115390969A (en) 2022-08-25 2022-08-25 Popup window control method and system

Publications (1)

Publication Number Publication Date
CN115390969A true CN115390969A (en) 2022-11-25

Family

ID=84123423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211023520.5A Pending CN115390969A (en) 2022-08-25 2022-08-25 Popup window control method and system

Country Status (1)

Country Link
CN (1) CN115390969A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115629431A (en) * 2022-12-22 2023-01-20 成都数之联科技股份有限公司 Water vapor content prediction method, device, equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115629431A (en) * 2022-12-22 2023-01-20 成都数之联科技股份有限公司 Water vapor content prediction method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US11748501B2 (en) Tagging documents with security policies
Jerlin et al. A new malware detection system using machine learning techniques for API call sequences
US11256821B2 (en) Method of identifying and tracking sensitive data and system thereof
US9654446B2 (en) On-the fly pattern recognition with configurable bounds
US8005823B1 (en) Community search optimization
US8505094B1 (en) Detection of malicious URLs in a web page
US9311404B2 (en) Obscuring search results to increase traffic to network sites
US11256912B2 (en) Electronic form identification using spatial information
Wu et al. A phishing detection system based on machine learning
CN111143654B (en) Crawler identification method and device for assisting in identifying crawler and electronic equipment
CN111008348A (en) Anti-crawler method, terminal, server and computer readable storage medium
CN113486350B (en) Method, device, equipment and storage medium for identifying malicious software
US10740385B1 (en) Identifying visual portions of visual media files responsive to search queries
CN115390969A (en) Popup window control method and system
Jamjoom et al. Partial instance reduction for noise elimination
CN111371757B (en) Malicious communication detection method and device, computer equipment and storage medium
US8549309B1 (en) Asymmetric content fingerprinting with adaptive window sizing
AU2017268604B2 (en) Accumulated retrieval processing method, device, terminal, and storage medium
Wu et al. TrackerDetector: A system to detect third-party trackers through machine learning
KR101631032B1 (en) Data storing system and method based on unstructured data filtering and common format conversion
WO2017086992A1 (en) Malicious web content discovery through graphical model inference
CN107220364B (en) Information processing method and device
Abdulrahaman et al. Phishing attack detection based on random forest with wrapper feature selection method
US11755958B1 (en) Systems and methods for detecting cryptocurrency wallet artifacts in a file system
CN111178942B (en) Advertisement shielding method, device, equipment and storage medium

Legal Events

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