Archive for the ‘How-Tos’ Category.

How to remove new Google favicon from Firefox searchbar

I removed Google from my FF quick search bar for some odd reason and then wanted to reload it later. Obviously no one at Mozilla ever removed Google from the quick search bar, because you will not get it back the way it was before.

The build in search manager in Firefox now redirects to addons.mozilla.com and you won’t find google there !

So back to mycroft.mozdev.org, the original search engine database from Firefox.

However this google search plugin has the new google favicon built in :

oldschool older-ladies'-soap logo
original older-ladies’-soap logo

Much people like the original one more apparently.

See this bringbacktheoldgooglefavicon.com
or googlesystem.blogspot.com .

I took the original Icon from http://code.google.com/favicon.ico ,
obviously the “coders” at google like the old one better =) , cause it’s still there !

edit: doh, they found & changed it but i have a backup ^_^


Now, find my new Google search plugin below:
mycroft.mozdev.org
On that site click the named link to install.
This has the US website as target , without redirect ( you might change this in the XML file, or just add another search plugin by yourself) and a pretty decent logo !

edit : My searchplugin got deleted on mycroft.mozdev.org and you shouldn’t need to use it in the first place, instead I’ll explain the steps necessary to change the favicon in the search plugin from mycroft.mozdev.org.

Our goal is to get rid of the search bar look without deleteing ~/.mozilla or creating a new profile :

new favicon in search bar old favicon in search bar
not good better
  1. Install the first hit for google from mycroft.mozdev.org
    mycroft.mozdev.org google

    mycroft.mozdev.org google


    It will be stored in :

    (linux) ~/.mozilla/firefox/<random-id>.default/searchplugins/google-us.xml

    “.default” if you were running FF in the default profile while installing the plugin.

  2. edit this file and remove everything between the <Image> tags :

    vi .mozilla/firefox/<random-id>.default/searchplugins/google-us.xml

    remove-image-data

    remove-image-data

  3. Open http://software.hixie.ch/utilities/cgi/data/data and enter the values like in the screenshot & press generate :
    software.hixie.ch

    software.hixie.ch


    Feel free to use any .ico file there is.

  4. Take the long string in your URL bar and paste into the search plugin file where you deleted the old image data :
    data:image/x-icon;base64,AAABAAEA ..... 
  5. Save & restart FF

Pretty simple and it works.
edit:This is the complete way, longer then just installing a clean search plugin but it explains some stuff i guess

Cheers

How to resize Exaile’s album cover preview

Having switched to Exaile recently from Amarok i was wondering about the small covers Exaile uses. These are resizeable in the GUI of Amarok, not so in Exaile. I finally found the two lines of code that specify the album’s preview size.

Original cover size of Exaile Modded cover size of Exaile
original tweaked

First backup these two files:

/usr/lib/exaile/xl/covers.py
/usr/share/exaile/exaile.glade

( /usr/local/share… and /usr/local/lib… if you did compile from source .. ).

Now we will change the GUI to be able to hold a bigger image :

Close any instance of Exaile and as root open

/usr/share/exaile/exaile.glade

with your favourite editor and find the line with :

<widget class="GtkHBox" id="top_box"></widget>

this is line 1546 on my file. Change the height_request property to 250:

<property name=”height_request”>250</property>

The result should be something like this :

exaile.glade

In the second step open:

/usr/lib/exaile/xl/covers.py

to tell Exaile what size the covers should be displayed in the GUI:

Find the line with

COVER_WIDTH = 100

and change it to

COVER_WIDTH = 250

This should be line 24 :

covers.py

You can experiment with any reasonable sizes but be sure to match the GUI size with the incoming cover size.