At least one non-transitory computer-readable medium storing computer-readable instructions that, when executed by one or more computing devices, cause at least one of the one or more computing devices to:
- parse a plurality of elements in a hierarchical DOM to identify one or more tags of each element in the plurality of elements, any properties of each element in the plurality of elements, and any values of each element in the plurality of elements;
- remove one or more invisible elements in the plurality of elements, the one or more invisible elements being determined based at least in part on one or more properties of each invisible element, each invisible element comprising an element of the DOM that is hidden from a user when the DOM is rendered;
- remove one or more empty elements in the plurality of elements based at least in part on the one or more tags of each element in the plurality of elements, each empty element comprising a tag without any associated values;
- identify one or more remaining elements in a plurality of remaining elements of the hierarchical DOM that have one or more parent elements that have been removed from the hierarchical DOM;
- and
- re-parent the one or more remaining elements to one or more new parent elements remaining in the hierarchical DOM based at least in part on traversing the hierarchical DOM from each of the one or more remaining elements.