Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'ubygems'
require 'grope'
require 'RMagick'
class Grope::WSOWrapper
def undefined?
@wso.class.to_s == 'OSX::WebUndefined'
end
end
// ==UserScript==
// @name tweets_filter
// @namespace http://www.relucks.org/
// @include http://twitter.com/
// ==/UserScript==
var re = /./
// var re = /(4sq.com|#example)/
filter(document)
// ==UserScript==
// @name DegradeTwitterIcons
// @namespace http://polog.org/
// @include http://twitter.com/*
// @require http://gist.github.com/3242.txt
// @require http://www.bytestrom.eu/data/media/experiments/jpegencoder/examples/jpeg_encoder_basic.js
// ==/UserScript==
// using $X http://gist.github.com/3242 by os0x
function init(doc){
// ==UserScript==
// @name gist: replace title with filename
// @namespace http://d.hatena.ne.jp/youpy/
// @include http://gist.github.com/*
// @exclude http://gist.github.com/gists
// @require http://gist.github.com/3242.txt
// ==/UserScript==
(function() {
var username = $X('id("owner")//a')[0].textContent;
// ==UserScript==
// @name Streetview Thumbnail
// @namespace http://userscripts.org/users/ucnv
// @include http://maps.google.tld/maps*
// @include http://www.google.tld/maps*
// ==/UserScript==
var zoom = 1; // 0-3
function makeLink(panoid) {
var mx = [[1, 1], [2, 1], [4, 2], [6, 4]];
#!/usr/bin/env ruby
require 'webrick'
require 'webrick/httpproxy'
handler = Proc.new() do |req,res|
if (req.path == '/glm/mmap' and res['content-type'] =~ /binary/) ||
(req.host =~ /^cbk\d+\.google/ and res['content-type'] =~ /jpeg/)
#res.body.gsub!(/0/m, rand(10).to_s)
sos = res.body.index("\xFF\xDA")
// ==UserScript==
// @name GlitchMonkey
// @namespace http://d.hatena.ne.jp/youpy/
// @include *
// @require http://www.onicos.com/staff/iz/amuse/javascript/expert/inflate.txt
// ==/UserScript==
var Corruptions = {
'image/jpeg': function() {
return this.replace(/0/g, Math.floor(Math.random() * 10));