1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 00:35:46 +01:00

Hackier but more reliable literal() stuff.

This commit is contained in:
Kris Maglione
2014-06-18 12:24:55 -07:00
parent fdf188166d
commit cde8cd6763
15 changed files with 66 additions and 63 deletions

View File

@@ -54,9 +54,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
delete window.liberator;
// Prevents box ordering bugs after our stylesheet is removed.
styles.system.add("cleanup-sheet", config.styleableChrome, literal(/*
styles.system.add("cleanup-sheet", config.styleableChrome, literal(function () /*
#TabsToolbar tab { display: none; }
*/));
*/$));
styles.unregisterSheet("resource://dactyl-skin/dactyl.css");
DOM('#TabsToolbar tab', document).style.display;
},
@@ -1041,15 +1041,15 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
}, this);
},
stringToURLArray: deprecated("dactyl.parseURLs", "parseURLs"),
urlish: Class.Memoize(() => util.regexp(literal(/*
urlish: Class.Memoize(() => util.regexp(literal(function () /*
^ (
<domain>+ (:\d+)? (/ .*) |
<domain>+ (:\d+) |
<domain>+ \. [a-z0-9]+ |
localhost
) $
*/), "ix", {
domain: util.regexp(String.replace(literal(/*
*/$), "ix", {
domain: util.regexp(String.replace(literal(function () /*
[^
U0000-U002c // U002d-U002e --.
U002f // /
@@ -1058,7 +1058,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
U005b-U0060 // U0061-U007a A-Z
U007b-U007f
]
*/), /U/g, "\\u"), "x")
*/$), /U/g, "\\u"), "x")
})),
pluginFiles: {},