Bugs :  K-Meleon Web Browser Forum
You can talk about issues with k-meleon here.  
I can't upload images on twitter and mobile twitter
Posted by: inter_rex
Date: July 21, 2019 06:56AM

Hi, every one

Before I could get in twitter and upload images on https://mobile.twitter.com/ but now they says:

"Something went wrong, but don’t fret — let’s give it another shot" or
"Ups! we did something wrong, Try again"

I only see https://mobile.twitter.com/ but turning off Javascript in a version that can't upload images.

I want to get in twitter and upload images on https://mobile.twitter.com/

Can someone help me?

Options: ReplyQuote
Re: I can't upload images on twitter and mobile twitter
Posted by: anonymous
Date: July 21, 2019 01:20PM

@inter_rex
If KM sends no UA or a mobile UA, it gets a basic interface using scripts from a different server. It may support uploading images.

Options: ReplyQuote
Re: I can't upload images on twitter and mobile twitter
Posted by: inter_rex
Date: July 25, 2019 05:12AM

Quote
anonymous
@inter_rex
If KM sends no UA or a mobile UA, it gets a basic interface using scripts from a different server. It may support uploading images.

Hi, What is UA? How can I get a different server?? I don't understand, What is the solution you propose?

Options: ReplyQuote
Re: I can't upload images on twitter... / HOWTO useragents
Posted by: siria
Date: July 25, 2019 06:46AM

_HowTo_ useragents

UA = UserAgent
When you open the menu Help > About K-Meleon you can check how the browser identifies itself towards websites.
Claiming to be another browser and/or system is the usual trick when a website won't let someone in, for no real reason. Doesn't work always, but in most cases

For example you want to see a mobile website, but the browser tells the server that it's a desktop browser. Most smaller sites don't care because they send the same pages to all browsers anyway. But some major websites are 'clever', and send "automatically" (or stubbornly) to all desktop browsers always the desktop layout too, even if they called the mobile URL. Some sites have a little link somewhere to switch to the desktop version or to the mobile version manually, but not all.

To persuade such sites to send you the mobile version anyway, it usually helps to fake the browser UserAgent and claim to be, for example, a windows phone:
Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0)
My personal favorite just for reading, NOT for scripts, is ancient IE7 on XP, because nowadays this often gets delivered old "classic" or mobile layouts too. Those are much lighter, good for weak machines. But only use if you KNOW what you're doing (=important scripts and functions may not work with IE7)
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)

To fake the UserAgent globally, for "all normal" sites, the fake string must be in this pref, which you can check on about:config:
general.useragent.override = Mozilla...
This global string is usually toggled by a macro menu.
If it doesn't exist, the browser sends the normal default string.

But most sites don't need a fully faked string. All they look for is a major browser name to decide which page version to send you, either for Chrome, Firefox, Safari or Edge, the major ones. In such easy cases it helps to toggle the Firefox Compatibility pref, which just appends a fake "Firefox" version to the default UA.
In KM-Goanna76.x this pref is:
general.useragent.compatMode = 2 (type INT, 0=pure KM, 1=gecko, 2=firefox)
In old KM74-76 Gecko, and KG74 it's different: general.useragent.compatMode.firefox = true
Most users keep this setting permanently.
This setting is usually toggled by a macro menu too.

Special cases:
If you visit a certain site often, which does need a fully faked string, it's bothersome to always toggle the UA manually. In such cases you can STORE site-specific useragents, which KM will then send automatically whenever you visit that site.
For example to automatically send to "mobile.twitter.com" another UA-string as your usual one, KM-Goanna (74+76) can store those in such a pref:
general.useragent.override.mobile.twitter.com = Mozilla...

And because browser developers want to make things easier for users, browsers can come with a bunch of PREDEFINED site UAs included already out-of-box. For some well known major websites, which only work correctly with certain UA strings. Sometimes those strings can be quite tricky to figure out. Some websites want a Chrome string, others a Firefox string, the next one plain refuses to send videos if the string declares to come from an XP-system, etc.
Those predefined strings save a lot of trouble, the only catch is:
those websites often change their code, and the predefined UA stops working.
But most users aren't even aware they are sending those websites a special string, and can't figure out what's wrong.

All SITE UAs can be checked on about:config too.
Just open "about:config" page and filter for "agent" to see all settings related to UA stuff.
If you reset a Site-UA but it won't go away, it's one of those predefined inside omni.ja
To disable it, do not reset it on about:config, only give it an empty value. Then KM will ignore this line.
Another possibility is that you defined it yourself as "default" pref, in a file in ..K-Meleon/browser/defaults/preferences, or perhaps in ..KM/defaults/pref. Then change or delete it there.

HUGE PROB:
Dorian once decided to remove the old useragents macro, which could toggle the global UA, hoping that the Firefox Compat setting would suffice. Of course, it did not.
But the site-specific websites work anyway, only most users have no clue this happens or how to fake the UA manually now.

I strongly recommand to install the updated macro useragents2018:
http://kmeleonbrowser.org/forum/read.php?9,143898
The menu covers all options for all KM-versions, incl. site-UAs.
(Users of PRO and others who find this quirky pref in their about:config, must set it to zero to allow the native functions to work:
kmeleon.privacy.useragent.Count = 0 )



You need 2 files:
the macro file of course, goes into the macros folder:
http://kmeleonbrowser.org/forum/file.php?9,file=1766,filename=useragents2018_v2.01b.7z

And a list of UA-strings for the MENU, to choose the GLOBAL UA pref.
A little example-list from last year, goes into ../K-Meleon/browser/defaults/preferences:
http://kmeleonbrowser.org/forum/file.php?9,file=1593,filename=useragents2018.js

Then restart and find the menu in "Tools".
Or unhide the toolbar button in toolbars.cfg

If you know all this long since and were just confused by the cryptic UA abbreviation, never mind. It may help some future readers too smiling smiley



Edited 4 time(s). Last edit at 07/25/2019 07:23AM by siria.

Options: ReplyQuote
Re: I can't upload images on twitter and mobile twitter
Posted by: siria
Date: July 26, 2019 02:38AM

Meanwhile noticed, the web is full with complaints about Twitters major redesign!
And no chance to opt out anymore. The part that worries me, they are planning to "unite" the desktop and the mobile layout. Just hope that doesn't mean the mobile layout will completely vanish soon too!

But this: whoa...
https://mobile.twitter.com/Xiatian/status/1154088999658676224?p=v

Options: ReplyQuote
Re: I can't upload images on twitter... / HOWTO useragents
Posted by: siria
Date: August 02, 2019 06:56AM

It keeps me riddling why no one using KM-Goanna 76.x seems to have any problems with the broken Firefox compatmode? Or just no one cares? No one does any real browsing with KG76...? Or everyone using a permanent fake useragent? Or do useragent-compats in KG76 work differently as in PaleMoon27? Or is it NOT broken??? But that would also contradict my own little offline tests 1-2 years ago...

The 2 native compat macros both toggle since years only this KM-gecko 74-76 pref:
general.useragent.compatMode.firefox = true/ false

But PaleMoon27 / KM-Goanna 76x understand only:
general.useragent.compatMode = 0/1/2

While searching something else have now stumbled across this post in the PaleMoon forum:
https://forum.palemoon.org/viewtopic.php?t=13501#p95732
Quote

Re: Preference changes in PM 27 - overview
post by Moonchild » 2016-10-24, 19:51

A quick overview of some changed preferences:

Useragent:
general.useragent.compatMode.gecko - No longer exists in v27
general.useragent.compatMode.firefox - No longer exists in v27
has become -> general.useragent.compatMode // 0=Native, 1=Gecko compatibility, 2=Firefox compatibility

Funnily, the OLD pref was later resurrected again in PaleMoon28, together with a separate gecko-compat-pref, but in PaleMoon27 it definitely does NOT work.

Edit:
have meanwhile figured why there seem no probs with the broken Firefox compat toggle in KM-Goanna: It's simply always ON, it's the default setting!



Edited 1 time(s). Last edit at 08/31/2019 09:41AM by siria.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.