CN108228806B - Webpage information deleting method and device, mobile terminal and server - Google Patents

Webpage information deleting method and device, mobile terminal and server Download PDF

Info

Publication number
CN108228806B
CN108228806B CN201711483505.8A CN201711483505A CN108228806B CN 108228806 B CN108228806 B CN 108228806B CN 201711483505 A CN201711483505 A CN 201711483505A CN 108228806 B CN108228806 B CN 108228806B
Authority
CN
China
Prior art keywords
target area
webpage
node
deleting
web page
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
CN201711483505.8A
Other languages
Chinese (zh)
Other versions
CN108228806A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711483505.8A priority Critical patent/CN108228806B/en
Publication of CN108228806A publication Critical patent/CN108228806A/en
Application granted granted Critical
Publication of CN108228806B publication Critical patent/CN108228806B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The embodiment of the application discloses a webpage information deleting method and device, a mobile terminal and a server, and relates to the technical field of internet. The method applied to the mobile terminal comprises the following steps: determining a target area according to the position of the received touch operation, wherein the touch operation is generated by a user acting on a webpage; displaying a selection item for deleting the information of the target area; when the selection of the selection item is received, the content corresponding to the target area and the occupation of the target area in the webpage are deleted, so that the use experience of a user is improved.

Description

Webpage information deleting method and device, mobile terminal and server
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for deleting web page information, a mobile terminal, and a server.
Background
When information search is performed through a browser, the search webpage contains various information, wherein the information possibly comprises information which a user does not want to see, such as advertisement promotion information, negative energy information, information which the user does not interest at all, and the like, and the use experience of the user is greatly influenced.
Disclosure of Invention
In view of the above problems, the present application provides a method, an apparatus, a mobile terminal and a server for deleting web page information, so that a user can delete web page information that the user wants to delete, thereby improving use experience.
In a first aspect, an embodiment of the present application provides a method for deleting web page information, which is applied to a mobile terminal and is used to delete information embedded in a browser web page, where the method includes: determining a target area according to the position of the received touch operation, wherein the touch operation is generated by a user acting on a webpage; displaying a selection item for deleting the information of the target area; and when the selection of the selection item is received, deleting the content corresponding to the target area and the occupation of the target area in the webpage.
In a second aspect, an embodiment of the present application provides a method for deleting web page information, which is applied to a server, and the method includes: receiving the identity of a target area in a webpage sent by one or more mobile terminals; judging whether the proportion of the mobile terminals sending the identity marks in all the mobile terminals is larger than a preset proportion or not; if so, deleting the target area in the webpage according to the identity so that the webpage sent to all the mobile terminals does not include the target area.
In a third aspect, an embodiment of the present application provides a web page information deleting device, applied to a mobile terminal, for deleting information embedded in a browser web page, where the device includes: the target area determining module is used for determining a target area according to the position of the received touch operation, and the touch operation is generated by a user acting on a webpage; the selection module is used for displaying selection items for deleting the information of the target area; and the deleting module is used for deleting the content corresponding to the target area and the occupation of the target area in the webpage when the selection of the selection item is received.
In a fourth aspect, an embodiment of the present application provides a web page information deleting device, which is applied to a server, and the device includes: the receiving module is used for receiving the identity of the target area in the webpage sent by one or more mobile terminals; the judging module is used for judging whether the proportion of the mobile terminal sending the identity is greater than a preset proportion or not; and the deleting module is used for deleting the target area in the webpage according to the identity if the proportion of the mobile terminal sending the identity is greater than the preset proportion, so that the webpage sent to all the mobile terminals does not include the target area.
In a fifth aspect, an embodiment of the present application provides a mobile terminal, including a display screen, a memory and a processor, where the display screen and the memory are coupled to the processor, the display screen is used for displaying web page content, and the memory stores instructions, and when the instructions are executed by the processor, the processor executes the method applied to the mobile terminal.
In a sixth aspect, embodiments of the present application provide a server, including a memory and a processor, the memory being coupled to the processor, the memory storing instructions, and the processor performing the method applied to the server when the instructions are executed by the processor.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium having a program code executable by a processor, where the program code causes the processor to execute the method applied to a mobile terminal.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium having program code executable by a processor, the program code causing the processor to execute the method applied to the server.
According to the webpage information deleting method, the webpage information deleting device, the mobile terminal and the server, the target area is determined according to the position of the touch operation acting on the webpage, and the selection item for deleting the information of the target area is displayed. If the user selects the selection item, the content information and the occupation corresponding to the target area in the webpage are deleted from the webpage, so that the user can delete part of the content in the webpage, and the use experience of the user is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 shows a schematic diagram of interaction between a mobile terminal and a server in an embodiment of the present application;
fig. 2 is a flowchart illustrating a method for deleting web page information according to a first embodiment of the present application;
FIG. 3 is a schematic diagram showing a display of a web page in a first embodiment of the present application;
FIG. 4 is a schematic diagram showing another display of a web page in the first embodiment of the present application;
FIG. 5 is a schematic diagram showing another display of a web page in the first embodiment of the present application;
fig. 6 is a flowchart illustrating a method for deleting web page information according to a second embodiment of the present application;
FIG. 7 is a schematic diagram showing a display of a web page in a second embodiment of the present application;
FIG. 8 is a schematic diagram showing another display of a web page in the second embodiment of the present application;
fig. 9 is a flowchart illustrating a method for deleting web page information according to a third embodiment of the present application;
fig. 10 is a functional block diagram showing a web page information deleting apparatus according to a fourth embodiment of the present application;
fig. 11 is a functional block diagram showing a web page information deleting apparatus according to a fifth embodiment of the present application;
fig. 12 is a block diagram illustrating a structure of a server according to an embodiment of the present application;
fig. 13 is a block diagram illustrating a structure of a mobile terminal according to an embodiment of the present application;
fig. 14 is a block diagram illustrating a structure of a mobile terminal according to an embodiment of the present application
Fig. 15 is a block diagram of a mobile terminal for executing a web page deletion method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the information search and web page browsing processes of a browser, contents which a user does not want to see, such as advertisement push, usually appear in a web page, and the browsing experience of the user is greatly influenced. For advertisement push, the webpage browsing experience can be improved by deleting the advertisements in the webpage. Generally, the advertisement in the web page is deleted by issuing a rule by the server, that is, the server is placed in the browser kernel by injecting js (javascript), and in the process of loading the web page, the browser executes js to enable the rule issued by the server to delete the advertisement. However, these rules are created by human beings, and the rules are created according to the web advertising logic. Due to the complexity and diversity of the web page, the generated rules cannot be adapted to all sites, and whether deletion is needed or not cannot be determined for some shopping links suspected to be advertisements, so that deletion of all advertisements cannot be realized through the rules below the server. Thus, the advertisements may be replenished by the user actively deleting the advertisements.
For the user to delete the advertisement actively, the user can select the advertisement content in the webpage, when the content selected by the user is judged to be the content which can be deleted, such as a shopping link, and the user clicks the advertisement to delete the advertisement content in the webpage to delete the advertisement according to the selection of the option for deleting the advertisement. In this method, deletion is performed only when it is determined that the selected content is a content that can be deleted, and deletion cannot be performed for other information that the user does not want to see.
Therefore, the embodiment of the application provides a method for deleting webpage information, and for a target area determined by a user in a webpage, if the user selects to delete information of the target area, content and place occupation corresponding to the target area are deleted, information which the user does not want to browse and the place occupation are effectively deleted, and use experience of the user on a browser is provided.
The method and the device for deleting the webpage information, which are provided by the embodiment of the application, can also be applied to interactive servers and mobile terminals. The mobile terminal sends the identity of the target area to the server, the server receives the identity sent by the plurality of mobile terminals, and deletes the content and occupation corresponding to the identity in the webpage when the number of the mobile terminals sending the identity meets a certain condition, so that the webpage sent to each mobile terminal does not include the content and occupation corresponding to the identity, and the content corresponding to the identity is deleted. Fig. 1 shows a schematic interaction diagram between a server 1 and a mobile terminal 2 in an embodiment of the present application, where the number of mobile terminals interacting with the server is not limited, and may be multiple, and only one is shown in fig. 1. As shown in fig. 1, the mobile terminal 2 and the server 1 are located in a network 3, and the network 3 may be a wireless network or a wired network. Through the wireless network or the wired network, the mobile terminal 2 and the server 1 perform data interaction. In the present application, the mobile terminal 2 may be a mobile phone, a tablet computer, a computer, or other intelligent devices.
A client may be operated in the mobile terminal 2 and a server 1 may be operated as a server. For example, in the present application, the client running in the mobile terminal 2 may be a browser, and the server 1 runs a server corresponding to the browser, and based on the above network environment, the browser may perform data interaction with the server 1 through a network, thereby implementing data interaction with the server running on the server 1. The method and apparatus for deleting information from a network according to the embodiments of the present application will be mainly described in the following with reference to the accompanying drawings.
First embodiment
Referring to fig. 2, a first embodiment of the present application provides a method for deleting web page information. The webpage information deleting method is used for deleting the information embedded in the browser webpage. In the method, the mobile terminal deletes the content and the occupation of the target area selected by the user for information deletion, thereby realizing the deletion of part of information in the webpage. In a specific embodiment, the method for deleting webpage information is applied to the webpage information deleting device shown in fig. 10 and the mobile terminal 700 (fig. 13 and 14) corresponding to the webpage information deleting device 400. The webpage information deleting method specifically comprises the following steps:
step S110: and determining a target area according to the position of the received touch operation, wherein the touch operation is generated by a user acting on a webpage.
When a user wants to delete some information embedded in the webpage, touch operation can be performed on the information which is wanted to be deleted at a position corresponding to the display interface. The touch operation is a preset operation for deleting webpage information, and may be a long press, a preset gesture (such as drawing a closed graph), and the like.
When receiving the touch operation, it may be determined that a request operation for deleting the web page information is received, where the specific deleted content may be determined according to an operation position of the touch operation in the web page, for example, an area within a preset range corresponding to a position of the touch operation in the web page is used as a target area for deleting the information, as shown in fig. 3. In fig. 3, the position of the index finger in the web page corresponds to the position of the touch operation, and the area corresponding to the dotted line corresponds to the target area determined according to the position of the touch operation.
Step S120: and displaying the selection items for deleting the information of the target area.
And displaying a selection item for deleting the information corresponding to the target area, wherein the selection item is used for reminding a user to determine whether to delete the webpage information corresponding to the target area, as shown in fig. 4.
Optionally, when the selection item is displayed, the target area may be marked in a manner of highlighting, shading, or the like, so that the user can clearly determine which part of the deleted web page information is. Of course, the label display of the target area can also be realized when the target area is determined.
Step S130: and when the selection of the selection item is received, deleting the content corresponding to the target area and the occupation of the target area in the webpage.
If the user determines to delete the target area, a selection item may be selected, such as clicking on the selection item. When the mobile terminal receives the selection, the mobile terminal can determine that the user deletes the information of the target area, and delete the target area. The specific deletion target area is the content of the deletion target area corresponding to the web page and the occupation of the target area in the web page, after deletion, the target area in the web page does not exist any more, and the position of the target area in the web page can be supplemented by subsequent content, that is, the occupation of the target area by the content after the target area in the web page, as shown in fig. 5. FIG. 5 is a display of the content corresponding to the target area and the deleted placeholder web page of FIG. 4.
Second embodiment
Compared with the first embodiment, the embodiment includes a specific determination mode for the target area. Specifically, referring to fig. 6, the method provided in this embodiment includes:
step S210: and determining an operation position of a touch operation in the webpage, wherein the touch operation is generated by a user acting on the webpage.
Step S220: and taking the webpage area corresponding to the first preset function unit corresponding to the operation position in the webpage as a target area.
When the webpage of the browser is displayed on the display screen, a user performs touch operation on the display screen, the touch operation is correspondingly applied to the currently displayed webpage of the display screen, and the operation position of the touch operation in the webpage can be determined. For different touch operations, the determination modes of the corresponding operation positions may be different. For example, if the touch operation is to perform long-time pressing on a web page, the operation position may be a web page position of the long-time pressing, and as shown in fig. 3 as an example, the touch position may be determined to be a position corresponding to the web page content touched by the index finger in fig. 3. For another example, if the touch operation is a preset gesture for drawing a closed graph, the operation position of the touch operation in the webpage may be the position of the closed graph.
And determining a target area according to the operation position of the touch operation. The method includes the steps that a first preset function unit can be preset, and a webpage area corresponding to the first preset function unit corresponding to an operation position in a webpage is used as a target area.
Since the browser can interpret the HTML file to display the web page, the HTML file is the code for the web page. HTML is built up in a Tree structure, i.e. an HTML DOM Tree (DOM Tree). All nodes in the DOM tree are accessible. The nodes that make up the tree structure have a hierarchical relationship with each other, and terms such as parent, child, and sibling are used to describe these relationships. The parent node owns the child node. The children nodes of the same level are called siblings (brothers or sisters). For example, in the following webpage code segment
Figure BDA0001534345940000071
The < html > node has no parent node, it is the root node. The parent nodes of the < head > node and the < body > node are < html > nodes, and both the < head > node and the < body > node are child nodes of the < html > node. The < head > node has one child node: the < title > node, the < head > node is the parent node of the < title > node. The < title > node also has a child node: the text node "AAAA". The < h1> node and the < p > node are sibling nodes and are children of the < body >.
Therefore, in the embodiment of the present application, the first preset functional unit may be a corresponding node in the web page code, and a level where the node is located in the tree structure for constructing the web page code is not limited.
In a specific embodiment, the first preset functional unit may be a node corresponding to the operation position in the web page code. That is to say, the operation position of the touch operation in the web page corresponds to a node in the web page code, and the web page area corresponding to the node is taken as the target area. Taking the above code segment as an example, if the operation position is the text "AAAA" displayed by long pressing, the node corresponding to the operation position in the web page code is the text node "AAAA", and the area corresponding to the node may be the display area of the text node "AAAA".
In another specific embodiment, a node corresponding to the touch operation in the web page code may still be determined, the node is used as a target node, and the first preset function unit may be a parent node of the target node within a preset hierarchical range. The method includes determining a parent node in a preset hierarchy range, such as a minimum hierarchy, a middle hierarchy, a hierarchy meeting preset conditions and the like in the preset hierarchy range, and taking a webpage area corresponding to the parent node as a target area. If the first preset function unit is the parent node of the level 2 of the target node, the first preset function unit is the parent node of the target node.
Optionally, in this another embodiment, the first preset function unit may be set as a parent node of the target node, which is a block-level element within a preset hierarchy. If the predetermined hierarchy range is the second to fourth hierarchies of the target node, and the parent node of the third hierarchy of the target node is the block-level element, the parent node of the third hierarchy is the first predetermined functional unit. If there are a plurality of parent nodes of the block-level elements in the preset hierarchy range, the first preset functional unit may be determined in any one of the selection modes, one of the parent nodes closest to the target node, one of the parent nodes farthest from the target node, and the like.
In the embodiment of the present application, the first preset functional unit may also be one or more sentences of characters, a piece of content in a web page, and the like.
Step S230: and displaying the selection items for deleting the information of the target area.
After the target area is determined, a selection item for deleting the information of the target area can be displayed, and the user is reminded to select the target area to be deleted.
Further, in the embodiment of the present application, before displaying the selection item, it may be determined whether the target area meets the condition of deleting the information. Wherein the condition may be whether or not a region area of the target region exceeds a preset area. The preset area may be a preset area value or a preset area proportion, that is, a proportion of the total area of the display screen. If the area of the target area does not exceed the preset area, the target area meets the condition of information deletion, and information deletion selection items can be displayed. If the area of the target region exceeds the preset area, the range of the target region can be reduced. For example, the node level of the target area is reduced, that is, a corresponding child node of the target area exceeding the preset area in the web page code is used as a new target area, or a smaller block-level element in the target area range is used as a new target area, and the like.
Further, in the embodiment of the present application, after the target area is determined according to the operation position, the determined target area may be smaller than the webpage information area that the user actually wants to delete, at this time, an option for extending and selecting the target area may be displayed, so that the user may extend the range of the currently determined target area through the option for extending and selecting, and obtain a new target area with a larger range for deleting information. The option may be displayed simultaneously with the selection item for deleting the information, as shown in fig. 7. When receiving the selection of the extension item, the range of the current target area is expanded as a new target area, and the new target area is used as an area for deleting information, as shown in fig. 8. The range indicated by the dotted line in fig. 8 represents a new target region obtained after the target region corresponding to fig. 7 is selected.
After a new target area is obtained through expansion, selection items for information deletion are displayed corresponding to the new target area, so that a user can delete the target area through touch control of the selection items, and at the moment, expansion items can still be displayed, so that the user can continue expansion and selection.
If the area of the new target region is larger than the preset area allowed by the information deletion condition after the target region is expanded, the expanded item is not displayed, and the target region is not expanded any more.
Further, in this embodiment of the application, when a new target area is obtained by expanding the target area range, a web page area corresponding to a second preset function unit adjacent to the first preset function unit may be used as an area for expanding the current target area. That is, the selected region is adjacent to the target region determined according to the first preset functional unit.
If the first preset function unit is a node in the web page code, the second preset function unit may be a sibling node adjacent to the first preset function unit, for example, the first preset function unit may be a node corresponding to the web page content corresponding to the operation position in the web page code, and the second preset function unit may be a sibling node adjacent to the first preset function unit. Of course, the second preset functional unit may not be a sibling node of the first preset functional unit, but may be another node adjacent to the first preset functional unit.
Step S240: and when the selection of the selection item is received, deleting the content corresponding to the target area and the occupation of the target area in the webpage.
If the first preset function unit is the node corresponding to the operation position in the webpage code, when the target area is deleted, the content and the occupation of the target area can be deleted by deleting the node.
If the first preset functional unit can be a father node of the target node in the preset hierarchy range, when the target area is deleted, the content and occupation of the target area can be deleted by deleting the father node of the target node.
If the first preset functional unit is a sentence or a plurality of sentences of characters, a section of content in the webpage, etc., the sentence or the plurality of sentences of characters, the section of content, etc. can be deleted, and the corresponding occupation in the webpage can be deleted.
Further, in this embodiment of the application, an identity identifier corresponding to the target area may also be recorded, for example, a node id (identity) corresponding to the target area is recorded. When the browser opens the request of the webpage including the target area again, the content corresponding to the target area and the occupation of the target area can be deleted according to the identity, and then the webpage is displayed, so that the displayed webpage does not include the target area. Or, when the browser opens the request of the web page including the target area again, the web page is opened, and if the touch operation acted on the web page by the user is received, and the position of the touch operation is in the range of the web page area corresponding to the recorded identity, the web page area corresponding to the identity is determined as the target area for information deletion.
In addition, the recorded identification of the target area can also be sent to the server, so that the server can perform corresponding processing according to the identification.
Third embodiment
The embodiment provides a webpage information deleting method, which is applied to a server. Referring to fig. 9, the method includes:
step S310: and receiving the identity of the target area in the webpage sent by one or more mobile terminals.
In the mobile terminal, the user selects a target area in a browser webpage for deletion, and the browser can send the identity of the target area to the server. When the browser of one mobile terminal sends the identity, the server can correspondingly receive the sending of one mobile terminal, and when the browsers of a plurality of mobile terminals send the identity, the server can correspondingly receive the sending of a plurality of mobile terminals.
Step S320: and judging whether the proportion of the mobile terminal sending the identity mark in all the mobile terminals is greater than a preset proportion.
Under the condition that a plurality of mobile terminals send identity marks, the server can obtain the proportion of the mobile terminals sending the same identity marks in all the mobile terminals provided with the browser, and can judge whether the proportion is larger than a preset proportion.
Step S330: if so, deleting the target area in the webpage according to the identity so that the webpage sent to all the mobile terminals does not include the target area.
If the proportion of the mobile terminals sending the same identity in all the mobile terminals is larger than the preset proportion, the webpage content corresponding to the identity is likely to be advertisement content, unhealthy content or other content which is not accepted by the user, so that the webpage content and the occupation corresponding to the identity can be deleted from the corresponding webpage, and when the mobile terminal requests to acquire the webpage, the webpage in the area corresponding to the identity is deleted.
Optionally, in this embodiment of the application, the server may delete the target area in the web page according to the identity when the number of the mobile terminals that send the same identity reaches a preset number.
In addition, optionally, the server may also send the received identity to all mobile terminals equipped with the browser, so that the mobile terminal may delete the web page area corresponding to the identity when opening the web page corresponding to the identity.
In summary, the method for deleting webpage information provided in the embodiment of the present application provides a selection item for deleting a target area after determining the target area according to a touch operation of a user on a webpage. And if the user selects and confirms the selected item, deleting the content and the occupation of the target area in the webpage to delete the information in the webpage.
In addition, the mobile terminal can also send the identity of the target area of the information deletion to the server, so that the server can delete the area corresponding to the identity in the corresponding webpage under the condition that the server judges that the proportion of the mobile terminal sending the identity exceeds the preset proportion, so that the webpage sent to the mobile terminal does not include the area corresponding to the identity, and the webpage browsing experience of a user is improved.
Fourth embodiment
The embodiment of the application provides a webpage information deleting device 400, which is applied to a mobile terminal and is used for deleting information embedded in a browser webpage. Referring to fig. 10, the apparatus 400 includes: a target area determining module 410, configured to determine a target area according to a position of a received touch operation, where the touch operation is generated by a user acting on a webpage; a selecting module 420, configured to display a selection item for deleting information from the target area; a deleting module 430, configured to delete, when a selection of the selection item is received, the content corresponding to the target area and the occupancy of the target area in the web page.
Optionally, the embodiment of the present application may further include a determining module, configured to determine whether a region area of the target region exceeds a preset area. If the area of the target area does not exceed the preset area, the selection module 420 displays a selection item for deleting the information of the target area.
Further, the target area determination module 410 may include: the position determining unit is used for determining the operation position of the touch operation acted on the webpage by the user in the webpage; and the target area determining unit is used for taking a webpage area corresponding to a first preset function unit corresponding to the operation position in the webpage as a target area, wherein the first preset function unit is a corresponding node in the webpage code.
And the first preset function unit is a node corresponding to the operation position in the webpage code.
Or, taking a node corresponding to the webpage content corresponding to the operation position in the webpage code as a target node, where the first preset function unit is a parent node of the target node in a preset hierarchy range. Further, the first preset functional unit may be a parent node of the target node, which is a block-level element within a preset hierarchy.
Further, in the embodiment of the present application, as shown in fig. 10, the apparatus 400 may further include an expansion module 440, configured to display expansion options for expanding the target area; and when the selection of the expansion option is received, the expansion option is used for expanding the range of the current target area to be used as a new target area.
And the expansion module takes a webpage area corresponding to a second preset function unit adjacent to the first preset function unit as an area for expanding the current target area. The second predetermined functional unit may be a sibling node adjacent to the first predetermined functional unit.
Further, as shown in fig. 10, an embodiment of the present application may further include a recording module 450, configured to record an identity corresponding to the target area. When a request for opening the webpage is received again, the deleting module may delete the content corresponding to the target area and the occupation of the target area according to the identity, and then display the webpage.
Fifth embodiment
The embodiment of the application provides a web page information deleting device 500, which is applied to a server. Referring to fig. 11, the apparatus 500 includes: a receiving module 510, configured to receive an identity of a target area in a webpage sent by one or more mobile terminals; a judging module 520, configured to judge whether a ratio of the mobile terminal that sends the identity identifier is greater than a preset ratio; a deleting module 530, configured to delete the target area in the web page according to the identity if the proportion of the mobile terminal that sends the identity is greater than a preset proportion, so that the web page that is sent to all the mobile terminals does not include the target area.
Sixth embodiment
The embodiment of the present application provides a server 600, as shown in fig. 12, the server 600 includes a memory 610 and a processor 620, the memory 610 is coupled to the processor 620, the memory 610 stores instructions, and when the instructions are executed by the processor, the processor executes the method described in the third embodiment.
Seventh embodiment
Referring to fig. 13 again, based on the foregoing method and apparatus for deleting web page information, an embodiment of the present application further provides a mobile terminal 700. As shown in fig. 13, the mobile terminal 700 includes a display 120, a memory 104 and a processor 102, the display 120 and the memory 104 are coupled to the processor 102, the display 120 is used for displaying web page content, the memory 104 stores instructions, and the processor 102 executes the methods of the first and second embodiments when the instructions are executed by the processor 102.
Specifically, as shown in fig. 14, the mobile terminal 700 may include an electronic body 10, where the electronic body 10 includes a housing 12 and a display 120 disposed on the housing 12. The housing 12 may be made of metal, such as steel or aluminum alloy. In this embodiment, the display screen 120 generally includes a display panel 111, and may also include a circuit and the like for responding to a touch operation performed on the display panel 111. The Display panel 111 may be a Liquid Crystal Display (LCD) panel, and in some embodiments, the Display panel 111 is a touch screen 109. The web page content in this embodiment may be displayed on the display screen 120.
Referring to fig. 15, in an actual application scenario, the mobile terminal 700 may be used as a smart phone terminal, in which case the electronic body 10 generally further includes one or more processors 102 (only one is shown in the figure), a memory 104, an RF (Radio Frequency) module 106, an audio circuit 110, a sensor 114, an input module 118, and a power module 122. It will be understood by those skilled in the art that the structure shown in fig. 15 is merely illustrative and is not intended to limit the structure of the electronic body 10. For example, the electronics body section 10 may also include more or fewer components than shown in FIG. 15, or have a different correspondence than shown in FIG. 15.
Those skilled in the art will appreciate that all other components are peripheral devices with respect to the processor 102, and the processor 102 is coupled to the peripheral devices through a plurality of peripheral interfaces 124. The peripheral interface 124 may be implemented based on the following criteria: universal Asynchronous Receiver/Transmitter (UART), General Purpose Input/Output (GPIO), Serial Peripheral Interface (SPI), and Inter-Integrated Circuit (I2C), but the present invention is not limited to these standards. In some examples, the peripheral interface 124 may comprise only a bus; in other examples, the peripheral interface 124 may also include other elements, such as one or more controllers, for example, a display controller for interfacing with the display panel 111 or a memory controller for interfacing with a memory. These controllers may also be separate from the peripheral interface 124 and integrated within the processor 102 or a corresponding peripheral.
The memory 104 may be used to store software programs and modules, and the processor 102 executes various functional applications and data processing by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory 104 may further include memory remotely located from the processor 102, which may be connected to the electronics body portion 10 or the display screen 120 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The RF module 106 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF module 106 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The RF module 106 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (WiFi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE 802.10A, IEEE802.11b, IEEE802.1 g, and/or IEEE802.11 n), Voice over internet protocol (VoIP), world wide mail Access (Microwave for Wireless communications, Wi-Max), and any other suitable protocols for instant messaging, and may even include those protocols that have not yet been developed.
The audio circuitry 110, speaker 101, microphone 103, microphone 105 collectively provide an audio interface between a user and the electronics body section 10 or the display screen 120.
The sensor 114 is disposed in the electronics body portion 10 or in the display screen 120, examples of the sensor 114 include, but are not limited to: acceleration sensor 114F, gyroscope 114G, magnetometer 114H, and other sensors.
In this embodiment, the input module 118 may include the touch screen 109 disposed on the display screen 120, and the touch screen 109 may collect a touch operation of the user (for example, an operation of the user on or near the touch screen 109 using any suitable object or accessory such as a finger, a stylus, etc.) on or near the touch screen 109, so that the touch gesture of the user may be obtained and the corresponding connection device may be driven according to a preset program, and thus, the user may select the target area through a touch operation on the display screen. Optionally, the touch screen 109 may include a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 102, and can receive and execute commands sent by the processor 102. In addition, the touch detection function of the touch screen 109 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch screen 109, in other variations, the input module 118 may include other input devices, such as keys 107. The keys 107 may include, for example, character keys for inputting characters, and control keys for activating control functions. Examples of such control keys include a "back to home" key, a power on/off key, and the like.
The display screen 120 is used to display information input by the user, information provided to the user, and various graphic user interfaces of the electronic body section 10, which may be configured by graphics, text, icons, numbers, video, and any combination thereof, such as displaying web page information of a browser. In one example, the touch screen 109 may be disposed on the display panel 111 so as to be integral with the display panel 111.
The power module 122 is used to provide power supply to the processor 102 and other components. Specifically, the power module 122 may include a power management system, one or more power sources (e.g., batteries or ac power), a charging circuit, a power failure detection circuit, an inverter, a power status indicator light, and any other components associated with the generation, management, and distribution of power within the electronics body portion 10 or the display screen 120.
The mobile terminal 700 further comprises a locator 119, the locator 119 being configured to determine an actual location of the mobile terminal 700. In this embodiment, the locator 119 implements the positioning of the mobile terminal 700 by using a positioning service, which is understood to be a technology or a service for obtaining the position information (e.g., longitude and latitude coordinates) of the mobile terminal 700 by using a specific positioning technology and marking the position of the positioned object on an electronic map.
It should be understood that the mobile terminal 700 described above is not limited to a smartphone terminal, but should refer to a computer device that can be used in mobility. Specifically, the mobile terminal 700 refers to a mobile computer device equipped with an intelligent operating system, and the mobile terminal 700 includes, but is not limited to, a smart phone, a smart watch, a tablet computer, and the like.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment. For any processing manner described in the method embodiment, all the processing manners may be implemented by corresponding processing modules in the apparatus embodiment, and details in the apparatus embodiment are not described again.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (mobile terminal) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments. In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A webpage information deleting method is applied to a mobile terminal and used for deleting information embedded in a browser webpage, and the method comprises the following steps:
determining a target area according to the position of the received touch operation, wherein the touch operation is generated by a user acting on a webpage;
judging whether the area of the target area exceeds a preset area or not;
if so, taking a corresponding child node of the target area in the webpage code as a new target area, or taking a smaller block-level element in the target area range as a new target area, and then displaying a selection item for deleting information of the target area;
when the selection of the selection item is received, deleting the content corresponding to the target area and the occupation of the target area in the webpage;
recording an identity corresponding to the target area;
when a request for opening the webpage is received again, deleting the content corresponding to the target area and the occupation of the target area according to the identity, and displaying the webpage;
and sending the identity corresponding to the target area to a server, so that when the proportion of the mobile terminals sending the identity in all the mobile terminals is greater than a preset proportion, the server deletes the content and the occupation corresponding to the identity in the webpage, and the webpage sent to each mobile terminal does not include the content and the occupation corresponding to the identity.
2. The method of claim 1, wherein determining the target area according to the position of the received touch operation comprises:
determining an operation position of a touch operation acted on a webpage by a user in the webpage;
and taking a webpage area corresponding to a first preset function unit corresponding to the operation position in the webpage as a target area, wherein the first preset function unit is a corresponding node in the webpage code.
3. The method according to claim 2, wherein the first preset functional unit is a node corresponding to the web page content corresponding to the operation position in the web page code.
4. The method according to claim 2, wherein a node corresponding to the web page content corresponding to the operation position in the web page code is taken as a target node, and the first preset function unit is a parent node of the target node within a preset hierarchy range.
5. The method of claim 4, wherein the first predetermined functional unit is a parent node of a block-level element of the target node in a predetermined hierarchy.
6. The method according to claim 2, wherein after the web page area corresponding to the first preset function unit corresponding to the operation position in the web page is taken as a target area, the method further comprises:
displaying an expansion option for expanding and selecting the target area;
and when the selection of the expansion option is received, expanding the range of the current target area as a new target area.
7. The method of claim 6, wherein expanding the current target area as a new target area comprises:
and taking a webpage area corresponding to a second preset function unit adjacent to the first preset function unit as an area for expanding the current target area, wherein the second preset function unit is a corresponding node in a webpage code.
8. The method according to claim 7, wherein the first predetermined functional unit is a parent node of a node corresponding to the web page content corresponding to the operation position in the web page code within a predetermined hierarchy, and the second predetermined functional unit is a sibling node adjacent to the first predetermined functional unit.
9. A web page information deleting apparatus, applied to a mobile terminal, for deleting information embedded in a web page of a browser, the apparatus comprising:
the target area determining module is used for determining a target area according to the position of the received touch operation, and the touch operation is generated by a user acting on a webpage;
the selection module is used for judging whether the area of the target area exceeds a preset area, if so, taking a corresponding child node of the target area in a webpage code as a new target area, or taking a smaller block-level element in the target area range as a new target area, and then displaying a selection item for deleting information of the target area;
the deleting module is used for deleting the content corresponding to the target area and the occupation of the target area in the webpage when the selection of the selection item is received;
the recording module is used for recording the identity corresponding to the target area;
the deleting module is further used for deleting the content corresponding to the target area and the occupation of the target area according to the identity when a request for opening the webpage is received again, and then displaying the webpage; and sending the identity corresponding to the target area to a server, so that when the proportion of the mobile terminals sending the identity in all the mobile terminals is greater than a preset proportion, the server deletes the content and the occupation corresponding to the identity in the webpage, and the webpage sent to each mobile terminal does not include the content and the occupation corresponding to the identity.
10. A mobile terminal comprising a display screen, a memory, and a processor, the display screen and the memory coupled to the processor, the display screen for displaying web content, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-8.
11. A computer-readable storage medium having program code executable by a processor, the program code causing the processor to perform the method of any of claims 1 to 8.
CN201711483505.8A 2017-12-29 2017-12-29 Webpage information deleting method and device, mobile terminal and server Active CN108228806B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711483505.8A CN108228806B (en) 2017-12-29 2017-12-29 Webpage information deleting method and device, mobile terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711483505.8A CN108228806B (en) 2017-12-29 2017-12-29 Webpage information deleting method and device, mobile terminal and server

