Skip to content

Instantly share code, notes, and snippets.

@ramasilveyra
Last active March 13, 2025 21:45
Show Gist options
  • Save ramasilveyra/46c4b30d540f4011d47b to your computer and use it in GitHub Desktop.
Save ramasilveyra/46c4b30d540f4011d47b to your computer and use it in GitHub Desktop.
Inscribidor automático a materias del SIU Guaraní
/*
* Inscribidor automático a materias del SIU Guaraní
*/
/*
* En la página de la materia a la que queres inscribirte abrí la consola del
* navegador y pega el siguiente código. Acordarte de cambiar el código de
* comisión por el deseado en la primera variable.
*/
/*
The MIT License (MIT)
Copyright (c) 2015 Ramiro Silveyra d'Avila
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.
*/
var codigoComision = ' C-9116'; // Dejar espacio al principio
var intentos = 0; // Contador de intentos fallidos
// Repetir cada 1 segundo
var repetir = setInterval(function () {
// Si te inscribiste
if ($('.inscripto').find('comision').text().indexOf(codigoComision) > -1) {
clearInterval(repetir); // Limpiar interval (repetición)
console.log('[inscribidor-automatico] Te haz inscripto correctamente a la comisión ' + codigoComision);
return false;
}
// Si aún no te inscribiste
$('.no-inscripto').each(function (index, element) {
if ($(element).find('h4').text() == codigoComision) {
// Intentar inscribirte
$(element).find('input[type="submit"].btn').click();
// Esperar 1 segundo (a que se abra el popup) y cerarrlo.
setTimeout(function () {
console.log('[inscribidor-automatico] ' + ++intentos + ' intentos fallidos.')
$('.popup .close').click();
}, 1000);
}
});
}, 1000);
@MrBardo
Copy link

MrBardo commented Aug 4, 2015

Muchas gracias señor ramiro. Antes de conocer este script mi vida no tenia sentido. carecia de ganas para levantarme cada dia y tener que lidiar con el sistema del SIU. todo esto me llevo a consumir diferentes tipos de drogas para poder mantenerme despierto y poder hacer click tantas veces hasta que pueda inscribirme... Pero todo se soluciono al conocer este fragmento de codigo, ahora puedo dejar la pc inscribiendo y salir a conocer el mundo, gracias a esto ahora tengo muchas mujeres interesadas en conocerme y mi vida social se ha mejorado mucho, pues cuento con mucho tiempo, he dejado las drogas y el alcohol. todo esto gracias a ti. un saludo!!!!

@testacode
Copy link

Sigue funcionando esto?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment