summarylogtreecommitdiffstats
path: root/chromium-beacondb-patch.hook
blob: f6bd8b79dc5907009d1e854d93ed220030701777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = chromium

[Action]
Description = Patching the chromium executable file to use BeaconDB as a geolocation API for Chromium web browser
# Replace "https://www.googleapis.com/geolocation/v1/geolocate" with "https://api.beacondb.net/v1/geolocate" in the /usr/lib/chromium/chromium
Exec = /usr/bin/sed -i -e 's/\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x77\x2e\x67\x6f\x6f\x67\x6c\x65\x61\x70\x69\x73\x2e\x63\x6f\x6d\x2f\x67\x65\x6f\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x2f\x76\x31\x2f\x67\x65\x6f\x6c\x6f\x63\x61\x74\x65/\x68\x74\x74\x70\x73\x3a\x2f\x2f\x61\x70\x69\x2e\x62\x65\x61\x63\x6f\x6e\x64\x62\x2e\x6e\x65\x74\x2f\x76\x31\x2f\x67\x65\x6f\x6c\x6f\x63\x61\x74\x65\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/' /usr/lib/chromium/chromium
When = PostTransaction
Depends = sed