firefox - How can I treat *one* tab on desktop browser as mobile?
2014-07
I want to be able to run two tabs of the same website, in the same browser, at the same time. The first tab should act normally and receive desktop versions. The second tab would be treated as a mobile browser and receive mobile versions.
How can I do this?
Edit
Apparently I've done a poor job asking. I want to know how I can have a single browser window with two tabs. The first tab uses the desktop version, the second uses the mobile version. Hopefully the screenshot below can help illustrate.
Firefox cannot easily do this without using a plugin of some sort such as Firebug. If you're not tied to Firefox, this is very easily done in Chrome using the built in Developer Tools. They include an Emulator tab which allows you to select a device (mobile or tablet) to emulate. It's not a perfect representation, but it will make the website believe you are the emulated device.
Firefox provides feature Responsive Design View
to view how websites look on different screen sized devices such as mobile phone and tablets.
Check on Firefox developers guide Responsive Design View
To activate Resposive Design View use Ctrl+Shift+M
I'd probably look at UserAgent switchers, possibly this one Depending on how the website detects "Mobile" you may need to alter other Client Request headers, maybe the screen size header.
You may want to check the user agent string of your mobile browser, to be able to clone it effectively.
One Caveat that there may be assumptions for mobile, such as that you're on a small screen on mobile, and it will look horrible on a desktop size screen. Try it, let us know :).
This depends entirely on how you have separated your desktop content from mobile content on the server-side.
- Are you using
www.example.com
andmobile.example.com
? - Are you using media queries within your CSS?
- Are you simply loading
style.css
andmobile.style.css
conditionally?
When opening new Internet Explorer window, a new browser session is issued. Therefore you can login with two different accounts on the same service (let's say gmail). The same does not apply when opening a new tab in the same window on IE.
How can I get a new browser session when opening a new tab or window on Firefox?
How about Google Chrome?
In Chrome you can use private browsing to achieve the same.
Chrome - Wrench(tools) menu/open new window without history
In Firefox you can use IE tab extension, and have another tab rendered with an IE engine to achieve the same effect.
Here are some other options: http://www.computer-realm.net/managing-multiple-gmail-accounts-with-firefox/
It seems that there is a handy chrome extension called "Session Buddy" that does just this
Session Buddy is a flexible session management extension that allows you to easily save, edit, and restore your browser sessions.
- Quickly save the current session from the Session Buddy interface or from the right-click menu on any web page.
- Flexible restore options allow restore of sessions into the original set of windows, a single window, or the current window.
- Automatic capture of your 10 most recent sessions is especially handy for recovering a session after a browser or system crash.
- Name and edit your saved sessions with ease.
- Populate a session from a simple list of URLs.
- Export a session to text or CSV format (more formats in development).
- Control the types of tabs that Session Buddy recognizes.
- Keyboard shortcuts make working with sessions a snap.
For Google Chrome, you can set a shortcut to open up an Incognito session via the following:
"C:\path-to\chrome.exe" /incognito
Or simply CTRL + Shift + N
while using the normal state. Only difference is that when you're incognito, the cookies and history won't stick.
By creating multiple profiles in the profile manager (firefox -p
from start menu) and then creating a MOZ_NO_REMOTE environment variable with a value of 1, Firefox will allow multiple sessions in multiple windows.
I've tried it myself with Firefox 8 and it works. I have an web application that has no logout button, and before I found this I had to keep opening and closing Firefox completely to switch between accounts (admin and user for testing). This has helped greatly.
This Firefox extension allows that:
Multifox is an extension that allows Firefox to connect to websites using different user names. Simultaneously!
For example, if you have multiple Gmail accounts, you can open them all at the same time. Each Firefox window, managed by Multifox, accesses an account without interfering each other
Each Multifox window is flagged with a number indicating the identity profile. Logins made in windows with different numbers are isolated.
Logins are preserved the same way they are in “regular” windows. Even if you close the window or quit Firefox.
The identity profile of each window is preserved when Firefox restores the session.
It can also easily switch between profiles:
I have made a Chrome extension that allows you to use multiple Gmail accounts (and other accounts) by launching Chrome in a new session.
It is called New Chrome Session, and you can download it here: http://www.musatcha.com/software/NewChromeSession/
With firefox this solution worked like a charme!!
http://www.fusioncube.net/index.php/multiple-sessions-firefox
It's almost the same of what proposed in the answer by "Shawn" "MOZ_NO_REMOTE environment variable with a value of 1" It adds an advice for creating multiple links on desktop for opening the different firefox sessions
Chrome is bringing multi profile. Already available in canary builds. You can switch profile instantly.