Created
March 13, 2022 19:21
-
-
Save SkySkimmer/ae3038a20b68c0c85155c5d23a9ab18a to your computer and use it in GitHub Desktop.
firefox disable clickselectsall in address bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package: firefox-skyskimmer-patches | |
Version: 1.0 | |
Section: custom | |
Priority: optional | |
Architecture: all | |
Essential: no | |
Maintainer: skyskimmer.net | |
Depends: zip, unzip, sed, coreutils | |
Description: Patch firefox post-install | |
- disable clickselectsall behaviour in address bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
put files in /tmp/ffpatches/DEBIAN (this means "control" is /tmp/ffpatches/DEBIAN/control etc) | |
dpkg-deb --build /tmp/ffpatches | |
dpkg -i the resulting .deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
case $1 in | |
configure|triggered) ;; | |
*) | |
exit 0 | |
;; | |
esac | |
# based on https://superuser.com/questions/540851/go-back-to-not-selecting-the-whole-url-when-i-click-the-address-bar/1559926 | |
# but I dont use the searchbar | |
set -e | |
tmp=$(mktemp -d) | |
unzip -d "$tmp" -q /usr/lib/firefox/browser/omni.ja | |
cd "$tmp" | |
sed -i 's/this\._preventClickSelectsAll = this\.focused;/this._preventClickSelectsAll = true;/' modules/UrlbarInput.jsm | |
zip -0DXqr omni.ja ./* | |
mv omni.ja /usr/lib/firefox/browser/omni.ja | |
# put date and md5sum somewhere to make it easy to check if the current version is a patched version | |
date > /usr/lib/firefox/browser/omni.ja.patched | |
md5sum /usr/lib/firefox/browser/omni.ja >> /usr/lib/firefox/browser/omni.ja.patched |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interest /usr/lib/firefox/browser/omni.ja |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment