[Mobile Education](Root) Make Chrome browser for Android, use the desktop user agent by default.

razor512razor512 United States Posts: 2,532 ✭✭✭✭✭✭✭✭

Requirements:

  1. Rooted smartphone or tablet
  2. Text editor (notepad)
  3. Any computer with can run the text editor
  4. Some way of copying files to your phone or tablet (USB, WiFi, email, etc.)
  5. A file manager for android (use your favorite one)

As many of us will have experienced, most websites with a mobile version, pretty much have the mobile version as an afterthought. This is the case when the mobile has less functionality/ content as compared to the desktop site, e.g., some news sites will remove the comment sections of articles on the mobile page.

Furthermore, devices like tablets are often not fit for a mobile version of a web page, yet some sites insist on using the mobile version.

In an effort to fix this annoyance, there is a great tweak you can make if you have a rooted device in order to permanently fix this issue.

Step 1: Open notepad on your PC

Step 2: Paste the following text into notepad: chrome --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.1"

It should look like this:

step-2.jpg

Step 3: In Notepad, click on File > Save

step-3.jpg

Step 4: Name the file without the "": "chrome-command-line"

step-4.jpg

Step 5: In windows go to folder options by pressing Windows + R, and then typing in without the "": "control.exe folders", and then press enter.

step-5.jpg

Step 6: In the folder options, go to the "View" tab, and then uncheck "Hide extensions for known file types", and then apply the changes. You can recheck it later when you are done with the next two steps.

Step-6.jpg

Step 7: Right click on the chrome-command-line file that you created, and then click on Rename.

step-7.jpg

Step 8: Remove the .txt extension from the filename. After that, click on "Yes" to accept the change to the file name.

Step-8.jpg

Step 9: copy the "chrome-command-line" to your smartphone.

Now on your smartphone, use the file browser of your choice (I am using ES file explorer for this tutorial).

Step 10: Copy the "chrome-command-line" file to /data/local on your smartphone.

Copy-instructions.gif

Step 11: Restart your smartphone.

Your user agent should now default to desktop mode.

final-result.jpg

Sign In or Register to comment.