Firefox İpuçları

Arch Linux Türkiye Belgeleri sitesinden
Atla: kullan, ara


Internet.png Bu yazı ArchWiki üzerinde bulunan Firefox_Tweaks yazısının çevirisi temel alınarak hazırlanmıştır. Son güncelleme tarihi 03.06.2012
İngilizce olan ArchWiki sayfasında çeviri tarihinden sonra yapılan değişiklikler için bu bağlantıyı takip edin.

Sayfa özgün sayfaya göre güncelliğini yitirmişse, bu sayfayı düzenleyerek güncelleştirmeye yardım edin!

Tüm çeviri yazıları Özel:SayfayaBağlantılar/Şablon:çeviri_durumu sayfasında görüntüleyebilirsiniz.
Internet.png
Tango-preferences-desktop-locale.png Bu makale çeviri için işaretlenmiştir.
Bu sayfadaki hem "özgün" dili hem de "hedef" dili anlıyorsanız, lütfen çevirinin tamamlanmasına yardım edin.
Tango-preferences-desktop-locale.png


Özet
Firefox yapılandırması ve düzenlemeleri


İlgili Konular
Web tarayıcı eklentileri: Flash gibi eklentilere erişim ve kurulum
Firefox: Firefox web tarayıcısını kurmak ve sorunları gidermek



Konu başlıkları

Verimlilik

Improving Firefox's performance is divided into parameters that can be inputted while running Firefox or otherwise modifying its configuration as intended by the developers, and advanced procedures that involve foreign programs or scripts. Always use the latest version of Firefox.

Tunables

Improvements stemming from native Firefox settings.

Network settings

References: Mozillazine

  • All settings can be adjusted by browsing to about:config.
  • Values for connections (HTTP, proxy, etc.) should be tweaked based on connection.

These are the values for a 1.5Mb cable connection:

Key Value Description
network.http.pipelining true enable pipelining for normal connections
network.http.proxy.pipelining true enable pipelining for proxy connections
network.http.pipelining.maxrequests 8 maximum HTTP requests per pipeline
network.http.max-connections 64 number of total HTTP connections
network.http.max-connections-per-server 16 maximum number of any type of connections per server
network.http.max-persistent-connections-per-proxy 16 maximum number of keep-alive type connections per proxy
network.http.max-persistent-connections-per-server 8 maximum number of keep-alive type connections per server
network.dns.disableIPv6 true disables IPv6 support - may not work for all networks, some report speed increase

Turning off anti-phishing

Kalem.png
ÖNEMLİ:
Deleting files from your profile folder is potentially dangerous, so it's recommended that you make a backup of the folder first.

