This file contains hidden or 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 ScrollCommand | |
// @namespace http://d.hatena.ne.jp/Constellation/ | |
// @description Press j or k key , and scroll (in case that LDRize are not working on its page) | |
// @include * | |
// @exclude http://www.google.tld/reader/* | |
// @exclude https://www.google.tld/reader/* | |
// @exclude http://mail.google.tld/* | |
// @exclude https://mail.google.tld/* | |
// @author Constellation |
This file contains hidden or 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 Diff for gist.github for Opera & Chrome | |
// @namespace http://ss-o.net/ | |
// @include http://gist.github.com/* | |
// @include https://gist.github.com/* | |
// ==/UserScript== | |
(function(){ | |
var f = function($) { | |
var rev = $('#revisions li'); |
This file contains hidden or 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 with hatebu search | |
// @namespace http://b.hatena.ne.jp/ | |
// @description google 検索の画面で、はてブ検索へのナビゲーションを出します | |
// @include http://www.google.co.jp/search* | |
// @include http://www.google.com/search* | |
// ==/UserScript== | |
(function () { | |
var tr = $X('//tr[td/input[@name="q"]]'); |
This file contains hidden or 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
function duration (dat) { | |
var ret = 0, map = { | |
sec:1, min:60, hour:3600, day:86400, week:604800, month:2592000, year:31536000 | |
}; | |
for (var k in dat) if (map[k]) ret += dat[k] * map[k]; | |
return ret * 1000; | |
} | |
/* | |
function eq (obj, expect) { |
This file contains hidden or 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
// very simple version of $X | |
// $X(exp); | |
// $X(exp, context, resolver, XPathResult.NUMBER_TYPE).numberValue; | |
// @source https:/raw.github.com/gist/29681 | |
function $X (exp, context, resolver, result_type) { | |
context || (context = document); | |
var Doc = context.ownerDocument || context; | |
var result = Doc.evaluate(exp, context, resolver, result_type || XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); | |
if (result_type) return result; | |
for (var i = 0, len = result.snapshotLength, res = new Array(len); i < len; i++) { |
This file contains hidden or 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
// simple version of $X | |
// $X(exp); | |
// $X(exp, context); | |
// @source https:/raw.github.com/gist/3242 | |
function $X (exp, context) { | |
context || (context = document); | |
var expr = (context.ownerDocument || context).createExpression(exp, function (prefix) { | |
return document.createNSResolver(context.documentElement || context).lookupNamespaceURI(prefix) || | |
context.namespaceURI || document.documentElement.namespaceURI || ""; | |
}); |
This file contains hidden or 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 Autopagerize for haiku | |
// @namespace http://rails2u.com/ | |
// @description works on Firefox, Opera, Safari and fub.net | |
// @include http://h.hatena.ne.jp/* | |
// @include http://h.hatena.com/* | |
// ==/UserScript== | |
(function(unsafeWindow){ | |
var getHeight = (function(){ |
This file contains hidden or 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 gist.user.js | |
// @namespace http://github.com/hotchpotch | |
// @description install greasemonkey (user.js) | |
// @include http://gist.github.com/* | |
// @include https://gist.github.com/* | |
// ==/UserScript== | |
(function() { | |
$X('id("files")//div[@class="info"]/span').forEach(function(e) { |
NewerOlder