Advertisement

Thursday, January 10, 2008

Firefox ကို ဘယ်လို hack မလဲ။

Firefox ကို ဘယ်လို hack ရမလဲဆိုတာ ဖော်ပြပေးသွားမှာဖြစ်ပါတယ်။
Firefox browser ရဲ့ url/address bar ထဲမှာ about:config လို့ရိုက်ထည့်လိုက်ပါ။
ပေါ်လာတဲ့ prompt box ကို click နှိပ်ပေးပါ။ ပြီးတော့ search box ထဲမှာ ဥပမာ general.smoothScroll ဆိုပြီး ရိုက်ထည့်လိုက်ပါ။ တွေ့ရင် အောက်မှာပါတဲ့ အတိုင်း value တွေ
ပြောင်းပေးဖို့လိုပါတယ်။

အထဲက lines တွေကို အောက်မှာပါတဲ့ values တွေနဲ့အစားထိုးပါ။ မပါသေးတာတွေ ဆိုရင် ဖြည့်ထည့် ပေးပါ။ နံပါတ် ၁ စာကြောင်းမှာဆိုရင် general.smoothScroll က name ဖြစ်ပြီးတော့ true ဆိုတာက value ပါ။
နောက်တစ်နည်းကတော့ firefox ကိုပိတ်လိုက်ပါ။ prefs.js file ကိုရှာပါ (သာမန်အားဖြင့် windows user တွေမှာဆိုရင် Application Data\Firefox\Profiles\ ထဲမှာရှိတတ်ပါတယ်။)အဲဒိ file ကို backup အရင်လုပ်ထားပါ။နောက်လိုရင် ပြန်သုံးလို့ရတာပေါ့။အောက်မှာရေးသားထားတဲ့စာကြောင်းတွေကို prefs.js file ရဲ့ အောက်ဆုံးစာကြောင်းအောက်ကနေpaste လုပ်လိုက်ပါ။ပြီးရင် save လုပ်ပြီးbrowser ကို ပြန်ဖွင့်လိုက်ပါ။

user_pref("general.smoothScroll", true);
user_pref("keyword.URL", "http://google.com/search?btnG=Google+Search&q=")
user_pref("browser.chrome.site_icons", true);
user_pref("browser.chrome.favicons", true);
user_pref("advanced.system.supportDDEExec", false);
user_pref("backups.number_of_prefs_copies", 5);
user_pref("content.notify.ontimer", true);
user_pref("content.notify.interval", 100);
user_pref("content.notify.backoffcount", 200);
user_pref("network.http.pipelining", true);
user_pref("network.http.proxy.pipelining", true);
user_pref("network.http.pipelining.firstrequest", true);
user_pref("network.http.pipelining.maxrequests", 100);
user_pref("network.http.max-connections", 60);
user_pref("network.http.max-connections-per-server", 32);
user_pref("network.http.max-persistent-connections-per-proxy", 16);
user_pref("network.http.max-persistent-connections-per-server", 8);
user_pref("nglayout.initialpaint.delay", 0);
user_pref("plugin.expose_full_path", true);
user_pref("accessibility.typeaheadfind", true);
user_pref("accessibility.typeaheadfind.autostart", true);
user_pref("accessibility.typeaheadfind.linksonly", false);
user_pref("accessibility.typeaheadfind.startlinksonly", false);
user_pref("accessibility.typeaheadfind.timeout", 3000);

စာကြောင်းရေ (၁၀ ကနေ ၁၈)အထိက မြန်အောင်လုပ်တာပါ။
အသေးစိတ်ကို ဒီအောက်မှာကြည့်ပါ။
http://www.mrtech.com/news/messages/2977.html

Hacking Firefox

FYI: Great Collection of Mozilla/Firebird Hacks
Posted by M. Reyes on July 29, 2003 at 12:31:39:
I had originally written about download throughput hacks and a FavIcon hack, and after looking around I found a few more that are of interest and I figured I'd share them with everyone. BTW, these hacks will also work with Netscape 7.1.
To add these hacks you have to:
exit out of the browser completely,
find your prefs.js file,
backup your prefs.js file,
copy and past the hacks below at the bottom of the prefs.js file,
save the prefs file and
then open the browser.
Another tip for hacking Preferences is that you can use the about:config screen which lets you add, modify or reset values for Preferences.
Again, I'm not taking credit for all of these hacks, just some, but I figured putting them all together would be a great resource, enjoy.
// Enable Smooth Scrollinguser_pref("general.smoothScroll", true);
// Change to normal Google search:user_pref("keyword.URL", "http://google.com/search?btnG=Google+Search&q=");
// Disable Bookmark Iconsuser_pref("browser.chrome.site_icons", true);user_pref("browser.chrome.favicons", true);
// Do not Reuse Active Mozilla Browseruser_pref("advanced.system.supportDDEExec", false);
// Number of backup copies to keep for prefs.js (ie: bak, .bak1, etc.)user_pref("backups.number_of_prefs_copies", 5);
// Turn on timer-based reflow managementuser_pref("content.notify.ontimer", true);
// Sets the allowed time between reflows in microsecondsuser_pref("content.notify.interval", 100);
// Set the number of reflows to do before waiting for the// rest of the page to arriveuser_pref("content.notify.backoffcount", 200);
// Enable Improve pipelining:user_pref("network.http.pipelining", true);user_pref("network.http.proxy.pipelining", true);user_pref("network.http.pipelining.firstrequest", true); //Default is falseuser_pref("network.http.pipelining.maxrequests", 100); //Default is 4
// Increase Multi-Threaded Downloading performanceuser_pref("network.http.max-connections", 60); //Default is 24user_pref("network.http.max-connections-per-server", 32); //Default is 8user_pref("network.http.max-persistent-connections-per-proxy", 16); //Default is 4user_pref("network.http.max-persistent-connections-per-server", 8); //Default is 2
// Remove painting delay when loading pagesuser_pref("nglayout.initialpaint.delay", 0); // Default is 250
// Show full path for plugin file on about:plugins page// the full path was removed for security purposes, please keep that in minduser_pref("plugin.expose_full_path", true); // Default is false
// Find As You Type Configuration:// Set this pref to false to disable Find As You Type:user_pref("accessibility.typeaheadfind", true);// If you set this pret to true, typing can automatically start Find As You Type.// If false (default), you must hit / (find text) or ' (find links) before your search.user_pref("accessibility.typeaheadfind.autostart", true);// Set this pref to false if you want Find As You Type to search normal text too:user_pref("accessibility.typeaheadfind.linksonly", false);// Set this pref to true if you require that the link starts with the entered text:user_pref("accessibility.typeaheadfind.startlinksonly", false);// This is the time in milliseconds for the Find As You Type to stop watching for keystrokes:user_pref("accessibility.typeaheadfind.timeout", 3000);
အေသးစိတ္ကို ဒီေအာက္မွာၾကည့္ပါ။
http://www.mrtech.com/news/messages/2977.html