Removed yahoo and coral CDN
removed yahoo since it now uses bing and removed coral CDN since it's down almost everytime
Cette révision appartient à :
Parent
c30e39f1e6
révision
4483361b05
4 fichiers modifiés avec 8 ajouts et 39 suppressions
11
README.md
11
README.md
|
@ -30,13 +30,18 @@ Hit back and try another one!
|
||||||
* With the keyboard: press `Ctrl-Shift-U`
|
* With the keyboard: press `Ctrl-Shift-U`
|
||||||
* Directly in the net error ("Firefox could not load this page...") page.
|
* Directly in the net error ("Firefox could not load this page...") page.
|
||||||
|
|
||||||
|
# PLANNED
|
||||||
|
* sanitize remote content
|
||||||
|
* removeEventListener()
|
||||||
|
* repair gigablast
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
* Version 2.1.1 (May xx, 2015)
|
* Version 2.1.1 (June 22, 2015)
|
||||||
* Requests synchronous
|
* Requests synchronous
|
||||||
* Typo in some languages for Gigablast
|
* Typo in some languages for Gigablast
|
||||||
* PLANNED: sanitize remote content
|
* removed yahoo cache (yahoo uses bing cache now)
|
||||||
* PLANNED: removeEventListener()
|
* removed coral CDN (almost alsways dead)
|
||||||
* Version 2.1 (Sep 19, 2013)
|
* Version 2.1 (Sep 19, 2013)
|
||||||
* Firefox 22+ compatibility
|
* Firefox 22+ compatibility
|
||||||
* Added isup.me provider
|
* Added isup.me provider
|
||||||
|
|
|
@ -15,10 +15,6 @@
|
||||||
<img src='chrome://resurrect/skin/tb-icon-small.png' />
|
<img src='chrome://resurrect/skin/tb-icon-small.png' />
|
||||||
&resurrect.thispage;
|
&resurrect.thispage;
|
||||||
</legend>
|
</legend>
|
||||||
<xul:button
|
|
||||||
value='coralcdn' label=' &resurrect.coralcdn;'
|
|
||||||
image='chrome://resurrect/skin/cacheicons/coralcdn.png'
|
|
||||||
/>
|
|
||||||
<xul:button
|
<xul:button
|
||||||
value='google' label=' &resurrect.google;'
|
value='google' label=' &resurrect.google;'
|
||||||
image='chrome://resurrect/skin/cacheicons/google.png'
|
image='chrome://resurrect/skin/cacheicons/google.png'
|
||||||
|
@ -27,10 +23,6 @@
|
||||||
value='googletext' label=' &resurrect.google;&resurrect.textonly;'
|
value='googletext' label=' &resurrect.google;&resurrect.textonly;'
|
||||||
image='chrome://resurrect/skin/cacheicons/google.png'
|
image='chrome://resurrect/skin/cacheicons/google.png'
|
||||||
/>
|
/>
|
||||||
<xul:button
|
|
||||||
value='yahoo' label=' &resurrect.yahoo;'
|
|
||||||
image='chrome://resurrect/skin/cacheicons/yahoo.png'
|
|
||||||
/>
|
|
||||||
<xul:button
|
<xul:button
|
||||||
value='archive' label=' &resurrect.archive;'
|
value='archive' label=' &resurrect.archive;'
|
||||||
image='chrome://resurrect/skin/cacheicons/archive.png'
|
image='chrome://resurrect/skin/cacheicons/archive.png'
|
||||||
|
|
|
@ -32,10 +32,6 @@ window.addEventListener('load', resurrect.loadTarget, false);
|
||||||
<groupbox id='resurrect' onclick='resurrect.clickedXul(event);'>
|
<groupbox id='resurrect' onclick='resurrect.clickedXul(event);'>
|
||||||
<caption label='&resurrect.fromMirror;' />
|
<caption label='&resurrect.fromMirror;' />
|
||||||
|
|
||||||
<xul:button
|
|
||||||
value='coralcdn' label=' &resurrect.coralcdn;'
|
|
||||||
image='chrome://resurrect/skin/cacheicons/coralcdn.png'
|
|
||||||
/>
|
|
||||||
<xul:button
|
<xul:button
|
||||||
value='google' label=' &resurrect.google;'
|
value='google' label=' &resurrect.google;'
|
||||||
image='chrome://resurrect/skin/cacheicons/google.png'
|
image='chrome://resurrect/skin/cacheicons/google.png'
|
||||||
|
@ -44,10 +40,6 @@ window.addEventListener('load', resurrect.loadTarget, false);
|
||||||
value='googletext' label=' &resurrect.google;&resurrect.textonly;'
|
value='googletext' label=' &resurrect.google;&resurrect.textonly;'
|
||||||
image='chrome://resurrect/skin/cacheicons/google.png'
|
image='chrome://resurrect/skin/cacheicons/google.png'
|
||||||
/>
|
/>
|
||||||
<xul:button
|
|
||||||
value='yahoo' label=' &resurrect.yahoo;'
|
|
||||||
image='chrome://resurrect/skin/cacheicons/yahoo.png'
|
|
||||||
/>
|
|
||||||
<xul:button
|
<xul:button
|
||||||
value='archive' label=' &resurrect.archive;'
|
value='archive' label=' &resurrect.archive;'
|
||||||
image='chrome://resurrect/skin/cacheicons/archive.png'
|
image='chrome://resurrect/skin/cacheicons/archive.png'
|
||||||
|
|
|
@ -154,10 +154,6 @@ var resurrect={
|
||||||
var encUrl=encodeURIComponent(rawUrl);
|
var encUrl=encodeURIComponent(rawUrl);
|
||||||
|
|
||||||
switch (mirror) {
|
switch (mirror) {
|
||||||
case 'coralcdn':
|
|
||||||
gotoUrl=rawUrl.substring(0, 8)+
|
|
||||||
rawUrl.substring(8).replace(/\//, '.nyud.net/');
|
|
||||||
break;
|
|
||||||
case 'google':
|
case 'google':
|
||||||
gotoUrl='http://www.google.com/search?q=cache:'+encUrl;
|
gotoUrl='http://www.google.com/search?q=cache:'+encUrl;
|
||||||
break;
|
break;
|
||||||
|
@ -166,22 +162,6 @@ var resurrect={
|
||||||
break;
|
break;
|
||||||
case 'archive':
|
case 'archive':
|
||||||
gotoUrl='http://wayback.archive.org/web/*/'+rawUrl;
|
gotoUrl='http://wayback.archive.org/web/*/'+rawUrl;
|
||||||
break;
|
|
||||||
case 'yahoo':
|
|
||||||
var xhr=new XMLHttpRequest();
|
|
||||||
xhr.open('GET',
|
|
||||||
'http://api.search.yahoo.com/WebSearchService/V1/'+
|
|
||||||
'webSearch?appid=firefox-resurrect&query='+encUrl+'&results=1',
|
|
||||||
true);
|
|
||||||
xhr.send(null);
|
|
||||||
|
|
||||||
try {
|
|
||||||
var c=xhr.responseXML.getElementsByTagName('Cache');
|
|
||||||
gotoUrl=c[0].firstChild.textContent;
|
|
||||||
} catch (e ) {
|
|
||||||
gotoUrl='http://search.yahoo.com/search?p='+encUrl;
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case 'bing':
|
case 'bing':
|
||||||
var xhr=new XMLHttpRequest();
|
var xhr=new XMLHttpRequest();
|
||||||
|
|
Chargement…
Référencer dans un nouveau ticket