Settings

Theme

Show HN: A Firefox extension to break the habit of typing distracting websites

addons.mozilla.org

37 points by vishaldpatel 10 years ago · 30 comments

Reader

hollerith 10 years ago

what I've been doing for the last 3 or 5 years (in Firefox, which is the browser under discussion in this submission) is setting the following to false:

browser.urlbar.autocomplete.enabled

browser.urlbar.suggest.bookmark

browser.urlbar.suggest.history

it does not literally stop me from typing in for example "news.ycombinator.com", but it makes it so that I have to type every last one of those 20 characters, which leaves enough time between my (impulsive) decision to act and my (fast and nasty) reward to prevent most instances of procrastination.

(then I put frequently-accessed URLs that do not cause procrastination on the Bookmarks menu and the Bookmarks toolbar.)

  • vishaldpatelOP 10 years ago

    Great idea! I hadn't thought about the autocomplete feature making it easier to go to a website - but you're right! I'll try to a way to reduce it's effects in a future version.

    I think it'd still be a good idea to leave auto-complete on for useful websites -- you've taken care of that by adding those sites to the bookmarks =)

    • hollerith 10 years ago

      before arriving at the above solution, I found a way to remove an URL from the list of candidates for autocompletion. the reason that did not solve my procrastination problem is that the next time I visited the URL, it was added back to the list of candidates.

      If I had found a way to arrange for a URL to stay off the list of candidates (even after I visit the URL) I would have used that because, as you point out, it is a good idea to leave auto-completion on for useful web pages.

  • petra 10 years ago

    what about google's autocomplete? it's to search sites using google.

    • hollerith 10 years ago

      Firefox has a separate field for search queries that is in the nav bar like the location field (terminology? I mean where the URL goes) is (and like the back button, the refresh button, the "downloads" button, etc, are) but is not combined with the location field.

      At least my Firefox does, and I don't think I customized that particular aspect of Firefox.

      I seem to recall someone here saying that Firefox decided not to combine them (location and search fields) for privacy reasons. In particular, the user can be sure that anything typed into the location field is never sent to Google's autocompletion servers.

      I could be wrong about the things I said in this comment, though.

      • kuschku 10 years ago

        Actually, since the latest nightly, they are combined, and you can turn search completion on or off

    • boken 10 years ago

      I'm not sure how this would pose a problem. I'm not the parent commenter, but I don't typically go to Google to search for sites I frequent. It would be such an odd thing to do—granted that I know the URL—that I would be forced to consider what I was doing even more vividly than if I had to type the URL out.

      Unless you mean the search bar?

        browser.search.suggest.enabled = false
      
      Or, if you mean that you'd like to have autocomplete on for searches, just leave the default:

        browser.search.suggest.enabled = true
      
      This does not affect the URL bar.
  • Kronopath 10 years ago

    Any idea on how to do this for chrome?

    • Kronopath 10 years ago

      To answer my own question: it doesn't look like you can. But you can delete distracting websites from the omnibar on a one-by-one basis with Shift+Delete.

afarrell 10 years ago

If you find yourself just turning this extension off or undoing the edits to your host file, you should try http://selfcontrolapp.com/ for OSX, which blocks URLs for a specified period of time without the ability to unblock them. It is open source, so in theory you could presumably go source diving to find a way around it, but that would take more effort and focus than doing whatever you are supposed to be doing.

Also, if you find yourself desperately needing this, consider the possibility that you may want to get more/regular sleep, exercise, and better food. "Sleep is for the weak" is a load of horseshit. Your brain is a part of your body and you should take care of both. This got me through the last parts of undergrad and I am very grateful to the maintainers, but I wish I'd not needed it.

EDIT: there is apparently an app http://getcoldturkey.com/ for windows. I've never tried it though.

Also, Momentum for Chrome is a good replacement for the "recent pages" new tab screen: https://chrome.google.com/webstore/detail/momentum/laookkfkn...

  • vishaldpatelOP 10 years ago

    There's no substitute for a healthy lifestyle. That said, even with one, you may find that you need a tool like this. I know I do.

    I added the ability to turn it off as a feature after needing it! =). But yeah - there are heavier alternatives for heavier needs.

  • EdwardDiego 10 years ago

    That Self Control app is good for me, thanks!

GrinningFool 10 years ago

I've tried several tools similar to this, and they're all coming from the right place. But..

