NonAutohide v2.14 - Fast Dial
Mafia_Penguin Sat, 11/01/2008 - 20:14
Not exactly a style, but closer than any other area. If this is a bad place to post this, then contact an admin.
This may not work with some themes!
Thanks to PedroMRP for the fix!
How to disable the autohide of the toolbars:
A, Replace overlay.xul (in your profile folder->extensions->fastdial@telega.phpnet.us->chrome->content) with THIS.
Or, if you don't trust me (; then do this:
B, Open overlay.xul (in your profile folder->extensions->fastdial@telega.phpnet.us->chrome->content)
and replace ALL OF IT with this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://fastdial/skin/toolbar.css" type="text/css"?>
currentTime) continue;
FdSnapshot.create(item, items[item.folderId]);
}
setTimeout(Fd.autoRefresh, 60 * 1000);
},
setAsHome: function() {
var menupopup = document.popupNode.firstChild;
if (menupopup._resultNode) {
FdBookmark.setRoot(menupopup._resultNode.itemId);
}
},
populateFoldersMenu: function(menupopup, onCommand) {
FdDom.clear(menupopup);
var bookmarks = FdBookmark.getBookmarks("BOOKMARKS_MENU").concat(
FdBookmark.getBookmarks("TOOLBAR"));
for(var i in bookmarks) {
var bookmark = bookmarks[i];
if (bookmark.isFolder) {
var menuitem = document.createElement("menuitem");
menuitem.setAttribute("label", bookmark.title);
menuitem.setAttribute("oncommand", onCommand(bookmark));
menupopup.appendChild(menuitem);
}
}
},
populateAddMenu: function() {
var menupopup = FdDom.get("fd-add-menu").firstChild;
Fd.populateFoldersMenu(menupopup,
function(bookmark) {
return "Fd.addPage(" + bookmark.id + ");";
});
},
populateOpenMenu: function() {
var menupopup = FdDom.get("fd-button").firstChild;
Fd.populateFoldersMenu(menupopup,
function(bookmark) {
return "FdUtils.openLink('" + bookmark.url + "');";
});
if (menupopup.childNodes.length > 0) {
var separator = document.createElement("menuseparator");
menupopup.appendChild(separator);
}
var menuitem = document.createElement("menuitem");
menuitem.setAttribute("label", FdBundle.getString("preferences"));
menuitem.setAttribute("oncommand", "Fd.openPreferences();");
menupopup.appendChild(menuitem);
},
populateLinkMenu: function() {
var menupopup = FdDom.get("fd-add-link").firstChild;
Fd.populateFoldersMenu(menupopup);
},
populateSearchMenu: function() {
var menupopup = FdDom.get("fd-search-menu");
FdDom.clear(menupopup);
var searchService = Components.classes["@mozilla.org/browser/search-service;1"]
.getService(Components.interfaces.nsIBrowserSearchService);
var engines = searchService.getEngines({});
for(var i in engines) {
var menuitem = document.createElement("menuitem");
menuitem.setAttribute("class", "menuitem-iconic");
menuitem.setAttribute("label", engines[i].name);
menuitem.setAttribute("image", engines[i].iconURI.spec);
menupopup.appendChild(menuitem);
}
},
setSearchEngine: function(menuitem) {
var uri = menuitem.getAttribute("image");
var searchService = Components.classes["@mozilla.org/browser/search-service;1"]
.getService(Components.interfaces.nsIBrowserSearchService);
var engines = searchService.getEngines({});
for(var i in engines) {
if (engines[i].iconURI.spec == uri) {
searchService.currentEngine = engines[i];
}
}
var wnd = content.wrappedJSObject;
if (wnd.FdDom) {
var search = wnd.FdDom.get("search");
var searchIcon = wnd.FdDom.child(search, "img");
searchIcon.src = uri;
}
},
addPage: function(folderId) {
var item = {
url: content.location.href,
title: content.document.title,
folderId: folderId,
index: -1
}
FdBookmark.saveBookmark(item);
var message = FdBundle.getString("pageAdded");
FdUtils.popup(message);
},
export: function() {
var file = FdFile.chooseFile("save", ["*.json"]);
if (!file) return;
var menupopup = document.popupNode.firstChild;
if (menupopup._resultNode) {
var rootId = menupopup._resultNode.itemId;
var root = FdStorage.getItem(rootId);
var folder, folders = [ root ];
while(folder = folders.shift()) {
var items = FdStorage.getItems(folder.id);
folder.items = items;
for(var i in items) {
if (items[i].isFolder) folders.push(items[i]);
}
}
FdFile.writeFile(file, FdUtils.toJSON(root), true);
}
},
import: function() {
var file = FdFile.chooseFile("open", ["*.json"]);
if (!file) return;
var data = FdFile.readFile(file);
var root = eval(data.value);
var translatedIds = [];
var folders = [ FdUtils.clone(root) ];
var id = root.id;
var menuitem = document.popupNode;
root.folderId = menuitem.node.parent.itemId;
delete root.id;
delete root.items;
FdStorage.saveItem(root);
translatedIds[id] = root.id;
var folder;
while(folder = folders.shift()) {
var items = folder.items;
for(var i in items) {
var item = items[i];
if (item.isFolder) folders.push(FdUtils.clone(item));
var id = item.id;
item.folderId = translatedIds[folder.id];
delete item.id;
delete item.items;
FdStorage.saveItem(item);
translatedIds[id] = item.id;
}
}
}
}
FdLegacy.migrate();
setTimeout(Fd.autoRefresh, 3 * 1000);
addEventListener("load", Fd.initialize, false);
]]>
To undo this fix, simply reinstall Fast Dial 2.14.
That will not get rid of your logos.
Re: NonAutohide
Submitted by ZedoMann on Sun, 11/02/2008 - 08:32Here is the Code I have entered in my overlay.xul file:
It is edited using mafi0z's Post which is linked above.
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://fastdial/skin/toolbar.css" type="text/css"?>
currentTime) continue;
FdSnapshot.create(item, items[item.folderId]);
}
setTimeout(Fd.autoRefresh, 60 * 1000);
},
setAsHome: function() {
var menupopup = document.popupNode.firstChild;
if (menupopup._resultNode) {
FdBookmark.setRoot(menupopup._resultNode.itemId);
}
},
populateFoldersMenu: function(menupopup, onCommand) {
FdDom.clear(menupopup);
var bookmarks = FdBookmark.getBookmarks("BOOKMARKS_MENU").concat(
FdBookmark.getBookmarks("TOOLBAR"));
for(var i in bookmarks) {
var bookmark = bookmarks[i];
if (bookmark.isFolder) {
var menuitem = document.createElement("menuitem");
menuitem.setAttribute("label", bookmark.title);
menuitem.setAttribute("oncommand", onCommand(bookmark));
menupopup.appendChild(menuitem);
}
}
},
populateAddMenu: function() {
var menupopup = FdDom.get("fd-add-menu").firstChild;
Fd.populateFoldersMenu(menupopup,
function(bookmark) {
return "Fd.addPage(" + bookmark.id + ");";
});
},
populateOpenMenu: function() {
var menupopup = FdDom.get("fd-button").firstChild;
Fd.populateFoldersMenu(menupopup,
function(bookmark) {
return "FdUtils.openLink('" + bookmark.url + "');";
});
if (menupopup.childNodes.length > 0) {
var separator = document.createElement("menuseparator");
menupopup.appendChild(separator);
}
var menuitem = document.createElement("menuitem");
menuitem.setAttribute("label", FdBundle.getString("preferences"));
menuitem.setAttribute("oncommand", "Fd.openPreferences();");
menupopup.appendChild(menuitem);
},
populateLinkMenu: function() {
var menupopup = FdDom.get("fd-add-link").firstChild;
Fd.populateFoldersMenu(menupopup);
},
populateSearchMenu: function() {
var menupopup = FdDom.get("fd-search-menu");
FdDom.clear(menupopup);
var searchService = Components.classes["@mozilla.org/browser/search-service;1"]
.getService(Components.interfaces.nsIBrowserSearchService);
var engines = searchService.getEngines({});
for(var i in engines) {
var menuitem = document.createElement("menuitem");
menuitem.setAttribute("class", "menuitem-iconic");
menuitem.setAttribute("label", engines[i].name);
menuitem.setAttribute("image", engines[i].iconURI.spec);
menupopup.appendChild(menuitem);
}
},
setSearchEngine: function(menuitem) {
var uri = menuitem.getAttribute("image");
var searchService = Components.classes["@mozilla.org/browser/search-service;1"]
.getService(Components.interfaces.nsIBrowserSearchService);
var engines = searchService.getEngines({});
for(var i in engines) {
if (engines[i].iconURI.spec == uri) {
searchService.currentEngine = engines[i];
}
}
var wnd = content.wrappedJSObject;
if (wnd.FdDom) {
var search = wnd.FdDom.get("search");
var searchIcon = wnd.FdDom.child(search, "img");
searchIcon.src = uri;
}
},
addPage: function(folderId) {
var item = {
url: content.location.href,
title: content.document.title,
folderId: folderId,
index: -1
}
FdBookmark.saveBookmark(item);
var message = FdBundle.getString("pageAdded");
FdUtils.popup(message);
},
export: function() {
var file = FdFile.chooseFile("save", ["*.json"]);
if (!file) return;
var menupopup = document.popupNode.firstChild;
if (menupopup._resultNode) {
var rootId = menupopup._resultNode.itemId;
var root = FdStorage.getItem(rootId);
var folder, folders = [ root ];
while(folder = folders.shift()) {
var items = FdStorage.getItems(folder.id);
folder.items = items;
for(var i in items) {
if (items[i].isFolder) folders.push(items[i]);
}
}
FdFile.writeFile(file, FdUtils.toJSON(root), true);
}
},
import: function() {
var file = FdFile.chooseFile("open", ["*.json"]);
if (!file) return;
var data = FdFile.readFile(file);
var root = eval(data.value);
var translatedIds = [];
var folders = [ FdUtils.clone(root) ];
var id = root.id;
var menuitem = document.popupNode;
root.folderId = menuitem.node.parent.itemId;
delete root.id;
delete root.items;
FdStorage.saveItem(root);
translatedIds[id] = root.id;
var folder;
while(folder = folders.shift()) {
var items = folder.items;
for(var i in items) {
var item = items[i];
if (item.isFolder) folders.push(FdUtils.clone(item));
var id = item.id;
item.folderId = translatedIds[folder.id];
delete item.id;
delete item.items;
FdStorage.saveItem(item);
translatedIds[id] = item.id;
}
}
}
}
FdLegacy.migrate();
setTimeout(Fd.autoRefresh, 3 * 1000);
addEventListener("load", Fd.initialize, false);
]]>
--------------------------------------------------
If I make a request for logos, make it on a transparent background.
Re: NonAutohide
Submitted by chiaroscuro on Sun, 11/02/2008 - 14:00@ZedoMann
Here is the Code I have entered in my overlay.xul file:
It is edited using mafi0z's Post which is linked above.
Thanks for your post.
You do not mention the fact, but one presumes this works fine for you ?
Re: NonAutohide
Submitted by chiaroscuro on Sun, 11/02/2008 - 23:50@Mafia_Penguin
Thanks for including the name of PedroMRP
I think it can be said that:
1. The original idea of changing overlay.xul was yours by using the 2.11 Version in 2.14here
2.There was then a suggestion to modify the 2.14 overlay.xul by PedroMRX here
3.It was then noted that PedroMRPs version was slightly flawed and a new Version along these lines was then made.
So well in the end there were three contributers who could be credited with this fix.
But the original idea and the impetus behind it was yours.
Re: NonAutohide
Submitted by chiaroscuro on Tue, 11/04/2008 - 04:33@Mafia_Penguin
I wondered, do you not think it might be worth mentioning in this post how to undo the fix, for those that wish to return to FD Autohide
Re-installing Fast Dial 2.14 comes to mind ?
Re: NonAutohide
Submitted by Anonymous (not verified) on Tue, 11/11/2008 - 17:04Screw it, back to 2.11 I mean Seriously.
Re: NonAutohide
Submitted by Booze (not verified) on Wed, 12/03/2008 - 10:45How do I get to the overlay.xul file? I can't seem to find it.
Re: NonAutohide
Submitted by chiaroscuro on Wed, 12/03/2008 - 14:10@booze
How do I get to the overlay.xul file? I can't seem to find it.
Probably the easiest way to find it would be simply to look for it in Windows search.
Start/Search/Files or Folders
The file will be in your current Firefox Profile in
/Extensions/fastdial@telega.phpnet.us/chrome/content.overlay.xul
Re: NonAutohide v2.14 - Fast Dial
Submitted by Mafia_Penguin on Fri, 12/26/2008 - 20:08I just realized why I disliked autohide...
My Fast Dial page is restricted by the side to side realty...
not the vertical realty...
So I gained no bigger logos by using autohide.
---------
Please exchange this coupon for one (1) free internet.
Trouble using transparent Logos? Click
here for help!
Pages