Skip to content

Instantly share code, notes, and snippets.

@m-242
Created January 28, 2019 18:09
Show Gist options
  • Save m-242/45b7bc77abb47837611569ab592e0de9 to your computer and use it in GitHub Desktop.
Save m-242/45b7bc77abb47837611569ab592e0de9 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Autofill univ-paris-diderot CAS
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Auto fill and submit CAS for P7's website
// @author m242
// @include *auth.univ-paris-diderot.fr/cas/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
let USERNAME = 'omorea58';
let PASSWORD = 'MDR garde la pêche';
// Fill forms
document.getElementById('username').value = USERNAME;
document.getElementById('password').value = PASSWORD;
// Send request
document.getElementById("fm1").submit()
})();
1.Installes violentmonkey :
https://addons.mozilla.org/fr/firefox/addon/violentmonkey/
2. Crée un nouveau script avec le script en dessous, avec ton login dans les variables
3. Profites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment