1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:42:26 +01:00

Fix help on FF3, overly long URL chains in context filenames, etc.

This commit is contained in:
Kris Maglione
2011-01-13 18:26:27 -05:00
parent 3e85415890
commit f0dbc8f2f0
8 changed files with 23 additions and 30 deletions

13
common/bootstrap.js vendored
View File

@@ -121,14 +121,14 @@ function init() {
let result = [];
let suffix = "-";
let chars = "0123456789abcdefghijklmnopqrstuv";
for (let n = Date.now(); n; n = Math.round(n / chars.length))
suffix += "0123456789abcdef"[n % chars.length];
for each (let line in manifest.split("\n")) {
let fields = line.split(/\s+/);
switch(fields[0]) {
case "#":
if (fields[1] == "Suffix:")
var suffix = "-" + fields[2];
break;
case "category":
categoryManager.addCategoryEntry(fields[1], fields[2], fields[3], false, true);
break;
@@ -140,8 +140,9 @@ function init() {
break;
case "resource":
resources.push(fields[1]);
resources.push(fields[1], fields[1] + suffix);
resourceProto.setSubstitution(fields[1], getURI(fields[2]));
resourceProto.setSubstitution(fields[1] + suffix, getURI(fields[2]));
}
}