Skip to content

Commit

Permalink
Implementación para el API reCaptcha
Browse files Browse the repository at this point in the history
  • Loading branch information
notroaloch committed Jun 28, 2023
0 parents commit 4e57bf5
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Rodrigo Ochoa

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SIIAU Captcha

Extensión para eliminar el captcha de SIIAU y mejorarlo con una versión Tsurito. Agradecimientos especiales a Peso Pluma, Junior H y Gabito Ballesteros.

### Instalación

1. Clonar y descomprimir este repositorio
2. Abrir la [administración de extensiones](chrome://extensions/) en Chrome y activar el modo desarrollador
3. Hacer click en **Cargar extensión sin empaquetar** y seleccionar la carpeta descomprimida del paso 1
4. Entrar a SIIAU con normalidad, la versión Tsurito se activa automáticamente

### Aviso

- Los cambios al SIIAU son únicamente locales
- Ninguna información confidencial es almacenada
- El uso de la extensión es bajo responsabilidad del usuario
- La extensión puede dejar de funcionar con cualquier cambio implementado en SIIAU, abrir Issue si es necesario
26 changes: 26 additions & 0 deletions content.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const myMain = () => {
const urlImgBanner = 'https://iili.io/HPpvCqN.png'; // Free hosting, automatic delete in 24 hrs
const urlMp3Banner = 'https://dl.sndup.net/m8y6/El%20Tsurito.mp3'; // Free hosting, automatic delete in 24 hrs

let bannerFrame = window.frames[0];
let formFrame = window.frames[1];

const bannerDiv = bannerFrame.document.querySelector('#encabezadoDIV');

bannerDiv.innerHTML = `<div id="encabezadoDIV" style="width:100%;height:100%;);"><audio controls autoplay style="display:none;"><source src="${urlMp3Banner}" type="audio/mp3"></audio><img src="${urlImgBanner}"><div id="usuarioDIV" style="position:absolute;bottom:6px;right:12px;color:white;"></div></div>`;

const loginForm = formFrame.document.querySelector('form[name=detect]');
const submitButton = formFrame.document.querySelector('button[type=submit]');
const divCaptcha = formFrame.document.querySelector('div[class=g-recaptcha]');

loginForm.removeAttribute('onsubmit');
submitButton.setAttribute('type', 'button');

submitButton.addEventListener('click', () => {
loginForm.submit();
});

divCaptcha.innerHTML = '<h1>#PorUnSiiauSinCaptcha</h1>';
};

window.frames[1].addEventListener('load', myMain, false);
15 changes: 15 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"manifest_version": 2,
"name": "SIIAU Captcha",
"author": "notroaloch",
"description": "Extensión para eliminar el captcha de SIIAU y mejorarlo con una versión Tsurito. Que siga la mata dando viejo, arriba la bandera CT",
"version": "1.0",
"content_scripts": [
{
"matches": ["https://siiauescolar.siiau.udg.mx/*"],
"run_at": "document_end",
"all_frames": true,
"js": ["content.js"]
}
]
}

0 comments on commit 4e57bf5

Please sign in to comment.