Hi, I'm Ashik. Welcome to JustAnswer. I'm reviewing your question now, and will post back with your reply ASAP
It is possible that Safari is got infected with adware or you may be installed any incompatible software. So first, using Chrome, download this AntiMalware application --> https://www.malwarebytes.org/antimalware/mac/
Open the downloaded AntiMalware, open it and run a scan with it. Remove all malware/adwares if it finds anything. Then hold down Shift key and open Safari. Does it work now ?
Please let me know if that didn't work, so we can continue troubleshooting.
That is strange. Hold down Shift key and open Chrome or Safari. Does it open ?
Did you recently install any toolbar or plugins ?
That shouldn't cause the issue.
In Finder, hold down Option key, click on Go menu at the top bar and select Library. Open Internet Plugins folders and trash all files.
Then click on Go menu and select GO To Folder. Type the following and press return
Open Internet Plugins folder and trash all files. Then turn off Internet or WiFi and open Safari while holding down Shift. Does it open ?
I mean Option key on your keyboard.
I think you are not following the instructions correctly. In Finder, hold down Option key on your keyboard, while holding down click on Go menu the top bar and select Library.
See this picture --> http://cdn.osxdaily.com/wp-content/uploads/2011/07/access-library-lion.jpg
You will see Library in Go menu only if you hold down option key on keyboard
Lets boot into Safe Mode and do it from there. Turn off your Mac. Turn it back on and immediately hold down Shift key for 20 seconds. This will boot into Safe Mode. Then follow the steps in Safe Mode.
Open Internet Plugins folder and trash all files. Then turn off Internet or WiFi and open Safari while holding down Shift.
We're trying to delete all plugins to make sure they are not causing it.
If you hold down Shift key for 20 seconds immediately after turning it on, then it boot into Safe Mode. It may also say Safe boot at top bar or side
It will take up to 20 minutes to boot into Safe Mode as some repairs will run in Safe mode boot.
Sorry, I should've mentioned that. Boot it into Safe mode
Give it 10 more minutes
If it still not working, then we can run Disk Utility and see if it works or not. Turn off your Mac by holding down Power button for 10 seconds. Then turn it back on and immediately hold down Command and R keys at same time for 20 seconds and this will boot your Mac to the Mac OS X Utilities screen. From there, click Disk Utility. Select your hard disk/SSD at left column (Macintosh HD or hard disk name). Click First Aid button and run it. Repair if asked.
It seems like some core system files are corrupted. That is why it is not booting into Safe Mode. Run Disk Utility and see if it returns any errors
I understand the frustration. These kind of issues are common with Macs. Run Disk Utility and see if it returns any errors
Restart and immediately hold down Command, Option, P and R keys at same time for 3 seconds. Then release the keys and let it boot.
Do you have another computer there, so you can download and AntiMalware on it and copy it to your Mac ?
Yes. Run it ASAP
Here is the direct link --> https://www.malwarebytes.org/antimalware/mac/
Are you able to open Chrome ?
I think I now know the problem. None of your application is able to access the resources properly like files, folders etc to work. In Finder, click on Go menu and select Go To Folder. Type the following and press return
This will open the Users folder. In Users folder, you will see the home folder. Select the home folder and press Command and I key
This will bring Get Info window. In Get Info, you will see Sharing and Permission at the bottom. In Sharing and Permission, click + button and add your user account if it is not already there. Then next to your User Account, click the small arrow (under Privilege) and select Read and Write. Select it again even it is already selected there.
Now click on the small lock on the right side and unlock it. Then click on gear like icon (Settings) and select Apply to Enclosed items. Let it complete the process
That is a rare problem and indicating system files are corrupted. It is not clear what caused this. Do you have any important files on yoru Mac ?
It is not a malware issue. But Yes, download from that computer, copy it to a flash drive and run it on your Mac.
I want you to backup ASAP. We may need to reinstall OS X, but I'm trying to avoid that as it takes couple of hours. It is not just Chrome or Safari that has affected. Many apps that access system library may have this problem.
After backing up, I want you to run Disk Utility Turn your Mac off. Turn it back on and immediately hold down the Command (Apple) key and the S keys at the same time.Then type the following command when it boot into black screen with white letters...
/sbin/fsck -fy (note the space between fsck and-fy)
If you can' run /sbin/fsck -fy then type only fsk -fy
Hit return and the disk utility should run and let it finish. When it finishes type reboot and hit return.
That is not enough, but you can backup your very important files to it now. External hard drives are a must have device and it is worth it. Add a bookmark of this page or add this page to your favorites, so you can get back to me via that page and we can continue tomorrow.
Sorry for the delay. Tap on the Share button and tap Add Bookmark or tap Add to Home Screen. This will add the bookmark to home screen.