NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name Add autocomplete to myEfrei auth and WiFi auth
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Arf. J'en peux plus de taper mes identifiants alors qu'il leur suffit de rajouter un p*tin d'attribut en HTML
// @author Moi
// @match https://auth.myefrei.fr/uaa/login
// @match https://captiveportal-login.groupe-efrei.fr/*
// @grant none
// @updateURL https://openuserjs.org/meta/Arno500/Add_autocomplete_to_myEfrei_auth_and_WiFi_auth.meta.js
// @downloadURL https://openuserjs.org/install/Arno500/Add_autocomplete_to_myEfrei_auth_and_WiFi_auth.user.js
// @copyright 2020, Arno500 (https://openuserjs.org/users/Arno500)
// @license MIT
// ==/UserScript==
(function() {
'use strict';
const usernameInput = document.querySelector("#username");
if (usernameInput) {
usernameInput.setAttribute("autocomplete", "username");
}
const passwordInput = document.querySelector("#password");
if (passwordInput) {
usernameInput.setAttribute("autocomplete", "current-password");
}
// Auto-updated
})();