This file contains hidden or 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
| src= install.rdf Makefile $(shell find . \( -name '*.js' -or -name chrome.manifest \)) | |
| output=sourceless.xpi | |
| xpi: $(src) | |
| zip $(output) -r $(src) |
- git clone https://git01.codeplex.com/typescript
- RC file
let typescript_path=<path>
- let's typescript
This file contains hidden or 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; | |
| }; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |