Undetectable Humanizer: Lifetime Subscription
Transform AI-Generated Text into Human-Like, High-Ranking Content & Bypass Even the Most Sophisticated AI Detectors
Get 95% Deal

Edit or remove cookies from Firefox's Developer Toolbar

Martin Brinkmann
Nov 3, 2012
Updated • Nov 3, 2012
Firefox
|
15

The Firefox Developer Toolbar is like wonderland, not only for web or extension developers, but also for regular users like you and I who like to use the keyboard for specific features that may otherwise be more difficulty or time consuming to reach. Yesterday I explained how you can use the Developer Console to take screenshots of the active web page, and before that, I explained how to use it to manage add-ons and change Firefox preferences.

Today, it is all about browser cookies and how you can use the Developer Toolbar to list, edit or remove cookies from the browser. If you have followed the other tutorials you should be familiar with the Developer Toolbar. Here is a short recap if you have not read them:

  • You display and hide the Developer Toolbar in Firefox with the shortcut Shift-F2
  • When you use the shortcut, a small toolbar opens at the bottom of the browser that contains a console and several links to additional tools
  • To learn more about the commands available, simply enter help and tap on the return key.

Managing Cookies from Firefox's Developer Toolbar

There are three cookie related commands that you can work with:

  • cookie list displays all cookies set by the domain you are currently on
  • cookie remove lets you remove select cookies from the browser
  • cookie set enables you to set a new cookie

firefox list cookies

The cookie list command is the one that you probably want to get started with. It lists all the cookies set by the domain you are currently on including the key and value. You also find actions to remove or edit cookies here which sometimes is more convenient than using the remove or set commands to do so. It won't remove the cookie right away but write the command to the console so that you only need to press enter to run it.

You can alternatively use the cookie remove key command to do that. Note that this does not appear to work properly right now in the Nightly version that I tested it with. While you can run the command, it won't remove the cookie from the Firefox web browser when you do so.

To write a new cookie use the cookie set key value command. This can for instance be useful if you want to set a cookie to get YouTube's new homepage when Google is testing a new layout of it or for web development purposes.

Especially the options to list and remove cookies can be useful to non-developers, for instance to quickly remove all cookies set by a website.

Advertisement

Tutorials & Tips


Previous Post: «
Next Post: «

Comments

  1. Tom said on July 5, 2018 at 7:32 pm
    Reply

    cookie list gives the error “Error: unsafe CPOW usage forbidden” All cookie functions seem to be broken.

    1. Martin Brinkmann said on July 5, 2018 at 7:35 pm
      Reply

      Mozilla revealed recently that it will remove the Developer Toolbar from Firefox 62. Probably not investing any more resources in this. https://www.ghacks.net/2018/05/21/firefox-62-developer-toolbar-removal/

  2. Aditya said on October 6, 2017 at 8:30 am
    Reply

    how to create a new cookie manually using cookie set,
    i am able edit the existing cookies with cookie set but not able to create new one please help .

  3. Adam said on March 16, 2017 at 3:39 am
    Reply

    I still can’t EDIT cookies. I went to Tools -> Web Developer -> Developer Toolbar. Then I typed “cookie list”, which brought them up. However, either clicking “>>Edit” or “>>Remove” does absolutely NOTHING. All I want to do is edit the hexadecimal text font color of a certain website. I can see it right there…..but, as I said, when I click “>>Edit”, it does absolutely nothing at all. Any ideas or help, please??

  4. Anonymous said on June 27, 2016 at 11:50 am
    Reply

    I can handle a terminal or shell, but when i am opening developer toolbar i want a GUI.
    Deleting cookies by console commands in 2016 is ridiculous!

  5. Rui said on July 3, 2015 at 4:51 pm
    Reply

    Also getting “cookieMgr is not defined” :(

    1. wing-tung Leung said on August 21, 2015 at 10:11 pm
      Reply

      Maybe not working due to bug in e10s mode?

      https://bugzilla.mozilla.org/show_bug.cgi?id=1142292

  6. Darkmagister said on May 28, 2015 at 11:26 am
    Reply

    hi, i’m trying to open the cookie list but it give me this error:
    cookieMgr is not defined
    any idea why ?
    thanks

  7. anitha said on October 21, 2014 at 1:59 pm
    Reply

    alert(document.cookie)

  8. Dwight Stegall said on January 10, 2014 at 5:59 am
    Reply

    Cool trick for Firefox users.

    I was just at this website. But the screen dimmed and Newsletter Signup popup window appeared over the page. I decided there is no way I’m signing up for their nonsense.

    http://www.startupsmart.com.au/

    I have Web Developer Toolbar addon installed. I clicked on Disable > Disable JavaScript > Disable All JavaScript. Then reloaded the page. All that nonsense disappeared and I could now read what I went there for.
    Caution: Some web site features won’t work with JavaScript disabled like menus etc.

    Be sure you re-enable JavaScript before leaving that site or it will block it on every site you visit.

  9. Benxamin said on April 4, 2013 at 11:55 am
    Reply

    On Mac that’s: Shift + Fn + F2.

  10. Leon Victor said on November 30, 2012 at 12:50 pm
    Reply

    This toolbar helps me to handle the cookies session and to control them in Firefox with no issues.

  11. name said on November 3, 2012 at 6:32 pm
    Reply

    New firefox 16.0.2 is not working good wit facebook and blocking the pc, whats going on with firefox???? all new versions are with problems, do they have to check who is employed there???

  12. name said on November 3, 2012 at 6:32 pm
    Reply

    New firefox 16.0.2 is not working good wit facebook and blocking the pc, whats going on with firefox???? all new versions are with problems, do they have to check who is emplyed there???

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.