* Returns a list of all DOM image elements pointing to the provided srcUrl. * @param {string} srcUrl which url to search for, including 'http(s)://' * prefix. * @returns {HTMLElement[]} all img elements pointing to the provided srcUrl
(srcUrl)
| 64 | * @returns {HTMLElement[]} all img elements pointing to the provided srcUrl |
| 65 | */ |
| 66 | function getImageElementsWithSrcUrl(srcUrl) { |
| 67 | const imgElArr = Array.from(document.getElementsByTagName('img')); |
| 68 | const filtImgElArr = imgElArr.filter(x => x.src === srcUrl); |
| 69 | return filtImgElArr; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * Finds and removes all of the text predictions added by this extension, and |