Created
March 14, 2011 05:41
-
-
Save dandiebolt/868823 to your computer and use it in GitHub Desktop.
DanGravpad GreaseMonkey Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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