Hey.
So, what you want is on click of extension, and the popup will open.
The popup will have a "space" input, as well as "color" input. It will have a "Run" button too.
When run, the program will try to find all "texts" or hyperlinks that are images (ending with png, gif...) on the page, and will go to the parent element of that page and check
if it has less then "space" input value (10px).
If it has, it should set the background color of that parent element to user-defined "color".
When all is done, the program will exit.
Is this what you want? Can you clear out my mistakes?
Also, when do you want to start this project and when is the deadline, if there is one?
Anyways, feel free to hit me up so we can talk more about this. I am very responsive. All the best