# US 10,956,026 B2 · Smart element filtering method via gestures

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,956,026 B2
- Document ID: US10956026B2
- Status: Granted
- Kind: B2
- Application number: 15/834,177
- Filed: 2017-12-07
- Published: 2018-12-27
- Granted: 2021-03-23
- Earliest claimed: 2017-06-27
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Shuai Cao; Run Hua Chi; Zhen Hong Ding; Xu Jun Ge; Nan Song; Yi Chen Zhang; Chao Zheng
- Web page: https://patentgrep.com/patent/US10956026B2

## CPC

- G06F 3/04883: for inputting data by handwriting, e.g. gesture or text
- G06F 3/017: {Gesture based interaction, e.g. based on a set of recognized hand gestures (interaction based on gestures traced on a digitiser G06F3/04883)}
- G06F 3/04845: for image manipulation, e.g. dragging, rotation, expansion or change of colour
- G06F 8/34: Graphical or visual programming
- G06F 40/14: Tree-structured documents (parsing G06F40/205; validation G06F40/226)
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 16/957: Browsing optimisation, e.g. caching or content distillation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, computer system, and a computer program product for filtering at least one element. The present invention may include receiving a user gesture. The present invention may also include determining a requested action based on the received user gesture. The present invention may then include filtering at least one element associated with a webpage based on the determined requested action. The present invention may further include rendering a modified webpage based on the filtered at least one element.

## Claims

### Claim 1

A method for filtering at least one element, the method comprising:
receiving a first user gesture and a second user gesture, wherein the first user gesture is a press gesture and the second user gesture is a shake gesture;
determining a requested action based on the first user gesture, wherein the determined requested action is identifying a pressed portion of a Document Object Model (DOM) tree structure, and wherein the pressed portion of the DOM tree structure is a photograph followed by a text box;
storing all portions of the DOM tree whose parent-child node relationship is identical to the pressed portion of the DOM tree in a temporary memory location;
filtering at least one element associated with a webpage based on the determined requested action and the shake gesture;
increasing a filtering level by 1;
generating a modified DOM tree eliminating at least one unwanted element from the generated DOM tree structure which is not stored in the temporary memory location and which is based on the increased filtering level; and
rendering a modified webpage based on the filtered at least one element, wherein rendering the modified webpage includes generating a modified DOM tree and the modified DOM tree, wherein the modified webpage includes the photograph followed by the text box.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
obtaining a plurality of source code associated with the webpage from a browser; and
generating a Document Object Model (DOM) tree based on the obtained plurality of source code, wherein each level of the generated DOM tree is configured, by a developer of the webpage, with two attributes, indicating whether the at least one element associated with the webpage will be retained or removed on a filter of that level.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
identifying a portion of the generated DOM tree affected by the press gesture; and
storing the identified portion of the generated DOM tree in temporary memory.

### Claim 4 (depends on 3)

The method of claim 3, wherein generating the modified DOM tree further comprises eliminating the at least one unwanted element from the generated DOM tree which is not stored in temporary memory or determined to be equivalent to the at least one unwanted element stored in temporary memory based on a predefined filtering category based on receiving the shake gesture.

### Claim 5 (depends on 4)

The method of claim 4, wherein the modified webpage is based on the modified DOM tree.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
receiving a third user gesture;
determining that the third user gesture was a return gesture, configured to gradually decrease a filtering level with each iteration of the return gesture; and
deleting the identified portion of the DOM tree from temporary memory based on determining the third gesture was the return gesture.

### Claim 7 (depends on 6)

The method of claim 6, wherein the predefined filtering category is selected from the group consisting of a shape category, an attribute category and a filtering level category.
