Check all matches with combined string + array

I'm trying to hide some unique links from a site's product listing page.
Those links' href attributes endings are set in my "hrefs" array.
I'd like to include only the endings (instead of the whole url-s), since the part before them are always the same.

So it can combine the first part of the url and the last part from the array and remove that link, but only the first one.
I need some help how could the code check all of the given url endings (and hide all)?