js-ctype に関するメモ
- JavaScriptからバイナリモジュール内の関数の直実行を可能にする
- cライブラリの関数を呼び出すなど
js-ctype に関するメモ
| /* | |
| * get Redirected URL - Vimperator Plugin | |
| * Command: | |
| * :testurl {URL} | |
| */ | |
| function getRedirectedURL(url){ | |
| if (typeof url != "string") | |
| throw new TypeError("url must be string"); | |
| let uri = util.newURI(url); | |
| if (!uri.schemeIs("http") && !uri.schemeIs("https")) |
| /** | |
| * Vimperator-Plugin | |
| * @see http://vimperator.g.hatena.ne.jp/voidy21/20100119/1263907211 | |
| * @see http://vimperator.g.hatena.ne.jp/nokturnalmortum/20100120/1263927707 | |
| * @see http://vimperator.g.hatena.ne.jp/teramako/20100221/1266774716 | |
| * @require _libly.js | |
| */ | |
| let U = liberator.plugins.libly.$U; |
| // Vimperator plugin for personas | |
| /* | |
| Command: | |
| :personas {id} | |
| change to {id}'s theme | |
| :personas null | |
| use default theme | |
| :personas {id} -c[color] {color} |
| " ==Vimperator_Color_Scheme== | |
| " name: Sweets | |
| " ==Sweets_Color_Scheme== | |
| hi Hint font-family: monospace; font-size: 15px; font-weight: normal; color: lightyellow; background-color: black; border-color: ButtonShadow; border-width: 0px; border-style: solid; padding: 0px 5px; | |
| hi HintElem background-color: pink; color: black; | |
| hi HintActive background-color: hotpink; color: white; | |
| hi StatusLine color: DeepPink; background: rgba(0,0,0,0.7); font-weight: normal; font-size: 10pt; |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
| <title>TwitterIconPixels</title> | |
| <script type="text/javascript" src="toPixel.js"></script> | |
| </head> | |
| <body onload="init()"> | |
| <h1>Twitter Icon Pixels</h1> | |
| <canvas id="can" width="16" height="16"></canvas> | |
| <pre id="debug"></pre> |
| /* | |
| * RTE (RichTextEditor) を外部エディタで編集するプラグイン | |
| * http://www.kevinroth.com/rte/demo.htm | |
| * などで試してみよう | |
| * | |
| * フォーカスしてから、<C-S-I> でエディタが立ち上がるはず。 | |
| * もちろん 'editor' オプションがきちんと設定されていること | |
| */ | |
| let nsIR = Ci.nsIInterfaceRequestor; |
| /* | |
| * BarTab integration - Vimperator Plugin | |
| * | |
| * Commands: | |
| * :tap tap the current tab | |
| * :tap # tap the previous seleced tab | |
| * :tap {num}:? tap the {num}-th tab | |
| * :tap! tap all tabs without the current tab | |
| * | |
| * Tab Completion is available !! |