Snippet List
You have to put this code in your *searchengines* Firefox folder in a file called **djangosnippets.xml**
After restarting Firefox, you will be able to seek DjangoSnippets very easily.
I also create a favicon.ico since djangosnippets.org didn't have one ...
Path example : /usr/lib/iceweasel/searchplugins/djangosnippets.xml
- xml
- firefox
- djangosnippets
- searchengine
Sometimes you need to know if a visitor is a bot or if the browser supports certain features or if it is a mobile device.
The easiest way to do so would be to lookup the user agent in a capabilities database.
Fortunately there is already such a database called browscap.ini which is widely known among PHP users.
I found the file accidently on my harddrive because it is also used by Mono: /etc/mono/browscap.ini
Read http://browsers.garykeith.com/index.asp for more information.
Before importing the module you need to call the script from commandline to retrieve the browscap.ini file. Look at the test function to see how to use it.
You can also create a file called "bupdate.ini" which can contain fixes for wrong or incomplete entries, e.g:
[Konqueror]
javaapplets=True
- ie
- browscap
- browser
- detection
- firefox
- opera
- mozilla
- safari
2 snippets posted so far.