Created
March 15, 2011 16:36
-
-
Save dandiebolt/870987 to your computer and use it in GitHub Desktop.
This GreaseMonkey Script Loads jQuery and Makes four Modifications to http://P2PU.org/
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 Mofify P2PU Home Page | |
// @namespace http://p2pu.org/ | |
// @include http://p2pu.org/ | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js | |
// ==/UserScript== | |
//////////////////////////////////////// | |
//modification #1 | |
alert("Let's change the background color of the page body from white to surrounding grey."); | |
$("#page-body").css("background-color","#CCC8BF"); | |
//////////////////////////////////////// | |
//modification #2 | |
alert("Let's change the sequence from\n\n(1) Take a course, (2) Organize a course, (3) Suggest a course \n\nto\n\n(1) Suggest a course, (2) Take a course, (3) Organize a course.") | |
var $newblock=$("#block-block-8").clone(true).attr("id","#block-block-dummy"); | |
$("#block-block-8").remove(); | |
$newblock.attr("id","#block-block-8").insertBefore("#block-block-6"); | |
//////////////////////////////////////// | |
//modification #3 | |
alert("Let's pre-fill the search box with the keyword 'badge'."); | |
$("#edit-search-theme-form-1").val("badge"); | |
//////////////////////////////////////// | |
//modification #4 | |
alert("Let's change the text 'P2PU courses are free and open' to something more appropriate."); | |
$("h2:contains(P2PU courses are free and open)").text("P2PU courses are free as in beer and open too"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment