Jump to content

Merubah User Agent Firefox

From Wiki
Revision as of 21:17, 30 October 2021 by Kangtain (talk | contribs) (Created page with "===Open a new tab=== While Firefox has a standard settings interface for changing common settings, the interface for changing advanced settings such as the user agent in Firef...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Open a new tab

While Firefox has a standard settings interface for changing common settings, the interface for changing advanced settings such as the user agent in Firefox is done via the browser itself. Please open a blank window or tab.

Browse to "about:config"

In the address bar, type in about:config and press the "Go" arrow

Dismiss the warning

The "about:config" system will give you access to change special settings which might make your Firefox unusable or behave strangely. Firefox will give you a warning about this to make you aware of it.

As long as you follow the instructions here, you should be fine.

Create a new preference item

Pengaturan Firefox disimpan sebagai rangkaian Nama dan Nilai Preferensi. Tampilan awal "about:config" akan menunjukkan ratusan pengaturan yang digunakan Firefox. Anda dapat menggulirnya untuk melihatnya jika Anda penasaran. Berhati-hatilah untuk tidak mengubah apa pun secara tidak sengaja!

Pengaturan untuk mengubah agen pengguna Anda tidak ada di instalasi default Firefox; Anda perlu membuatnya sendiri.

Untuk melakukan itu, Anda dapat Klik Kanan di mana saja pada daftar preferensi dan pergi ke item "Baru" yang akan ada di menu yang muncul. Item menu "Baru" kemudian diperluas untuk menampilkan tiga opsi: "String", "Integer" dan "Boolean".

Buat preferensi "String" baru dengan mengkliknya.

Firefox akan menanyakan nama Preferensi baru Anda: masukkan general.useragent.override dan Tekan "OK"

Anda kemudian diminta untuk nilai agen pengguna yang ingin Anda gunakan. Anda dapat menempelkan atau mengetikkan agen pengguna apa pun yang perlu Anda gunakan.

Contoh user agent:

Mozilla/5.0 (X11; Linux x86_64;  rv:78.0) Gecko/20100101 Firefox/78.0
Mozilla/5.0 (X11; Kali Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0

Setelah Anda memasukkan string agen pengguna yang Anda inginkan, tekan "OK" lagi. Firefox sekarang akan menggunakan agen pengguna itu ketika Anda membuat permintaan.

Close the Preferences window

Now that you have selected your default browser for macOS, you can close the Preferences window (by clicking the red dot in the top-left corner) and resume your web browsing.

Resetting your user agent in Firefox

Firefox will continue to use the user agent you've set until you delete the preference you've created.

To do that, search for the general.useragent.override preference in the "about:config" window; if you've still got the preference in your system, it will appear, displaying what you've changed it to. If it doesn't appear then Firefox presumably isn't overriding your user agent any more. Double check what Firefox is sending as your user agent. Maybe the setting has already been reset?

Once you have found the preference that is overriding your user agent, get rid of it by Right-Clicking on it and selecting "Reset".

The preference item will still stay there but it will no longer be bolded, the value column will be emptied. Your user agent is now reset back to it's default firefox user agent. The next time you start Firefox it will disappear completely.

You have now changed (or reset!) your user agent string in Firefox. We hope this guide was useful.

If you need to parse user agents in your system, please check out our User Agent Parsing API. It will make your life much easier!