mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 15:22:26 +01:00
Move to the chrome://liberator namespace
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
# Firefox
|
# Firefox
|
||||||
content vimperator content/
|
content liberator content/
|
||||||
resource vimperator modules/
|
resource liberator modules/
|
||||||
locale vimperator en-US locale/en-US/
|
locale liberator en-US locale/en-US/
|
||||||
skin vimperator classic/1.0 skin/
|
skin liberator classic/1.0 skin/
|
||||||
overlay chrome://browser/content/browser.xul chrome://vimperator/content/vimperator.xul
|
override chrome://liberator/content/liberator.dtd chrome://liberator/content/vimperator.dtd
|
||||||
|
overlay chrome://browser/content/browser.xul chrome://liberator/content/liberator.xul
|
||||||
|
overlay chrome://browser/content/browser.xul chrome://liberator/content/vimperator.xul
|
||||||
|
|
||||||
|
|||||||
@@ -42,8 +42,7 @@ liberator.Buffer = function () //{{{
|
|||||||
["Search", ".__liberator-search", "*"],
|
["Search", ".__liberator-search", "*"],
|
||||||
["Bell", "#liberator-visualbell"],
|
["Bell", "#liberator-visualbell"],
|
||||||
];
|
];
|
||||||
let name = liberator.config.name.toLowerCase();
|
const highlightDocs = "chrome://liberator/content/buffer.xhtml,chrome://browser/content/browser.xul";
|
||||||
const highlightDocs = "chrome://" + name + "/content/buffer.xhtml,chrome://browser/content/browser.xul";
|
|
||||||
|
|
||||||
var highlight = liberator.storage.newMap("highlight", false);
|
var highlight = liberator.storage.newMap("highlight", false);
|
||||||
|
|
||||||
@@ -234,8 +233,8 @@ liberator.Buffer = function () //{{{
|
|||||||
let fontSize = document.defaultView.getComputedStyle(document.getElementById(mainWindowID), null)
|
let fontSize = document.defaultView.getComputedStyle(document.getElementById(mainWindowID), null)
|
||||||
.getPropertyValue("font-size");
|
.getPropertyValue("font-size");
|
||||||
|
|
||||||
styles.registerSheet("chrome://" + name + "/skin/vimperator.css");
|
styles.registerSheet("chrome://liberator/skin/liberator.css");
|
||||||
let error = styles.addSheet("chrome://" + name + "/content/buffer.xhtml",
|
let error = styles.addSheet("chrome://liberator/content/buffer.xhtml",
|
||||||
"body { font-size: " + fontSize + "; }", true);
|
"body { font-size: " + fontSize + "; }", true);
|
||||||
|
|
||||||
function setZoom(value, fullZoom)
|
function setZoom(value, fullZoom)
|
||||||
|
|||||||
@@ -876,12 +876,12 @@ liberator.Completion = function () //{{{
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var xmlhttp = new XMLHttpRequest();
|
var xmlhttp = new XMLHttpRequest();
|
||||||
xmlhttp.open("GET", "chrome://" + liberator.config.name.toLowerCase() + "/locale/" + files[i], false);
|
xmlhttp.open("GET", "chrome://liberator/locale/" + files[i], false);
|
||||||
xmlhttp.send(null);
|
xmlhttp.send(null);
|
||||||
}
|
}
|
||||||
catch (e)
|
catch (e)
|
||||||
{
|
{
|
||||||
liberator.log("Error opening chrome://" + liberator.config.name.toLowerCase() + "/locale/" + files[i], 1);
|
liberator.log("Error opening chrome://liberator/locale/" + files[i], 1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
var doc = xmlhttp.responseXML;
|
var doc = xmlhttp.responseXML;
|
||||||
|
|||||||
@@ -638,7 +638,7 @@ const liberator = (function () //{{{
|
|||||||
// with (liberator) means, liberator is the default namespace "inside" eval
|
// with (liberator) means, liberator is the default namespace "inside" eval
|
||||||
eval: function (str)
|
eval: function (str)
|
||||||
{
|
{
|
||||||
const fileName = "chrome://" + liberator.config.name.toLowerCase() + "/content/liberator.js";
|
const fileName = "chrome://liberator/content/liberator.js";
|
||||||
const line = new Error().lineNumber + 3;
|
const line = new Error().lineNumber + 3;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -840,7 +840,7 @@ const liberator = (function () //{{{
|
|||||||
var helpFile = liberator.options["helpfile"];
|
var helpFile = liberator.options["helpfile"];
|
||||||
|
|
||||||
if (liberator.config.helpFiles.indexOf(helpFile) != -1)
|
if (liberator.config.helpFiles.indexOf(helpFile) != -1)
|
||||||
liberator.open("chrome://" + liberator.config.name.toLowerCase() + "/locale/" + helpFile, where);
|
liberator.open("chrome://liberator/locale/" + helpFile, where);
|
||||||
else
|
else
|
||||||
liberator.echo("Sorry, help file \"" + helpFile + "\" not found");
|
liberator.echo("Sorry, help file \"" + helpFile + "\" not found");
|
||||||
|
|
||||||
@@ -849,7 +849,7 @@ const liberator = (function () //{{{
|
|||||||
|
|
||||||
function jumpToTag(file, tag)
|
function jumpToTag(file, tag)
|
||||||
{
|
{
|
||||||
liberator.open("chrome://" + liberator.config.name.toLowerCase() + "/locale/" + file, where);
|
liberator.open("chrome://liberator/locale/" + file, where);
|
||||||
// TODO: it would be better wo wait for pageLoad
|
// TODO: it would be better wo wait for pageLoad
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
var elem = liberator.buffer.getElement('@class="tag" and text()="' + tag + '"');
|
var elem = liberator.buffer.getElement('@class="tag" and text()="' + tag + '"');
|
||||||
@@ -1053,7 +1053,7 @@ const liberator = (function () //{{{
|
|||||||
liberator.log("Initializing liberator object...", 0);
|
liberator.log("Initializing liberator object...", 0);
|
||||||
|
|
||||||
// components which should be shared across all windows
|
// components which should be shared across all windows
|
||||||
Components.utils.import("resource://" + liberator.config.name.toLowerCase() + "/storage.jsm", liberator);
|
Components.utils.import("resource://liberator/storage.jsm", liberator);
|
||||||
|
|
||||||
// commands must always be the first module to be initialized
|
// commands must always be the first module to be initialized
|
||||||
loadModule("commands", liberator.Commands); addCommands();
|
loadModule("commands", liberator.Commands); addCommands();
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ the provisions above, a recipient may use your version of this file under
|
|||||||
the terms of any one of the MPL, the GPL or the LGPL.
|
the terms of any one of the MPL, the GPL or the LGPL.
|
||||||
}}} ***** END LICENSE BLOCK ***** -->
|
}}} ***** END LICENSE BLOCK ***** -->
|
||||||
|
|
||||||
<!DOCTYPE overlay SYSTEM "chrome://vimperator/content/vimperator.dtd">
|
<?xml-stylesheet href="chrome://liberator/skin/liberator.css" type="text/css"?>
|
||||||
|
<!DOCTYPE overlay SYSTEM "chrome://liberator/content/liberator.dtd">
|
||||||
|
|
||||||
<overlay id="liberator"
|
<overlay id="liberator"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
@@ -36,6 +37,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||||
|
|
||||||
|
<script type="application/x-javascript;version=1.8" src="liberator.js"/>
|
||||||
<script type="application/x-javascript;version=1.8" src="&liberator.name;.js"/>
|
<script type="application/x-javascript;version=1.8" src="&liberator.name;.js"/>
|
||||||
|
|
||||||
<script type="application/x-javascript;version=1.8" src="buffer.js"/>
|
<script type="application/x-javascript;version=1.8" src="buffer.js"/>
|
||||||
@@ -80,13 +82,13 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
<!-- As of Firefox 3.1pre, <iframe>.height changes do not seem to have immediate effect,
|
<!-- As of Firefox 3.1pre, <iframe>.height changes do not seem to have immediate effect,
|
||||||
therefore we need to put them into a <vbox> for which that works just fine -->
|
therefore we need to put them into a <vbox> for which that works just fine -->
|
||||||
<vbox class="liberator-container" hidden="false" collapsed="true">
|
<vbox class="liberator-container" hidden="false" collapsed="true">
|
||||||
<iframe id="liberator-multiline-output" src="chrome://&liberator.name;/content/buffer.xhtml"
|
<iframe id="liberator-multiline-output" src="chrome://liberator/content/buffer.xhtml"
|
||||||
flex="1" hidden="false" collapsed="false"
|
flex="1" hidden="false" collapsed="false"
|
||||||
onclick="liberator.commandline.onMultilineOutputEvent(event)"/>
|
onclick="liberator.commandline.onMultilineOutputEvent(event)"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
<vbox class="liberator-container" hidden="false" collapsed="true">
|
<vbox class="liberator-container" hidden="false" collapsed="true">
|
||||||
<iframe id="liberator-completions" src="chrome://&liberator.name;/content/buffer.xhtml"
|
<iframe id="liberator-completions" src="chrome://liberator/content/buffer.xhtml"
|
||||||
flex="1" hidden="false" collapsed="false"
|
flex="1" hidden="false" collapsed="false"
|
||||||
onclick="liberator.commandline.onMultilineOutputEvent(event)"/>
|
onclick="liberator.commandline.onMultilineOutputEvent(event)"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
}}} ***** END LICENSE BLOCK ***** -->
|
}}} ***** END LICENSE BLOCK ***** -->
|
||||||
|
|
||||||
<!--?xml-stylesheet href="chrome://browser/skin/" type="text/css"?-->
|
<!--?xml-stylesheet href="chrome://browser/skin/" type="text/css"?-->
|
||||||
<?xml-stylesheet href="chrome://muttator/skin/vimperator.css" type="text/css"?>
|
|
||||||
<?xul-overlay href="chrome://muttator/content/liberator.xul"?>
|
|
||||||
|
|
||||||
<overlay id="muttator"
|
<overlay id="muttator"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
@@ -38,7 +36,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||||
|
|
||||||
<script type="application/x-javascript;version=1.8" src="liberator.js"/>
|
|
||||||
<script type="application/x-javascript;version=1.8" src="addressbook.js"/>
|
<script type="application/x-javascript;version=1.8" src="addressbook.js"/>
|
||||||
<script type="application/x-javascript;version=1.8" src="mail.js"/>
|
<script type="application/x-javascript;version=1.8" src="mail.js"/>
|
||||||
<script type="application/x-javascript;version=1.8" src="tabs.js"/>
|
<script type="application/x-javascript;version=1.8" src="tabs.js"/>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
}}} ***** END LICENSE BLOCK ***** -->
|
}}} ***** END LICENSE BLOCK ***** -->
|
||||||
|
|
||||||
<!--?xml-stylesheet href="chrome://browser/skin/" type="text/css"?-->
|
<!--?xml-stylesheet href="chrome://browser/skin/" type="text/css"?-->
|
||||||
<?xml-stylesheet href="chrome://muttator/skin/vimperator.css" type="text/css"?>
|
<?xml-stylesheet href="chrome://liberator/skin/liberator.css" type="text/css"?>
|
||||||
|
|
||||||
<overlay id="muttator"
|
<overlay id="muttator"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
@@ -90,13 +90,13 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
</statusbar>
|
</statusbar>
|
||||||
|
|
||||||
<vbox class="liberator-container" hidden="false" collapsed="true">
|
<vbox class="liberator-container" hidden="false" collapsed="true">
|
||||||
<iframe id="liberator-multiline-output" src="chrome://muttator/content/buffer.xhtml"
|
<iframe id="liberator-multiline-output" src="chrome://liberator/content/buffer.xhtml"
|
||||||
flex="1" height="10px" hidden="false" collapsed="false"
|
flex="1" height="10px" hidden="false" collapsed="false"
|
||||||
onclick="liberator.commandline.onMultilineOutputEvent(event)"/>
|
onclick="liberator.commandline.onMultilineOutputEvent(event)"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
<vbox class="liberator-container" hidden="false" collapsed="true">
|
<vbox class="liberator-container" hidden="false" collapsed="true">
|
||||||
<iframe id="liberator-completions" src="chrome://muttator/content/buffer.xhtml"
|
<iframe id="liberator-completions" src="chrome://liberator/content/buffer.xhtml"
|
||||||
flex="1" height="250px" hidden="false" collapsed="false"
|
flex="1" height="250px" hidden="false" collapsed="false"
|
||||||
onclick="liberator.commandline.onMultilineOutputEvent(event)"/>
|
onclick="liberator.commandline.onMultilineOutputEvent(event)"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|||||||
@@ -1519,7 +1519,7 @@ liberator.StatusLine = function () //{{{
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
url = url.replace(new RegExp("^chrome://" + liberator.config.name.toLowerCase() + "/locale/(\\S+)\\.html$"), "$1 [Help]");
|
url = url.replace(new RegExp("^chrome://liberator/locale/(\\S+)\\.html$"), "$1 [Help]");
|
||||||
}
|
}
|
||||||
|
|
||||||
// when session information is available, add [+] when we can go backwards
|
// when session information is available, add [+] when we can go backwards
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
}}} ***** END LICENSE BLOCK ***** -->
|
}}} ***** END LICENSE BLOCK ***** -->
|
||||||
|
|
||||||
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
|
<?xml-stylesheet href="chrome://browser/skin/" type="text/css"?>
|
||||||
<?xml-stylesheet href="chrome://vimperator/skin/vimperator.css" type="text/css"?>
|
|
||||||
<?xul-overlay href="chrome://vimperator/content/liberator.xul"?>
|
|
||||||
|
|
||||||
<overlay id="vimperator"
|
<overlay id="vimperator"
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
@@ -38,7 +36,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
xmlns:html="http://www.w3.org/1999/xhtml"
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
||||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||||
|
|
||||||
<script type="application/x-javascript;version=1.8" src="liberator.js"/>
|
|
||||||
<script type="application/x-javascript;version=1.8" src="bookmarks.js"/>
|
<script type="application/x-javascript;version=1.8" src="bookmarks.js"/>
|
||||||
<script type="application/x-javascript;version=1.8" src="tabs.js"/>
|
<script type="application/x-javascript;version=1.8" src="tabs.js"/>
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
#liberator-frame-indicator {
|
#liberator-frame-indicator {
|
||||||
background-color: red;
|
background-color: red;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
z-index: 999
|
z-index: 999;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
@@ -66,15 +66,9 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
#liberator-visualbell {
|
|
||||||
border: none;
|
|
||||||
background-color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Applied only to completion buffer and MOW */
|
/* Applied only to completion buffer and MOW */
|
||||||
@-moz-document
|
@-moz-document
|
||||||
url-prefix(chrome://vimperator/),
|
url-prefix(chrome://liberator/) {
|
||||||
url-prefix(chrome://muttator/) {
|
|
||||||
|
|
||||||
*:-moz-loading, *:-moz-broken { display: none !important; }
|
*:-moz-loading, *:-moz-broken { display: none !important; }
|
||||||
|
|
||||||
@@ -107,8 +101,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
|
|
||||||
/* Applied to completion buffer, MOW, browser window */
|
/* Applied to completion buffer, MOW, browser window */
|
||||||
@-moz-document
|
@-moz-document
|
||||||
url-prefix(chrome://),
|
url-prefix(chrome://) {
|
||||||
url(chrome://browser/content/browser.xul) {
|
|
||||||
|
|
||||||
#liberator-container {
|
#liberator-container {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
Reference in New Issue
Block a user