-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementación para el API reCaptcha
- Loading branch information
0 parents
commit 4e57bf5
Showing
4 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} | ||
] | ||
} |