Changeset 3701


Ignore:
Timestamp:
Feb 24, 2017, 1:29:34 PM (2 years ago)
Author:
Juanma
Message:

Added default bookmarks and customization

Location:
lliurex-firefox-settings/trunk/fuentes/lliurex-firefox-settings.install/usr/lib/firefox
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-firefox-settings/trunk/fuentes/lliurex-firefox-settings.install/usr/lib/firefox/browser/defaults/preferences/lliurex.js

    r3698 r3701  
    44
    55// Example: Homepage
    6 //pref("browser.startup.homepage", "file:/usr/share/lliurex-firefox-settings/lliurex-firefox.properties");
    7 
    8 // Enable lliurex autoconf file
     6pref("browser.startup.homepage", "file:/usr/share/lliurex-firefox-settings/lliurex-firefox.properties");
     7pref("browser.startup.restore_default_bookmarks", true);
    98pref('general.config.obscure_value',0);
    109pref('general.config.filename','lliurex.cfg');
     10//defaultPref("browser.startup.homepage","data:text/plain,browser.startup.homepage=http://server");
    1111// // Disable offline/disk caching of web pages - good if you have a central proxy
    1212// pref("browser.cache.offline.enable", false);
  • lliurex-firefox-settings/trunk/fuentes/lliurex-firefox-settings.install/usr/lib/firefox/lliurex.cfg

    r3698 r3701  
    1 //Lliurex autoconf file
    2 //Default homepage
    3 pref("browser.startup.homepage","http://server");
    4 defaultPref("browser.startup.homepage","http://server");
    5 //Disable user homepage settings
    6 //lockPref("browser.startup.homepage","http://server");
    7 //new tab page
    8 pref("browser.newtab.url","http://server");
    91//
     2pref("extensions.enabledScopes",145);
     3defaultPref("startup.homepage_override_url","http://server");
     4lockPref("browser.startup.firstRunSkipsHomepage",false);
     5lockPref("browser.startup.homepage_override.mstone","-1");
     6
     7const Cc=Components.classes;
     8const Ci=Components.interfaces;
     9Components.utils.import("resource://gre/modules/Services.jsm");
     10var history=Cc["@mozilla.org/browser/nav-history-service;1"]
     11        .getService(Ci.nsINavHistoryService);
     12var bookmarks=Cc["@mozilla.org/browser/nav-bookmarks-service;1"]
     13        .getService(Ci.nsINavBookmarksService);
     14var query=history.getNewQuery();
     15var folders=[bookmarks.toolbarFolder, bookmarks.bookmarksMenuFolder,bookmarks.unfiledBookmarksFolder];
     16query.setFolders(folders,folders.length);
     17query.searchTerms="Ubuntu"
     18var options=history.getNewQueryOptions();
     19options.queryType=options.QUERY_TYPE_BOOKMARKS;
     20var result=history.executeQuery(query,options);
     21var resultContainerNode=result.root;
     22resultContainerNode.containerOpen=true;
     23for (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.