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 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) { |
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
// Simple $X | |
// Thx! $X from http://coderepos.org/share/browser/lang/javascript/userscripts/jautopagerize.user.js | |
// http://subtech.g.hatena.ne.jp/cho45/20071114/1195017746 | |
function $X (exp, context) { | |
context || (context = document); | |
var exp = (context.ownerDocument || context).createExpression(exp, function (prefix) { | |
return (document.createNSResolver((context.ownerDocument == null | |
? context : context.ownerDocument).documentElement) | |
.lookupNamespaceURI(prefix) || document.documentElement.namespaceURI); | |
}); |
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 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 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 replace star by profile icon | |
// @namespace http://ss-o.net/ | |
// @description replace star by profile icon (for Firefox3) | |
// @include http://*.hatena.ne.jp/* | |
// @version 1.3 | |
// ==/UserScript== | |
location.href = 'javascript:(' + function(){ | |
var COLOR = true; |
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 accessible user.js | |
// @namespace http://ss-o.net/ | |
// @include http://* | |
// @include https://* | |
// @require http://gist.github.com/3242.txt | |
// ==/UserScript== | |
$X('//a[substring(@href, string-length(@href) - string-length(".user.js") + 1) = ".user.js"]') | |
.forEach(function(a){ |
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 Volumedown for niconico | |
// @namespace http://d.hatena.ne.jp/nastack/ | |
// @include http://www.nicovideo.jp/watch/* | |
// ==/UserScript== | |
(function(unsafeWindow){ | |
var VOLUME = 10; | |
var meta = document.evaluate("//meta[@name='keywords' and contains(@content,'\u97F3\u91CF\u6CE8\u610F')]", | |
document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; | |
if (!meta) return; |
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
/* | |
// Tweener Like snippet | |
new Tween(div.style,{time:1, onComplete:function(){},left:{to:0,from:100,tmpl:"+$#px"}}); | |
// @require http://gist.github.com/13572.txt | |
*/ | |
function Tween(item, opt) { | |
var self = this, TIME = 10, time = (opt.time||1) * 1000, TM_EXP = /(\+)?\$([\#\d])/g, sets = [], | |
easing = opt.transition || function(t, b, c, d){return c*t/d + b;}, _T = {time:1,onComplete:1,transition:1,delay:1}; | |
for (var k in opt) if (!_T[k]) { | |
var set = opt[k], from = set.from || parseFloat(item[k]) || 0, values = [], tmpl = set.tmpl || '$#'; |
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 XPath Anchor | |
// @namespace http://ss-o.net/ | |
// @description XPath Anchor. This script is unsafe! | |
// @include http://* | |
// ==/UserScript== | |
(function (unsafeWindow) { | |
var __hash = document.location.hash; | |
log(unsafeWindow.document.location.watch); |
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
// $XA | |
// | |
// $XA(exp, context, resolver)(function(node){}); | |
function $XA(exp, context, resolver) { | |
context || (context = document); | |
var XPE = new XPathEvaluator(); | |
var Doc = context.ownerDocument || context, expr = XPE.createExpression(exp, resolver ? resolver : | |
Doc.documentElement.namespaceURI ? function(prefix) { | |
return XPE.createNSResolver(Doc.documentElement).lookupNamespaceURI(prefix) || | |
context.namespaceURI || document.documentElement.namespaceURI || ""; |
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
// $XA | |
// | |
// $XA(exp, context, resolver).forEach(function(node){}); | |
function $XA (exp, context, resolver) { | |
context || (context = document); | |
var XPE = new XPathEvaluator(); | |
var Doc = context.ownerDocument || context, expr = XPE.createExpression(exp, resolver ? resolver : | |
Doc.documentElement.namespaceURI ? function(prefix) { | |
return XPE.createNSResolver(Doc.documentElement).lookupNamespaceURI(prefix) || | |
context.namespaceURI || document.documentElement.namespaceURI || ""; |
OlderNewer