mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-14 18:45:46 +01:00
Death to E4X and stuff.
This commit is contained in:
@@ -57,9 +57,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, <![CDATA[
|
||||
styles.system.add("cleanup-sheet", config.styleableChrome, literal(/*
|
||||
#TabsToolbar tab { display: none; }
|
||||
]]>);
|
||||
*/));
|
||||
styles.unregisterSheet("resource://dactyl-skin/dactyl.css");
|
||||
DOM('#TabsToolbar tab', document).style.display;
|
||||
},
|
||||
@@ -1055,15 +1055,15 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
}, this);
|
||||
},
|
||||
stringToURLArray: deprecated("dactyl.parseURLs", "parseURLs"),
|
||||
urlish: Class.Memoize(function () util.regexp(<![CDATA[
|
||||
urlish: Class.Memoize(function () util.regexp(literal(/*
|
||||
^ (
|
||||
<domain>+ (:\d+)? (/ .*) |
|
||||
<domain>+ (:\d+) |
|
||||
<domain>+ \. [a-z0-9]+ |
|
||||
localhost
|
||||
) $
|
||||
]]>, "ix", {
|
||||
domain: util.regexp(String.replace(<![CDATA[
|
||||
*/), "ix", {
|
||||
domain: util.regexp(String.replace(literal(/*
|
||||
[^
|
||||
U0000-U002c // U002d-U002e --.
|
||||
U002f // /
|
||||
@@ -1072,7 +1072,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: {},
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
//
|
||||
// This work is licensed for reuse under an MIT license. Details are
|
||||
// given in the LICENSE.txt file included with this file.
|
||||
/* use strict */
|
||||
"use strict";
|
||||
|
||||
/** @scope modules */
|
||||
|
||||
|
||||
@@ -487,7 +487,9 @@ var Modes = Module("modes", {
|
||||
update(StackElement.prototype, {
|
||||
get toStringParams() !loaded.modes ? this.main.name : [
|
||||
this.main.name,
|
||||
<>({ modes.all.filter(function (m) this.extended & m, this).map(function (m) m.name).join("|") })</>
|
||||
["(", modes.all.filter(function (m) this.extended & m, this)
|
||||
.map(function (m) m.name).join("|"),
|
||||
")"].join("")
|
||||
]
|
||||
});
|
||||
return StackElement;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
//
|
||||
// This work is licensed for reuse under an MIT license. Details are
|
||||
// given in the LICENSE.txt file included with this file.
|
||||
/* use strict */
|
||||
"use strict";
|
||||
|
||||
/** @scope modules */
|
||||
|
||||
@@ -15,28 +15,26 @@ var StatusLine = Module("statusline", {
|
||||
this.baseGroup = this.statusBar == this._statusLine ? "StatusLine " : "";
|
||||
|
||||
if (this.statusBar.localName == "toolbar") {
|
||||
styles.system.add("addon-bar", config.styleableChrome, <css><![CDATA[
|
||||
styles.system.add("addon-bar", config.styleableChrome, literal(/*
|
||||
#status-bar { margin-top: 0 !important; }
|
||||
#addon-bar > statusbar { -moz-box-flex: 1 }
|
||||
#addon-bar > #addonbar-closebutton { visibility: collapse; }
|
||||
#addon-bar > xul|toolbarspring { visibility: collapse; }
|
||||
]]></css>);
|
||||
*/));
|
||||
|
||||
overlay.overlayWindow(window, {
|
||||
append: [
|
||||
["statusbar", { id: "status-bar", ordinal: "0" }]]
|
||||
});
|
||||
|
||||
highlight.loadCSS(util.compileMacro(<![CDATA[
|
||||
highlight.loadCSS(util.compileMacro(literal(/*
|
||||
!AddonBar;#addon-bar {
|
||||
/* The Add-on Bar */
|
||||
padding-left: 0 !important;
|
||||
min-height: 18px !important;
|
||||
-moz-appearance: none !important;
|
||||
<padding>
|
||||
}
|
||||
!AddonButton;#addon-bar xul|toolbarbutton {
|
||||
/* An Add-on Bar button */
|
||||
-moz-appearance: none !important;
|
||||
padding: 0 !important;
|
||||
border-width: 0px !important;
|
||||
@@ -44,13 +42,12 @@ var StatusLine = Module("statusline", {
|
||||
color: inherit !important;
|
||||
}
|
||||
AddonButton:not(:hover) background: transparent;
|
||||
]]>)({ padding: config.OS.isMacOSX ? "padding-right: 10px !important;" : "" }));
|
||||
*/))({ padding: config.OS.isMacOSX ? "padding-right: 10px !important;" : "" }));
|
||||
|
||||
if (document.getElementById("appmenu-button"))
|
||||
highlight.loadCSS(<![CDATA[
|
||||
AppmenuButton /* The app-menu button */ \
|
||||
min-width: 0 !important; padding: 0 .5em !important;
|
||||
]]>);
|
||||
highlight.loadCSS(literal(/*
|
||||
AppmenuButton min-width: 0 !important; padding: 0 .5em !important;
|
||||
*/));
|
||||
}
|
||||
|
||||
XML.ignoreWhitespace = true;
|
||||
|
||||
@@ -35,9 +35,9 @@ var Tabs = Module("tabs", {
|
||||
tabs.switchTo(event.originalTarget.getAttribute("identifier"));
|
||||
};
|
||||
|
||||
this.tabBinding = styles.system.add("tab-binding", "chrome://browser/content/browser.xul", String.replace(<><![CDATA[
|
||||
this.tabBinding = styles.system.add("tab-binding", "chrome://browser/content/browser.xul", String.replace(literal(/*
|
||||
xul|tab { -moz-binding: url(chrome://dactyl/content/bindings.xml#tab) !important; }
|
||||
]]></>, /tab-./g, function (m) config.OS.isMacOSX ? "tab-mac" : m),
|
||||
*/), /tab-./g, function (m) config.OS.isMacOSX ? "tab-mac" : m),
|
||||
false, true);
|
||||
|
||||
this.timeout(function () {
|
||||
|
||||
Reference in New Issue
Block a user