Pages : 1
#1 Le 16/11/2011, à 12:10
- ʝu
Moteur de recherche Firefox
Bonjour,
une modeste contribution mais qui pourra peut être en aider certain(e).
Suite à de multiples déboire j'ai consulté la doc à de nombreuses reprise, pour accélérer mes recherches j'ai fait un "moteur de recherche" pour la doc et le forum (en https SVP).(vous pouvez le faire pour d'autres site ou moteur de recherche)
Il s'agit juste d'un fichier .xml à placer dans:
/home/"votre ID"/.mozilla/firefox/"votre ID".default/searchplugins/
(si il n’apparaît pas créer le) appelons le par exemple: ubuntu_doc.xml
Une petite description des balises.
Pour la doc:
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>ubuntu_Doc</os:ShortName>
<os:Description>recherche sur Doc ubuntu.fr.</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAARdQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAQAAyQAVyAAVxwAVxwAVxgAWxQAWxQAWxAAWxAAWywEUygEVwgEXwAEYzQIUvQIZCAMAtwQbrwce0wgSGAkApQoj2RAQmREoOhgDihsx1x0V4R4O2R4V2SIV2SQV2icV2icVYSgFeyo86S0MeC8I3jEU4zUT4DYUnDoLbzxH1z4Q5D4S0D4RrkANvEAO50IS80QK6EYRZklR5kwS9k0J4U0SYlJX7VQR+lcI7lgQ7FkS7lsS/F0I8GAR/WEI82MP/mUI8mYQ/mcI/2sI/3EJ/3cK93sR/34L+YsR/4sN/5AO/JYS/pgQ/ZkR/5oP/54Q/Z8R/p8R/qER/6MR/qYR/qcS/qcSwVRWFgAAAF10Uk5TAAAAAAAAAOLh2tTRysbEw+TlxMblyQDQ1ucA3ebiAu5W6kdQX2RqA/LoBWtBbQj4FnITCg086XP9Jeke/jnoeCsv5zTmfOU45OHi4HzhgOHhhKiP4OGassHf3tbMlR/okwAAAAFiS0dEAf8CLd4AAAAGdEVYdFRpdGxlAKju0icAAAAHdEVYdEF1dGhvcgCprsxIAAAADHRFWHREZXNjcmlwdGlvbgATCSEjAAAACnRFWHRDb3B5cmlnaHQArA/MOgAAAAd0RVh0RS1tYWlsAH0Im9UAAAAEdEVYdFVSTAB4o9MPAAAAtUlEQVQYV1XOywrCMBAF0K5SwUqIIG5DFi6Kltq0qyCW6DgGRAhCah///x2GpCLeVeYQ7kxCfhFc5CSJ70IhKspoNUPdws3AbrGeoXUWtNaw25MAte0nRARjzCUAjr1TpJBoNJCkOAN0A4YqX0QSedXaviNUTeN/wB3cGIFT6juk8h0v6ecyY1koVc5vyUtBU8bjHTg5vlqm2+OhjiDbE2Xp5tHZGQjJBeeiG0b1hZCns/IPQj6TBCLqHzdgeQAAAABJRU5ErkJggg==</os:Image>
<os:Url type="text/html" method="GET" template="http://doc.ubuntu-fr.org/?do=search&id={searchTerms}">
<Parameter name="q" value="{searchTerms}" />
</os:Url>
</SearchPlugin>
Pour le forum:
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>ubuntu_forum</os:ShortName>
<os:Description>forum ubuntu fr recherche</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAALGPC/xhBQAAARdQTFRFAAAAAAAAAAAAAAAAAAAAAAAAAQAAyQAVyAAVxwAVxwAVxgAWxQAWxQAWxAAWxAAWywEUygEVwgEXwAEYzQIUvQIZCAMAtwQbrwce0wgSGAkApQoj2RAQmREoOhgDihsx1x0V4R4O2R4V2SIV2SQV2icV2icVYSgFeyo86S0MeC8I3jEU4zUT4DYUnDoLbzxH1z4Q5D4S0D4RrkANvEAO50IS80QK6EYRZklR5kwS9k0J4U0SYlJX7VQR+lcI7lgQ7FkS7lsS/F0I8GAR/WEI82MP/mUI8mYQ/mcI/2sI/3EJ/3cK93sR/34L+YsR/4sN/5AO/JYS/pgQ/ZkR/5oP/54Q/Z8R/p8R/qER/6MR/qYR/qcS/qcSwVRWFgAAAF10Uk5TAAAAAAAAAOLh2tTRysbEw+TlxMblyQDQ1ucA3ebiAu5W6kdQX2RqA/LoBWtBbQj4FnITCg086XP9Jeke/jnoeCsv5zTmfOU45OHi4HzhgOHhhKiP4OGassHf3tbMlR/okwAAAAFiS0dEAf8CLd4AAAAGdEVYdFRpdGxlAKju0icAAAAHdEVYdEF1dGhvcgCprsxIAAAADHRFWHREZXNjcmlwdGlvbgATCSEjAAAACnRFWHRDb3B5cmlnaHQArA/MOgAAAAd0RVh0RS1tYWlsAH0Im9UAAAAEdEVYdFVSTAB4o9MPAAAAtUlEQVQYV1XOywrCMBAF0K5SwUqIIG5DFi6Kltq0qyCW6DgGRAhCah///x2GpCLeVeYQ7kxCfhFc5CSJ70IhKspoNUPdws3AbrGeoXUWtNaw25MAte0nRARjzCUAjr1TpJBoNJCkOAN0A4YqX0QSedXaviNUTeN/wB3cGIFT6juk8h0v6ecyY1koVc5vyUtBU8bjHTg5vlqm2+OhjiDbE2Xp5tHZGQjJBeeiG0b1hZCns/IPQj6TBCLqHzdgeQAAAABJRU5ErkJggg==</os:Image>
<SearchForm>https://encrypted.google.com</SearchForm>
<os:Url type="application/x-suggestions+json" method="GET" template="https://clients1.google.com/complete/search?output=firefox&client=firefox&hl=fr&q={searchTerms}"></os:Url>
<os:Url type="text/html" method="GET" template="https://encrypted.google.com/search?hl=fr&q=site:forum.ubuntu-fr.org+{searchTerms}">
</os:Url>
<os:Param name="q" value="{searchTerms}"/>
<os:Param name="ie" value="utf-8"/>
<os:Param name="oe" value="utf-8"/>
<os:Param name="aq" value="t"/>
</SearchPlugin>
le code au milieu (<os:Image>) c'est le favicon.ico pour le changer (car c'est 2 fois le même )ente la balise
<os:Image width="16" height="16"> & </os:Image>
mettre l'adresse d'un autre favicon par exemple:http://exemple.org/favicon.ico ensuite redémarrer Firefox et il s'occupera de changer l'adresse en code automatiquement.
on peut aussi par exemple rechercher que des pdf ou images etc... il suffit par exemple d'utiliser les options avancées de recherche (une gentille de préférence):
intitle:mickey
site:azerty.com OR site:qwerty.com "votre recherche"
allinurl:justin bieber
filetype:pdf
etc.... que l'on insère après q=
https://encrypted.google.com/search?hl=fr&q=filetype:pdf {searchTerms}
par exemple pour chercher sur les sites ubuntu.com & linux.com
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>ubuntu/linux</os:ShortName>
<os:Description>test commande google</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16"></os:Image>
<SearchForm>https://encrypted.google.com</SearchForm>
<os:Url type="text/html" method="GET" template="https://encrypted.google.com/search?hl=fr&q=site:ubuntu.com%20OR%20site:www.linux.com+{searchTerms}">
</os:Url>
<os:Param name="q" value="{searchTerms}"/>
</SearchPlugin>
cela peut donner des idées ....................................;
voila @+
Dernière modification par ʝu (Le 16/11/2011, à 16:09)
Hors ligne
#2 Le 16/11/2011, à 14:45
- bwaman
Re : Moteur de recherche Firefox
bonjour
j'ai tester ton "petit moteur de recherche" pour la doc et le forum, sa marche super bien sauf que j'ai du créer le dossier searchplugins qui n’existai pas chez moi,après redémarrage de Firefox je les ai dans la barre de recherche avec les autres moteur de recherche merci pour cette contribution
CPU: Intel Centrino Duo 2.2Ghz GPU: Nvidia 8600GS
RAM: 4Go HDD: 2X250Go
UBUNTU 12.10 (64Bits) [ The Quantal Quetzal ]
Hors ligne
#3 Le 16/11/2011, à 16:06
- ʝu
Re : Moteur de recherche Firefox
exact le dossier n’apparaît pas par défaut
Hors ligne
Pages : 1