Replacing Google search on LinuxMint

I was sick of LinuxMint's hack on Firefox's search results page. And every time I fix it, the next update to Firefox replaces my fixed doc with the default one, which just sucks :(

So here's a script that I run after every update to Firefox:

cd /usr/share/linuxmint/common/artwork/firefox/
sudo wget http://mxr.mozilla.org/firefox/source/browser/locales/en-US/searchplugins/google.xml?raw=1 -O google.xml.fixed
sudo mv google.xml google.xml.orig
sudo mv google.xml.fixed google.xml