Firefox Settings: Difference between revisions

From WickyWiki
mNo edit summary
mNo edit summary
Line 5: Line 5:


This page some Firefox extensions that I use regularly. Click on the name to search for them on Mozilla's site.
This page some Firefox extensions that I use regularly. Click on the name to search for them on Mozilla's site.
= Settings =


== Force pop-ups in a new Tab ==
== Force pop-ups in a new Tab ==
Line 19: Line 21:
# Search for the preference named "browser.tabs.closeWindowWithLastTab"
# Search for the preference named "browser.tabs.closeWindowWithLastTab"
# Change its value to false.  
# Change its value to false.  
= Enhanced functions / add-on =


== Firefox disable website notifications ==
== Firefox disable website notifications ==
Line 29: Line 29:
# Click Settings  
# Click Settings  
# Check 'block new requests ~'
# Check 'block new requests ~'
= Usage =


== Find bookmark in folder structure ==
== Find bookmark in folder structure ==
Line 40: Line 42:
Block images, popups banners and flash before they annoy you:
Block images, popups banners and flash before they annoy you:


== block ads ==
== Ads ==


* [https://addons.mozilla.org/en-US/firefox/search/?platform=Linux&q=Adblock%20Plus Adblock Plus]
* [https://addons.mozilla.org/en-US/firefox/search/?platform=Linux&q=Adblock%20Plus Adblock Plus]
Line 49: Line 51:
* [[Raspberry Pi - Pi-Hole Network-wide ad blocking]]
* [[Raspberry Pi - Pi-Hole Network-wide ad blocking]]


== Block functionality ==
== Script ==


* [https://addons.mozilla.org/en-US/firefox/search/?platform=Linux&q=NoScript NoScript: block Javascript, Flash, Silverlight etc.]
* [https://addons.mozilla.org/en-US/firefox/search/?platform=Linux&q=NoScript NoScript: block Javascript, Flash, Silverlight etc.]
Line 81: Line 83:
</syntaxhighlight>
</syntaxhighlight>
</blockquote>
</blockquote>
==Force Firefox to remember passwords==
How to force Firefox to remember passwords, despite the site's indication to not allow that:
* http://www.werockyourweb.com/force-firefox-save-password (older versions of Firefox)
The file we want to edit has changed, renamed from '''omni.jar''' to '''omni.ja''' and compressed differently, read this:
* https://developer.mozilla.org/en-US/docs/Mozilla/About_omni.ja_%28formerly_omni.jar%29
1. Unzip and ignore warnings:
<syntaxhighlight lang=bash>
locate omni.ja
cp /usr/lib/firefox/omni.ja $HOME/tmp
cd $HOME/tmp
unzip omni.ja -d ./omni
cd omni
gedit components/nsLoginManager.js
</syntaxhighlight>
2. Two lines of the file '''nsLoginManager.js''' in the archive '''omni.ja''' are commented to make function '''_isAutoCompleteDisabled''' always return false:
<syntaxhighlight lang=javascript>
    /* _isAutoCompleteDisabled
    * Returns true if the page requests autocomplete be disabled for the specified form input. */
    _isAutoCompleteDisabled : function (element) {
        //20130727: wjv: commented this part to always return false
        //if ( element && element.hasAttribute("autocomplete") && element.getAttribute("autocomplete").toLowerCase() == "off")
        //  return true;
    return false;
    },
</syntaxhighlight>
3. Re-create '''omni.ja'''. '''Make sure you maintain a copy of the original''':
<syntaxhighlight lang=bash>
zip -r ../omni.ja
mv /usr/lib/firefox/omni.ja /usr/lib/firefox/omni.ja_original
cd ..
cp omni.ja /usr/lib/firefox/omni.ja
</syntaxhighlight>
4. Restart Firefox.


== Context Search Menu ==
== Context Search Menu ==

Revision as of 13:12, 3 August 2021


This page some Firefox extensions that I use regularly. Click on the name to search for them on Mozilla's site.

Settings

Force pop-ups in a new Tab

https://support.mozilla.org/en-US/questions/1066799

  1. Enter about:config into the address bar
  2. Search for the preference named "browser.link.open_newwindow.restriction"
  3. Change its value to 0.

Don't close browser with last tab

  1. Enter about:config into the address bar
  2. Search for the preference named "browser.tabs.closeWindowWithLastTab"
  3. Change its value to false.

Firefox disable website notifications

  1. Go to url: about:preferences
  2. Search 'notifications'
  3. Look for 'Permissions' and sub-item 'Notifications'
  4. Click Settings
  5. Check 'block new requests ~'

Usage

Find bookmark in folder structure

  1. Open the website the bookmark points to
  2. Click the bookmark star-icon in the address-bar
  3. In the dialog you can see where the bookmark is located

Block functionality

Block images, popups banners and flash before they annoy you:

Ads

See also:

Script

Search

Add right-click search engines

Make search functionality available in the Search Bar with Add to Search bar

The search engine's URL can be customized to your wishes. I made changes to IMDB search to jump to the best match immediately, instead of showing all possible matches. This trick uses Google's 'Im+Feeling+Lucky' function. First make sure you have the IMDB search engine and then modify it following beneath example.

gedit /home/$USER/.mozilla/firefox/*.default/searchplugins/imdb.xml
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/"
 xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
  <os:ShortName>IMDb</os:ShortName>
  <os:Description>IMDb</os:Description>
  <os:InputEncoding>ISO-8859-1</os:InputEncoding>
  <os:Image width="16" height="16">data:image/png;base64,icon_image_data_here</os:Image>
  <SearchForm>http://www.google.com/search</SearchForm>
  <os:Url type="text/html" method="GET" template="http://www.google.com/search">
    <os:Param name="btnI" value="Im+Feeling+Lucky"/>
    <os:Param name="q" value="IMDB+{searchTerms}"/>
  </os:Url>
</SearchPlugin>

Context Search Menu

Context Search expands the context menu's 'Search for' item into a list of installed search engines, allowing you to choose the engine you want to use for each search.

Development

Debugging JavaScript in your webpages

Firebug