Tag Archive for 'konqueror'

Usefull Commands: Web

  • Download a web page an all its requisites:
    wget -r -p -nc -nH --level=1 http://pypi.python.org/simple/python-ldap/
    
  • Create a PNG image of a rendered html page:
    kwebdesktop 1024 768 capture.png http://slashdot.org/
    
  • Search in all files malformed HTML entities (in this case non-breakable spaces that doesn’t end with a semicolon):
    grep -RIi --extended-regexp '&nbsp[^;]' ./
    

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).

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.