How can I make a small window with no toolbars or other chrome?
I want to create a second Firefox window that is smaller and has no chrome (toolbars, etc), so I can use it for things like pop out videos or reference pages. I could just pop out a window and manually remove all the things, but then this affects my main window next time I restart Firefox.
所有回复 (2)
Are you using the javascript method window.open() to create the popup? If so, you could try the features parameter.
https://developer.mozilla.org/en-US/docs/DOM/window.open
Note that by default, Firefox preserves some features, but you might be able to let those go by toggling various settings in about:config.
(1) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.
(2) In the filter box, type or paste window_ and pause while the list is filtered
For each of the preferences starting with
dom. disable_window_open_feature.
if the value is true, the script cannot remove that feature. If you toggle it to false by double-clicking, then your window.open() should be able to strip that feature. Unfortunately, this is not site-specific, so other sites also would have permission to omit those features.
I'm not trying to do this on a particular page as a developer. I'm trying to do this for any page as a user. I guess I could make a bookmarklet that does this by opening a page in a new window and disabling as many features as I care to.