title: Add parameters to the URL (redirect) via a Greasemonkey/Tampermonkey/Userscript
body: <p>I'd like to write a Greasemonkey/userscript that automatically adds <code>.compact</code> to URLs starting with <a href="https://pay.reddit.com/" rel="nofollow noreferrer">https://pay.reddit.com/</a> so It automatically redirects me to the mobile version.</p>
  
  <p>I've been looking at similar userscripts, particularly this one: <a href="https://userscripts.org/scripts/review/112568" rel="nofollow noreferrer">https://userscripts.org/scripts/review/112568</a> trying to figure out how to edit the replacement pattern, but I lack skills in this domain.</p>
  
  <p>How do I write a Greasemonkey script that redirects me from <code>https://pay.reddit.com/*</code> to <code>https://pay.reddit.com/*.compact</code> ?</p>
  
  <p>Thanks</p>