How to hide some words on site using JS

I need to hide some links on my site that are created using a shortcode from a feed, so I can’t add any CSS class to them to use a CSS rule to hide them. Would it be possible to hide them using some JS?

I found a couple of threads on which people asked for a similar question, but I am not sure how to apply this on my site or which option should I use:

https://stackoverflow.com/questions/15361542/how-to-hide-specific-text-from-content-wihtout-calling-any-css

https://css-tricks.com/forums/topic/jquery-removing-one-word-of-text/#post-149513

The text I need to hide is on an anchor text and it says “Add to watch list”.