Any URL containing the string ".jpg" will not be displayed when URLSpy is enabled. E.g. www.jpg.daviddworken.com will not be listed. This is an edge case, but should still be addressed.
Rather than checking if URL contains ".jpg", instead:
Strip URL of all arguments.
Check if URL ends with ".jpg"
Filter out ad URLs.
Generate a list of ad websites/domains.
Filter URLs to check if they are on any of those domains.
Any URL containing the string ".jpg" will not be displayed when URLSpy is enabled. E.g. www.jpg.daviddworken.com will not be listed. This is an edge case, but should still be addressed.
Filter out ad URLs.