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 faceiconize | |
// @namespace http://www.relucks.org/ | |
// @include http://twitter.com/home | |
// ==/UserScript== | |
(function() { | |
var fl = function(doc) { | |
var st = getElementsByXPath('//td[@class="thumb vcard author"]/a', doc) | |
st.forEach(function(i){ |
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://photo.ameba.jp/user/nakamura-miu/0791ba741a0105htt5o811/ | |
var base_dir = '/Users/youhei/Desktop/' | |
main() | |
function main() { | |
var tmp = document.location.href.split('/').slice(-3) | |
var n = [tmp[0], tmp[1]].join('_') | |
var dir = base_dir + n | |
var list = Array.filter(document.images, function(i) { | |
return (i.width == 100 || i.height == 100) |
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 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
class GistID | |
GIST_URL = 'http://gist.github.com/' | |
ALL_LIMIT = 10 | |
def initialize user = get_user | |
@user = (user.nil? || user == :all) ? 'gists' : user |
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 kill typeface-js | |
// @namespace http://www.relucks.org/ | |
// @include http://* | |
// @include https://* | |
// ==/UserScript== | |
Array.forEach(document.getElementsByClassName('typeface-js'), | |
function(i) { | |
i.innerHTML = Array.map(i.firstChild.childNodes, function(j) { |
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 LDR - exblog filter | |
// @namespace http://www.relucks.org/ | |
// @include http://reader.livedoor.com/reader/ | |
// ==/UserScript== | |
var fl = function(feed) { | |
var re = /^http:\/\/[^. ]+\.exblog\.jp/ | |
if (re.test(feed.channel.link)) { | |
for (var i = 0; i < feed.items.length; i++) { |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<link rel="stylesheet" href="testsuite.css" type="text/css" media="screen" /> | |
<script> | |
// http://docs.jquery.com/QUnit | |
// resolve_path_xml |
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<script type="text/javascript" src="http://jqueryjs.googlecode.com/svn/trunk/qunit/testrunner.js"></script> | |
<link rel="stylesheet" href="http://dev.jquery.com/view/trunk/qunit/testsuite.css" type="text/css" media="screen" /> | |
<!-- | |
<script type="text/javascript" src="testrunner.js"></script> |
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
// Tabs - jsactions script | |
(function(){ | |
var html_dir = '/Users/youhei/Desktop/tabs/' | |
main() | |
function main() { | |
var dim = {h: window.innerHeight, w: window.innerWidth} | |
var list = Array.map(gBrowser.mTabs, function(tab) { | |
var w = gBrowser.getBrowserForTab(tab).contentWindow | |
var c = capture(w, {x: 0, y:0}, dim, 0.3) |
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); | |
img.motsu { | |
max-height: 1.4em; | |
max-width: 1.4em; | |
vertical-align: middle; | |
} | |
span.motsustring { | |
opacity: 0.6; | |
} |