This file contains 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
/** | |
* @description GitHub JavaScript API | |
* @author teramako teramako@gmail.com | |
* @license MIT | |
* @see http://develop.github.com/ | |
*/ | |
var GITHUB; | |
(function(){ |
This file contains 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
//#!/usr/lib/xulrunner/xpcshell -f | |
/* | |
const Cc = Components.classes; | |
const Ci = Components.interfaces; | |
*/ | |
liberator.plugins.telnetd = (function(){ | |
const cs = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService); |
This file contains 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
#!/usr/lib/xulrunner/xpcshell | |
const USAGE = <><![CDATA[ | |
XULRunner付属のxpcshellで動くJavaScript | |
引数のURLのHTML文字列を取得しパースして、再度文字列化して出力するもの | |
Usage: xpcshell curl.js URL | |
]]></>.toString(); |
This file contains 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 twittager | |
// @namespace http://twitter.com/teramako/ | |
// @include http://twitter.com/* | |
// @include https://twitter.com/* | |
// ==/UserScript== | |
(function(){ | |
const twittagerNS = new Namespace("http://twittag.r-definition.com/"); |
This file contains 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
let INFO = | |
<plugin name="jetpackHack" version="1.0" | |
href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/jetpackHack.js" | |
summary="enable to access to Jetpack inner context" | |
xmlns="http://vimperator.org/namespaces/liberator"> | |
<author email="teramako@gmail.com">teramako</author> | |
<license>BSD</license> | |
<project name="Vimperator" minVersion="2.2"/> | |
<p>Example: list executing Jetpack feature</p> | |
<code> |
This file contains 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
//テーマはvar, letを使わないこと | |
(function(n,c) | |
c.substr(0,c.length-c.length%n).split("").reduce( | |
function(p,c,i){ | |
p[i%n]+=c; | |
return p; | |
}, | |
Array.apply("",Array(n)).map(function()"") | |
).toSource() | |
)(4,"111122233445a") |
This file contains 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
var root = io.File("~/hoge"); | |
var target = io.File("~/var"); | |
var path=""; | |
while (root.parent){ | |
print(root.path); | |
if (target.path.indexOf(root.path) == 0){ | |
break; | |
} | |
root = root.parent; |
This file contains 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 tumblrDashboardSetPublicLink | |
// @namespace http://d.hatena.ne.jp/teramako/ | |
// @include http://www.tumblr.com/dashboard | |
// @include http://www.tumblr.com/tagged/* | |
// @author teramako | |
// @license MIT | |
// ==/UserScript== | |
let postLength = "post".length; |
This file contains 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
jetpack.future.import("slideBar"); | |
let NS = { | |
xhtml: "http://www.w3.org/1999/xhtml", | |
xul: "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", | |
}; | |
function nsResolver(prefix){ | |
return NS[prefix] || null; | |
} | |
function evaluate(xpath, elm){ |
This file contains 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
// http://gyazo.com/39e1c43d0529375b589843b9e20d26ed.png | |
- Jetpack | |
- Jetpackの制限 | |
可能かどうか | |
- ショートカットキー | |
グローバルなショートカットキーのフックは可能? | |
Documentのイベントリスナーで実装する場合、画像ページでもショートカットキーは有効? |