Skip to content

Instantly share code, notes, and snippets.

@dandiebolt
Created March 14, 2011 05:41
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 dandiebolt/868823 to your computer and use it in GitHub Desktop.
Save dandiebolt/868823 to your computer and use it in GitHub Desktop.
DanGravpad GreaseMonkey Script
// ==UserScript==
// @name DanGravpad
// @namespace http://metameso.org/
// @description An iframe appears on every page, containing an etherpad!
// @exclude *metameso.org:9000*
// @exclude about:blank
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js
// @include http://p2pu.org/
// ==/UserScript==
$("<iframe></iframe>").attr({
id: "addedPad",
name: "addedPad",
frameborder: "yes",
height: "100%",
width: "1%",
style: "float: right; position: fixed; z-index: 999; right: 20px;",
src: "http://metameso.org:9000/" + window.location.href.replace(/\//gi,"-")
}).prependTo("body");
$("iframe#addedPad").mousemove(function(){
$("iframe#addedPad").attr("width", "95%");
});
$("iframe#addedPad").mouseout(function(){
$("iframe#addedPad").attr("width", "5%");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment