搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

automatically load mobile version of Blogspot blogs?

  • 4 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 Marc Sances

more options

How do I force Firefox to load only mobile versions of Blogspot blogs?

Adding "Mobile" to a custom, site-specific useragent override works for Wordpress but not Blogspot:

general.useragent.site_specific_overrides = true general.useragent.override.blogspot.com = "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Mobile Firefox/17.0"

I can force the mobile version by appending "?m=1" to a Blogspot URL, but could I make Firefox do this automatically? I tried some URL regexp plugins, but to no avail…

thanks

How do I force Firefox to load only mobile versions of Blogspot blogs? Adding "Mobile" to a custom, site-specific useragent override works for Wordpress but not Blogspot: general.useragent.site_specific_overrides = true general.useragent.override.blogspot.com = "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Mobile Firefox/17.0" I can force the mobile version by appending "?m=1" to a Blogspot URL, but could I make Firefox do this automatically? I tried some URL regexp plugins, but to no avail… thanks

被選擇的解決方法

The issue was that I need to use a Webkit-based browser's useragent; this worked:

general.useragent.override.blogspot.com = "Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; HTC Vision Build/GRI40) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"

(solution courtesy this blog)

從原來的回覆中察看解決方案 👍 2

所有回覆 (4)

more options

選擇的解決方法

The issue was that I need to use a Webkit-based browser's useragent; this worked:

general.useragent.override.blogspot.com = "Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; HTC Vision Build/GRI40) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"

(solution courtesy this blog)

more options

Try an iPhone or Android override instead.

Firefox for Android is too new, and websites may detect it as desktop Firefox.

Try iPhone user agent for example:

Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3

more options

Yes, using the correct useragent was the issue.

Another question: Is it possible to force the mobile site to load even if the blog uses a custom (non- *.blogspot.*) URL? thanks

more options

That's a Blogger related thing, so ask in Blogger support for it.