Tampermonkey script to get Goerli Eth from faucet
- This script assumes you have logged in to https://goerlifaucet.com/
- This script assumes you have Chrome browser installed
- Install Tampermonkey via https://www.tampermonkey.net/ or Chrome extensions page
- Navigate to this script to install
- Open the TamperMonkey extension, click dashboard, edit the newly added script (icon on far-right next to trash)
- In Chrome, click extensions
- Select more options by clicking the three little dots next to TamperMonkey
- Select Options
- Click + in the top right to add a new script
- Update your target wallet on line 19
- Navigate to https://goerlifaucet.com/
- Log into https://goerlifaucet.com/ with your wallet
- (If required) Setup bin and log directories
- Create bin directory it by
mkdir ~/.bin
- Create it by
mkdir ~/.log
- Create bin directory it by
- Create automation script
- Open Terminal
- Navigate to .bin folder
cd ~/.bin
- Type "vi automate_geth.sh". Press return
- Press "i"
- Copy and paste the script from here
- Press ESC
- Type ":wq". Press return
- Setup cronjob (Note. this will run the automate_geth.sh script daily at 0:0:0 UTC. If you want a different time of day adjust to your preferred settings https://crontab.guru/ can help. Also if you store your scripts in a different directory to ~/.bin you will need to modify the path that is referenced)
- Open Terminal
- Type "env editor=vi crontab -e". Press return
- Press "i"
- Copy and paste the script from here
- Set the second 0 in the script to a time of day you expect your laptop to be on (0 = 00am UTC / 11am AEDT / 8pm EST)
- Press ESC
- Type ":wq". Press return
- You may get an "Operation not permitted" error when trying to run the automate_geth.sh script via crontab. Read this article to fix this on macos
- Opon Chrome Browser
- Navigate to https://goerlifaucet.com/