The anti-phishing features of Firefox may cause Firefox to become slow to start or exit. The problem is that Firefox maintains a sqlite database that might grow quite big, and reading and writing to this database begins to take some time when it grows bigger. If you feel that you do not need Firefox to tell you which sites may be suspect you can disable this feature:

  • Turn off the following options under the security tab in preferences: "Block reported attack sites" and "Block reported web forgeries".
  • Delete all files beginning with urlclassifier in your profile folder (~/.mozilla/firefox/********.default where ******** is some combination of letters and numbers. Default might be something else if you have created a non-default profile). Some of these files might be recreated by Firefox, but they won't grow any larger than their initial size:
$ rm -i ~/.mozilla/firefox/*.default/urlclassifier*

Improve rendering by disabling pango

Kalem.png
ÖNEMLİ:
Exporting the setting may also fix font issues for the entire Mozilla suite.

Add:

export MOZ_DISABLE_PANGO=1

to ~/.profile and relogin for the change to take place.

Tango-view-fullscreen.png Bu yazı içeriğinin zenginleştirilmesi gereklidir.
Sebep: lütfen ayrıntılı bir açıklama sunmak için şablonun ilk argümanını kullanın. (Tartışın)
Tango-view-fullscreen.png

Şablon:Box YELLOW

Foreign modifications

Advanced Firefox alterations

Reduce load time by compressing the Firefox binary with upx

Run the following commands as root. Install the upx package from the Official Repositories.

Make a backup of the firefox binary:

# cp /usr/lib/firefox/firefox /usr/lib/firefox/firefox.backup

Invoke upx, applying the best possible compression level:

# upx --best /usr/lib/firefox/firefox

Defragment the profile's SQLite databases

Tango-dialog-warning.png
Uyarı:
This procedure may damage the databases in such a way that sessions are not saved properly.
Sample size differences comparison
SQLite DB Size Before Size After  % change
urlclassifier3.sqlite 37 M 30 M 19 %
places.sqlite 16 M 2.4 M 85 %
Profile defragmentation procedure

Firefox 3.0, bookmarks, history, passwords are kept in SQLite databases. SQLite databases become fragmented over time and empty spaces appear all around. But, since there are no managing processes checking and optimizing the database, these factors eventually result in a performance hit. A good way to improve startup and some other bookmarks and history related tasks is to defragment and trim unused space from these databases.

Run sqlite3 vacuum and reindex commands in the profile directory.

Example:

$ cd ~/.mozilla/firefox/*.default
$ for i in urlclassifier3 places; do \
    sqlite3 $i.sqlite vacuum;        \
    sqlite3 $i.sqlite reindex;       \
  done

To automate the process for all the databases in all the profiles directory, use the following:

$ find ~/.mozilla -name \*.sqlite    \
    -exec sqlite3 {} vacuum  \;    \
    -exec sqlite3 {} reindex \;

or without find:

$ cd ~/.mozilla/firefox/*.default
$ for i in *.sqlite; do sqlite3 $i vacuum; sqlite3 $i reindex; done

Cache the entire profile into RAM via tmpfs

If the system has memory to spare, tmpfs can be used to cache the entire profile directory, which might result in increased Firefox responsiveness.

Appearance

Fonts

See also: Font Configuration

DPI

Modifying the following value can help improve the way fonts looks in Firefox if the system's DPI is below 96. Firefox, by default, uses 96 and only uses the system's DPI if it is a higher value. To force the system's DPI regardless of its value, type about:config into the address bar and search for layout.css.dpi. Change it to 0.

On XFCE above method affects only Firefox UI DPI settings, but web page contents still use DPI=96, which may look ugly. Another soluntion is to change layout.css.devPixelsPerPx to system's DPI/96. For example, on my system DPI=142, DPI/96=1.48. Changing layout.css.devPixelsPerPx to 1.48 makes web page contents use DPI=142, which looks much better.

Default font settings from MS Windows

Below are the default font preferences when Firefox is installed in Microsoft Windows. Many web sites use the Microsoft fonts.

Proportional: Serif Size (pixels): 16
Serif: Times New Roman
Sans-serif: Arial
Monospace: Courier New Size (pixels): 13

General UI CSS settings

Firefox's UI can be modified by editing the files in ~/.mozilla/firefox/RANDOMHASH.PROFILENAME/chrome/; namely, userChrome.css and userContent.css.

All of the following modifications take place in userChrome.css.

Change UI font

The setting effectively overrides the global GTK2+ font preferences, and does not affect the body; only the UI itself:

* {
    font-family: "FONT_NAME";
}

Hide button icons

Enables text-only buttons:

.button-box .button-icon {
    display: none;
}

Hiding various tab buttons

These settings hide the arrows that appear to the horizontal edges of the tab bar, the button that toggles the "all tabs" drop-down list, and the plus sign button that creates a new tab.

/* Tab bar */

.tabbrowser-strip *[class^="scrollbutton"] {
    /* Hide tab scroll buttons */
    display: none;
}

.tabbrowser-strip *[class^="tabs-alltabs"] {
    /* Hide tab drop-down list */
    display: none;
}

.tabbrowser-strip *[class^="tabs-newtab-button"] {
    /* Hide new-tab button */
    display: none;
}

Horizontal tabs

To place the tab bar horizontally stacked along the sides of the browser window:

/* Display the tabbar on the left */
#content > tabbox {
    -moz-box-orient: horizontal;
}

.tabbrowser-strip {
    -moz-box-orient: vertical;
    /*
     * You can set this to -moz-scrollbars-vertical instead,
     * but then the scrollbar will *always* be visible.  this way
     * there is never a scrollbar, so it behaves like the tab bar
     * normally does
     */
     overflow: -moz-scrollbars-none;
}

.tabbrowser-tabs {
    -moz-box-orient: horizontal;
    min-width: 20ex;   /* You may want to increase this value */
    -mox-box-pack: start;
    -moz-box-align: start;
}

.tabbrowser-tabs > hbox {
    -moz-box-orient: vertical;
    -moz-box-align: stretch;
    -moz-box-pack: start;
}

.tabbrowser-tabs > hbox > tab {
    -moz-box-align: start;
    -moz-box-orient: horizontal;
}

Auto-hide Bookmarks Toolbar

#PersonalToolbar {
	visibility: collapse !important;
}
#navigator-toolbox:hover > #PersonalToolbar {
	visibility: visible !important;
}

Remove sidebar width restrictions

/* remove maximum/minimum  width restriction of sidebar */
#sidebar {max-width: none !important; min-width: 0px !important;}

Web content CSS settings

In userContent.css you can add custom css rules for web content. Examples:

/* import other css file */
@import url("./imports/some_file.css");

/* block ads */
*[class*="advertisement"],
*[class*="partners"],
*[class*="sidebaner"],
*[class*="banner"],
*[class*="adview"],
*[class*="promo"],
*[class*="ad_"],
*[name*="werbung"],
*[name*="banner"],
*[id*="banner"],
*[id*="ad_"],
iframe[src*="euroclick.com"],
iframe[src*="/partners/"],
iframe[src*="/adview"],
img[src*="euroclick.com"],
img[src*="/partners/"],
img[src*="/adview"],
embed[src*="Banner"],
embed[src*="banner"],
a:link[href*="euroclick.com"], 
a:link[href*="/partners/"],
a:link[href*="/adview"]
{ 
    display: none !important
}

/* domain specific rule */
@-moz-document domain(example.com){ 
         div#header{background-image:none !important} 
}

/* add '[pdf]' next to to pdf links  */
a[href$=".pdf"]:after {
    font-size: smaller;
    content: " [pdf]";
}

/* show url in bottom of screen when hovering over link */
a[href]:hover {
    text-decoration: none !important;
}
a[href]:hover:after {
    content: attr(href);
    position: fixed; left: 0px; bottom: 0px;
    padding: 0 2px !important;
    max-width: 95%; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
    font:10pt sans-serif !important;
    background-color: black  !important;
    color: white !important;
    opacity: 0.7;
    z-index: 9999;
 }

Miscellaneous

Viewing PDF/PS inside Firefox

If you do not want for some reason to install Adobe Acrobat Reader for exploiting the feature to see PDF inside Firefox, you can use other software, like Evince (default viewer in GNOME).

For example if you want to open a pdf/ps or any other document type supported by evince inside firefox, without opening a new window, just follow these simple instructions:

  • install mozplugger (in this moment is in AUR) and evince (in extra)
  • delete ~/.mozilla/firefox/*.default/pluginreg.dat (as mentioned after mozplugger installation)
  • edit /etc/mozpluggerrc: find the line containing "pdf" word, after "GV()" edit evince line as below:
  #repeat noisy fill exits: evince "$file"
  repeat noisy swallow(evince) fill: evince "$file"



Kalem.png
ÖNEMLİ:
you must place comments at the very beginning of the line to avoid errors
  • finally close (if not yet) and reopen firefox (now you can see a new plugin called mozplugger)
  • try to open a pdf sample



Kalem.png
ÖNEMLİ:
This method also works with other PDF viewers. Try replacing "evince" with the name of another program.

Wheel mouse scroll speed

To modify the default values (i.e. speed-up) of the wheel mouse scroll speed, type the following into Firefox's address bar:

about:config

Now enter the following into the 'filter' dialog: mousewheel.withnokey

  • Double-click the entry entitled, mousewheel.withnokey.sysnumlines and thereby setting its value to false
  • Double-click the entry entitled, mousewheel.withnokey.numlines and enter the desired number of lines per movement into the box (12, for example).

Restart firefox for this setting to take effect.

Alternatively you can install SmoothWheel add-on.

Change the order of searchplugins list

You can now (in Firefox 3) change the order in the GUI:

  • Open the dropdown list of search engines and click Manage Search Engines
  • Highlight the Engine you want to move and use Move Up or Move Down to move it.

How to open a *.doc automatically with abiword or open office

Click through the following menus:

  • Edit
  • Preferences
  • File types
  • Manage
  • Select the doc extension
  • Select Open them with this application
  • Select /usr/bin/abiword or /usr/bin/soffice

There is also a plugin/addon called mime edit. This addon will let you edit the mime types for firefox.

Secure DNS with DNSSEC validator

You can enable DNSSEC support for safer browsing.

Adding magnet protocol association

In about:config add the following:

network.protocol-handler.expose.magnet

Set it's initial value to false. When you open a magnet link you will be prompted with a Launch Application dialogue. From there simply select your chosen torrent client. This technique can also be used with other protocols.

Kişisel araçlar
GOOGLE
Diğer dillerde