Merge pull request #21 from dessant/patch-1
use https for google and archive.org
Cette révision appartient à :
révision
7ac9151154
1 fichiers modifiés avec 3 ajouts et 3 suppressions
|
@ -150,14 +150,14 @@ var resurrect={
|
||||||
|
|
||||||
switch (mirror) {
|
switch (mirror) {
|
||||||
case 'google':
|
case 'google':
|
||||||
gotoUrl='http://www.google.com/search?q=cache:'+encUrl;
|
gotoUrl='https://www.google.com/search?q=cache:'+encUrl;
|
||||||
break;
|
break;
|
||||||
case 'googletext':
|
case 'googletext':
|
||||||
gotoUrl='http://www.google.com/search?strip=1&q=cache:'+encUrl;
|
gotoUrl='https://www.google.com/search?strip=1&q=cache:'+encUrl;
|
||||||
break;
|
break;
|
||||||
case 'archive':
|
case 'archive':
|
||||||
var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, '');
|
var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, '');
|
||||||
gotoUrl='http://wayback.archive.org/web/'+dateStr+'/'+rawUrl;
|
gotoUrl='https://wayback.archive.org/web/'+dateStr+'/'+rawUrl;
|
||||||
break;
|
break;
|
||||||
case 'archiveis':
|
case 'archiveis':
|
||||||
gotoUrl='https://archive.is/'+rawUrl;
|
gotoUrl='https://archive.is/'+rawUrl;
|
||||||
|
|
Chargement…
Référencer dans un nouveau ticket