Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sssemil/efb1d48c153aa383e49113230793a141 to your computer and use it in GitHub Desktop.

Select an option

Save sssemil/efb1d48c153aa383e49113230793a141 to your computer and use it in GitHub Desktop.
Auto-Authorize Claude OAuth (claude.ai)
// ==UserScript==
// @name Auto-Authorize Claude OAuth (claude.ai)
// @match https://claude.ai/oauth/authorize*
// @run-at document-end
// ==/UserScript==
(() => {
const clickAuthorize = () => {
const btn = [...document.querySelectorAll("button")]
.find(b => /authorize/i.test(b.textContent || ""));
if (btn) btn.click();
};
clickAuthorize();
const obs = new MutationObserver(clickAuthorize);
obs.observe(document.body, { childList: true, subtree: true });
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment