Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name hatener_script
// @namespace http://d.hatena.ne.jp/Cherenkov/
// @description userscript for hatener.
// @include http://*.hatena.ne.jp/*
// ==/UserScript==
var url;
if (/^http\:\/\/d\.hatena\.ne\.jp/.test(location.href)) {url = 'd.hatena.ne.jp'}
@fuba
fuba / exthtml.pl
Created December 26, 2008 09:14
exthtml.pl extracts contents specified by an xpath from web pages. Cookbook in Japanese: http://fuba.jottit.com/exthtml
#!/usr/bin/perl
use strict;
use warnings;
use Encode;
use Getopt::Long;
use URI;
use LWP::UserAgent;
use HTTP::Cookies::Guess;
// ==UserScript==
// @name Expand star
// @namespace http://rails2u.com/
// @include http://*
// @include https://*
// ==/UserScript==
location.href = "javascript:"+encodeURIComponent(uneval(function () {
(function (Global) {
http://d.hatena.ne.jp/Hamachiya2/20090109/fallingirl
javascript:H='http://hamachiya.com/g';g='.gif';D=document;B=D.body;I=setInterval;Q=new Image;Q.src=H+1+g;scroll(I(function(Y,V,s,t){s=B.appendChild(V=Q.cloneNode(Y=99)).style,t=I(function(){Y-=t&7|1;s.bottom=(Y<1?setTimeout(function(){V.src=H+3+g;V.onclick=function(){D.title-=~B.removeChild(V)}},m,V.src=H+2+g)&clearInterval(t):Y)+'%'},Y);s.cssText='position:absolute;bottom:99%;left:'+(new Date&63)+'%'},m=800),D.title=0)
// ==UserScript==
// @name Hatena: Ignore Ids
// @description Remove the id from our world.
// @namespace http://lowreal.net/
// @include http://d.hatena.ne.jp/*
// @include http://h.hatena.ne.jp/*
// @include http://h1beta.hatena.ne.jp/*
// @include http://b.hatena.ne.jp/*
// @include http://q.hatena.ne.jp/*
// @require http://svn.coderepos.org/share/lang/javascript/jsdeferred/trunk/jsdeferred.userscript.js
var orig_setTimeout = window.setTimeout;
window.setTimeout = function (fun, wait) {
if (wait < 15) {
orig_setTimeout(fun, wait);
} else {
var img = new Image();
img.onload = img.onerror = function () {
fun();
};
img.src = "data:,foo";
function addCSS (css){
if (document.createStyleSheet) { // for IE
var sheet = document.createStyleSheet();
sheet.cssText = css;
return sheet;
} else {
var sheet = document.createElement('style');
sheet.type = 'text/css';
var _root = document.getElementsByTagName('head')[0] || document.documentElement;
sheet.textContent = css;
@satyr
satyr / gist_diff.user.js
Created May 5, 2009 22:40 — forked from ucnv/README.md
Diffs on Gist with google-diff-match-patch
// ==UserScript==
// @name gist diff
// @namespace http://github.com/satyr
// @description Shows diffs on Gist with google-diff-match-patch.
// @include https://gist.github.com/*
// @require https://raw.github.com/gist/105908
// @require https://google-diff-match-patch.googlecode.com/svn/trunk/javascript/diff_match_patch.js
// @fork_of http://gist.github.com/105913
// @check_also http://gist.github.com/107780
// ==/UserScript==