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
/* appjet:version 0.1 */ | |
const | |
ItemMax = 16, | |
H = (function(m){ | |
function f($){ return m[$] } | |
return function H(s){ return s.replace(/[&<>\"\']/g, f) }; | |
}({'&':'&','<':'<','>':'>','"':'"',"'":'''})), | |
$ = function(s, a){ | |
return s.replace(/\$[\d$]/g, function($x){ | |
var x = $x[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
diff --git a/ubiquity/chrome/content/ubiquity.js b/ubiquity/chrome/content/ubiquity.js | |
--- a/ubiquity/chrome/content/ubiquity.js | |
+++ b/ubiquity/chrome/content/ubiquity.js | |
@@ -92,16 +92,20 @@ Ubiquity.prototype = { | |
__KEYCODE_DOWN: 40, | |
__KEYCODE_TAB: 9, | |
__MIN_CMD_PREVIEW_LENGTH: 0, | |
__KEYCODE_1: 49, | |
get textBox() { |
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 tv.yahoo adjuster | |
// @namespace http://d.hatena.ne.jp/murky-satyr | |
// @include http://tv.yahoo.co.jp/listings/* | |
// ==/UserScript== | |
scrollTo(0, document.getElementsByClassName('programScrollTop')[0].offsetTop); |
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
/* appjet:version 0.1 */ | |
import('storage', 'lib-at0m'); | |
N = +request.path.slice(1) || 1e3; | |
A = Atom.Person('佐藤秀峰', {uri: 'http://satoshuho.com/'}); | |
Y = yqxml('http://satoshuho.com/shuho/diary.do', 'DiaryXML.diaries.diary'); | |
L = 0; | |
Atom({ | |
title: '佐藤秀峰 漫画制作日記', |
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
const AmazonView = ''+<><![CDATA[ | |
<style> | |
ol, ul {list-style: none; padding: 0; margin: 0} | |
img {float: right; margin: 0 0 0.5em 0.5em} | |
kbd {text-decoration: underline; text-transform: uppercase} | |
.item {clear: right} | |
kbd, .price {font-weight: bolder} | |
.price, .author, .label, .feature {font-size: 88%} | |
.author:before {content: "by "} | |
.feature:before {content: "\2022 "} |
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
diff --git a/ubiquity/chrome/content/ubiquity.js b/ubiquity/chrome/content/ubiquity.js | |
--- a/ubiquity/chrome/content/ubiquity.js | |
+++ b/ubiquity/chrome/content/ubiquity.js | |
@@ -238,18 +238,18 @@ Ubiquity.prototype = { | |
this.__needsToExecute = false; | |
} | |
this.__cmdManager.reset(); | |
}, | |
__onShown: function __onShown() { |
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
const Name = 'check-twitter', | |
Twitter = 'http://twitter.com/', | |
Icon = Twitter +'favicon.ico', | |
Base = <div class={Name}><style><![CDATA[ | |
${position:relative} | |
$ol {list-style:none; margin:0} | |
$li {font-size:92%; line-height:1.2em} | |
$ol, $li {padding:0.2em 0} | |
$a img {border:none} | |
$button {font:bold 100% "Consolas",monospace; padding:0; border-width:1px} |
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({ | |
name: 'test', | |
takes: {$: {_name: '$', suggest: function(txt, htm, cb){ | |
for(var i = 1; i <= 4; ++i) | |
(function(x) Utils.setTimeout(function(){ | |
cb(CmdUtils.makeSugg('async-'+ x)); | |
}, x * 333))(i); | |
return [CmdUtils.makeSugg(txt)]; | |
}}}, | |
preview: function(pbl, {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
/* appjet:version 0.1 */ | |
import(appjet.appName, 'lib-json'); | |
const Data = [{ | |
'null': null, | |
date : new Date, | |
number: [Math.random(), Math.random() / 9e99, Math.random() * 9e99], | |
regexp: /\\u[0-9a-f]{4}/ig, | |
string: (function(){ | |
for(var i = -1, a = []; ++i < 999;) a[i] = i; | |
return String.fromCharCode.apply(0, a); |