1) being told that this isn't the time to do something doesn't change that I feel it's time to do something. It just annoys me.

2) There's no substitute for simply making the choice to not go to those distracting web sites.

Distractions abound, but in my experience I've found that looking to technology to solve what is fundamentally an error in my thought process is a mistake. Changing the thought process isn't the easy way to go about it but it is ultimately the only way that's going to be effective in the long term.

Tools like this don't help much with that process[1]. Instead they provide [again, in my experience] a band-aid that helps cover the wound, so to speak - they let me avoid seeing that I needed to make changes.

[1] one benefit they do provide is to make you more aware of what you're doing.

  • afarrell 10 years ago

    > Changing the thought process isn't the easy way to go about it but it is ultimately the only way that's going to be effective in the long term.

    How does one actually change the thought processes? Or begin to make progress changing the thought processes?

    • GrinningFool 10 years ago

      Set up an arduino interfaced via usb that delivers a shock every time you start to meander :D

      More seriously - I think it's key to realize that sidetracking to various websites isn't the actual problem - it's more a symptom of not wanting to do the task at hand.

      Here's what worked for me: When I started to suspect that this was costing me more time than I realized, I figured to measure it. I just started writing the time down each time I mentally wandered off and started browsing, and then again when I stopped.

      It didn't take long to see that this added up to a depressing amount - but the awareness of how frequently and how long was critical for me, and the brief pause where I 'had' to write down something when I was about to start was enough for me to check myself and do one of two things:

      1. (more frequently) realize that I wasn't in a mental state to get back on task, and take a quick walk, get a drink, w/e. The time to do this is much less than the time I'd spend on noodling about, still let me get my mind off of it briefly, and often let me become aware of why I was avoiding whatever the task was.

      2. just get back on task (this became easier with time, though 1) is still sometimes more beneficial)

      Hmm, maybe I should make a plugin for that :D

      In any event, this manual tooling to simply track what I was doing was enough for me, and it worked better than throwing artificial obstacles into my path.

  • NoGravitas 10 years ago

    I've used Leechblock, with fairly permissive settings (type a 64-bit key displayed on screen to override), and I think the annoyance is the point. It raises the psychological cost of going to a time-waster website, which makes it less desirable.

CGamesPlay 10 years ago

Related: http://blog.xkcd.com/2011/02/18/distraction-affliction-corre...

I briefly used RescueTime's functionality for this. Eventually I actually settled on a separate browser profile for distracting sites. Basically, on my work Chrome, I only have productive sites, am not logged into any distracting services, or anything like that. I can use Chrome's user switching to open my "distracting" session, but the extra effort to do that helps me maintain focus.

ars 10 years ago

Leechblock works very well for this: http://www.proginosko.com/leechblock/

It counts how long you are on an "illegal" website and only blocks when you exceed the limit.

It's fully customizable for timelimits and method of blocking.

  • ahstilde 10 years ago

    I use leech block. I can't get the timer to work for multiple sets of websites.

itake 10 years ago

I like the idea. I find blocking websites with my host file being the best tool for protecting myself against distraction.

It would be pretty neat if this was a website that I could point my blocked domains to

  • vishaldpatelOP 10 years ago

    The hostfile is great! I use it for more permanent blocks. Reason I use the plugin is to be able to turn blocking on and off quickly if I need to, and as of the next version which will hopefully be available tomorrow, I'll be able to block going to sub-directories.

    So, say you have a habit of typing in /r/cars ... I don't know how to block that using a hostfile, but with the plugin this won't be a problem.

azar1 10 years ago

I feel like it would work better if it took you to something like a shock website ;)

  • vishaldpatelOP 10 years ago

    Haha - I tried it. It's shocking at first and annoying soon after. I figured that soft power is the way to go.

thucydides 10 years ago

Does anything similar exist for Chrome? AFAIK, default Chrome won't let you disable autocomplete in the address bar.

  • vishaldpatelOP 10 years ago

    I'm sure there are - not sure how lightweight they are though. I'll release a Chrome extension fairly soon.

J_Darnley 10 years ago

Where the heck did the install button go to on Mozilla's website?

  • vishaldpatelOP 10 years ago

    If you're on Firefox on the desktop, then it installs the add-on. To see which add-ons you have installed, go to Tools -> Add-ons in Firefox! Thanks for trying out the plug in :)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection