Parent
c834c59156
révision
5c1d88de02
5 fichiers modifiés avec 33 ajouts et 1 suppressions
|
@ -322,6 +322,10 @@
|
|||
value='msn' label=' &resurrect.msn;'
|
||||
image='chrome://resurrect/skin/cacheicons/msn.png'
|
||||
/>
|
||||
<xul:button
|
||||
value='gigablast' label=' &resurrect.gigablast;'
|
||||
image='chrome://resurrect/skin/cacheicons/gigablast.png'
|
||||
/>
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -48,6 +48,10 @@
|
|||
value='msn' label=' &resurrect.msn;'
|
||||
image='chrome://resurrect/skin/cacheicons/msn.png'
|
||||
/>
|
||||
<button
|
||||
value='gigablast' label=' &resurrect.gigablast;'
|
||||
image='chrome://resurrect/skin/cacheicons/gigablast.png'
|
||||
/>
|
||||
</vbox>
|
||||
|
||||
</vbox>
|
||||
|
|
|
@ -116,6 +116,7 @@ var resurrect={
|
|||
selectMirror:function(mirror, ownerDoc, contentDoc, rawUrl) {
|
||||
var gotoUrl=null;
|
||||
var encUrl=encodeURIComponent(rawUrl);
|
||||
var xmlUrl=rawUrl.replace('&', '&');
|
||||
|
||||
switch (mirror) {
|
||||
case 'coralcdn':
|
||||
|
@ -149,7 +150,6 @@ var resurrect={
|
|||
|
||||
break;
|
||||
case 'msn':
|
||||
var xmlUrl=rawUrl.replace('&', '&');
|
||||
var soapBody='<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd"><SOAP-ENV:Body><ns1:Search xmlns:ns1="http://testuri.org"><Request><AppID xsi:type="xsd:string">FD382E93B5ABC456C5E34C238A906CAB2DEEB5D6</AppID><Query xsi:type="xsd:string">'+xmlUrl+'</Query><CultureInfo xsi:type="xsd:string">en-US</CultureInfo><SafeSearch xsi:type="xsd:string">Off</SafeSearch><Requests><SourceRequest><Source xsi:type="xsd:string">Web</Source><Offset xsi:type="xsd:int">0</Offset><Count xsi:type="xsd:int">1</Count><ResultFields xsi:type="xsd:string">All</ResultFields></SourceRequest></Requests></Request></ns1:Search></SOAP-ENV:Body></SOAP-ENV:Envelope>';
|
||||
|
||||
var xhr=new XMLHttpRequest();
|
||||
|
@ -165,6 +165,29 @@ var resurrect={
|
|||
gotoUrl='http://search.msn.com/results.aspx?q='+encUrl;
|
||||
}
|
||||
|
||||
break;
|
||||
case 'gigablast':
|
||||
var apiUrl=[
|
||||
'http://feed.gigablast.com/search',
|
||||
'?q=', encUrl,
|
||||
'&site=', (rawUrl.match(/:\/\/([^/]+)/)[1]),
|
||||
'&n=1&ns=0&raw=9&bq=0&nrt=0'
|
||||
].join('');
|
||||
|
||||
var xhr=new XMLHttpRequest();
|
||||
xhr.open('GET', apiUrl, false);
|
||||
xhr.send(null);
|
||||
|
||||
try {
|
||||
var docId=xhr.responseXML
|
||||
.getElementsByTagName('docId')[0].textContent;
|
||||
gotoUrl='http://www.gigablast.com/index.php'
|
||||
+'?page=get&ih=1&ibh=1&cas=0&d='
|
||||
+docId;
|
||||
} catch (e) {
|
||||
gotoUrl='http://www.gigablast.com/index.php?q='+encUrl;
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
<!ENTITY resurrect.yahoo "Yahoo! Cache">
|
||||
<!ENTITY resurrect.archive "The Internet Archive">
|
||||
<!ENTITY resurrect.msn "Live Search (MSN) Cache">
|
||||
<!ENTITY resurrect.gigablast "Gigablast Cache">
|
||||
<!ENTITY resurrect.inCurrTab "In the current tab/window">
|
||||
<!ENTITY resurrect.inNewTab "In a new tab">
|
||||
<!ENTITY resurrect.inNewWin "In a new window">
|
||||
|
|
BIN
skin/cacheicons/gigablast.png
Fichier exécutable
BIN
skin/cacheicons/gigablast.png
Fichier exécutable
Fichier binaire non affiché.
Après Largeur: | Hauteur: | Taille: 755 o |
Chargement…
Référencer dans un nouveau ticket