Skip to content

Commit

Permalink
Removed yahoo and coral CDN
Browse files Browse the repository at this point in the history
removed yahoo since it now uses bing and removed coral CDN since it's
down almost everytime
  • Loading branch information
Albirew committed Jun 22, 2015
1 parent c30e39f commit 4483361
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 39 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ Hit back and try another one!
* With the keyboard: press `Ctrl-Shift-U`
* Directly in the net error ("Firefox could not load this page...") page.

# PLANNED
* sanitize remote content
* removeEventListener()
* repair gigablast

# Changelog

* Version 2.1.1 (May xx, 2015)
* Version 2.1.1 (June 22, 2015)
* Requests synchronous
* Typo in some languages for Gigablast
* PLANNED: sanitize remote content
* PLANNED: removeEventListener()
* removed yahoo cache (yahoo uses bing cache now)
* removed coral CDN (almost alsways dead)
* Version 2.1 (Sep 19, 2013)
* Firefox 22+ compatibility
* Added isup.me provider
Expand Down
8 changes: 0 additions & 8 deletions content/netError.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
<img src='chrome://resurrect/skin/tb-icon-small.png' />
&resurrect.thispage;
</legend>
<xul:button
value='coralcdn' label=' &resurrect.coralcdn;'
image='chrome://resurrect/skin/cacheicons/coralcdn.png'
/>
<xul:button
value='google' label=' &resurrect.google;'
image='chrome://resurrect/skin/cacheicons/google.png'
Expand All @@ -27,10 +23,6 @@
value='googletext' label=' &resurrect.google;&resurrect.textonly;'
image='chrome://resurrect/skin/cacheicons/google.png'
/>
<xul:button
value='yahoo' label=' &resurrect.yahoo;'
image='chrome://resurrect/skin/cacheicons/yahoo.png'
/>
<xul:button
value='archive' label=' &resurrect.archive;'
image='chrome://resurrect/skin/cacheicons/archive.png'
Expand Down
8 changes: 0 additions & 8 deletions content/resurrect-select-mirror.xul
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ window.addEventListener('load', resurrect.loadTarget, false);
<groupbox id='resurrect' onclick='resurrect.clickedXul(event);'>
<caption label='&resurrect.fromMirror;' />

<xul:button
value='coralcdn' label=' &resurrect.coralcdn;'
image='chrome://resurrect/skin/cacheicons/coralcdn.png'
/>
<xul:button
value='google' label=' &resurrect.google;'
image='chrome://resurrect/skin/cacheicons/google.png'
Expand All @@ -44,10 +40,6 @@ window.addEventListener('load', resurrect.loadTarget, false);
value='googletext' label=' &resurrect.google;&resurrect.textonly;'
image='chrome://resurrect/skin/cacheicons/google.png'
/>
<xul:button
value='yahoo' label=' &resurrect.yahoo;'
image='chrome://resurrect/skin/cacheicons/yahoo.png'
/>
<xul:button
value='archive' label=' &resurrect.archive;'
image='chrome://resurrect/skin/cacheicons/archive.png'
Expand Down
20 changes: 0 additions & 20 deletions content/resurrect.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ var resurrect={
var encUrl=encodeURIComponent(rawUrl);

switch (mirror) {
case 'coralcdn':
gotoUrl=rawUrl.substring(0, 8)+
rawUrl.substring(8).replace(/\//, '.nyud.net/');
break;
case 'google':
gotoUrl='http://www.google.com/search?q=cache:'+encUrl;
break;
Expand All @@ -166,22 +162,6 @@ var resurrect={
break;
case 'archive':
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;
case 'bing':
var xhr=new XMLHttpRequest();
Expand Down

0 comments on commit 4483361

Please sign in to comment.