Skip to content

Instantly share code, notes, and snippets.

@gifnksm
gifnksm / ldrnail.ks.js
Last active August 29, 2015 14:00 — forked from 958/ldrnail.ks.js
// Info
let PLUGIN_INFO =
<KeySnailPlugin>
<name>LDRnail</name>
<description>LDRize clone with KeySnail</description>
<description lang="ja">LDRize を KeySnail で</description>
<iconURL>https://sites.google.com/site/958site/Home/files/ldrnail.png</iconURL>
<updateURL>https://gist.github.com/958/1369730/raw/ldrnail.ks.js</updateURL>
<author>958</author>
@gifnksm
gifnksm / dollarX.js
Created December 23, 2009 10:34 — forked from cho45/dollarX.js
// extend version of $X
function $exp (exp, ownerDocument) {
if (!ownerDocument)
ownerDocument = document;
return ownerDocument.createExpression(exp, function (prefix) {
var o = document.createNSResolver(context)(prefix);
if (o) return o;
return (document.contentType == "application/xhtml+xml") ? "http://www.w3.org/1999/xhtml" : "";
});
}