Skip to content

Instantly share code, notes, and snippets.

@Pinjasaur
Created December 22, 2025 05:17
Show Gist options
  • Select an option

  • Save Pinjasaur/21137729b5bca155befe3d59b4e46a85 to your computer and use it in GitHub Desktop.

Select an option

Save Pinjasaur/21137729b5bca155befe3d59b4e46a85 to your computer and use it in GitHub Desktop.
Star Tribune (strib) utm_source=gift bookmarklet

Tiny bookmarklet to add ?utm_source=gift to Star Tribune URLs.

javascript:(function(){const url=new URL(location.href);if(url.hostname==='www.startribune.com'){const currentUtmSource=url.searchParams.get('utm_source');if(currentUtmSource!=='gift'){url.searchParams.set('utm_source','gift');history.replaceState({},'',url.toString());}}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment