diff --git a/helpers/DATA/firefox/bookmarks.html.in b/helpers/DATA/firefox/bookmarks.html.in new file mode 100644 index 0000000..98fff6f --- /dev/null +++ b/helpers/DATA/firefox/bookmarks.html.in @@ -0,0 +1,24 @@ + + + +
+
+
+
diff --git a/helpers/DATA/firefox/settings.js b/helpers/DATA/firefox/settings.js new file mode 100644 index 0000000..c74b12c --- /dev/null +++ b/helpers/DATA/firefox/settings.js @@ -0,0 +1,101 @@ + +// Release notes and vendor URLs +pref("app.releaseNotesURL", "http://trisquel.info/browser"); +pref("app.vendorURL", "http://trisquel.info/browser"); + +// PFS url +pref("pfs.datasource.url", "http://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%"); +pref("pfs.filehint.url", "http://trisquel.info/sites/pfs.php?mime=%PLUGIN_MIMETYPE%"); + +// I'm feeling Ducky. +pref("keyword.URL", "https://duckduckgo.com/?t=trisquel&q=!+"); +pref("browser.search.defaultenginename", "DuckDuckGo (SSL)"); +pref("browser.search.order.extra.duckduckgo", "DuckDuckGo (SSL)"); + +// Disable plugin installer +pref("plugins.hide_infobar_for_missing_plugin", true); +pref("plugins.hide_infobar_for_outdated_plugin", true); + +//Speeding it up +pref("network.http.pipelining", true); +pref("network.http.proxy.pipelining", true); +pref("network.http.pipelining.maxrequests", 10); +pref("network.dns.disableIPv6", true); +pref("nglayout.initialpaint.delay", 0); + +// Disable third party cookies +pref("network.cookie.cookieBehavior", 1); + +// Extensions can be updated +pref("extensions.update.enabled", true); +// Use LANG environment variable to choose locale +pref("intl.locale.matchOS", true); +// Disable default browser checking. +pref("browser.shell.checkDefaultBrowser", false); +// Prevent EULA dialog to popup on first run +pref("browser.EULA.override", true); + +// Default name strings +pref ("distribution.about", "Abrowser for Trisquel"); +pref ("distribution.id", "trisquel"); +pref ("distribution.version", "$REVISION"); + +// UserAgeng +pref("general.useragent.vendor", "Trisquel"); +pref("general.useragent.vendorComment", "$CODENAME"); +pref("general.useragent.vendorSub", "$REVISION"); +// Set useragent to Firefox compatible +pref("general.useragent.compatMode.abrowser",true); + +// Startup pages +pref ("browser.startup.page" , 3); +//pref ("browser.startup.homepage" , "http://trisquel.info"); +//pref ("startup.homepage_welcome_url", "http://trisquel.info/welcome"); +//pref ("startup.homepage_override_url" , "http://trisquel.info/newbrowser"); + +// Preferences for the Get Add-ons panel +pref ("extensions.webservice.discoverURL", "https://trisquel.info/browser-plain"); +pref ("extensions.getAddons.search.url", "http://trisquel.info"); + +// Help URL +pref ("app.support.baseURL", "http://trisquel.info/wiki/"); + +// Dictionary download preference +pref("browser.dictionaries.download.url", "http://dictionaries.mozdev.org/"); +pref("browser.search.searchEnginesURL", "http://mycroft.mozdev.org/"); + +// Apturl preferences +pref("network.protocol-handler.app.apt","/usr/bin/apturl"); +pref("network.protocol-handler.warn-external.apt",false); +pref("network.protocol-handler.app.apt+http","/usr/bin/apturl"); +pref("network.protocol-handler.warn-external.apt+http",false); +pref("network.protocol-handler.external.apt",true); +pref("network.protocol-handler.external.apt+http",true); + +// Privacy & Freedom Issues +pref("privacy.donottrackheader.enabled", true); +pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false); +pref("browser.safebrowsing.enabled", false); +pref("browser.safebrowsing.malware.enabled", false); +pref("services.sync.privacyURL", "http://trisquel.info/en/legal"); +pref("social.enabled", false); +pref("social.remote-install.enabled", false); +pref("datareporting.healthreport.uploadEnabled", false); +pref("social.toast-notifications.enabled", false); +pref("datareporting.healthreport.uploadEnabled", false); +pref("datareporting.healthreport.service.enabled", false); +pref("browser.slowStartup.notificationDisabled", true); + +// Services +pref("gecko.handlerService.schemes.mailto.0.name", ""); +pref("gecko.handlerService.schemes.mailto.1.name", ""); +pref("handlerService.schemes.mailto.1.uriTemplate", ""); +pref("gecko.handlerService.schemes.mailto.0.uriTemplate", ""); +pref("browser.contentHandlers.types.0.title", ""); +pref("browser.contentHandlers.types.0.uri", ""); +pref("browser.contentHandlers.types.1.title", ""); +pref("browser.contentHandlers.types.1.uri", ""); +pref("gecko.handlerService.schemes.webcal.0.name", ""); +pref("gecko.handlerService.schemes.webcal.0.uriTemplate", ""); +pref("gecko.handlerService.schemes.ircs.0.name", ""); +pref("gecko.handlerService.schemes.ircs.0.uriTemplate", ""); diff --git a/helpers/make-firefox b/helpers/make-firefox index c4579aa..453c748 100644 --- a/helpers/make-firefox +++ b/helpers/make-firefox @@ -17,15 +17,18 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=5 +VERSION=7 . ./config rm debian/control +# js settings +cat $DATA/settings.js >> debian/vendor-firefox.js + # Make ubufox mandatory -sed 's/Depends: lsb-release,/Depends: lsb-release, xul-ext-ubufox,/' -i debian/control.in -sed 's/iceweasel,/iceweasel, firefox, icecat,/' -i debian/control.in +#sed 's/Depends: lsb-release,/Depends: lsb-release, xul-ext-ubufox,/' -i debian/control.in +#sed 's/iceweasel,/iceweasel, firefox, icecat,/' -i debian/control.in # Enable gst support apt-get install -y --force-yes libgstreamermm-0.10-dev @@ -45,6 +48,9 @@ rm debian/patches/ubuntu-bookmarks* #rm debian/patches/ubuntu-codes* #sed /ubuntu-codes/d debian/patches/series.in -i +# contact link +sed 's_https://input.mozilla.org/feedback_https://trisquel.info/contact_' -i browser/base/content/utilityOverlay.js + cat << EOF > debian/distribution.ini [Global] id=trisquel @@ -166,40 +172,8 @@ cat << EOF |patch -p1 -N -r /dev/null EOF #Trisquel custom bookmarks -cat << EOF > browser/locales/generic/profile/bookmarks.html.in - - - -
-
-
-
-EOF - -############################################################################3 -############################################################################3 -cat << EOF >> debian/syspref.js -// Use /etc/xul-ext/ubufox.js to set global preferences, don't edit this file. -EOF -############################################################################3 mkdir debian/search # Add DDG to search plugins