-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautoopenBookmarkDetailsPane.uc.js
28 lines (26 loc) · 1.35 KB
/
autoopenBookmarkDetailsPane.uc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ==UserScript==
// @name autoopen Bookmark Details pane
// @id autoopenBookmarkDetailsPane@zephyrer
// @namespace [email protected]
// @description enable Bookmarks Details rows display permanently
// @author zephyrer
// @require 000-ucx.uc.js
// @include chrome://browser/content/places/places.xul
// @version 1.0
// ==/UserScript==
(function () {
"use strict"
//"editBMPanel_keywordRow", "editBMPanel_descriptionRow", "editBMPanel_loadInSidebarCheckbox"]
ucx.hookFunction(PlacesOrganizer, "_detectAndSetDetailsPaneMinimalState",
"if (aNode.itemId",
"infoBox.removeAttribute('minimal');\n"+
"infoBox.removeAttribute('wasminimal');\n"+
"infoBoxExpanderWrapper.hidden = true;\n"+
"additionalInfoBroadcaster.removeAttribute('hidden');\n"+
"if (document.getElementById('editBMPanel_tagsSelectorRow') &&\n"+
" !document.getElementById('editBMPanel_tagsRow').hasAttribute('collapsed') &&\n"+
" document.getElementById('editBMPanel_tagsSelectorRow').getAttribute('collapsed') == 'true')\n"+
" gEditItemOverlay.toggleTagsSelector();\n"+
"return;"+
"$&");
})();