General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Single window mode
Posted by: cpm1a_new
Date: December 22, 2022 01:23PM

how do i force all new windows into tabs instead in K-Meleon 76.2.1? this method doesnt work
http://kmeleonbrowser.org/wiki/SingleWindow
thanks



Edited 2 time(s). Last edit at 12/22/2022 01:28PM by cpm1a_new.

Options: ReplyQuote
Re: Single window mode
Posted by: RJJIII
Date: December 22, 2022 04:15PM

Thanks for pointing that out! I've updated the code in the link. I checked on this site:

https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_open5

Also, I believe only the last 2 lines are necessary now in KM76. Those 2 preferences can be set from the big preferences dialog (F2) but they are a bit buried.

Options: ReplyQuote
Re: Single window mode
Posted by: cpm1a_new
Date: December 22, 2022 06:19PM

thanx for quick answer! it don't work specifically for K-Meleon 76.2.1

i put this in my d:\Programs\K-Meleon\Profiles\MangTang\user.js

/* 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);

what am i doing wrong?

Options: ReplyQuote
Re: Single window mode
Posted by: RJJIII
Date: December 22, 2022 06:50PM

First, check to make sure that's the correct profile:

  1. Open K-Meleon
  2. In the menu select Edit > Configuration > Profile Directory
  3. Open up user.js in that file and make sure it's the same one that you've edited

Edit: I checked on Rodocop's 76.2 pro release and this worked on 76.2 also.



Edited 1 time(s). Last edit at 12/22/2022 06:54PM by RJJIII.

Options: ReplyQuote
Re: Single window mode
Posted by: cpm1a_new
Date: December 23, 2022 05:24AM

sadly for 76.2.1 this doesnt work

>Those 2 preferences can be set from the big preferences dialog (F2) but they are a bit buried.
where do i set them?



Edited 1 time(s). Last edit at 12/23/2022 05:47AM by cpm1a_new.

Options: ReplyQuote
Re: Single window mode
Posted by: RJJIII
Date: December 23, 2022 08:58AM

Press F2 to open the preferences dialog.

Go to Browsing > Window Diversion (tab)

Set Open "Links meant to open in a new window" to "In a new tab" (middle option)

Under the "Popup Window Diversion" choose the top option.

Options: ReplyQuote
Re: Single window mode
Posted by: cpm1a_new
Date: December 23, 2022 09:50AM

on WinXP SP3 in both out-of-the-box and clean 76.2 and 76.2.1 i only have:

"Links meant to open a new window"
"URLs passed from external applications"

no middle option "In a new tab" for me. and Page Property Diversions has 3 grayed out checkboxes, so i cannot select anything
=========
strangely enough 76.2 forces all new windows into tabs just as i need. the prob is with KM76.2.1-Goanna-20200822 only



Edited 1 time(s). Last edit at 12/23/2022 10:03AM by cpm1a_new.

Options: ReplyQuote
Re: Single window mode
Posted by: RJJIII
Date: December 23, 2022 09:52PM

You're on the correct page. Those are the options to divert new window requests into the current window.

Quote
cpm1a_new
on WinXP SP3 in both out-of-the-box and clean 76.2 and 76.2.1 i only have:

"Links meant to open a new window"
"URLs passed from external applications"

no middle option "In a new tab" for me.
Directly below those 2 options you should have 3 radio bullets for current tab, new tab, and new window.

Quote

and Page Property Diversions has 3 grayed out checkboxes, so i cannot select anything
=========
strangely enough 76.2 forces all new windows into tabs just as i need. the prob is with KM76.2.1-Goanna-20200822 only
It's grayed out by default. Directly above it you should see "Popup Window Diversion"

I don't think I can give much more assistance since it's working for me. If I change settings on that page they pretty much immediately affect the popup in the link I posted.



Edit: also, when you say 76.2 I believe you're talking about Rodocop's "Pro" versions. These include a lot of customizations. It looks he fixed a bug that causes that bottom section to be grayed out. This is likely not relevant to the issue you're having where KM is not using your prefs, but if the preferences dialog looks different or if the default preferences are different this is why. For any OG's that see this thread, why didn't this fix ( http://kmeleonbrowser.org/forum/read.php?2,133934 ) go into the Goanna builds?



Edited 1 time(s). Last edit at 12/23/2022 10:07PM by RJJIII.

Options: ReplyQuote
Re: Single window mode
Posted by: JohnHell
Date: December 23, 2022 11:01PM

Quote
cpm1a_new
on WinXP SP3 in both out-of-the-box and clean 76.2 and 76.2.1 i only have:

"Links meant to open a new window"
"URLs passed from external applications"

no middle option "In a new tab" for me.

No middle option at all or disabled? Note that that option is only enabled if you have Tabbed Browsing enabled (which I don't (I'm one of those rare cases that don't like tabs))

Quote
cpm1a_new
and Page Property Diversions has 3 grayed out checkboxes, so i cannot select anything
=========
strangely enough 76.2 forces all new windows into tabs just as i need. the prob is with KM76.2.1-Goanna-20200822 only

Read the RJJIII reply.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.