1
1
Bifurcation 0

Remove Gigablast

merged
c31fb0830f

Their API docs now say that "c=" is a required parameter.  But not what
value to put there.  Not to mention it takes several seconds just to
respond with an error page.
Cette révision appartient à :
Albirew 2016-03-14 18:22:31 +01:00
Parent 354d6ec635
révision 11b6f9177a
4 fichiers modifiés avec 0 ajouts et 36 suppressions

Voir le fichier

@ -31,12 +31,6 @@
value='bing' label=' &resurrect.bing;' value='bing' label=' &resurrect.bing;'
image='chrome://resurrect/skin/cacheicons/bing.png' image='chrome://resurrect/skin/cacheicons/bing.png'
/> />
<!-- temporary(?) disabled since not working anymore
<xul:button
value='gigablast' label=' &resurrect.gigablast;'
image='chrome://resurrect/skin/cacheicons/gigablast.png'
/>
-->
<xul:button <xul:button
value='webcitation' label=' &resurrect.webcitation;' value='webcitation' label=' &resurrect.webcitation;'
image='chrome://resurrect/skin/cacheicons/webcitation.png' image='chrome://resurrect/skin/cacheicons/webcitation.png'

Voir le fichier

@ -48,12 +48,6 @@ window.addEventListener('load', resurrect.loadTarget, false);
value='bing' label=' &resurrect.bing;' value='bing' label=' &resurrect.bing;'
image='chrome://resurrect/skin/cacheicons/bing.png' image='chrome://resurrect/skin/cacheicons/bing.png'
/> />
<!-- temporary(?) disabled since not working anymore
<xul:button
value='gigablast' label=' &resurrect.gigablast;'
image='chrome://resurrect/skin/cacheicons/gigablast.png'
/>
-->
<xul:button <xul:button
value='webcitation' label=' &resurrect.webcitation;' value='webcitation' label=' &resurrect.webcitation;'
image='chrome://resurrect/skin/cacheicons/webcitation.png' image='chrome://resurrect/skin/cacheicons/webcitation.png'

Voir le fichier

@ -187,30 +187,6 @@ var resurrect={
gotoUrl='http://www.bing.com/search?q=url:'+encUrl; gotoUrl='http://www.bing.com/search?q=url:'+encUrl;
} }
break;
case 'gigablast':
var siteRegex = new RegExp('://([^/]+)');
var apiUrl=[
'http://feed.gigablast.com/search',
'?q=url:', encUrl,
'&site=', (siteRegex.match(rawUrl)[1]),
'&n=1&ns=0&raw=9&bq=0&nrt=0'
].join('');
var xhr=new XMLHttpRequest();
xhr.open('GET', apiUrl, true);
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=url:'+encUrl;
}
break; break;
case 'webcitation': case 'webcitation':
gotoUrl='http://webcitation.org/query.php?url='+encUrl; gotoUrl='http://webcitation.org/query.php?url='+encUrl;

Fichier binaire non affiché.

Avant

Largeur:  |  Hauteur:  |  Taille: 755 o