How to uninstall (remove) Search.anysearchmac.com from Mac

Search.anysearchmac.com is a hijacker that infects Safari and other browsers, such as Google Chrome, Mozilla Firefox. It comes bundled with free Apps that you download from third-party sites. Search.anysearchmac.com looks like an ordinary search page improving browsing experience and filters out irrelevant search result, but it's very annoying and brings a lot of difficulties.