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
require 'RMagick' | |
include Magick | |
depth = 16 | |
range = (1 << depth) - 1 | |
orig_size = 48 | |
if ARGV.length > 0 | |
orig_img = Image.read(ARGV[0]).first |
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 いい… | |
// @namespace http://twitter.com/cxx | |
// @include http://www.facebook.com/plugins/like.php?* | |
// @version 1.2.1 | |
// ==/UserScript== | |
var texts = document.evaluate('.//text()', document.body, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); | |
for (var i = 0, len = texts.snapshotLength; i < len; i++) { | |
var t = texts.snapshotItem(i); |
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 pixiv Big Image | |
// @namespace http://twitter.com/cxx | |
// @include http://www.pixiv.net/member_illust.php?mode=medium&illust_id=* | |
// @version 1.0.0 | |
// ==/UserScript== | |
var img = document.querySelector('.works_display > a[href*="big"] > img'); | |
if (img) | |
img.src = img.src.replace('_m.', '.'); |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'net/http' | |
require 'securerandom' | |
require 'tempfile' | |
require 'RMagick' | |
def bin(str) | |
str.dup.force_encoding("ASCII-8BIT") | |
end |
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 Show Kanji Image | |
// @namespace http://gyz.heroku.com/ | |
// @include http://twitter.com/* | |
// @include https://twitter.com/* | |
// @version 1.0.2 | |
// ==/UserScript== | |
var $ = function(selectors, context) { | |
return Array.prototype.slice.call((context || document).querySelectorAll(selectors), 0); |
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
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'RMagick' | |
include Magick | |
COLS = 18 | |
ChannelDepths = [5, 5, 4] | |
files = [] |
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 Twittfilter for hitode909-RT | |
// @namespace http://d.hatena.ne.jp/send/ | |
// @description twitter filter | |
// @include http://twitter.com/* | |
// @include http://mobile.twitter.com/* | |
// ==/UserScript== | |
// | |
(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 Twittfilter for hitode909-RT | |
// @namespace http://d.hatena.ne.jp/send/ | |
// @description twitter filter | |
// @include http://twitter.com/* | |
// ==/UserScript== | |
// | |
(function (){ | |
var filter = function(node) { |
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
require 'rexml/document' | |
REXML::Document.new($stdin).write($stdout, 2) |
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 Bing Images direct link | |
// @namespace http://twitter.com/cxx | |
// @include http://www.bing.com/images/* | |
// @version 0.0.1.20100403 | |
// ==/UserScript== | |
(function() { | |
function $(id) { |