Yop
Il est possible de rajouterdes moteurs de recherches style "Imdb", "LiveSearch" en téléchargeant (installant) les xml dispo ici
J'ai télécharger l'un deux pour voir un peu comment ca fonctionne!
Par exemple, pour IMDb, le code XML est
J'ai modifié le code pour rajouter un moteur de recherche pas trop connu, ca donne ca
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 OpenSearchDescription> <ShortName>IMDB</ShortName> <Description>IMDB Movie Search</Description> <InputEncoding>ISO-8859-1</InputEncoding> − <Image width="16" height="16"> data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGYUExURf//5PHr0v//d+7TXVFQTjY3N///efXYXvLfXv/4c/LWYvv69Pr00dK2QfPntvnuv+zn0byxZ/r25KuiXVRUTlVUTktLRzw8PrWnW/DTWv/8cubHTYuBSyMjI7isaGVgRFhVTeLFT1JRScCmOPv58u/p0/TWW56SUl1aVkdFQeXTicevSeDVp/TXXf/+4+/p0v7gX//5dODVpigoKeTYq/LVW1tZTjc3OxQUG//84fLr0u/p0PrjW+/TW5iNUkxKRuvly2BbROfOYPfsvv333khISmJfVP/74cKyafv54PHr0fPt0sO4a9bCaVZVUM+6WPXZTfXps8G1bPLWTbKkY/Lr0/PWWzk7Pzs7PNG2SvHTWtC1Sd3DVllUQv//duXJUufKUu7p0vPosLqsa7OlYOzRW//naqiaW//53//nYtnOnu7jsf3oY//ras2zSD4/QvHVXc66YOLHU/3997ipXTAvLUdFO7KkZSwuMf79+rSlX7CkXVpWRebhzJOIUN/Upy8wNPnz2uPIV/Ht3bCjY/fy2sq0UP////l+xa8AAADYSURBVHjaYmhHAwABxIAuABBAGAIAAcTQXszjyQAEepbuGS6N3O0AAcRQmcRhyMQWxyTFmZvGFa+lAhBADHzBNoJBwj7VcuqFKakJvCYAAcQQGJBTo2FhXsrSoMAq7x9pBBBADPzsmY5ussZlZiJKmvkS0ToAAcTgXGAQ6yfuai9WIRoRXpJXDxBADNnSalXlLckh6TIednW+ylkAAcTQ6qQoGaZrGmXLXNQUo93mDRBADO1CDtZejKFWjPqqiQK1ze0AAYThUoAAwhAACCAMAYAAwhAACDAAVrdghQaAW5AAAAAASUVORK5CYII= </Image> <ms:SearchForm>http://www.imdb.com/</ms:SearchForm> <Url type="text/html" method="GET" template="http://www.imdb.com/find?q={searchTerms}&sourceid=mozilla-search"/> </OpenSearchDescription>
mais comment faire pour "ajouter" le moteur une fois le XML constitué?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:ms="http://www.mozilla.org/2006/browser/search/"> <ShortName>Harmony Central</ShortName> <Description>Harmony Central Search</Description> <InputEncoding>ISO-8859-1</InputEncoding> <Image width="16" height="16">data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGYUExURf//5PHr0v//d+7TXVFQTjY3N///efXYXvLfXv/4c/LWYvv69Pr00dK2QfPntvnuv+zn0byxZ/r25KuiXVRUTlVUTktLRzw8PrWnW/DTWv/8cubHTYuBSyMjI7isaGVgRFhVTeLFT1JRScCmOPv58u/p0/TWW56SUl1aVkdFQeXTicevSeDVp/TXXf/+4+/p0v7gX//5dODVpigoKeTYq/LVW1tZTjc3OxQUG//84fLr0u/p0PrjW+/TW5iNUkxKRuvly2BbROfOYPfsvv333khISmJfVP/74cKyafv54PHr0fPt0sO4a9bCaVZVUM+6WPXZTfXps8G1bPLWTbKkY/Lr0/PWWzk7Pzs7PNG2SvHTWtC1Sd3DVllUQv//duXJUufKUu7p0vPosLqsa7OlYOzRW//naqiaW//53//nYtnOnu7jsf3oY//ras2zSD4/QvHVXc66YOLHU/3997ipXTAvLUdFO7KkZSwuMf79+rSlX7CkXVpWRebhzJOIUN/Upy8wNPnz2uPIV/Ht3bCjY/fy2sq0UP////l+xa8AAADYSURBVHjaYmhHAwABxIAuABBAGAIAAcTQXszjyQAEepbuGS6N3O0AAcRQmcRhyMQWxyTFmZvGFa+lAhBADHzBNoJBwj7VcuqFKakJvCYAAcQQGJBTo2FhXsrSoMAq7x9pBBBADPzsmY5ussZlZiJKmvkS0ToAAcTgXGAQ6yfuai9WIRoRXpJXDxBADNnSalXlLckh6TIednW+ylkAAcTQ6qQoGaZrGmXLXNQUo93mDRBADO1CDtZejKFWjPqqiQK1ze0AAYThUoAAwhAACCAMAYAAwhAACDAAVrdghQaAW5AAAAAASUVORK5CYII=</Image> <ms:SearchForm>http://www.harmony-central.com/</ms:SearchForm> <Url type="text/html" method="GET" template="http://search.harmony-central.com/search?q={searchTerms}&sourceid=mozilla-search"/> </OpenSearchDescription>
D'avance merci.
@+
ted
Partager