Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name twitter embed image
// @namespace http://twitter.com/swdyh/
// @include http://twitter.com/*
// ==/UserScript==
document.addEventListener("DOMNodeInserted", function(e) {
var selector = 'a[href$=".jpg"], a[href$=".png"], a[href$=".gif"]'
var elm = e.target
a[href^="http://mixi.jp/share.pl"] {
display: none !important;
}
iframe[src^="http://share.gree.jp/share"] {
display: none !important;
}
// ==UserScript==
// @name tweets_filter
// @namespace http://www.relucks.org/
// @include http://twitter.com/
// ==/UserScript==
var re = /(4sq.com)/
// var re = /(4sq.com|#example)/
filter(document)
require 'openssl'
require 'open-uri'
# 1.9
url = 'https://example.com'
content = open(url, :ssl_verify_mode => OpenSSL::SSL::VERIFY_NONE).read
puts content
# ssl_verify_mode options (default OpenSSL::SSL::VERIFY_PEER)
# OpenSSL::SSL::VERIFY_CLIENT_ONCE
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("bccks.jp") {
.el { background-image: none !important; }
}
# もらったお金
Pledgie — Donate To: "autopagerize"
<http://pledgie.com/campaigns/849>
# 使ったお金
* Moziilaイベント配布用チラシ、デザイン・印刷費 $160 USD
* YAPCチケット ¥5,000 JPY
* userscripts.orgへ寄付 $20.00 USD
* RubyKaigiチケット ¥6,000 JPY
* ドメイン(autopagerize.net) ¥990 JPY
application/x-xpinstall xpi
application/x-chrome-extension crx
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'net/http'
require 'rubygems'
require 'json'
class YKS
def initialize appid
@appid = appid
require 'net/http'
uri = URI.parse 'http://x.search.yahoo.co.jp/search'
r = Net::HTTP.post_form uri, :p => 'ruby'
p r
# ruby 1.8.6 (2007-09-24 patchlevel 111)
#<Net::HTTPOK 200 OK readbody=true>
# ruby 1.9.1p243 (2009-07-16 revision 24175)
// ==UserScript==
// @name embed typograffit
// @namespace http://www.relucks.org/
// @include http://twitter.com/
// ==/UserScript==
(function() {
var loaded = {}
url2img(document)
document.addEventListener("DOMNodeInserted", function(e){