How to Disable Incognito Mode on Chrome (Mac users)

Discussion in 'Off-topic Discussion' started by ee_maker_guy, Apr 10, 2017.

  1. ee_maker_guy

    ee_maker_guy Fapstronaut

    10
    6
    3
    Hey all,

    Thought I'd share a tip that's helped it make a little easier for me to avoid porn. If you use the Chrome browser, it's possible to completely disable Incognito mode by following these steps:

    1. Open the "Terminal" application
    2. Type the following line and press 'enter': defaults write com.google.chrome IncognitoModeAvailability -integer 1
    3. Restart your Mac

    From now on, Incognito mode will be completely unavailable.

    To re-enable Incognito mode, you can:

    1. Open the "Terminal" application
    2. Type the following line and press 'enter': defaults write com.google.chrome IncognitoModeAvailability -integer 0
    3. Restart your Mac

    While it's pretty trivial to overcome this barrier if I really want to, by disabling Incognito mode it makes me have to stop and think for a second, and I have to make a really conscious choice to disable my defenses if I want to follow through with watching porn. It makes it impossible for me to kid myself about my real intentions.

    Let me know if this is useful for you!
     
    LavaMe and Monster Carrot like this.
  2. ee_maker_guy

    ee_maker_guy Fapstronaut

    10
    6
    3
    Follow up for more advanced users:

    Since Safari isn't able to disable Private mode, you could pretty easily just use Safari instead of Chrome to look at porn. To make this a little more difficult, I set up a 'cron' job to forcibly close Safari once every minute. A cron job is basically a script that runs on your computer at specific times.

    To set this up for yourself, follow these steps (you need to know how to use a text editor like nano, vim, or less):

    1. Open Terminal
    2. Type the following commands, and press enter after each one:

    echo "killall Safari" > ~/killsafari.sh
    chmod +x ~/killsafari.sh
    crontab -e
    3. You will now have a text editor window open in your terminal. Add this line to the open file:

    */1 * * * * killsafari.sh

    4. Save and close the file. You should see a message 'crontab: installing new crontab' in your Terminal
    5. Exit Terminal.

    Now, anytime Safari is open, it will be forcibly closed within a minute. This can also be used with Firefox or any other browser you want to prevent.
     
    LavaMe likes this.
  3. Monster Carrot

    Monster Carrot Fapstronaut

    1,010
    1,297
    143
    Thanks for the technique! I wish I could do this on my phone though lol.
     
  4. ee_maker_guy

    ee_maker_guy Fapstronaut

    10
    6
    3
    Unfortunately I'm not super familiar with doing this kind of stuff on Windows, sorry :/ I'm sure the information is out there somewhere though if you look for it. If you do find out, feel free to post it here!
     
  5. I use incognito mode to come here though