Skip to content

Instantly share code, notes, and snippets.

@liuzhoou
Created April 23, 2009 01:56
Show Gist options
  • Save liuzhoou/100233 to your computer and use it in GitHub Desktop.
Save liuzhoou/100233 to your computer and use it in GitHub Desktop.
Greasemonkey
// ==UserScript==
// @name reload
// @namespace reload
// @description reload pages
// @include http://*
// ==/UserScript==
setTimeout("location.href=window.location.href", 5000);
// ==UserScript==
// @name load_jquery
// @namespace load_jquery
// @description load_jquery
// @include *
// ==/UserScript==
var s = document.createElement("script");
s.setAttribute("src", 'http://jquery.com/src/jquery-latest.js');
document.body.appendChild(s);
// ==UserScript==
// @name load_mt
// @namespace load_mt
// @description load mootools
// @include *
// ==/UserScript==
var s = document.createElement('script');
s.setAttribute('src', 'http://mootools.net/download/get/mootools-1.2.1-core-yc.js');
document.body.appendChild(s);
// ==UserScript==
// @name grid
// @namespace grid
// @include *
// ==/UserScript==
$(".grid").css("background", "url(http://www.cgshow.com/images/grid.png)");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment