Skip to content

Instantly share code, notes, and snippets.

# http://www.muji.net/store/pc/user/2009aw/index.jsp#/Women/
curl -O 'http://www.muji.net/2009aw/img/women/0908w_[01-53].jpg'
curl -O 'http://www.muji.net/2009aw/img/women/0908img_[13-24].jpg'
// inspect contextmenu id with Execute JS
Array.forEach(document.getElementById('contentAreaContextMenu').childNodes, function(i) { print([i.id, i.label]) })
/*
spell-no-suggestions,(修正候補がありません)
spell-add-to-dictionary,辞書に追加
spell-suggestions-separator,
view-userscript,ユーザスクリプトの閲覧
install-userscript-sep,
#!/bin/sh
ls='/bin/ls -vG'
lv='/opt/local/bin/lv -c'
if [ $# -ne 0 ]
then
eval last=\$\{$(expr $#)\}
if [ -d $last ]
then
require 'rubygems'
require 'thin'
require 'em-http'
USE_GLITCH = true
def glitch res, body
case res['CONTENT_TYPE']
when /jpeg/i
body.gsub!(/0/m, rand(10).to_s)
// ==UserScript==
// @name AutoPagerizeGoogleImageFilter
// @namespace http://relucks.org/
// @include http://images.google.*
// ==/UserScript==
// http://userscripts.org/topics/22000
// {
// url: 'http://images\\.google\\.(\\w|\\.)+/images\\?',
// nextLink: 'id("navbar")//td[last()]/a',
// set your twitter id and passowrd
var twitter_id = 'foo'
var twitter_password = 'bar'
var tw = new jetpack.lib.twitter.Twit(twitter_id, twitter_password)
jetpack.statusBar.append({
html: '<img src="http://assets1.twitter.com/images/favicon.ico" />',
width: 20,
onReady: function(widget){
$(widget).click(function() {
// ==UserScript==
// @name AutoPagerizeTwitterFilter
// @namespace http://relucks.org/
// @include http://twitter.com/
// ==/UserScript==
(function() {
var reqfl = function(opt) {
opt['headers'] = opt['headers'] || {}
opt['headers']['Accept'] = 'application/json, text/javascript, */*'
#!/usr/bin/env ruby
# -*- encoding: utf-8 -*-
require 'net/http'
require 'time'
require 'rubygems'
require 'pit'
require 'kconv'
def post url, opt = {}
// ==UserScript==
// @name url2img
// @namespace http://relucks.org/
// @include http*
// ==/UserScript==
(function() {
url2img(document)
document.addEventListener("DOMNodeInserted", function(e){
if (e.target.tagName) {
var base_dir = '/Users/youhei/Desktop/'
main()
function main() {
var dir = base_dir + document.getElementById('crumbAlb').textContent
var list = Array.filter(document.links, function(i) {
return /photo\/\d+#pictop$/.test(i.href)
})
if (list.length > 1) {