dismiss popups from substack
Fork of jmegner/substack_popup_dismisser with support for custom domain Substack sites.
The original script only works on *.substack.com pages. However, many Substack authors host their newsletters on custom domains (e.g. stevevladeck.com), where the original script does not run.
This fork matches all sites and automatically detects whether a page is a Substack site by checking for:
substackcdn.com resources (scripts, stylesheets)webpackChunksubstack global variableOn non-Substack pages, the script exits immediately with no overhead.