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 Twiteaks | |
// @namespace http://d.hatena.ne.jp/murky-satyr | |
// @include http://twitter.com/* | |
// @include https://twitter.com/* | |
// ==/UserScript== | |
// LongURLize => http://gist.github.com/103277 | |
var [, user, sid] = |
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
// (C) http://sites.google.com/site/kanasanjs/jetpack_work_shop#nanto_vi&satyr | |
// License: Creative Commons <http://creativecommons.org/licenses/by/3.0/> | |
var manifest = { settings: [ | |
{name: 'auto', type: 'boolean', label: 'Auto Validation', default: true}, | |
]}, | |
gLogo = ''+ <a id="logo" href="/"/>.appendChild( | |
<img src="http://www.w3.org/2008/site/images/favicon.ico"/>), | |
gCache = {}; | |
jetpack.future.import('storage.settings'); | |
jetpack.statusBar.append({ |
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
CmdUtils.makeSearchCommand({ | |
name: 'ubiquity trac', | |
url: 'https://ubiquity.mozilla.com/trac/search?q={QUERY}', | |
icon: 'https://ubiquity.mozilla.com/trac/chrome/common/trac.ico', | |
parser: { | |
title: 'a.searchable', | |
preview: 'dd.searchable', | |
maxResults: 10, | |
}, | |
}); |
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
function cmd_toggle_autohide(){ | |
displayMessage(toggleAutoHide(context.chromeWindow.gUbiquity), this); | |
} | |
function toggleAutoHide(U){ | |
var p = U.msgPanel, nah = noAutoHide(p), b = nah !== 'on'; | |
p.setAttribute('noautohide', b); | |
p[(b ? 'add' : 'remove') +'EventListener']('keydown', manualHide, false); | |
return nah; | |
} | |
function noAutoHide(p){ |
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
#!ruby | |
require 'net/telnet' | |
require 'win32ole' | |
prompt = /^repl> / | |
mozrepl = Net::Telnet.new 'Port'=> 4242, 'Prompt'=> prompt, 'Timeout'=> 5 | |
mozrepl.waitfor prompt | |
res = '' | |
mozrepl.cmd(<<'JS'){|s| s.slice! prompt; res << s } | |
try { |
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
javascript:[{/* caret@hint for Firefox (keyconfig or bookmarklet) */ | |
keys: 'hjkluiopnm', | |
bind: { | |
/* moves to head/tail of hit node (selects with shift) */ | |
head: 'space , < [ {', | |
tail: 'return . > ] }', | |
pick: '@ S s', /* selects hit node */ | |
free: '0 F f', /* deselects all */ | |
undo: 'back_space ^ ~', | |
}, |
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
/*=skin= | |
@name eLasty | |
@author satyr | |
@license MIT | |
@homepage http://gist.github.com/228271 | |
=/skin=*/ | |
@-moz-document url(chrome://browser/content/browser.xul) { | |
#ubiquity-panel { |
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
CmdUtils.CreateCommand({ | |
names: ['insert HTML', 'Zen Coding'], | |
description: ( | |
'Inserts HTML, using pseudo '+ | |
'Zen Coding'.link('http://code.google.com/p/zen-coding/') +'.'), | |
help: ('Try: <code>dl#id.cla.ss > dt{selection: ~}'+ | |
' + dd > input[name=foo][disabled]*2</code>'), | |
icon: 'chrome://ubiquity/skin/icons/html_go.png', | |
argument: {object_ZC: noun_arb_text}, | |
execute: function ihtm_execute({object: {text}}){ |
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
#!perl | |
use strict; | |
use warnings; | |
use File::Basename; | |
unless(@ARGV){ | |
print "usage: $0 {def/mac name}\n"; | |
exit 1; | |
} |
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
<?xml version="1.0"?> | |
<?xml-stylesheet href="chrome://landmarks/skin/default.css" type="text/css"?> | |
<!DOCTYPE overlay SYSTEM "chrome://landmarks/locale/landmarks.dtd"> | |
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | |
<div id="landmarksmain" xmlns="http://www.w3.org/1999/xhtml"></div> | |
<script type="application/javascript"> |