Un peu plus difficile. Quoique.....
Pour ceux qui savent créer un fichier .html.
La page "Nouvel Onglet" est vraiment triste. Il est possible d'y apporter une petite touche personnelle.
- Dans un dossier que vous mettez où bon vous semble, créez un fichier .html pointant vers un second dossier contenant une image (
par exemple)
- Nommez cette image = bg.png
- Créez un fichier nommé par ex. = maconfig.js (
le nom n'a pas vraiment d'importance. Le principal étant l'extension .js)
- Entrez ceci dans ce fichier :
Code : Tout sélectionner
//
pref("general.config.filename", "mozilla.cfg");
pref("general.config.obscure_value", 0);
- Placez ce fichier dans = dossier d'installation de Firefox \defaults\pref\maconfig.js
- Créez un second fichier nommé = mozilla.cfg
- Entrez ceci dans ce fichier :
Code : Tout sélectionner
// New Tab page
Components.utils.import("resource:///modules/NewTabURL.jsm");
NewTabURL.override("file:///C:/remplacerpar/adressedu/nom.html");
- Placez ce fichier dans le dossier d'installation de Firefox.
Désormais, FF affichera l'image que vous aurez choisie dans la page "Nouvel Onglet".
Pour exemple et essai, je vous mets un .html et une image :
Code : Tout sélectionner
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>home page Launch</title>
<link rel="icon" type="image/png" href="img/logo.png" />
<style type="text/css">
<!--
body,td,th {
font-family: Vandiana platin;
font-size: 11px;
color: #0496FF;
}
body {
background-color: #000000;
background-image: url(img/bg.png);
background-repeat: repeat-x;
margin-top: 0px;
}
#date {
width:200px;
height:80px;
margin:50px auto;
padding-top:40px;
text-align:center;
font-family:"Vandiana platin";
text-transform:uppercase;
font-size:28px;
color:#5A5A5A;
}
#month {
font-size:18px;
color:#5A5A5A;
text-align:center;
text-transform:uppercase;
}
-->
</style></head>
<body>
</form>
</div>
</div>
<div id="date"><script language="Javascript">
var now = new Date
var dayName = new Array ("Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi")
var monName = new Array ("Janvier", "Fevrier", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Decembre")
document.write("" + dayName[now.getDay()] + "<br><span id=month>" + monName[now.getMonth()] + " "+now.getDate() +"")
</script>
</div>
</body>
</html>