// ==UserScript== // @name RedCampus UCA // @namespace http://www.om3.com.es // @description Hack para poder acceder a RedCampus desde Mozilla Firefox y navegadores con la extensión Greasemonkey. // @description Basado en http://crysol.inf-cr.uclm.es/node/14 // @include https://gollum.uca.es/* // @include http://gollum.uca.es/* // ==/UserScript== var href = window.location.href; if(href.indexOf("FRAME=M") != -1 ){ var style = document.createElement("style"); style.type = "text/css"; style.innerHTML = ' a {' + ' color : #8000FF;' + ' font-family : Verdana;' + ' font-size : 11px;' + ' font-weight : bold;' + ' }' + ' #menu {' + ' background-color : white;' + ' border : 2px black solid;' + ' padding : 2px;' + ' }' + ' #navegacion {' + ' display: inline;' + ' }' + ' #salir {' + ' display: inline;' + ' position: absolute;' + ' padding-top: 3px;' + ' right: 20px;' + ' }'; document.getElementsByTagName('HEAD')[0].appendChild(style); // Parseando arMenu1 (array con los elementos del menú... que no aparece en firefox) var elementos = unsafeWindow.arMenu1.slice(9); var n_elementos = elementos.length/4; get_string = document.location.href; variables = get_string.substring(get_string.indexOf('jsessionid='),get_string.indexOf('?')); var botones = ""; for(i = 0; i < n_elementos; i++){ botones += ''; } var navegador = document.createElement("div"); navegador.innerHTML = '