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
.tabbrowser-tab[image^='http://assets.tumblr.com/images/'] .tab-icon-image, | |
#page-proxy-favicon[src^="assets.tumblr.com/images/"], | |
tab[image^="http://assets.tumblr.com/images/"] .tab-icon, | |
tab[image^="http://assets.tumblr.com/images/"] .tab-icon | |
{ | |
width: 16 !important; | |
padding-left: 16px !important; | |
background: transparent url("http://assets.tumblr.com/images/favicon.gif?0") center center no-repeat !important; | |
/* background: transparent url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8%2F9hAAACvElEQVQ4jZ2TW28bZRCGV61jx3vyem3HdezNeu21t87Gpzo2dgItbUwaUvcLfIVPoop6AEqEuAOaC7jBSEUCfgYV8Es43uQiPyT%2F4OEikdtKcMNIczfv885oZrTR9g6jrZtsTm4yGN%2Fg2ug6vc1tOoMJ7f6YuDuk1R4QxT2aVzuE0QZBYx2%2FFuFVG2jDrVsIqf5XltcCtM3Jmwip6I%2Bu0xtu0xlsXTiPWG8PiOI%2BjVaHehQThOv4tSaeHyKkolT20a6NbyCkojfcpjuY8PjjT%2Fnq6284fPgRhw8%2B5P7hIz44fMiTo8%2F4%2FItjyms1VisBQiqKVypo%2FdEbCKkWzn%2F%2B9Tf%2FFWdnZwT1JitXygipKKyU0HrD1xFSsdEfs%2Fu2AODnX35lteIthG%2Ft3ubp8TEAnxwdkXULzA7ukcsX0TqDLYRUxN0hDx4%2F4bff%2F8DzAzLZ3AKwM51imDY%2FPX% |
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 | |
require 'rubygems' | |
require 'mechanize' | |
require 'cgi' | |
email = '' | |
password = '' | |
email, password = ARGV |
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
alert("test2"); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
// http://d.hatena.ne.jp/javascripter/20090218/1234966398 | |
// こんなかんじなのかな? | |
typedef struct list { | |
char c; | |
struct list* next; | |
struct list* prev; | |
} LIST; |
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
// http://d.hatena.ne.jp/Yoshiori/20090218/1234945857 | |
var a = []; | |
http://d.hatena.ne.jp/Constellation/ | |
for(var i = 0, l = 200; i < l; ++i){ | |
if(i == 100) break http; | |
a.push(i); | |
} | |
alert(a); |
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 test head method | |
// @namespace test for head method on GM_xmlhttpRequest | |
// @include * | |
// ==/UserScript== | |
(function(){ | |
var opt = { | |
//なんとなくGoogle Chromeのvideoっぽいもの. | |
url: 'http://www.youtube.com/get_video?&fmt=22&video_id=k8wz7S8IDq8&t=vjVQa1PpcFOM9OObEAE4H50xwsy01REszoRFXWWk1LE=', | |
onload: function(res){ |
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 'webrick' | |
# method確認用 | |
path = File.expand_path('~/dev/html') | |
srv = WEBrick::HTTPServer.new({ | |
:DocumentRoot => path, | |
:BindAddress => '0.0.0.0', | |
:Port => 10080, | |
:AccessLog => [[STDERR, "%m %r %s"]], | |
}) | |
['INT', 'TERM'].each do |signal| |
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.AutoPager | |
// @namespace http://ss-o.net/ | |
// @version 0.1 | |
// @include http://twitter.com/* | |
// @include https://twitter.com/* | |
// ==/UserScript== | |
(function autopager(unsafeWindow,loaded){ | |
if (!loaded && window.opera && document.readyState == 'interactive') { |
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 'open-uri' | |
require 'kconv' | |
require 'json' | |
$KCODE = 'u' | |
def parse text | |
reg = /^ ([^:]+): *'?((?:'|[^'])*?)'? *,? *$/ | |
info = {} | |
updated = false | |
text.split(/(?:\r\n|[\r\n]+)/).inject([]){|memo, line| |
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 -*- | |
# | |
# usage: | |
# $ ruby #{this_file} #{firefox_profile_directory} | |
# or | |
# if pwd is firefox profile directory | |
# $ ruby #{this_file} | |
# | |
if ARGV.empty? |