Changeset 3707


Ignore:
Timestamp:
Feb 24, 2017, 2:21:06 PM (2 years ago)
Author:
Juanma
Message:

Added default bookmarks and customization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-firefox-settings/trunk/fuentes/lliurex-firefox-settings.install/usr/lib/firefox/lliurex.cfg

    r3701 r3707  
    55lockPref("browser.startup.homepage_override.mstone","-1");
    66
    7 const Cc=Components.classes;
    8 const Ci=Components.interfaces;
    9 Components.utils.import("resource://gre/modules/Services.jsm");
    10 var history=Cc["@mozilla.org/browser/nav-history-service;1"]
    11         .getService(Ci.nsINavHistoryService);
    12 var bookmarks=Cc["@mozilla.org/browser/nav-bookmarks-service;1"]
    13         .getService(Ci.nsINavBookmarksService);
    14 var query=history.getNewQuery();
    15 var folders=[bookmarks.toolbarFolder, bookmarks.bookmarksMenuFolder,bookmarks.unfiledBookmarksFolder];
    16 query.setFolders(folders,folders.length);
    17 query.searchTerms="Ubuntu"
    18 var options=history.getNewQueryOptions();
    19 options.queryType=options.QUERY_TYPE_BOOKMARKS;
    20 var result=history.executeQuery(query,options);
    21 var resultContainerNode=result.root;
    22 resultContainerNode.containerOpen=true;
    23 for (var i=0;i<resultContainerNode.childCount;i++)
    24 {
    25         var childNode=resultContainerNode(i);
    26         bookmarks.removeItem(childNode);
    27 }
Note: See TracChangeset for help on using the changeset viewer.