How to remove Search.yahoo.com

Search.yahoo.com is a legitimate search engine that may replace new tab and search engine of your browser without any reason. All of this because of the affiliate program which is being sponsored by Yahoo in order to attract more clients. The unscrupulous developers take advantage of it spreading their brainchild as harmless browser extension along with freeware.