Skip to content

Instantly share code, notes, and snippets.

@pvalencia
Created November 1, 2009 00:57
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 pvalencia/223345 to your computer and use it in GitHub Desktop.
Save pvalencia/223345 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name U-Cursos Slider Menu
// @namespace u-cursos
// @include https://www.u-cursos.cl/*
// ==/UserScript==
(function(){
GM_xmlhttpRequest({
method: "GET",
url: "http://jqueryjs.googlecode.com/files/jquery-1.2.6.pack.js",
onload: run
});
function run(details) {
if (details.status != 200) {
GM_log("no jQuery found!");
return;
}
eval(details.responseText);
jQuery.noConflict();
menu = jQuery('#izquierda');
body = jQuery('#body');
function noHover() {
menu.css({
'left': '-180px'
});
body.css({
'margin-left': '20px'
});
}
function siHover() {
menu.css({
'left': '0'
});
body.css({
'margin-left': '200px'
});
}
noHover();
menu.hover(siHover, noHover);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment