K-Meleon

KMeleonWiki > Documentation > TipsAndTricks > SingleWindow


You can set up K-Meleon to force all new windows into tabs instead. This setup will also prevent pages from changing the window size or hiding user interface elements.

The technique involves modifying user.js. The user.js file is an advanced way of modifying preferences. You can carry this file over to other installations of K-Meleon. You can even use the file in other browsers like Firefox, SeaMonkey, Pale Moon, New Moon, and Mypal. Changes made in user.js override changes made in about:config.

To change the settings:

  1. Open K-Meleon/Profiles/<profile_name>/User.js in a text editor like Notepad++ or Notepad.
  2. Copy and paste the text below.
  3. Save the file and restart K-Meleon.


/* SINGLE WINDOW MODE */
user_pref("dom.disable_window_flip", true);
user_pref("dom.disable_window_move_resize", true);
user_pref("dom.disable_window_open_feature.*", true);
user_pref("dom.disable_window_open_feature.minimizable", true);
user_pref("dom.disable_window_open_feature.titlebar", true);
user_pref("dom.disable_window_open_feature.close", true);
user_pref("dom.disable_window_open_feature.toolbar", true);
user_pref("dom.disable_window_open_feature.location", true);
user_pref("dom.disable_window_open_feature.directories", true);
user_pref("dom.disable_window_open_feature.personalbar", true);
user_pref("dom.disable_window_open_feature.menubar", true);
user_pref("dom.disable_window_open_feature.scrollbars", true);
user_pref("dom.disable_window_open_feature.resizable", true);
user_pref("dom.disable_window_open_feature.status", true);
user_pref("dom.disable_window_status_change", true);
user_pref("kmeleon.tabs.onCloseOption", false);
user_pref("kmeleon.tabs.onOpenOption", true);
user_pref("browser.link.open_newwindow", 3);
user_pref("browser.link.open_newwindow.restriction", 0); 
K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.