Publications (2)

Publication Number Publication Date
CN108228806A CN108228806A (en) 2018-06-29
CN108228806B true CN108228806B (en) 2021-05-11

Family

ID=62647157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711483505.8A Active CN108228806B (en) 2017-12-29 2017-12-29 Webpage information deleting method and device, mobile terminal and server

Country Status (1)

Country Link
CN (1) CN108228806B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959679A (en) * 2006-09-25 2007-05-09 北京爱笛星科技有限公司 Method for picking-up, and aggregating micro content of web page, and automatic updating system
US20130246419A1 (en) * 2012-03-13 2013-09-19 Samsung Electronics Co., Ltd. Method and apparatus for tagging contents in a portable electronic device
CN106599246A (en) * 2016-12-20 2017-04-26 维沃移动通信有限公司 Display content interception method, mobile terminal and control server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8065392B2 (en) * 2007-06-08 2011-11-22 Apple Inc. Methods and systems for managing web feed content with an email client application
JP5994300B2 (en) * 2012-03-12 2016-09-21 ブラザー工業株式会社 Input device and input program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1959679A (en) * 2006-09-25 2007-05-09 北京爱笛星科技有限公司 Method for picking-up, and aggregating micro content of web page, and automatic updating system
US20130246419A1 (en) * 2012-03-13 2013-09-19 Samsung Electronics Co., Ltd. Method and apparatus for tagging contents in a portable electronic device
CN106599246A (en) * 2016-12-20 2017-04-26 维沃移动通信有限公司 Display content interception method, mobile terminal and control server

