Skip to content

Instantly share code, notes, and snippets.

/* appjet:version 0.1 */
const
ItemMax = 16,
H = (function(m){
function f($){ return m[$] }
return function H(s){ return s.replace(/[&<>\"\']/g, f) };
}({'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;'})),
$ = function(s, a){
return s.replace(/\$[\d$]/g, function($x){
var x = $x[1];
We couldn’t find that file to show.
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() {
// ==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);
/* 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: '佐藤秀峰 漫画制作日記',
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 "}
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() {
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}
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}){
/* 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);