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
/** | |
* なんでもGeneratorに変換して、統一したインターフェースで回すためのライブラリ | |
* | |
* 対応リスト | |
* - Array | |
* - String | |
* - NodeList | |
* - HTMLCollection | |
* - nsISupportsArray | |
* - nsIEnumerator |
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
/* | |
* このファイルを置いたディレクトリに | |
* twittperator.log | |
* を作って、ChirpUserStream からのデータを書き出すよ | |
* tail -f で見ると良い感じ!! | |
*/ | |
let charset = "UTF-8"; | |
let os, fos; |
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
/* | |
g:twlist_screen_name = <your screen name> | |
== Options == | |
set [no]showtwlist[!] | |
show twittperator timeline | |
*/ |
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.ignoreProcessingInstructions = false; | |
let xml = <> | |
<?xml-stylesheet type="text/css" href="chrome://browser/skin/"?> | |
<window id="twitt-popup" | |
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | |
xmlns:xhtml="http://www.w3.org/1999/xhtml" | |
pack="start" | |
ondblclick="window.close()"> | |
<box id="dialog" style="padding: 10px; border: 2px solid #7B969C;"> | |
<hbox align="center" pack="center"> |
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
js <<EOM | |
let windowListener = { | |
titles: { | |
"chrome://mozapps/content/downloads/downloads.xul": "Download Window Title", | |
}, | |
observe: function(s, t, d) { | |
if (t=="domwindowopened" && s=="[object ChromeWindow]"){ | |
s.QueryInterface(Ci.nsIDOMWindow); | |
let self = this; | |
s.addEventListener("DOMContentLoaded", function(){ |
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 linkLarger | |
// @namespace http://gist.github.com/teramako/ | |
// @description リンクを大きくするお!! 【注意】超重たい | |
// @include http://* | |
// ==/UserScript== | |
const C = "linkLarger-link"; | |
GM_addStyle(<><![CDATA[ | |
.linkLarger-link { |
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
/** | |
* HTML テキストをパースするサンプル | |
* @see http://mxr.mozilla.org/mozilla/source/browser/components/microsummaries/src/nsMicrosummaryService.js | |
* | |
* スクリプトや画像を読み込まず、パースのみをするはず。 | |
* 当然ながら XPCOM の使用特権(Chrome特権)が必要 | |
*/ | |
/* | |
// Sample 1 | |
httpGet("http://example.com", |
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
#!/bin/perl -lw | |
use strict; | |
use warnings; | |
my $pid = fork; | |
my $tmpfile = "/tmp/hoge.tmp"; | |
die "Connot fork: $!" unless defined $pid; | |
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 EXArray () { | |
for (var i = 0, len = arguments.length; i < len; i++) { | |
this[i] = arguments[i]; | |
} | |
this.__proto__.__proto__ = Array.prototype.slice.call(arguments); | |
} | |
EXArray.prototype = { | |
item: function (i) { | |
return this[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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
@namespace html url("http://www.w3.org/1999/xhtml"); | |
@-moz-document url("chrome://browser/content/tabview.html") { | |
html|div#bg { | |
background-image: url(file:///C:/........./panorama_bg.jpg) !important; | |
background-size:100% auto !important; | |
background-position:0 0 !important; | |
} | |
} |