Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to clean urlbar? (from extension)

more options

I want to create extension which will clear the urlbar after visiting some sites (for personal use). I predicted to use Window.location API, and write blank string, but it's read-only. What API's i should use for it?

I want to create extension which will clear the urlbar after visiting some sites (for personal use). I predicted to use Window.location API, and write blank string, but it's read-only. What API's i should use for it?

All Replies (2)

more options

Add-on questions should be posted in the add-ons forum; https://discourse.mozilla-community.org/c/add-ons

more options

Firefox has extension APIs to clear history; I'm sure there already are extensions to clear history by site, or for various periods of time. However, the autofill feature (the feature that suggests top level site addresses directly in the address bar) might not be so easy to clear, so in general, it is better to use a private window for sites you don't want in your history.