Comparer les révisions
3 Révisions
72f4983f96
...
a8a76a1cba
Auteur | SHA1 | Date |
---|---|---|
Albirew | a8a76a1cba | |
Albirew | 4cd0f61d80 | |
Albirew | d2cb1d9492 |
|
@ -12,7 +12,7 @@ Or, the easier route, use this extension.
|
||||||
|
|
||||||
# Features
|
# Features
|
||||||
* Searches through six page cache/mirrors:
|
* Searches through six page cache/mirrors:
|
||||||
* [Google Cache](http://www.google.com/) (plus text-only version)
|
* [Cachew](https://cachedview.nl/)
|
||||||
* [The Internet Archive](http://web.archive.org/)
|
* [The Internet Archive](http://web.archive.org/)
|
||||||
* [WebCite](http://www.webcitation.org/)
|
* [WebCite](http://www.webcitation.org/)
|
||||||
* [archive.is](https://archive.is/)
|
* [archive.is](https://archive.is/)
|
||||||
|
@ -31,6 +31,9 @@ Hit back and try another one!
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
* Version 7
|
||||||
|
* Replaced Google with Cachew (Cache-view)
|
||||||
|
* Added sexy dark mode on popup
|
||||||
* Version 6.2.1
|
* Version 6.2.1
|
||||||
* Specify openerTabId for opened tabs
|
* Specify openerTabId for opened tabs
|
||||||
* Version 6.2
|
* Version 6.2
|
||||||
|
|
|
@ -19,14 +19,9 @@
|
||||||
"description": "Resurrect this link"
|
"description": "Resurrect this link"
|
||||||
},
|
},
|
||||||
|
|
||||||
"resurrectGoogle": {
|
"resurrectCachew": {
|
||||||
"message": "with Google",
|
"message": "with Cachew",
|
||||||
"description": "with Google"
|
"description": "with Cache-view"
|
||||||
},
|
|
||||||
|
|
||||||
"resurrectGoogleText": {
|
|
||||||
"message": "with Google (text only)",
|
|
||||||
"description": "with Google (text only)"
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"resurrectArchive": {
|
"resurrectArchive": {
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
"resurrectGoogle": {
|
"resurrectGoogle": {
|
||||||
"message": "avec Google",
|
"message": "avec Cachew",
|
||||||
"description": "with Google"
|
"description": "with Cache-view"
|
||||||
},
|
},
|
||||||
|
|
||||||
"resurrectGoogleText": {
|
"resurrectGoogleText": {
|
||||||
|
|
|
@ -11,8 +11,7 @@ chrome.storage.local.get('openIn', item => {
|
||||||
}, logLastError);
|
}, logLastError);
|
||||||
|
|
||||||
for (let [name, id, icon] of [
|
for (let [name, id, icon] of [
|
||||||
['Google', 'google', 'google'],
|
['Cachew', 'cachew', 'cachew'],
|
||||||
['GoogleText', 'googletext', 'google'],
|
|
||||||
['Archive', 'archive', 'waybackmachine'],
|
['Archive', 'archive', 'waybackmachine'],
|
||||||
['ArchiveList', 'archivelist', 'waybackmachine'],
|
['ArchiveList', 'archivelist', 'waybackmachine'],
|
||||||
['ArchiveIs', 'archiveis', 'archiveis'],
|
['ArchiveIs', 'archiveis', 'archiveis'],
|
||||||
|
@ -62,10 +61,8 @@ chrome.contextMenus.onClicked.addListener(function(info, tab) {
|
||||||
} else if (id.endsWith('-link')) {
|
} else if (id.endsWith('-link')) {
|
||||||
url = info.linkUrl;
|
url = info.linkUrl;
|
||||||
}
|
}
|
||||||
if (id.startsWith('resurrect-google-')) {
|
if (id.startsWith('resurrect-cachew-')) {
|
||||||
goToUrl(genGoogleUrl(url), openIn, tab.id);
|
goToUrl(genCachewUrl(url), openIn, tab.id);
|
||||||
} else if (id.startsWith('resurrect-googletext-')) {
|
|
||||||
goToUrl(genGoogleTextUrl(url), openIn, tab.id);
|
|
||||||
} else if (id.startsWith('resurrect-archive-')) {
|
} else if (id.startsWith('resurrect-archive-')) {
|
||||||
goToUrl(genIaUrl(url), openIn, tab.id);
|
goToUrl(genIaUrl(url), openIn, tab.id);
|
||||||
} else if (id.startsWith('resurrect-archivelist-')) {
|
} else if (id.startsWith('resurrect-archivelist-')) {
|
||||||
|
|
10
common.js
10
common.js
|
@ -5,25 +5,19 @@ openInEnum = {
|
||||||
NEW_WINDOW : 3
|
NEW_WINDOW : 3
|
||||||
}
|
}
|
||||||
let openIn = openInEnum.CURRENT_TAB;
|
let openIn = openInEnum.CURRENT_TAB;
|
||||||
|
|
||||||
chrome.storage.local.get('openIn', item => {
|
chrome.storage.local.get('openIn', item => {
|
||||||
if (item.openIn) {
|
if (item.openIn) {
|
||||||
openIn = item.openIn;
|
openIn = item.openIn;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function logLastError() {
|
function logLastError() {
|
||||||
if (chrome.runtime.lastError) {
|
if (chrome.runtime.lastError) {
|
||||||
console.error('Resurrect error:', chrome.runtime.lastError);
|
console.error('Resurrect error:', chrome.runtime.lastError);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function genGoogleUrl(url) {
|
function genCachewUrl(url) {
|
||||||
return 'https://www.google.com/search?q=cache:' + encodeURIComponent(url);
|
return 'https://cachedview.nl/#' +url;
|
||||||
}
|
|
||||||
|
|
||||||
function genGoogleTextUrl(url) {
|
|
||||||
return 'https://www.google.com/search?strip=1&q=cache:' + encodeURIComponent(url);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function genIaUrl(url) {
|
function genIaUrl(url) {
|
||||||
|
|
Fichier binaire non affiché.
Après Largeur: | Hauteur: | Taille: 9.4 KiB |
Fichier binaire non affiché.
Avant Largeur: | Hauteur: | Taille: 4.5 KiB |
Fichier binaire non affiché.
Avant Largeur: | Hauteur: | Taille: 7.9 KiB Après Largeur: | Hauteur: | Taille: 6.8 KiB |
Fichier binaire non affiché.
Avant Largeur: | Hauteur: | Taille: 2.6 KiB Après Largeur: | Hauteur: | Taille: 6.6 KiB |
|
@ -3,11 +3,11 @@
|
||||||
"name": "__MSG_extensionName__",
|
"name": "__MSG_extensionName__",
|
||||||
"short_name": "__MSG_extensionName__",
|
"short_name": "__MSG_extensionName__",
|
||||||
"description": "__MSG_extensionDescription__",
|
"description": "__MSG_extensionDescription__",
|
||||||
"version": "6.2.1",
|
"version": "7.0.1",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"homepage_url": "https://github.com/Albirew/resurrect-pages",
|
"homepage_url": "https://github.com/Albirew/resurrect-pages",
|
||||||
|
|
||||||
"applications": {
|
"browser_specific_settings": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "resurrect-pages@albirew.fr",
|
"id": "resurrect-pages@albirew.fr",
|
||||||
"strict_min_version": "57.0"
|
"strict_min_version": "57.0"
|
||||||
|
|
13
popup.htm
13
popup.htm
|
@ -20,13 +20,16 @@ img {
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
}
|
}
|
||||||
|
@media (prefers-color-scheme: dark){
|
||||||
|
body {
|
||||||
|
filter: hue-rotate(180deg) invert(1);
|
||||||
|
background-color:#102;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<form>
|
<form>
|
||||||
<button data-locale="resurrectGoogle" data-gen="genGoogleUrl">
|
<button data-locale="resurrectCachew" data-gen="genCachewUrl">
|
||||||
<img src="icons/cacheicons/google.png">
|
<img src="icons/cacheicons/cachew.png">
|
||||||
</button>
|
|
||||||
<button data-locale="resurrectGoogleText" data-gen="genGoogleTextUrl">
|
|
||||||
<img src="icons/cacheicons/google.png">
|
|
||||||
</button>
|
</button>
|
||||||
<button data-locale="resurrectArchive" data-gen="genIaUrl">
|
<button data-locale="resurrectArchive" data-gen="genIaUrl">
|
||||||
<img src="icons/cacheicons/waybackmachine.png">
|
<img src="icons/cacheicons/waybackmachine.png">
|
||||||
|
|
Chargement…
Référencer dans un nouveau ticket