IP Library Granted Patent US 11,829,438
Granted Patent B1
US 11,829,438 · App. 17/644,242 · Granted Nov 28, 2023

Systems and methods for removing whitespace from blocked resources in websites

Inventor: Iskander Sanchez Rola (Antibes, FR)
Assignee: GEN DIGITAL INC.
G06F16/9577G06F3/0481G06F3/0484G06F16/951G06F16/958G06F40/117
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,829,438
App. No.
17/644,242
Granted
Nov 28, 2023
Kind
B1
Abstract

The disclosed computer-implemented method for removing whitespace from blocked resources in websites may include identifying elements arranged in a hierarchy from a website at least partially loaded in a browser and identifying one or more whitespace candidates to be displayed as whitespace in the browser. The method may also include selecting an element relating to the one or more whitespace candidates based on the hierarchy and establishing a mutation observer for monitoring a change in the selected element. The method may further include modifying a display attribute of the selected element based on the monitoring by the mutation observer. Various other methods, systems, and computer-readable media are also disclosed.

Claims (42)

1. A computer-implemented method for removing whitespace from blocked resources in websites, at least a portion of the method being performed by a computing device comprising at least one processor, the method comprising:

identifying a plurality of elements arranged in a hierarchy from a website at least partially loaded in a browser;

identifying, from the plurality of elements, one or more whitespace candidates to be displayed as whitespace in the browser based on blocked content;

selecting an element of the plurality of elements relating to the one or more whitespace candidates based on the hierarchy;

establishing a mutation observer for monitoring a change in the selected element;

disabling, by the mutation observer, the selected element by setting a display attribute of the selected element to not display;

rendering a content of the website without an indication of the selected element such that the content is not visually impacted by the selected element;

setting, via the mutation observer, the display attribute of the selected element to display when the selected element loads a non-blocked content;

disabling the mutation observer after the selected element loads the non-blocked content; and

rendering the content of the website including the selected element.

2. The method of claim 1 , wherein determining the one or more whitespace candidates is based on identifying elements originating from a blocked domain.

3. The method of claim 1 , wherein determining the one or more whitespace candidates is based on identifying elements covering a threshold amount of the website with whitespace.

4. The method of claim 1 , wherein determining the one or more whitespace candidates is based on identifying elements having empty body content.

5. The method of claim 1 , wherein determining the one or more whitespace candidates is based on identifying elements sharing a same class with an empty element.

6. The method of claim 1 , wherein selecting the element is based on selecting an element having children, based on the hierarchy, that are all included in the one or more whitespace candidates.

7. The method of claim 6 , wherein selecting the element comprises successively checking, starting from a highest level of the hierarchy, a lower level in the hierarchy to identify the element having children that are all included in the one or more whitespace candidates.

8. A system for removing whitespace from blocked resources in websites, the system comprising:

an identification module, stored in memory, configured to identify a plurality of elements arranged in a hierarchy from a website at least partially loaded in a browser and identify, from the plurality of elements, one or more whitespace candidates to be displayed as whitespace in the browser based on blocked content;

a selection module, stored in memory, configured to select an element of the plurality of elements relating to the one or more whitespace candidates based on the hierarchy;

an observer module, stored in memory, configured to establish a mutation observer for monitoring a change in the selected element;

a modification module, stored in memory, configured to disable the selected element by setting a display attribute of the selected element to not display such that a content of the website does not include an indication of the selected element and is not visually impacted by the selected element, to set the display attribute of the selected element to display when the selected element loads a non-blocked content, and to disable the mutation observer after the selected element loads the non-blocked content; and

at least one physical processor that executes the identification module, the selection module, the observer module, and the modification module.

9. The system of claim 8 , wherein determining the one or more whitespace candidates is based on identifying elements originating from a blocked domain.

10. The system of claim 8 , wherein determining the one or more whitespace candidates is based on identifying elements covering a threshold amount of the website with whitespace.

11. The system of claim 8 , wherein determining the one or more whitespace candidates is based on identifying elements having empty body content.

12. The system of claim 8 , wherein determining the one or more whitespace candidates is based on identifying elements sharing a same class with an empty element.

13. The system of claim 8 , wherein selecting the element is based on selecting an element having children, based on the hierarchy, that are all included in the one or more whitespace candidates and, wherein selecting the element comprises successively checking, starting from a highest level of the hierarchy, a lower level in the hierarchy to identify the element having children that are all included in the one or more whitespace candidates.

14. A non-transitory computer-readable medium comprising one or more computer-executable instructions that, when executed by at least one processor of a computing device, cause the computing device to:

identify a plurality of elements arranged in a hierarchy from a website at least partially loaded in a browser;

identify, from the plurality of elements, one or more whitespace candidates to be displayed as whitespace in the browser based on blocked content;

select an element of the plurality of elements relating to the one or more whitespace candidates based on the hierarchy;

establish a mutation observer for monitoring a change in the selected element;

disable, by the mutation observer, the selected element by setting a display attribute of the selected element to not display;

render a content of the website without an indication of the selected element such that the content is not visually impacted by the selected element;

set, via the mutation observer, the display attribute of the selected element to display when the selected element loads a non-blocked content;

disable the mutation observer after the selected element loads the non-blocked content; and

render the content of the website including the selected element.

15. The non-transitory computer-readable medium of claim 14 , wherein determining the one or more whitespace candidates is based on at least one of:

identifying elements originating from a blocked domain;

identifying elements covering a threshold amount of the website with whitespace;

identifying elements having empty body content; or

identifying elements sharing a same class with an empty element.

Assignments (2)
CHANGE OF NAME Recorded Feb 6, 2023
From: NORTONLIFELOCK INC.
To: GEN DIGITAL INC.
Reel/Frame 062714/0605 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 14, 2021
From: SANCHEZ ROLA, ISKANDER
To: NORTONLIFELOCK INC.
Reel/Frame 058389/0175 →