rem: doc.getElementById('torbutton_gopherProxy').value = 'localhost'; 
add: doc.getElementById('torbutton_gopherProxy').value = proxy_host; 
context: function torbutton_prefs_set_field_attributes(doc){    torbutton_log(4, "called prefs_set_field_attributes()");    doc.getElementById('torbutton_panelStyle').setAttribute("disabled", !doc.getElementById('torbutton_displayStatusPanel').checked);    doc.getElementById('torbutton_panelStyleText').setAttribute("disabled", !doc.getElementById('torbutton_displayStatusPanel').checked);    doc.getElementById('torbutton_panelStyleIcon').setAttribute("disabled", !doc.getElementById('torbutton_displayStatusPanel').checked);    doc.getElementById('torbutton_usePrivoxy').setAttribute("disabled", doc.getElementById('torbutton_settingsMethod').value != 'recommended');    var proxy_port;    if (doc.getElementById('torbutton_usePrivoxy').checked)        proxy_port = 8118;    else        proxy_port = 9050;    if (doc.getElementById('torbutton_settingsMethod').value == 'recommended') {        torbutton_log(5, "using recommended settings");        if (!m_socks_pref_exists)        {            doc.getElementById('torbutton_httpProxy').value = 'localhost';            doc.getElementById('torbutton_httpPort').value = proxy_port;            doc.getElementById('torbutton_httpsProxy').value = 'localhost';            doc.getElementById('torbutton_httpsPort').value = proxy_port;            doc.getElementById('torbutton_ftpProxy').value = 'localhost';            doc.getElementById('torbutton_ftpPort').value = proxy_port;            doc.getElementById('torbutton_gopherProxy').value = 'localhost';            doc.getElementById('torbutton_gopherPort').value = proxy_port;        } else {            // if we decide to disable privoxy by default, change these four lines            doc.getElementById('torbutton_httpProxy').value = 'localhost';	// = ''            doc.getElementById('torbutton_httpPort').value = proxy_port;	// = 0            doc.getElementById('torbutton_httpsProxy').value = 'localhost';	// = ''            doc.getElementById('torbutton_httpsPort').value = proxy_port;	// = 0            doc.getElementById('torbutton_ftpProxy').value = '';            doc.getElementById('torbutton_ftpPort').value = 0;            doc.getElementById('torbutton_gopherProxy').value = '';            doc.getElementById('torbutton_gopherPort').value = 0;        }        doc.getElementById('torbutton_socksHost').value = 'localhost';        doc.getElementById('torbutton_socksPort').value = 9050;        doc.getElementById('torbutton_httpProxy').disabled = true;        doc.getElementById('torbutton_httpPort').disabled = true;        doc.getElementById('torbutton_httpsProxy').disabled = true;        doc.getElementById('torbutton_httpsPort').disabled = true;        doc.getElementById('torbutton_ftpProxy').disabled = true;        doc.getElementById('torbutton_ftpPort').disabled = true;        doc.getElementById('torbutton_gopherProxy').disabled = true;        doc.getElementById('torbutton_gopherPort').disabled = true;        doc.getElementById('torbutton_socksHost').disabled = true;        doc.getElementById('torbutton_socksPort').disabled = true;    } else {        doc.getElementById('torbutton_httpProxy').disabled = false;        doc.getElementById('torbutton_httpPort').disabled = false;        doc.getElementById('torbutton_httpsProxy').disabled = false;        doc.getElementById('torbutton_httpsPort').disabled = false;        doc.getElementById('torbutton_ftpProxy').disabled = false;        doc.getElementById('torbutton_ftpPort').disabled = false;        doc.getElementById('torbutton_gopherProxy').disabled = false;        doc.getElementById('torbutton_gopherPort').disabled = false;        doc.getElementById('torbutton_socksHost').disabled = false;        doc.getElementById('torbutton_socksPort').disabled = false;    }}
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/2f1c733af875eb058ed3b03f30404944e81a50a6/preferences.js/clean/src/chrome/content/preferences.js