public
Last active

Bypasses the log in screen for orange.fr wifi

  • Download Gist
orangefr.user.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
// ==UserScript==
// @name Ornage FR
// @namespace http://jeffpalm.com/orangefr
// @description Bypasses the log in screen for orange.fr wifi
// @include https://hautdebitmobile.orange.fr:8443/home*
// ==/UserScript==
(function() {
function main() {
var els;
els = document.getElementsByTagName('input');
for (var i=0; i<els.length; i++) {
var inp = els[i];
if (inp.name === 'ck') {
inp.checked = true;
break;
}
}
var els = document.getElementsByTagName('a');
for (var i=0; i<els.length; i++) {
var a = els[i];
if (a.href && a.href.match(/^javascript:validate*/)) {
// Emulate a click the ghetto way
document.location = a.href;
}
}
}
// Let your auto-fillin names show up, then call main
setTimeout(main,1000);
 
})();

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.