Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.js"></script>
<script>
$(function() {
try {
$('form').find(':text').val('ok');
} catch(e) {
$(':text').val('ng');
@xulapp
xulapp / Hatebu_count_on_Google_Reader.user.js
Created October 11, 2010 06:52
Hatebu count on Google Reader
// ==UserScript==
// @name Hatebu count on Google Reader
// @namespace http://twitter.com/xulapp
// @include http://www.google.tld/reader/view/*
// @include https://www.google.tld/reader/view/*
// @author xulapp
// @license MIT License
// @version 2010/10/11 15:50 +09:00
// ==/UserScript==
@xulapp
xulapp / store.js
Created September 12, 2010 11:07
storage
var store = (function() {
var keys = [];
var values = [];
return function store(key, value) {
var index = keys.indexOf(key);
if (1 < arguments.length) {
if (index === -1)
index = keys.push(key) - 1;
@xulapp
xulapp / innocencer.js1k.htm
Created September 10, 2010 11:50
innocencer.js1k
<!doctype html>
<html>
<head>
<title>JS1k, 1k demo submission</title>
<meta charset="utf-8" />
</head>
<body>
<canvas id="c"></canvas>
<script type="text/javascript" src="innocencer.js1k.js"></script>
</body>
@xulapp
xulapp / makemov.bat
Created August 15, 2010 06:29
1枚の画像と音声から動画を作成するバッチファイル (ffmpeg)
:: 1枚の画像と音声から動画を作成するバッチ
:: makemov [image [audio [output]]]
@echo off
:main
setlocal
call :cdt
ffmpeg > nul 2> nul
@xulapp
xulapp / NanoMenu.uc.js
Created August 1, 2010 18:57
NanoMenu.uc.js
{let a='appendChild',i='insertBefore',c='createElement',n='menu',d=document,b=d.getElementById('main-menubar'),m=d[c](n),p=b[a](m)[a](d[c](n+'popup'));for(b[a]=function(e)p[a](e),b[i]=function(e,r)p[i](e,r);m.id=n+'-'+n;m.setAttribute('accesskey',m.label='Menu'))p[a](b.firstChild)}
function Arraz() {
var self = [];
self.__proto__ = Arraz.prototype;
return self;
}
Arraz.prototype = {
__proto__: Array.prototype,
constructor: Arraz,
last: function() this[this.length - 1]
};
@xulapp
xulapp / removeSelection.uc.js
Created April 30, 2010 05:03
removeSelection.uc.js
// ==UserScript==
// @name removeSelection.uc.js
// @description 選択範囲を削除
// @include main
// @compatibility Firefox
// @namespace http://twitter.com/xulapp
// @author xulapp
// @license MIT License
// @version 2010/04/30 14:00 +09:00
// ==/UserScript==
@xulapp
xulapp / adblock.txt
Created April 27, 2010 02:32
adblock
http://pc12.2ch.net/test/read.cgi/software/1205894776/427 の自分用改造版
/[-./=_](?:
a(?:
ccess(?:trade)?|
d(?:
click|
frame|
im(?:
age|
@xulapp
xulapp / viewLinkSource.uc.js
Created April 18, 2010 16:54
viewLinkSource.uc.js
// ==UserScript==
// @name viewLinkSource.uc.js
// @description リンクのソースを表示
// @include main
// @compatibility Firefox
// @namespace http://twitter.com/xulapp
// @author xulapp
// @license MIT License
// @version 2010/04/19 01:50 +09:00
// @note リファラ送らず