Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 03-01-2019, 10:02 PM   #1
price
Member
price began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Dec 2016
Device: Kobo Aura One
How to let websites identify kobo browser as "mobile" instead of "PC"?

eg, when i open inoreader.com with the build-in browser, it only shows a PC version of the webpage, no matter how i zoom in/out it. And sadly the url of both the mobile and pc version of inoreader.com are indentical.
So, are there any ways to change the UA of the browser, so the servers would identify it as a mobile phone?

Last edited by price; 03-01-2019 at 10:07 PM.
price is offline   Reply With Quote
Old 03-03-2019, 02:26 PM   #2
maximus83
Nameless Being
 
I haven't tried doing this with the Kobo browser and don't know if it's possible, but obviously you need to change the "user agent" string that is a configuration string in every client browser. Here's an example talking about how you can change it in desktop browsers: https://www.howtogeek.com/113439/how...ny-extensions/.

ETA: This discussion reminded me I had been wanting to do this on my Android tablet, where I run Firefox browser and a lot of the websites serve up content as if my 7" Nexus tablet is a larger tablet. Instead, I want them to serve pages to this tablet as if it's a mobile device. This article described concisely how to go into the about:config, add a custom configuration setting, and specify my own user agent. Found the user agent values for mobile here, and it works great! Now if only it were that simple with Kobo's browser. Somehow, I'm guessing that it's not going to be. :-( Most browsers don't make things as user-configurable as Firefox, and even less so a dedicated device like a reader.

You might try raising this question in the Kobo developer subforum. I searched "user agent" there, and a only a handful of threads came up, like this one by davidfor:

https://www.mobileread.com/forums/sh...ght=user+agent

Last edited by maximus83; 03-03-2019 at 07:46 PM.
  Reply With Quote
Advert
Old 03-04-2019, 03:58 AM   #3
price
Member
price began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Dec 2016
Device: Kobo Aura One
Quote:
Originally Posted by maximus83 View Post
I haven't tried doing this with the Kobo browser and don't know if it's possible, but obviously you need to change the "user agent" string that is a configuration string in every client browser. Here's an example talking about how you can change it in desktop browsers: https://www.howtogeek.com/113439/how...ny-extensions/.

ETA: This discussion reminded me I had been wanting to do this on my Android tablet, where I run Firefox browser and a lot of the websites serve up content as if my 7" Nexus tablet is a larger tablet. Instead, I want them to serve pages to this tablet as if it's a mobile device. This article described concisely how to go into the about:config, add a custom configuration setting, and specify my own user agent. Found the user agent values for mobile here, and it works great! Now if only it were that simple with Kobo's browser. Somehow, I'm guessing that it's not going to be. :-( Most browsers don't make things as user-configurable as Firefox, and even less so a dedicated device like a reader.

You might try raising this question in the Kobo developer subforum. I searched "user agent" there, and a only a handful of threads came up, like this one by davidfor:

https://www.mobileread.com/forums/sh...ght=user+agent
That's really sad. I thought there were some codes in the .kobo folder which can change this, but apparently it is much more complicated than i thought.
price is offline   Reply With Quote
Old 03-04-2019, 04:07 PM   #4
maximus83
Nameless Being
 
There may well be an easy way to do this on Kobo, I just haven't found what it is! From a couple of quick online searches and a scoped search here in MR, I can't find anything about it.

If you have time to check around yourself, it might be worth checking in some of the kobo .config files that are in folders on the device, and see if any of those contain a useragent string that could be tweaked.
  Reply With Quote
Old 03-04-2019, 05:53 PM   #5
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by maximus83 View Post
There may well be an easy way to do this on Kobo, I just haven't found what it is! From a couple of quick online searches and a scoped search here in MR, I can't find anything about it.

If you have time to check around yourself, it might be worth checking in some of the kobo .config files that are in folders on the device, and see if any of those contain a useragent string that could be tweaked.
There isn't anything I can see in the config file, or the area of the firmware that usually maps to config file entries. But, the useragent is a string in the firmware. A patch should be possible to change it.
davidfor is offline   Reply With Quote
Advert
Old 03-04-2019, 09:03 PM   #6
maximus83
Nameless Being
 
Quote:
Originally Posted by davidfor View Post
But, the useragent is a string in the firmware. A patch should be possible to change it.
What would be handy is if we could beg the dev team for a configurable textbox in the "Developer settings" that displays the default user agent string, and has a toggle button that would let you select "Custom useragent string" and supply a custom value if desired. Or toggle to return to "Default value" later, if needed, in case a custom useragent experiment fails miserably.

Of course, there may not be much demand for this. I suspect many users, like me, aren't using the included browser enough to make it worth while. I find the experience of trying to use anything other than the ereader app on these e-ink devices to be so frustrating, I just don't do it anymore. See my post in the Android section about updating my Nexus 7 to Android 8.1, and then using the "reading mode" (grayscale) setting. IMO, THAT is the way to go if you really want a nice Android-based reading experience, and can still run real Android apps and browse the web with no limitations.
  Reply With Quote
Old 03-05-2019, 09:50 AM   #7
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by davidfor View Post
There isn't anything I can see in the config file, or the area of the firmware that usually maps to config file entries. But, the useragent is a string in the firmware. A patch should be possible to change it.
A patch can change it. It's just simple string replacement. Make sure you replace the one which does have the version (there are different UAs for the browser and for the APIs).

Last edited by geek1011; 03-05-2019 at 10:09 PM.
geek1011 is offline   Reply With Quote
Old 03-05-2019, 05:53 PM   #8
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by geek1011 View Post
A patch can change it. It's just simple string replacement. Make sure you replace the one which doesn't have the version (there are different UAs for the browser and for the APIs).
I don't patch, so I'm not going to do it, I thought you would

But, what do you mean by "doesn't have the version"? I can see two strings:

Code:
Mozilla/5.0 (Linux; U; en-us;) AppleWebKit/%1 (KHTML, like Gecko) Version/4.0 Mobile Safari/%1 (Kobo Touch)

Mozilla/5.0 (Linux; U; Android 2.0; en-us;) AppleWebKit/%1 (KHTML, like Gecko) Version/4.0 Mobile Safari/%1 (Kobo Touch %2/%3)
The latter is what is what I see when I use a user agent reporting site.
davidfor is offline   Reply With Quote
Old 03-05-2019, 10:13 PM   #9
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by davidfor View Post
I don't patch, so I'm not going to do it, I thought you would

But, what do you mean by "doesn't have the version"? I can see two strings:

Code:
Mozilla/5.0 (Linux; U; en-us;) AppleWebKit/%1 (KHTML, like Gecko) Version/4.0 Mobile Safari/%1 (Kobo Touch)

Mozilla/5.0 (Linux; U; Android 2.0; en-us;) AppleWebKit/%1 (KHTML, like Gecko) Version/4.0 Mobile Safari/%1 (Kobo Touch %2/%3)
The latter is what is what I see when I use a user agent reporting site.
Oops, that's a typo. I meant the one which does, which is the second one as you said. The %1 is the Qt WebKit version (538.1 for me), the %2 is the last 4 digits of the device ID, such as 0375, and the %3 is the firmware version.
geek1011 is offline   Reply With Quote
Old 03-06-2019, 10:34 AM   #10
maximus83
Nameless Being
 
Quote:
Originally Posted by geek1011 View Post
Oops, that's a typo. I meant the one which does, which is the second one as you said. The %1 is the Qt WebKit version (538.1 for me), the %2 is the last 4 digits of the device ID, such as 0375, and the %3 is the firmware version.
In your opinion: Is tweaking the UA string on the Kobo browser going to make a useful/meaningful difference? I found its performance so awful as to be unusable and gave up on it. And by 'performance', I mean both 'how it renders pages' and 'how quickly it renders pages.' Of course, that's just me. I'm probably spoiled with good net bandwidth at work and home, and my other devices are more snappy, even my old Nexus 7 tablet from 2013. Using the e-ink device browsers on my Kobo or PW4 feels to me like sitting there and watching paint dry on a wall.
  Reply With Quote
Old 03-06-2019, 05:46 PM   #11
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by maximus83 View Post
In your opinion: Is tweaking the UA string on the Kobo browser going to make a useful/meaningful difference? I found its performance so awful as to be unusable and gave up on it. And by 'performance', I mean both 'how it renders pages' and 'how quickly it renders pages.' Of course, that's just me. I'm probably spoiled with good net bandwidth at work and home, and my other devices are more snappy, even my old Nexus 7 tablet from 2013. Using the e-ink device browsers on my Kobo or PW4 feels to me like sitting there and watching paint dry on a wall.
I really don't know. The initial request was about seeing the mobile version of a site rather than than the desktop version. A few years ago, that would have meant a lower bandwidth site with simpler controls. Now, I'd wonder if it was the other way around. It will probably depend on the site. But, the browser is old enough and lacks a lot of function, so that it won't be able to take advantage of many sites.
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
There are "RSS reader" and "mail client" hacks for kobo? Seninha Kobo Reader 2 09-30-2014 11:02 PM
New recipe for "Süddeutsche Zeitung" using "E-Paper mobile" subscription Ernst Recipes 3 02-16-2013 07:37 AM


All times are GMT -4. The time now is 07:31 PM.


MobileRead.com is a privately owned, operated and funded community.