Tag Archive for 'konqueror'

How-to Block Ads in Konqueror

Starting from version 3.5, Konqueror feature an ad blocker mechanism based on regular expressions. Here is a little how-to to help you install an efficient filter set.

Konqueror AdBlocks filter configuration panel

  1. Dowload the latest Filterset.G regexp set. The file which contain all rules is located at http://www.pierceive.com/filtersetg/ under the name YYYY-MM-DD.txt.
  2. Go to Settings > Configure Konqueror... menu.
  3. Then go to AdBlock Filters panel (the one on the screenshot).
  4. Check both Enable filters and Hide filtered images options.
  5. Use the Import... button to load the “Filterset.G” file you previoulsy downloaded
  6. Enjoy ad-free web sites !

By the way, I hope to see the feature suggested by Andreas Frische to get some attention by the Konqueror community: it would be nice to have an integrated auto-updater of filter set in Konqueror (and make this how-to deprecated).

Usefull Commands: Image Processing

  • Convert several files from a format to another:
    convert img_*.bmp img_%04d.png
    
  • Resize images of the current folder to progressive jpeg. Resized images will not be greater than 600×600, but the aspect ratio will be respected:
    convert -resize 600x600 -sharpen 1 -interlace Line * pict%04d.jpg
    
  • Create a PNG image of a rendered html page:
    kwebdesktop 1024 768 capture.png http://www.linuxfr.org
    
  • Remove all metadata of a JPEG file:
    exiftool -all= image.jpg
    

Konqueror config file: disable menu bar

To disable the menu bar in konqueror, you have a specific action in menus. If you want to do this by hand, just add the following directive in your ~/.kde/share/config/konquerorrc file:

[KonqMainWindow]
MenuBar=Disabled

This tip is interresting because you can also apply it for any KDE application that doesn’t support this feature.

For exemple, in kmail, you can add the “MenuBar=Disabled” statement in “[Main Window]” section: this will have the same effect as in konqueror.