* Finds and removes all of the text predictions added by this extension, and * removes them from the DOM. Note: This does not undo the containerization. A * cleaner implementation would move the image node back out of the container * div.
()
| 76 | * div. |
| 77 | */ |
| 78 | function removeTextElements() { |
| 79 | const textDivs = document.getElementsByClassName(TEXT_DIV_CLASSNAME); |
| 80 | for (const div of textDivs) { |
| 81 | div.parentNode.removeChild(div); |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | |
| 86 |