[REPO REFACTOR]: changed to a better git repository structure with branches

This commit is contained in:
2025-11-01 06:17:46 +01:00
parent 223928cafb
commit 6438deaa4e
9 changed files with 262 additions and 0 deletions

25
autofill.html Normal file
View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="es" class="justify-content-center">
<head>
<meta charset="UTF-8">
<title>Autofill</title>
<link rel="stylesheet" href="./css/styles.css">
<link href="./css/bootstrap.min.css" rel="stylesheet">
<script src="./scripts/bootstrap.bundle.min.js"></script>
<script src="./scripts/bootstrap.min.js"></script>
</head>
<body class="bg-dark border-us p-4">
<div class="bg-dark container justify-content-center row text-white p-0 m-0">
<h4 class="display-6 mb-1 p-0 text-center">US 2FA Autofill</h4>
<small class="mb-4 p-0 text-center">Para obtener tu secret ve <a href="https://2fa.us.es/a2f/otp/bind-device" target="_blank">aquí</a><br>y dale a 'Mostrar' -> 'Mostrar parámetros de configuración'</small>
<input class="mb-2" id="2fa-input" type="text" name="secret" autocomplete="off" placeholder="Introduce tu secret SHA-1">
<p class="item2fa m-0 col-sm-7 mb-2 p-0 m-0 text-center display" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Copiar" id="codigo2FA">000000</p>
<div class="counter bg-us mt-2 mb-4" id="counter">Reinicio en: 30s</div>
<div class="counter bg-us text-white" id="reset">Restablecer secret</div>
</div>
<script src="./scripts/scripts.js"></script>
</body>
</html>

6
css/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

57
css/styles.css Normal file
View File

@@ -0,0 +1,57 @@
html {
width: 400px;
max-width: 400px;
}
.bg-us {
background-color: #be0f2e;
}
.border-us {
border: 3px solid #be0f2e;
}
.copy {
font-size: 36px;
text-align: center;
width: 36px;
height: 36px;
}
.counter {
text-align: center;
background-color: #be0f2e;
font-size: 24px;
color: #ffffff;
border-radius: px;
}
input {
width: 100%;
margin: 8px 0;
padding: 6px 12px 6px 12px;
display: inline-block;
border: 1px solid #be0f2e;
border-radius: 4px;
background-color: #111;
margin-top: 20px;
caret-color: white;
color: white;
box-sizing: border-box;
}
#codigo2FA {
font-size: 48px;
padding: 0%;
}
#codigo2FA:hover {
cursor: pointer;
text-decoration: underline;
font-weight: bold;
}
#reset:hover {
cursor: pointer;
background-color: #940f27;
}

BIN
images/USAutofill_128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
images/USAutofill_16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 B

30
manifest.json Normal file
View File

@@ -0,0 +1,30 @@
{
"manifest_version": 3,
"name": "US 2FA Autofill",
"description": "Rellena el código de 2FA en los sitios de la US",
"version": "3.0",
"icons": {
"16": "images/USAutofill_16.png",
"128": "images/USAutofill_128.png"
},
"action": {
"default_popup": "autofill.html",
"default_icon": "images/USAutofill_128.png"
},
"permissions": [
"activeTab",
"tabs",
"scripting",
"storage"
],
"content_scripts": [
{
"matches": [
"https://sso.us.es/*"
],
"js": [
"scripts/scripts.js"
]
}
]
}

7
scripts/bootstrap.bundle.min.js vendored Normal file

File diff suppressed because one or more lines are too long

7
scripts/bootstrap.min.js vendored Normal file

File diff suppressed because one or more lines are too long

130
scripts/scripts.js Normal file

File diff suppressed because one or more lines are too long