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
// vim:set fdm=marker et sw=4 ts=4: | |
var INFO = //{{{ | |
<plugin name="treeStyleTab" version="0.0.2" | |
href="http://github.com/caisui/vimperator/blob/master/plugin/treeStyleTab.js" | |
summary="Tree Stye Tab" | |
xmlns="http://vimperator.org/namespaces/liberator"> | |
<author href="http://d.hatena.ne.jp/caisui">caisui</author> | |
<license href="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> | |
<project name="Vimperator" minVersion="2.0"/> | |
<item> |
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
from http.server import SimpleHTTPRequestHandler, test | |
class CSPHTTPRequestHandler(SimpleHTTPRequestHandler): | |
def end_headers(self): | |
self.send_header('Content-Security-Policy', "default-src 'self'") | |
super(CSPHTTPRequestHandler, self).end_headers() | |
if __name__ == '__main__': | |
test(HandlerClass=CSPHTTPRequestHandler) |
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
diff --git a/vimperator/content/config.js b/vimperator/content/config.js | |
--- a/vimperator/content/config.js | |
+++ b/vimperator/content/config.js | |
@@ -7,6 +7,15 @@ | |
const Config = Module("config", ConfigBase, { | |
init: function () { | |
+ // XXX: for Australis | |
+ var vc = Cc["@mozilla.org/xpcom/version-comparator;1"].getService(Ci.nsIVersionComparator); | |
+ if (vc.compare(Application.version, "28.0a1") === 0) { |
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
" vimperator ex | |
augroup javascriptT | |
au! | |
function JavaScriptSyntaxEx() | |
if match(expand("%:p"), "/vimperator/") >= 0 | |
syntax region javaScriptStringT start="[a-z]*`" end="`" contains=javaScriptSpecial,@htmlPreproc | |
syntax region javaScriptStringT1 matchgroup=javaScriptStringTBraces start="${" end="}" contains=TOP,javaScriptBraces contained containedin=javaScriptStringT | |
syntax region javaScriptStringT2 matchgroup=javaScriptBraces start="{" end="}" contains=TOP,javaScriptBraces contained containedin=javaScriptStringT1,javaScriptStringT2 | |
hi link javaScriptStringT String | |
hi link javaScriptStringTBraces Special |
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
diff --git a/common/content/util.js b/common/content/util.js | |
--- a/common/content/util.js | |
+++ b/common/content/util.js | |
@@ -797,11 +797,46 @@ | |
} | |
return dom.childNodes.length === 1 ? dom.childNodes[0] : dom; | |
}, | |
- domToStr: function domToStr(node) { | |
- var enc=Cc["@mozilla.org/layout/documentEncoder;1?type=text/plain"].getService(Ci.nsIDocumentEncoder); | |
- enc.init(node.ownerDocument, "text/html", 0); |
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
diff --git a/common/content/util.js b/common/content/util.js | |
--- a/common/content/util.js | |
+++ b/common/content/util.js | |
@@ -782,12 +782,12 @@ | |
* @see util.xmlToDom | |
*/ | |
xmlToDomForTemplate: function xmlToDomForTemplate(node, doc, nodes) { | |
- var dom = doc.createDocumentFragment(); | |
var range = doc.createRange(); | |
var fragment = range.createContextualFragment( |
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
(function () { | |
const EOF = {}; | |
function iterLine(source) { | |
source += "\n"; | |
var re = /\r\n?|\n/g; | |
var m; | |
var line = 1; | |
var offset = 0; | |
while (m = re.exec(source)) { | |
yield [line++, source.substring(offset, m.index)]; |
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
diff --git a/common/modules/template.js b/common/modules/template.js | |
--- a/common/modules/template.js | |
+++ b/common/modules/template.js | |
@@ -1,10 +1,6 @@ | |
var EXPORTED_SYMBOLS = ["convert"]; | |
const Cu = Components.utils; | |
-gDebugOutput = false; | |
-var scope = {}; | |
-Cu.import("resource://gre/modules/Services.jsm", scope); |
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
// vim: set sw=4 ts=4 fdm=marker et : | |
//"use strict"; | |
var INFO = //{{{ | |
<plugin name="hints-ext" version="0.0.3" | |
href="http://github.com/caisui/vimperator/blob/master/plugin/hints-ext.js" | |
summary="Hints Ext" | |
xmlns="http://vimperator.org/namespaces/liberator"> | |
<author href="http://d.hatena.ne.jp/caisui">caisui</author> | |
<license href="http://www.opensource.org/licenses/bsd-license.php">New BSD License</license> | |
<project name="Vimperator" minVersion="3.0"/> |
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
// vim: set fdm=marker : | |
function Reader() {} //{{{ | |
Reader.prototype.END = {}; | |
(function (F) { | |
var P = F.prototype; | |
P.open = true; | |
P.path = "undefined(str)"; | |
P.close = function close() { | |
this.open = false; | |
}; |
NewerOlder