Also Published As

Publication number Publication date
CN108228806A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
US9241242B2 (en) Information recommendation method and apparatus
CN108710456B (en) Application icon processing method and device and mobile terminal
CN108932102B (en) Data processing method and device and mobile terminal
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN108021642B (en) Application program recommendation method and device, mobile terminal and storage medium
CN107766548B (en) Information display method and device, mobile terminal and readable storage medium
CN108646994B (en) Information processing method and device, mobile terminal and storage medium
CN108197264B (en) Webpage acceleration display method and device, mobile terminal and storage medium
CN109032491B (en) Data processing method and device and mobile terminal
CN108037990B (en) Task information processing method and device and server
CN108958576B (en) Content identification method and device and mobile terminal
CN115454286A (en) Application data processing method and device and terminal equipment
CN108763297B (en) Webpage resource processing method and device and mobile terminal
CN111913620A (en) Notification message display method and device, storage medium and mobile terminal
CN108958634A (en) Express delivery information acquisition method, device, mobile terminal and storage medium
CN108664205A (en) Method for information display, device, mobile terminal and storage medium
CN109085982A (en) content identification method, device and mobile terminal
CN108803972B (en) Information display method, device, mobile terminal and storage medium
CN109032465B (en) Data processing method and device and mobile terminal
CN108803961B (en) Data processing method and device and mobile terminal
CN108494851B (en) Application program recommended method, device and server
CN110221736B (en) Icon processing method and device, mobile terminal and storage medium
CN108491502B (en) News tracking method, terminal, server and storage medium
CN108763193A (en) Literal processing method, device, mobile terminal and storage medium
CN107743151B (en) Content pushing method and device, mobile terminal and server

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant