← Back to team overview

ubuntu-phone team mailing list archive

Re: User agent on ubuntu touch

 

Hi Phil

thanks for your reply.

I do not want to reinvent/recompile a browser only to modify a literal.
For me the solution is to get it configurable (by gui or config text file).

I have seen a "wish list" for needed UT apps. There was a scope for slack.com.
Imagine we had a configurable (e.g.: radio button from predefined strings):
Your effort for twitter as the effort needed for the slack scope could be user for other needs...

Best regards
Hans

On 06/01/2016 12:21 PM, Phil wrote:
On Wed, 1/6/16, Hans Mayer <hans.mayer@xxxxxxx> wrote:

  Subject: [Ubuntu-phone] User agent on ubuntu touch
  To: ubuntu-phone@xxxxxxxxxxxxxxxxxxx
  Date: Wednesday, 1 June, 2016, 9:35
Hello, Is there a possibility to change the user agent the web
  browser on UT
  sends to sites?
  E.G. slack.com does not support UT. When opening the site, I
  have no
  access to channels.
  If I can say "i am a desktop", the displayed data would be
  the same as
  on PC. This is ok on a Meizu 5 PRO.

  --
  Best Regards
  Hans
--------------------------------------------
I don't think you can do this from the browser settings, however if you create a new web app (and, I guess, you could create a whole general browser by not putting a URL pattern restriction in) you can specify the user agent.  For example I created a "full-fat" app to access the Twitter site, as certain functions are restricted/.blocked on the mobile site, my app's Exec line set up a desktop agent to send:-

Exec=webapp-container --enable-back-forward --store-session-cookies --user-agent-string="Mozilla/5.0 (Linux; Ubuntu) AppleWebKit/537.36 Chromium/35.0.1870.2 Safari/537.36" --webappUrlPatterns=https?://*.twitter.com/*,https?://twitter.com/* http://twitter.com %u

You could then package this as a click package and then manually install it on your device
Phil
  --
  Mailing list: https://launchpad.net/~ubuntu-phone
  Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
  Unsubscribe : https://launchpad.net/~ubuntu-phone
  More help   : https://help.launchpad.net/ListHelp


--
Best Regards
Hans



References