We have moved to a new Sailfish OS Forum. Please start new discussions there.

[Feature Request] User agents for Jolla Browser: Open website as Desktop/Mobile

asked 2013-12-25 23:10:40 +0300

DerJott gravatar image

updated 2014-11-29 16:13:16 +0300

pulsar gravatar image

Setting up the user agent is imho very important for a good browsing experience. I´m missing the feature to setup an own user agent.

Google Chorme for Android offers this feature known as "Request desktop site"


edit retag flag offensive close delete



While waiting for answers, you can often force the browser to show the mobile site via adding something to the url. In google sites (e.g. blog), adding /?m=1 to the end shows the mobile site - no matter what browser is used. However, forcing desktop view via removing that from the url doesn't work.

simo ( 2013-12-26 00:01:07 +0300 )edit

unfortunately there are websites which require a iphone string in the user agent to show the mobile version, anything else servers the desktop variant :-( as iphone is the only mobile device out there...

Kontio ( 2013-12-30 20:34:10 +0300 )edit

While still waiting, the user agent can be tweaked via developer mode. Or... You can use an Android Browser with a setting to enter it manually (like Dolphin browser)

simo ( 2014-01-02 04:18:24 +0300 )edit

how can it be tweaked via developer mode?

dan.socea ( 2014-01-10 23:53:58 +0300 )edit

One of the user agent options should be 'Android', for a proper mobile experience. This is my default setting in Evolution Browser in BB10, I avoid the native browser because it lacks this feature. Then just call all web statistics misleading.

pulsar ( 2014-11-28 01:39:59 +0300 )edit

2 Answers

Sort by » oldest newest most voted

answered 2014-01-14 02:23:18 +0300

simo gravatar image

updated 2014-01-14 02:26:23 +0300

As an answer to a comment by @dan.socea

  • The browser preferences are located at ~/.mozilla/mozembed/prefs.js Devel-su mode is needed.
    • property holding the user agent is called general.useragent.override
    • property called general.useragent.enable_overrides shouldn't need any changes.
    • the list of all properties is accessible also from Sailfish browser url about:config, but it only shows them.


  • Before doing any changes, make a copy of the original file with e.g. cp prefs.js prefs.js.backup
  • (or make a note of the original values to be able to undo the changes later)
  • Doublecheck everything to not to brick your Sailfish browser :)

This is not a detailed HowTo - for stability reasons. This is for users knowing what they're doing

edit flag offensive delete publish link more


Not working for me on

Wickedsten ( 2014-02-19 15:16:24 +0300 )edit

@Wickedsten, this one isn't an easy solution, but I just added another option as a new answer.

simo ( 2014-02-19 15:29:20 +0300 )edit

anyway, looks strange - I can modify f.ex. general.useragent.enable_overrides and see changes on about:config - but not the useragent.

Wickedsten ( 2014-02-19 15:57:20 +0300 )edit

Fiddling with prefs.js does NOT work. I've tried it, in different ways, but without result.

RobNas ( 2014-04-07 12:40:16 +0300 )edit

Tried and doesn't seem to work... has anybody succeeded using the latest version of sailfish (update 5)?

gabriel ( 2014-04-24 16:18:08 +0300 )edit

answered 2014-02-19 15:28:25 +0300

simo gravatar image

Another option while waiting: Install webcat from Jolla Store, in this Sailfish browser there's already an option to change the user agent (nice set of pre-defined agents, and possibility to write your own)

edit flag offensive delete publish link more


Yes, this works, thanks!

Wickedsten ( 2014-02-19 15:57:52 +0300 )edit

i did that. it works great. but still, it would be nice to have the option in the native browser :)

dan.socea ( 2014-02-19 20:12:14 +0300 )edit

This isn't a solution. It's a workaround.

RobNas ( 2014-04-07 12:40:41 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2013-12-25 23:10:40 +0300

Seen: 2,670 times

Last updated: Feb 19 '14