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
// 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> |
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
// 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" : ""; | |
}); | |
} |