This file contains hidden or 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 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 |
This file contains hidden or 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 tweets_filter | |
// @namespace http://www.relucks.org/ | |
// @include http://twitter.com/ | |
// ==/UserScript== | |
var re = /(4sq.com)/ | |
// var re = /(4sq.com|#example)/ | |
filter(document) |
This file contains hidden or 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 '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 |
This file contains hidden or 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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("bccks.jp") { | |
.el { background-image: none !important; } | |
} |
This file contains hidden or 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
# もらったお金 | |
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 |
This file contains hidden or 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
application/x-xpinstall xpi | |
application/x-chrome-extension crx |
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
require 'net/http' | |
require 'rubygems' | |
require 'json' | |
class YKS | |
def initialize appid | |
@appid = appid |
This file contains hidden or 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 '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) |
This file contains hidden or 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 embed typograffit | |
// @namespace http://www.relucks.org/ | |
// @include http://twitter.com/ | |
// ==/UserScript== | |
(function() { | |
var loaded = {} | |
url2img(document) | |
document.addEventListener("DOMNodeInserted", function(e){ |