Skip to content

samueltan-immutable/geth-tampermonkey

 
 

Repository files navigation

geth-tampermonkey

Tampermonkey script to get Goerli Eth from faucet

Prerequisites

Installation

  1. Install Tampermonkey via https://www.tampermonkey.net/ or Chrome extensions page
  2. Navigate to this script to install
  3. 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

TamperMonkey options

  1. Update your target wallet on line 19
  2. Navigate to https://goerlifaucet.com/
  3. Log into https://goerlifaucet.com/ with your wallet

Automation setup (MacOS only)

  1. (If required) Setup bin and log directories
    • Create bin directory it by mkdir ~/.bin
    • Create it by mkdir ~/.log
  2. 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
  3. 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

Common Issues

  1. 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

Usage

  1. Opon Chrome Browser
  2. Navigate to https://goerlifaucet.com/

About

Tampermonkey script to get Goerli Eth from faucet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.0%
  • Shell 7.0%