Συζητήσεις » Αιτήματα Δημιουργίας

Hide account name folders/icons in the folder pane of thunderbird

§
Δημοσιεύτηκε: 24/04/2016

Hide account name folders/icons in the folder pane of thunderbird

All i need is my inbox, trash etc, but i don't want any accounts folders to appear there.
& if i want to edit accounts, it's still accessible in tools/Account settings, but i don't want those
useless "account name folders" to populate the folder pane

§
Δημοσιεύτηκε: 27/04/2016

noone ?

§
Δημοσιεύτηκε: 28/04/2016

I still think you don't understand the meaning of an userscript.

An userscript edits the user experience in one/multiple website/s, but not edit local files and not edit the way that the browser application does the things. You need an extension to do that.

§
Δημοσιεύτηκε: 28/04/2016

Maybe this trick can help you:

  1. Select as favorites the folders you need to view and leave the others unselected.
  2. Into menu, go to View, then Folders, and select Favorite. This will hide all the folders you don't selected in step 1.
§
Δημοσιεύτηκε: 28/04/2016

ok & no, favourite adds the account name folder..

§
Δημοσιεύτηκε: 28/04/2016

Because you need an addon, you got the solution in Mozillazine.

§
Δημοσιεύτηκε: 28/04/2016

it doesn't work ((

§
Δημοσιεύτηκε: 15/06/2016
Επεξεργάστηκε: 15/06/2016

This script works but it's not a set & forget in case i add accounts or remove others.
can this script be modified so it affects all email account name folders ?

/* Hide useless "account names" folders */

(function() {

if (location == "chrome://messenger/content/messenger.xul") {

setTimeout(function() {
var hideAccountNameFolders = {
accountNameFolders: [
"Gm 1 (email account name)",
"Local Folders",
],
hideAccountNameFolders: function() {
for (var i = 0; i < gFolderTreeView._modeNames.length; i++) {
var viewName = gFolderTreeView._modeNames[i];
if (viewName == "smart") {
var view = gFolderTreeView.getFolderTreeMode(viewName);
view.hideAccountNameFolders_oldFunction = view.generateMap;
view.generateMap = function(ftv) {
var ftvItems = this.hideAccountNameFolders_oldFunction.call(view, ftv);
for (var j = 0; j < ftvItems.length; j++) {
for (var k = 0; k < hideAccountNameFolders.accountNameFolders.length; k++) {
if (ftvItems[j].text == hideAccountNameFolders.accountNameFolders[k]) {
ftvItems.splice(j, 1);
}
}
}
return ftvItems;
};
}
}
},
};
hideAccountNameFolders.hideAccountNameFolders();
gFolderTreeView.toggleMode(gFolderTreeView.mode);
var box = document.getElementById("folderTree").boxObject;
box.QueryInterface(Components.interfaces.nsITreeBoxObject);
box.invalidate();
}, 1000);

}

})();

§
Δημοσιεύτηκε: 20/06/2016

I said you need an addon. Try this one.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.

长期地址
遇到问题?请前往 GitHub 提 Issues。