Skip to content

Instantly share code, notes, and snippets.

@spudtrooper
Created January 1, 2012 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spudtrooper/1547291 to your computer and use it in GitHub Desktop.
Save spudtrooper/1547291 to your computer and use it in GitHub Desktop.
Bypasses the log in screen for orange.fr wifi
// ==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);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment