Skip to content

Instantly share code, notes, and snippets.

@koduki
Created February 22, 2009 10:03
Show Gist options
  • Save koduki/68429 to your computer and use it in GitHub Desktop.
Save koduki/68429 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @namespace cn.orz.pascal
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.2/jquery.js
// @include http://d.hatena.ne.jp/*
// ==/UserScript==
$(function(){
var node = $("/html/body/div");
node.css("background-color","orange");
alert(node[0]);
});
GM_registerMenuCommand("Hello", function(){alert("Hello World.")});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment