Skip to content

Instantly share code, notes, and snippets.

@felinto-dev
Created October 22, 2025 04:53
Show Gist options
  • Save felinto-dev/f342fce0880d4a87dd233158081f6820 to your computer and use it in GitHub Desktop.
Save felinto-dev/f342fce0880d4a87dd233158081f6820 to your computer and use it in GitHub Desktop.
Get Hotmart JWT Token
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Get Hotmart JWT</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
background-color: #f4f4f4;
color: #333;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container {
background-color: #ffffff;
padding: 40px;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0,0,0,0.08);
max-width: 600px;
width: 100%;
text-align: center;
}
h1 {
color: #1a1a1a;
font-weight: 700;
font-size: 2.2em;
margin-bottom: 10px;
}
.subtitle {
color: #666;
font-size: 1.1em;
margin-bottom: 30px;
font-weight: 400;
}
a.bookmarklet {
display: inline-block;
background-color: #FF5C00; /* Cor Hotmart */
color: #fff;
padding: 18px 35px;
text-decoration: none;
border-radius: 8px;
font-weight: 600;
font-size: 1.2em;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(255, 92, 0, 0.3);
margin: 20px 0;
}
a.bookmarklet:hover {
background-color: #e54e00; /* Cor Hotmart mais escura */
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 92, 0, 0.4);
}
.instructions {
background-color: #fff9f5;
padding: 25px;
border-radius: 8px;
text-align: left;
margin-top: 30px;
border: 1px solid #ffe0cc;
}
.instructions h2 {
color: #FF5C00;
font-weight: 600;
margin-top: 0;
margin-bottom: 15px;
font-size: 1.3em;
}
.instructions ol {
padding-left: 20px;
color: #555;
}
.instructions li {
margin-bottom: 10px;
}
.instructions strong {
color: #333;
}
</style>
</head>
<body>
<div class="container">
<h1>Get Hotmart JWT</h1>
<p class="subtitle">Extraia seu token JWT do Hotmart de forma rápida e automática.</p>
<a href="javascript:(function(){const u='https://consumer.hotmart.com/main';if(window.location.href!==u){window.location.href=u;}else{const p='oidc.user:https://sso.hotmart.com/oidc:';let t=null;for(let i=0;i<localStorage.length;i++){const k=localStorage.key(i);if(k&&k.startsWith(p)){try{const o=JSON.parse(localStorage.getItem(k));if(o&&o.id_token){t=o.id_token;break;}}catch(e){}}}if(t){prompt('Seu Token JWT (copie com Ctrl+C):',t);}else{alert('Token não encontrado no localStorage.');}})();" class="bookmarklet">
👉 Arraste para seus favoritos
</a>
<div class="instructions">
<h2>Como usar</h2>
<ol>
<li><strong>Arraste</strong> o botão acima para a sua barra de favoritos.</li>
<li>Em qualquer página, <strong>clique no favorito</strong> para ser redirecionado ao Hotmart.</li>
<li>Na página do Hotmart, <strong>clique no favorito novamente</strong> para copiar seu token.</li>
</ol>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment