function findAndRemoveHighlights(node) {
    const wrappers = node.querySelectorAll(`* /deep/ .${WRAPPER_CSS_CLASS}`);

    for (let i = 0; i < wrappers.length; i++) {
      const wrapper = wrappers[i];
      const textNode =
          wrapper.querySelector(`.${ORIGINAL_CONTENT_CSS_CLASS}`).firstChild;
      wrapper.parentElement.replaceChild(textNode, wrapper);
    }
  }
/**
   * Finds all previous highlighted nodes under |node| (both within self and
   * children's Shadow DOM) and replaces the highlights (yellow rectangles)
   * with the original search node.
   * @param {!Node} node
   * @private
   */
Finds all previous highlighted nodes under |node| (both within self and
children's Shadow DOM) and replaces the highlights (yellow rectangles)
with the original search node.
@param {!Node} node
@private
Finds all previous highlighted nodes under |node| ( both within self and children ' s Shadow DOM ) and replaces the highlights ( yellow rectangles ) with the original search node . @param { !Node } node @private
function findAndRemoveHighlights(node) {
    const wrappers = node.querySelectorAll(`* /deep/ .${WRAPPER_CSS_CLASS}`);
    for (let i = 0; i < wrappers.length; i++) {
      const wrapper = wrappers[i];
      const textNode =
          wrapper.querySelector(`.${ORIGINAL_CONTENT_CSS_CLASS}`).firstChild;
      wrapper.parentElement.replaceChild(textNode, wrapper);
    }
  }
function findAndRemoveHighlights ( node ) { const wrappers = node . querySelectorAll ( ` ${ WRAPPER_CSS_CLASS } ` ) ; for ( let i = 0 ; i < wrappers . length ; i ++ ) { const wrapper = wrappers [ i ] ; const textNode = wrapper . querySelector ( ` ${ ORIGINAL_CONTENT_CSS_CLASS } ` ) . firstChild ; wrapper . parentElement . replaceChild ( textNode , wrapper ) ; } }
Finds all previous highlighted nodes under |node| (both within self and
 children's Shadow DOM) and replaces the highlights (yellow rectangles)
 with the original search node.
Finds all previous highlighted nodes under |node| ( both within self and children ' s Shadow DOM ) and replaces the highlights ( yellow rectangles ) with the original search node .