The degooglify.sh script takes as arguments local files and URLs (leading to fonts.googleapis.com). It handles multiple arguments, including mixing of URLs and files. It then downloads the CSS files from URLs provided, and in all local and downloaded files looks for @import (with URL pointing to fonts.googleapis.com) and src: (with URL pointing to fonts.gstatic.com) statements. Once done, it rewrites the files in question to point to the downloaded files.