Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
macro useragents2018
Posted by: siria
Date: December 17, 2017 02:31AM



NEW menu options:
- Open useragents defaults file in editor (restart to import changes)
- Restore the last manually typed custom string after toggles
- For defined sites+strings AUTOMATIC switcher possible
. . . (native gecko-function, but only for newest KM-versions)
- Includes toggle for Firefox "CompatMode" (replace separate mode-macro)
- Includes toggle for Goanna-builds "CompatMode"
- Option for Popup-Help for some functions
- The Menu counter now has a fix limit, this allows to have holes in the UA-numbering without breaking the menu (change limit in file, currently max 30)

UPDATE:
If you see no strings in the list, you can download a little example list from the next post below (useragents2018.js)

IMPORTANT!
An old Multi-Switcher extension can block this macro, and block faking the global UA.
Open about:config and check that this pref either does not exist or set it to zero:
kmeleon.privacy.useragent.Count=0



Edited 5 time(s). Last edit at 07/09/2018 07:52AM by siria.

Attachments: useragents2018_menu.png (9.6 KB)   useragents2018_v2.01b.7z (8.1 KB)  
Options: ReplyQuote
Re: macro useragents2018
Posted by: rodocop
Date: December 17, 2017 12:47PM

Great one!

I'll try it and going to translate to russian

Options: ReplyQuote
Re: macro useragents2018 / UA example list
Posted by: siria
Date: December 17, 2017 03:51PM

Have now included a little UA-list in the attachment above grinning smiley



Update:
now think separate downloads for macro and for list are better,
in case users have already their own one customized.
Newest list version attached HERE, put the js-file into folder:
../K-Meleon/browser/defaults/preferences/
(in old KM1.x into ../K-Meleon/defaults/pref)



Edited 3 time(s). Last edit at 07/09/2018 07:25AM by siria.

Attachments: useragents2018_menu2.png (11.9 KB)   useragents2018.js (4 KB)  
Options: ReplyQuote
Re: macro useragents2018
Posted by: siria
Date: December 18, 2017 12:40AM

User agents in K-MELEON PRO:

Cannot believe how long it took me to figure this one out, although it was right before my eyes all the time:

The embedded auto-switcher inside omni.ja does have an ON/OFF switch!!
There's just no menuline for it yet!

So, if someone uses KM-PRO and prefers global useragents as in the old times, and can live WITHOUT site-specific automatic, you can switch it off yourself:
open about:config, find "kmeleon.privacy.useragent.Count", right-click and change it to 0 - that's all!
And also DISABLE the whole macro, or otherwise it restores that Count-pref again at next startup.

Now you can install other useragent macros, for GLOBAL settings, and they will start working.

Little offline tests work - or am I missing something...??



And more testing showed, that it's rather easy to edit that file in omni.ja manually, and after tinkering a bit with the code, inserting a few lines, it can actually respect a GLOBAL fake setting AND still overwrite it for some defined automatic sites!
That needs a bit tinkering to with the alternative macro for global settings, that one simply must write one additional pref after changing the global UA, but that's quite easy.



(sig) New unofficial K-Meleon 76.4 (KMG76.4) available, in own subforum.
Based on Goanna engine, called 'test' builds forever but more stable as 75.1 acc. forum members. It's 1-2 generations ahead of predecessor KM76RC-2016
K-Meleon FAQ (link missing in forum sidebar)
Tips&Tricks - Learning new stuff every day
New to K-Meleon? What do you like? What not?



Edited 5 time(s). Last edit at 12/18/2017 12:49AM by siria.

Options: ReplyQuote
Re: macro useragents2018
Posted by: PepdeSanta
Date: February 12, 2020 06:59PM

Hello,

I installed useragent2018 on KM76.2-Goanna-20191109. It works well.

But I can't visit the whatsapp web site https://web.whatsapp.com/, which tells me to update my browser (google chrome up to 49, or Firefox, Edge, Opera), even if I switch the user agent on a recent browser (chrome 63 for exemple).

How could I resolve this? Anyone have an idea?

Thanks in advance.

Options: ReplyQuote
Re: macro useragents2018
Posted by: siria
Date: February 13, 2020 10:30PM

Quote
PepdeSanta
I can't visit the whatsapp web site https://web.whatsapp.com/, which tells me to update my browser (google chrome up to 49, or Firefox, Edge, Opera), even if I switch the user agent on a recent browser (chrome 63 for exemple).
How could I resolve this? Anyone have an idea?

Can't test myself, but try the useragent string mentioned here:
https://forum.palemoon.org/viewtopic.php?t=22288

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36

Meanwhile some sites insist on newer engines, like NewMoon28, no idea if whatsapp is affected too.
(And have read somewhere it may require "serviceworker" enabled in about:config?)

Just a little tip if anyone wants to look up updated UA strings in newer builds, without needing to update the whole browser:
after downloading a new build of KG76 or NewMoon27, it can be opened with the 7z filemanager, and
the current list of domain UAs is found in /omni.ja/gecko.js

Options: ReplyQuote
Re: macro useragents2018
Posted by: PepdeSanta
Date: February 14, 2020 03:05AM

Hello,

I changed the useragent string mentioned:

Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/666.0.0.0 Safari/537.36

and it worked perfectly!

Thank you very much!

Options: ReplyQuote
Re: macro useragents2018
Posted by: PepdeSanta
Date: February 19, 2020 01:14AM

Just for info:

I had to change again the useragent string to an higher one (Chrome/666.0.0.0 does not work any more for me). I put Chrome/80.0.0.0 and I could visit again https://web.whatsapp.com/

By the way, what is the omni folder? I uncompacted it and I found some chrome stuff in it. What is it for?

thanks,

KM76.2-Goanna-20200201 on linux, with useragent 2018 and KMTor4 working well.



Edited 1 time(s). Last edit at 02/19/2020 01:22AM by PepdeSanta.

Options: ReplyQuote
Re: macro useragents2018
Posted by: JohnHell
Date: February 19, 2020 03:15PM

OFF-TOPIC

Quote
PepdeSanta
By the way, what is the omni folder? I uncompacted it and I found some chrome stuff in it. What is it for?

Omni.ja is common in Gecko based browsers and holds the XUL interface and core files. It isn't something to fiddle with. In K-meleon there are two, one the default and the other the own preferences panel interface and other files.

If you don't know what are you doing, don't fiddle with them.

Options: ReplyQuote
Re: macro useragents2018
Posted by: PoisonHeart
Date: May 27, 2020 04:44PM

How to make mobile sites open by default? Safari mobile is constantly taking off =(((



Edited 1 time(s). Last edit at 05/27/2020 07:30PM by PoisonHeart.

Options: ReplyQuote
Re: macro useragents2018
Posted by: JohnHell
Date: May 27, 2020 08:47PM

Quote
PoisonHeart
How to make mobile sites open by default? Safari mobile is constantly taking off =(((

You can't. It depends a lot on the server.

But I don't know if you understand that this is a macro for K-meleon; and I can't understand myself what has to do with Safari mobile.

Options: ReplyQuote
Re: macro useragents2018
Posted by: win2kfan
Date: June 18, 2023 06:05PM

Does it work with K-Meleon 74 on Goanna 2.2 (palemoon-26.5) for Win2000?

Options: ReplyQuote
Re: macro useragents2018
Posted by: JohnHell
Date: June 19, 2023 02:53PM

Yes, as siria tells in the kmm file header.

But changing the user agent won't fix this:
http://kmeleonbrowser.org/forum/read.php?19,146040,157427,page=6#msg-157427

Today anti-spam/bots/parsers measures really require the latest javascript functions. That won't be provided by any K-meleon version for latest "checks". Only latest Chromium based browsers, Firefox and maybe Goanna based browsers.

Options: ReplyQuote
Re: macro useragents2018
Posted by: win2kfan
Date: June 19, 2023 04:51PM

Thank you for the useful information, JohnHell smiling smiley

Options: ReplyQuote


K-Meleon forum is powered by Phorum.