Syntax coloring

Mostrando postagens com marcador firefox. Mostrar todas as postagens
Mostrando postagens com marcador firefox. Mostrar todas as postagens

domingo, 16 de maio de 2010

Vídeos do globo.com no Firefox e o AdBlock Plus

Uma dica: Quem usa o Firefox e tem o AdBlock instalado, e não consegue ver vídeos no globo.com, deve desativar a extensão neste site. Para isso, tem um ícone ABP. Desative o AdBlock Plus no globo.com e pronto! Os vídeos voltaram!

sexta-feira, 31 de julho de 2009

Making firefox use KDE's open file dialog in Kubuntu

Everyone who uses KDE knows the standard GTK file picker dialog JUST SUCKS!!!
Mozilla seems to refuse to provide a decent KDE integration in Firefox, so, at least, there are some good souls who created kgtk and others who packaged it for kubuntu.

To install it, open a terminal and execute the following:

  • Add the repository source, running kdesudo kate /etc/apt/sources.list and paste the following in the end of the file:

    deb http://ppa.launchpad.net/kgtk/ppa/ubuntu jaunty main

  • Add the repository keys: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9F8C7211

  • Update the packages: sudo apt-get update

  • Install the desired package: sudo apt-get install kubuntu-kgtk

  • Restart firefox

  • Be happy!


[Edit]
The kubuntu-kgtk package installs configurations for several other applications than firefox, like Gimp, Kino, etc. I've seen a glitch with GIMP where after selecting a file to save, the dialog for the specific format parameters (like jpeg, gif or png) do not have focus when appear, so you'll have to find it in the taskbar.

Another thing to watch is that only the .desktop laucher files are modified. So, if you have firefox in the favorites, you'll have to remove it and add again, since the favorite (or panel launcher) is a copy, not a link of the original launcher.

sábado, 25 de abril de 2009

Making firefox open files honoring KDE's file associations

A very frustrating issue for KDE users with firefox are the file associations. And manually setting the program for each file type is just too tedious.

What we have to do is provide a $HOME/.mailcap file which associates all file types with the xdg-open script, which will honor the file associations set in KDE (and other DE's too). Firefox uses that file to read the associations. If you want this to be system-wide (all users), copy it over /etc/mailcap (as root - backup is always a good idea) .

The easier way is to run the following command:
wget http://luisfpg.uuuq.com/blog/mailcap -O ~/.mailcap

This script was generated with update-user-mailcap, a ruby script that reads /etc/mime.types and generates the $HOME/.mailcap file. To run it, execute the following commands:
wget http://luisfpg.uuuq.com/blog/update-user-mailcap
chmod +x
update-user-mailcap
./update-user-mailcap

If you don't trust me, examine the file first. It's always a good idea to do this when downloading scripts from the Internet, by the way.

Attention:
If you had previously customized some file associations in firefox, you might want to rename the $HOME/.mozilla/firefox/profile/mimeTypes.rdf to other name (or just remove it) and restart firefox to have the associations reset.

A (minor) drawback is that on the file download dialog, you will always see xdg-open as the program, and not the real program which will be used to open the file, but it will work. Trust me ;)