Force SafeSearch for Google
This is a simple userscript that automatically enforces Google SafeSearch whenever you visit Google search result pages (including image previews). It works by checking if the SafeSearch query parameter (safe=on) is already present in the URL, and if not, appends it and reloads the page — ensuring that explicit content is always filtered out in your search experience.
This script was adapted from Google Disable SafeSearch automatically by Mikhoul, which performs the opposite function by forcing SafeSearch off.