From 4f124ee566312b452fe493d7485e0a7c7c36d04e Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 19 Aug 2017 18:32:36 +0200 Subject: [PATCH 01/13] Rewrite as WebExtension Not everything that was in the old version has been brought over yet. This is mainly: * all the locales (English only currently) * toolbar button * hotkey (Ctrl-Shift-U) * network error page However, the main feature is there: resurrect * the current page * the link right-clicked on * the selected string of text in either * the current * a new foreground tab * a new background tab * a new window using * Google Cache * Google Cache (Text-Only) * The Internet Archive's Wayback Machine * Archive.is * WebCite --- README.md | 6 +- _locales/en/messages.json | 72 +++ background.js | 412 ++++++++++++++++++ chrome.manifest | 42 -- content/netError.xhtml | 40 -- content/resurrect-overlay.xul | 41 -- content/resurrect-select-mirror.xul | 59 --- content/resurrect.js | 191 -------- defaults/preferences/resurrect.js | 3 - icons/cacheicons/archiveis.png | Bin 0 -> 709 bytes {skin => icons}/cacheicons/google.png | Bin {skin => icons}/cacheicons/waybackmachine.png | Bin {skin => icons}/cacheicons/webcitation.png | Bin icons/page-16.png | Bin 0 -> 669 bytes skin/em-icon.png => icons/page-32.png | Bin {skin => icons}/tb-icon-large.png | Bin install.rdf | 23 - manifest.json | 29 ++ skin/cacheicons/archive.png | Bin 177 -> 0 bytes skin/cacheicons/archiveis.ico | Bin 5430 -> 0 bytes skin/netError.css | 46 -- skin/resurrect-overlay.css | 6 - skin/select-mirror.css | 3 - skin/tb-icon-small.png | Bin 719 -> 0 bytes 24 files changed, 516 insertions(+), 457 deletions(-) create mode 100644 _locales/en/messages.json create mode 100644 background.js delete mode 100644 chrome.manifest delete mode 100644 content/netError.xhtml delete mode 100644 content/resurrect-overlay.xul delete mode 100644 content/resurrect-select-mirror.xul delete mode 100644 content/resurrect.js delete mode 100644 defaults/preferences/resurrect.js create mode 100644 icons/cacheicons/archiveis.png rename {skin => icons}/cacheicons/google.png (100%) rename {skin => icons}/cacheicons/waybackmachine.png (100%) rename {skin => icons}/cacheicons/webcitation.png (100%) create mode 100644 icons/page-16.png rename skin/em-icon.png => icons/page-32.png (100%) rename {skin => icons}/tb-icon-large.png (100%) delete mode 100644 install.rdf create mode 100644 manifest.json delete mode 100644 skin/cacheicons/archive.png delete mode 100755 skin/cacheicons/archiveis.ico delete mode 100644 skin/netError.css delete mode 100644 skin/resurrect-overlay.css delete mode 100755 skin/select-mirror.css delete mode 100644 skin/tb-icon-small.png diff --git a/README.md b/README.md index 4bf8efa..a8e09ab 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,12 @@ Hit back and try another one! * Accessible: * In the context (right-click) menu for the current page, and for all links. - * In the toolbar, just customize it to drag the button in. - * With the keyboard: press `Ctrl-Shift-U` - * Directly in the net error ("Firefox could not load this page...") page. # Changelog + * Version 4 (Aug 19, 2017) + * completely rewritten as WebExtension + * Not everything from the old version ported over yet * Version 3 (Sep 9, 2015) * Fix layout on error page w.r.t. the "report error" dialog. * Add keyboard accessibility for cache retrieval buttons. diff --git a/_locales/en/messages.json b/_locales/en/messages.json new file mode 100644 index 0000000..79bab1a --- /dev/null +++ b/_locales/en/messages.json @@ -0,0 +1,72 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Resurrect dead pages, by finding their ghosts.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Resurrect this page", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Resurrect this link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link" + }, + + "contextMenuItemResurrectGoogle": { + "message": "with Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "with Google (text only)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "with The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "with archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "with WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "in the current tab", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "in a new tab (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "in a new tab (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "in a new window", + "description": "in a new window" + } + +} diff --git a/background.js b/background.js new file mode 100644 index 0000000..181b720 --- /dev/null +++ b/background.js @@ -0,0 +1,412 @@ +openInEnum = { + CURRENT_TAB : 0, + NEW_TAB : 1, + NEW_BGTAB : 2, + NEW_WINDOW : 3 +} + +var openIn = openInEnum.CURRENT_TAB; +browser.storage.local.get ("openIn").then (function (item) {if (item.openIn) {openIn = item.openIn}}, onError); + +function onCreated(n) { + if (browser.runtime.lastError) { + console.log(`Error: ${browser.runtime.lastError}`); + } +} + +function onRemoved() { } + +function onError(error) { + console.log(`Error: ${error}`); +} + +/* +Create all the context menu items. +*/ +// top level {{{ +browser.contextMenus.create({ + id: "resurrect-page", + title: browser.i18n.getMessage("contextMenuItemResurrectPage"), + contexts: ["page"] +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-link", + title: browser.i18n.getMessage("contextMenuItemResurrectLink"), + contexts: ["link"] +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-selection", + title: browser.i18n.getMessage("contextMenuItemResurrectSelection"), + contexts: ["selection"] +}, onCreated); +//}}} + +// resurrect page {{{ +browser.contextMenus.create({ + id: "resurrect-page-google", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-page" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-page-googletext", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-page" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-page-archive", + title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), + icons: { 16: "icons/cacheicons/waybackmachine.png" }, + contexts: ["all"], + parentId: "resurrect-page" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-page-archiveis", + title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), + icons: { 16: "icons/cacheicons/archiveis.png" }, + contexts: ["all"], + parentId: "resurrect-page" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-page-webcitation", + title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), + icons: { 16: "icons/cacheicons/webcitation.png" }, + contexts: ["all"], + parentId: "resurrect-page" +}, onCreated); +//}}} + +// resurrect link {{{ +browser.contextMenus.create({ + id: "resurrect-link-google", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-link" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-link-googletext", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-link" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-link-archive", + title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), + icons: { 16: "icons/cacheicons/waybackmachine.png" }, + contexts: ["all"], + parentId: "resurrect-link" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-link-archiveis", + title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), + icons: { 16: "icons/cacheicons/archiveis.png" }, + contexts: ["all"], + parentId: "resurrect-link" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-link-webcitation", + title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), + icons: { 16: "icons/cacheicons/webcitation.png" }, + contexts: ["all"], + parentId: "resurrect-link" +}, onCreated); +//}}} + +// resurrect selection {{{ +browser.contextMenus.create({ + id: "resurrect-selection-google", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-selection" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-selection-googletext", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-selection" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-selection-archive", + title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), + icons: { 16: "icons/cacheicons/waybackmachine.png" }, + contexts: ["all"], + parentId: "resurrect-selection" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-selection-archiveis", + title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), + icons: { 16: "icons/cacheicons/archiveis.png" }, + contexts: ["all"], + parentId: "resurrect-selection" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-selection-webcitation", + title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), + icons: { 16: "icons/cacheicons/webcitation.png" }, + contexts: ["all"], + parentId: "resurrect-selection" +}, onCreated); +//}}} + +//config page {{{ +browser.contextMenus.create({ + id: "separator-1", + type: "separator", + contexts: ["all"], + parentId: "resurrect-page" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-page-current-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), + contexts: ["all"], + checked: true, + parentId: "resurrect-page" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-page-new-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), + contexts: ["all"], + checked: false, + parentId: "resurrect-page" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-page-new-background-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), + contexts: ["all"], + checked: false, + parentId: "resurrect-page" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-page-new-window", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), + contexts: ["all"], + checked: false, + parentId: "resurrect-page" +}, onCreated); +//}}} + +//config link {{{ +browser.contextMenus.create({ + id: "separator-2", + type: "separator", + contexts: ["all"], + parentId: "resurrect-link" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-link-current-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), + contexts: ["all"], + checked: true, + parentId: "resurrect-link" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-link-new-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), + contexts: ["all"], + checked: false, + parentId: "resurrect-link" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-link-new-background-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), + contexts: ["all"], + checked: false, + parentId: "resurrect-link" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-link-new-window", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), + contexts: ["all"], + checked: false, + parentId: "resurrect-link" +}, onCreated); +//}}} + +//config selection {{{ +browser.contextMenus.create({ + id: "separator-3", + type: "separator", + contexts: ["all"], + parentId: "resurrect-selection" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-selection-current-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), + contexts: ["all"], + checked: true, + parentId: "resurrect-selection" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-selection-new-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), + contexts: ["all"], + checked: false, + parentId: "resurrect-selection" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-selection-new-background-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), + contexts: ["all"], + checked: false, + parentId: "resurrect-selection" +}, onCreated); + +browser.contextMenus.create({ + id: "resurrect-selection-new-window", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), + contexts: ["all"], + checked: false, + parentId: "resurrect-selection" +}, onCreated); +//}}} + + +browser.contextMenus.onClicked.addListener(function(info, tab) { + var gotoUrl=null; + + var rawUrl = info.pageUrl; + + switch (info.menuItemId) { + case "resurrect-page-google": + gotoUrl='https://www.google.com/search?q=cache:'+encodeURIComponent(info.pageUrl); + break; + case "resurrect-link-google": + gotoUrl='https://www.google.com/search?q=cache:'+encodeURIComponent(info.linkUrl); + break; + case "resurrect-selection-google": + gotoUrl='https://www.google.com/search?q=cache:'+encodeURIComponent(info.selectionText); + break; + + case "resurrect-page-googletext": + gotoUrl='https://www.google.com/search?strip=1&q=cache:'+encodeURIComponent(info.pageUrl); + break; + case "resurrect-link-googletext": + gotoUrl='https://www.google.com/search?strip=1&q=cache:'+encodeURIComponent(info.linkUrl); + break; + case "resurrect-selection-googletext": + gotoUrl='https://www.google.com/search?strip=1&q=cache:'+encodeURIComponent(info.selectionText); + break; + + case "resurrect-page-archive": + var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, ''); + gotoUrl='https://web.archive.org/web/'+dateStr+'/'+info.pageUrl + break; + case "resurrect-link-archive": + var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, ''); + gotoUrl='https://web.archive.org/web/'+dateStr+'/'+info.linkUrl + break; + case "resurrect-selection-archive": + var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, ''); + gotoUrl='https://web.archive.org/web/'+dateStr+'/'+info.selectionText + break; + + case "resurrect-page-archiveis": + gotoUrl='https://archive.is/'+info.pageUrl; + break; + case "resurrect-link-archiveis": + gotoUrl='https://archive.is/'+info.linkUrl; + break; + case "resurrect-selection-archiveis": + gotoUrl='https://archive.is/'+info.selectionText; + break; + + case "resurrect-page-webcitation": + gotoUrl='http://webcitation.org/query.php?url='+encodeURIComponent(info.pageUrl); + break; + case "resurrect-link-webcitation": + gotoUrl='http://webcitation.org/query.php?url='+encodeURIComponent(info.linkUrl); + break; + case "resurrect-selection-webcitation": + gotoUrl='http://webcitation.org/query.php?url='+encodeURIComponent(info.selectionText); + break; + + case "resurrect-page-current-tab": + case "resurrect-link-current-tab": + case "resurrect-selection-current-tab": + openIn = openInEnum.CURRENT_TAB; + browser.storage.local.set({openIn: openIn}); + return; + case "resurrect-page-new-tab": + case "resurrect-link-new-tab": + case "resurrect-selection-new-tab": + openIn = openInEnum.NEW_TAB; + browser.storage.local.set({openIn: openIn}); + return; + case "resurrect-page-new-background-tab": + case "resurrect-link-new-background-tab": + case "resurrect-selection-new-background-tab": + openIn = openInEnum.NEW_BGTAB; + browser.storage.local.set({openIn: openIn}); + return; + case "resurrect-page-new-window": + case "resurrect-link-new-window": + case "resurrect-selection-new-window": + openIn = openInEnum.NEW_WINDOW; + browser.storage.local.set({openIn: openIn}); + return; + } + + if (gotoUrl) { + console.log ("would've gone to " + gotoUrl + " opened in " + openIn); + switch (openIn) { + case openInEnum.CURRENT_TAB: + browser.tabs.update({ "url": gotoUrl}); + break; + case openInEnum.NEW_TAB: + browser.tabs.create({ "url": gotoUrl}); + break; + case openInEnum.NEW_BGTAB: + browser.tabs.create({ "url": gotoUrl, "active":false}); + break; + case openInEnum.NEW_WINDOW: + browser.windows.create({ "url": gotoUrl}); + break; + } + } +}); + + diff --git a/chrome.manifest b/chrome.manifest deleted file mode 100644 index f29ef28..0000000 --- a/chrome.manifest +++ /dev/null @@ -1,42 +0,0 @@ -content resurrect content/ contentaccessible=yes -skin resurrect classic/1.0 skin/ - -overlay chrome://browser/content/browser.xul chrome://resurrect/content/resurrect-overlay.xul -style chrome://global/content/customizeToolbar.xul chrome://resurrect/skin/resurrect-overlay.css - -locale resurrect ca-AD locale/ca-AD/ -locale resurrect cs-CZ locale/cs-CZ/ -locale resurrect da locale/da/ -locale resurrect da-DK locale/da-DK/ -locale resurrect de locale/de/ -locale resurrect de-DE locale/de-DE/ -locale resurrect el locale/el/ -locale resurrect el-GR locale/el-GR/ -locale resurrect en-US locale/en-US/ -locale resurrect es-AR locale/es-AR/ -locale resurrect es-CL locale/es-CL/ -locale resurrect es-ES locale/es-ES/ -locale resurrect fi locale/fi/ -locale resurrect fi-FI locale/fi-FI/ -locale resurrect fr locale/fr/ -locale resurrect fr-FR locale/fr-FR/ -locale resurrect hr-HR locale/hr-HR/ -locale resurrect it locale/it/ -locale resurrect it-IT locale/it-IT/ -locale resurrect ja-JP locale/ja-JP/ -locale resurrect ko-KR locale/ko-KR/ -locale resurrect nl locale/nl/ -locale resurrect nl-NL locale/nl-NL/ -locale resurrect pl locale/pl/ -locale resurrect pl-PL locale/pl-PL/ -locale resurrect pt-BR locale/pt-BR/ -locale resurrect pt-PT locale/pt-PT/ -locale resurrect ru-RU locale/ru-RU/ -locale resurrect sl-SI locale/sl-SI/ -locale resurrect sr locale/sr/ -locale resurrect sv-SE locale/sv-SE/ -locale resurrect tr locale/tr/ -locale resurrect tr-TR locale/tr-TR/ -locale resurrect uk-UA locale/uk-UA/ -locale resurrect zh-CN locale/zh-CN/ -locale resurrect zh-TW locale/zh-TW/ diff --git a/content/netError.xhtml b/content/netError.xhtml deleted file mode 100644 index 2b900d9..0000000 --- a/content/netError.xhtml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - -
- - - - - - - &resurrect.thispage; - - - - - - - -
- - diff --git a/content/resurrect-overlay.xul b/content/resurrect-overlay.xul deleted file mode 100644 index 12d8e7f..0000000 --- a/content/resurrect-overlay.xul +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/content/resurrect-select-mirror.xul b/content/resurrect-select-mirror.xul deleted file mode 100644 index cd477bb..0000000 --- a/content/resurrect-select-mirror.xul +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/content/resurrect.js b/content/resurrect.js deleted file mode 100644 index 108d5a5..0000000 --- a/content/resurrect.js +++ /dev/null @@ -1,191 +0,0 @@ -var resurrect={ - - contextUrl:null, - -// // // // // // // // // // // // // // // // // // // // // // // // // // // - - onLoad:function() { - window.removeEventListener('load', resurrect.onLoad, false); - document.getElementById('contentAreaContextMenu') - .addEventListener('popupshowing', resurrect.toggleContextItems, false); - addEventListener('DOMContentLoaded', resurrect.contentDomLoad, false); - }, - - toggleContextItems:function(event) { - resurrect.contextUrl = gContextMenu.linkURL; - - var onDocument=!( - gContextMenu.isContentSelected || gContextMenu.onTextInput || - gContextMenu.onLink || gContextMenu.onImage); - - document.getElementById('resurrect-page-context') - .setAttribute('hidden', !onDocument); - document.getElementById('resurrect-link-context') - .setAttribute('hidden', !gContextMenu.onLink); - }, - - contentDomLoad:function(event) { - var contentDoc=event.target; - - if (contentDoc.documentURI.indexOf('about:neterror') != 0) return; - - // Inject our content... - var xhr = new XMLHttpRequest(); - xhr.open('GET', 'chrome://resurrect/content/netError.xhtml', true); - xhr.onload = function() { - var fieldset = xhr.responseXML.getElementById('resurrect'); - var xhtml = new XMLSerializer().serializeToString(fieldset); - var container = contentDoc.getElementById('errorPageContainer'); - container.innerHTML += xhtml; - - // ...plus the CSS. - var link = contentDoc.createElement('link'); - link.setAttribute('rel', 'stylesheet'); - link.setAttribute('href', 'chrome://resurrect/skin/netError.css'); - link.setAttribute('type', 'text/css'); - link.setAttribute('media', 'all'); - contentDoc.getElementsByTagName('head')[0].appendChild(link); - - // Add the className that enables it, only when appropriate. - contentDoc.location.href = - 'javascript:if ("nssBadCert" != getErrorCode()) {' - + 'document.body.className += " resurrect";' - + '}; void(0)'; - - // Add event listener. - contentDoc.getElementById('resurrect').addEventListener( - 'click', resurrect.clickedHtml, false); - contentDoc.getElementById('resurrect').addEventListener( - 'keypress', resurrect.clickedHtml, false); - }; - xhr.send(null); - }, - - disableButtons:function(doc) { - var bs=doc.getElementById('resurrect') - .getElementsByTagName('xul:button'); - for (var i=0, b=null; b=bs[i]; i++) { - b.setAttribute('disabled', 'true'); - } - }, - -// // // // // // // // // // // // // // // // // // // // // // // // // // // - - page:function(event) { - var doc=getBrowser().contentWindow.document; - resurrect.showDialog(doc.location.href); - }, - - link:function(event) { - resurrect.showDialog(resurrect.contextUrl); - }, - -// // // // // // // // // // // // // // // // // // // // // // // // // // // - - loadTarget:function() { - var pref=Components.classes['@mozilla.org/preferences-service;1'] - .getService(Components.interfaces.nsIPrefBranch); - var target=pref.getCharPref('extensions.resurrect.target'); - - document.getElementById('targetGroup').selectedItem= - document.getElementById(target); - }, - - saveTarget:function(el) { - var target=document.getElementById('targetGroup').selectedItem.id; - - var pref=Components.classes['@mozilla.org/preferences-service;1'] - .getService(Components.interfaces.nsIPrefBranch); - pref.setCharPref('extensions.resurrect.target', target); - }, - -// // // // // // // // // // // // // // // // // // // // // // // // // // // - - showDialog:function(url) { - window.openDialog( - 'chrome://resurrect/content/resurrect-select-mirror.xul', - '_blank', - 'modal,centerscreen,resizable=no,chrome,dependent', - getBrowser().contentWindow.document, url); - }, - - clickedHtml:function(event) { - if ('true'==event.target.getAttribute('disabled')) { - return; - } - if ('keypress' == event.type) { - if (event.target.parentNode.id != 'resurrect') return; - if (event.charCode != 32 && event.keyCode != 13) return; - } - - return resurrect.clickHandler( - event, - event.target.ownerDocument, - event.target.ownerDocument.location.href); - }, - - clickedXul:function(event) { - resurrect.saveTarget(event.target); - - return resurrect.clickHandler( - event, - window.arguments[0], - window.arguments[1]); - }, - - clickHandler:function(event, contentDoc, rawUrl) { - resurrect.disableButtons(event.target.ownerDocument); - - // Run the actual code. After timeout for UI repaint. - setTimeout( - resurrect.selectMirror, 1, - event.target.getAttribute('value'), - event.target.ownerDocument, - contentDoc, rawUrl); - }, - - selectMirror:function(mirror, ownerDoc, contentDoc, rawUrl) { - var gotoUrl=null; - var encUrl=encodeURIComponent(rawUrl); - - switch (mirror) { - case 'google': - gotoUrl='https://www.google.com/search?q=cache:'+encUrl; - break; - case 'googletext': - gotoUrl='https://www.google.com/search?strip=1&q=cache:'+encUrl; - break; - case 'archive': - var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, ''); - gotoUrl='https://web.archive.org/web/'+dateStr+'/'+rawUrl; - break; - case 'archiveis': - gotoUrl='https://archive.is/'+rawUrl; - break; - case 'webcitation': - gotoUrl='http://webcitation.org/query.php?url='+encUrl; - break; - default: - return false; - break; - } - - if (gotoUrl) { - if (ownerDoc.getElementById('targetTab').getAttribute('selected')) { - window.opener.openUILinkIn(gotoUrl, 'tab'); - } else if (ownerDoc.getElementById('targetWin').getAttribute('selected')) { - // the setTimeout keeps focus from returning to the opener - setTimeout(function(){ - window.opener.openNewWindowWith(gotoUrl, null, null); - }, 10); - } else { - contentDoc.location.assign(gotoUrl); - } - - if ('chrome://resurrect/content/resurrect-select-mirror.xul'==window.document.location) { - // setTimeout avoids errors because the window is gone - setTimeout(window.close, 0); - } - } - } -}; diff --git a/defaults/preferences/resurrect.js b/defaults/preferences/resurrect.js deleted file mode 100644 index c51d0a9..0000000 --- a/defaults/preferences/resurrect.js +++ /dev/null @@ -1,3 +0,0 @@ -pref("extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description", "chrome://resurrect/locale/overlay.properties"); - -pref("extensions.resurrect.target", "targetCurr"); diff --git a/icons/cacheicons/archiveis.png b/icons/cacheicons/archiveis.png new file mode 100644 index 0000000000000000000000000000000000000000..5262759191abe0ed1dc97e884b9732219d64c913 GIT binary patch literal 709 zcmV;$0y_PPP)j2A(%k(-g@vQzGpN%PI#8vJ|L9P!w zP;xnHYHCmv1(V4{Hk;iA0OXX+;Qc|ArY(Xqa~yB4qowBz%TM1B*6X-&+gVVO)oP`n zYolYMwB2okl)%>1H`YFdQE93uKUqurl|F(W{LIhJ79a&cq&kMAu3#;&j=^@CL$!LK zn%_U>QFEBa&Q4xG96K1;2yGI5w9ZB-L22zT#L_5mgy_c=all~vGc=|WKyQmGVfw;NfO>F(~{ rA4sRujE|2aNm9{cnw*^6IV6BT#;x5!&pT4Q00000NkvXXu0mjfkQqPU literal 0 HcmV?d00001 diff --git a/skin/cacheicons/google.png b/icons/cacheicons/google.png similarity index 100% rename from skin/cacheicons/google.png rename to icons/cacheicons/google.png diff --git a/skin/cacheicons/waybackmachine.png b/icons/cacheicons/waybackmachine.png similarity index 100% rename from skin/cacheicons/waybackmachine.png rename to icons/cacheicons/waybackmachine.png diff --git a/skin/cacheicons/webcitation.png b/icons/cacheicons/webcitation.png similarity index 100% rename from skin/cacheicons/webcitation.png rename to icons/cacheicons/webcitation.png diff --git a/icons/page-16.png b/icons/page-16.png new file mode 100644 index 0000000000000000000000000000000000000000..58d965e859d05787c8b7851e1840b1a04b2c1d2c GIT binary patch literal 669 zcmV;O0%HA%P)WtGNKEtT)DS}pO3Zr`SV8% zZ{ECS`2U}Q;m)1wQ)kVdm4nRyCS=aeUFRdeeEC}a`}e0;&tE=@{`u>RpT2?qcLfEd zsNUXQHf#p4pgQN5sfaKu!>!xbW>r;IEn{F{VA!$a - - - {0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3} - Resurrect Pages - 3 - Resurrect dead pages, by finding their ghosts. - - http://trac.arantius.com/wiki/Extensions/Resurrect - chrome://resurrect/skin/em-icon.png - - Anthony Lieuallen - Translators from BabelZilla.org - - - - {ec8030f7-c20a-464f-9b0e-13a3a9e97384} - 3.0 - 43.* - - - - diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..bcafaa9 --- /dev/null +++ b/manifest.json @@ -0,0 +1,29 @@ +{ + + "manifest_version": 2, + "name": "__MSG_extensionName__", + "description": "__MSG_extensionDescription__", + "version": "1.0", + "default_locale": "en", + "applications": { + "gecko": { + "strict_min_version": "56.0b3" + } + }, + + "background": { + "scripts": ["background.js"] + }, + + "permissions": [ + "storage", + "contextMenus", + "activeTab" + ], + + "icons": { + "16": "icons/page-16.png", + "32": "icons/page-32.png" + } + +} diff --git a/skin/cacheicons/archive.png b/skin/cacheicons/archive.png deleted file mode 100644 index 01f20ca7ae69845450668e3d0e9c8c69515eb87a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 177 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|Ea{HEjtmUzPnffIy#(?lOI#yL zg7ec#$`gxH85~pclTsBta}(23gHjVyDhp4h+5i4AV0h=N VqHuJk&19f)44$rjF6*2UngCb6H2eSn diff --git a/skin/cacheicons/archiveis.ico b/skin/cacheicons/archiveis.ico deleted file mode 100755 index b7552556c8031e27a9bec60f1836a76cbbcb0706..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5430 zcmc&&3s9BE6~4)YPHSrbO&k@25F!wvAZ??764CM&3|=7>Q62&0DK9S`sPwDJbwLsqnmBlP|1Do|NjiSqJt)YjIbrltm^rKPB@u0}~o3GUy&kMQtt ziJCNL`jXVwJBYmeRD^`OBPlruxw$!b_UxIYdO`i>=4Pao+2Uf0GcMimKvBg9=pP6` zLc(5jc6M<#=Hu_{9)L%@F=8rq!%^@as;;=;Z&#h+?Dhu~ms&$4vRhC;AuR?K5aR6J z!#H-?0o8*(X#BS?azC@hV}zr-$BpKse%}5cPC5kl!VkcY-VV=GmIy7}jd+5q&lco; z%tzr_TV!UQm{&jioDlI4!~ZKcq}>a|XT*7lkX2!iM~K1`L?A!^=6+WAuY2) zb;Si7&qzjkW(vOiqD@*iG&BUUSd5mI77nc9>eZ`=kB^6qjSYf=g64%lAb_5p9_QNy z1qD)@4Gj&*&d!Fjvon|mr$ z^;sb`H5H+upq=Y{gZr{F5yu2j^ z8yBv9U2YIXS`7(h^=?URj$nemAAzDRsQRltaf%2>5ghz3`9|c7KFG?ix?Tmw4yv$n(MJ6bfjC+F zA>xX6;d{hVe?rkm021-1ZEGn%j;w4`ir4F*sVRrLx+ZBKWZ_SZ%Z5kJHrycl#a*7* zN8@C697UTUJYfRSQ4_=@nIbgB2&x(icz5F)__UT!oa~zuiDk>=7sapmrUL#>w#pHV z^K^droaXn>A8Dcfu@D8Hf^%Ovqp{lyjki1ychZ>nVlhVT*;=Hf>Eq0qa;^_A zJN_@4TJgTS7Cxml&nJ7I(E1C?_y{PsqCSaG2LUbJq7XYgQ!Fj&XLd6;27KrcH#7Q{=}OI`ZD7hp@Yy(^*|Q3^BMn10(*}q zBxCDVb;_sW-^;|G{OkfK>Metcu@csAUyBVU%8-BScTnB38tOZgpiVMPf)+uWu-Q}@ z3UB-de|%pFo9W$87O#CS!X%Ig4LM9TBL2Ft-zRfQ*qw`x3sz`Q`WS0s5 zAlxL3BOUgBI(SNTQ{#`N`~<8lRb}EY$tl6kGdmGR`|Aj;evRk);q~i6C!E zgbJ;%+r_=Gh|-5`i~;sUZGn51F~o&d2+r6+>ySjTF@&^ZV6<}$?%e5-nZKjG0}6%; z#F_|$SOch7s$iw|3OMFi<7lrp(kUjLp}h2KZ>)Jo9(#Rtp>Mt(mv6eEy~h=LIy*RS z_ITO-FHsZ+h{0RV!$<9IG_nLlejkWUjv5pf5>P~|a-RI6a>x(c`0vozQ!zkmallvW zxpRc9{Hz}WZvi$0sM8LJrdX7S_uRA**0i5ug9u;JyRz;|v`h+V-ed9kH%?Gcd>vz> zPb5R&^2P8o17|bNLThmFk`Ii)~%bZRPHltUOm@cUIOvKR-XP z^LAw9%=6P+Ixiw)|5zp_Cg@va$~D)~(V0_?@w5A?P$=a7_blbyOKdTp-?wkyocwIe z?7ownoXpj;yTwu@b|3HU?L|~n6goOO;P3B0ui3)FLMSRKE~(#1#y<w*yqc{ s^>KG4_D_ucmskwgo_hN9DLgzp7NV8bb#`|C&&Dq$nO2~A`M;+B0*kgiO8@`> diff --git a/skin/netError.css b/skin/netError.css deleted file mode 100644 index 62efe44..0000000 --- a/skin/netError.css +++ /dev/null @@ -1,46 +0,0 @@ -body.resurrect div#errorPageContainer { - padding-right: 22em; - max-width: 41em; - min-height: 20em; -} - -fieldset#resurrect { - display: none; -} -body.resurrect fieldset#resurrect { - display: block; - - position: absolute; - top: 0; - right: 0; - - background-color: white; - - width: 14em; - padding: 1em; - margin: 1em; - margin-right: 1.5em; - - -moz-border-radius: 10px; -} - -body.resurrect fieldset#resurrect legend img { - vertical-align: middle; - padding-right: 0.25em; -} - -body.resurrect fieldset#resurrect button { - width: 14em; -} -body.resurrect fieldset#resurrect button img { - vertical-align: middle; - margin-top: -6px; -} - -/* Issue #6: Display below this popup. */ -body.resurrect fieldset#resurrect { - z-index: 1; -} -body.resurrect #certificateErrorReportingPanel { - z-index: 2; -} diff --git a/skin/resurrect-overlay.css b/skin/resurrect-overlay.css deleted file mode 100644 index bad4b73..0000000 --- a/skin/resurrect-overlay.css +++ /dev/null @@ -1,6 +0,0 @@ -#resurrect-page-tb { - list-style-image: url("chrome://resurrect/skin/tb-icon-large.png"); -} -toolbar[iconsize="small"] #resurrect-page-tb { - list-style-image: url("chrome://resurrect/skin/tb-icon-small.png"); -} diff --git a/skin/select-mirror.css b/skin/select-mirror.css deleted file mode 100755 index 57c4409..0000000 --- a/skin/select-mirror.css +++ /dev/null @@ -1,3 +0,0 @@ -#resurrect button { - width: 14em; -} diff --git a/skin/tb-icon-small.png b/skin/tb-icon-small.png deleted file mode 100644 index fe20ef32c2ceb268144e35bbe80db131d6b6229f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 719 zcmV;=0x9p-XEEt+s3bAWf72OUj8{E* z@+hfP5|p%9niQcx1C+Mgc9#;{m3Ft=)?I>r$sFc=zsbzJ_lQEF1jm^yxZJMMT>kj+ z%Gb!{YPGTw3O!q-X}SRyA~@~@!r{$@ZW_w(Jqfsfb#mpm767CQChHEaDXG#zRve|5c3L^rf5sMka?%uDZ{%idoM(>P4V)KBv zI~>+-V;5=cHcBK(0;<*6Z=%?m-PzfDno4bdF`1mze4b-07COl=j9@lffMFa!Y;7fB zc{#kO)sR6+5@m!9zZr+keAU_e)0B ziIx(A&1M6vY^xJ$ZofT zMg`QHSK0!``21ZlMjIrFz+&kEm(%k+pU>SUj*gBlObq{j3PF&EhsW7eYQKl)3WC(A z2NBQn=cd~7pOhjg5(&TNxKi2U@qD^D7&!eazyN4m8U^r>V Date: Sat, 19 Aug 2017 19:09:10 +0200 Subject: [PATCH 02/13] set an id --- manifest.json | 1 + 1 file changed, 1 insertion(+) diff --git a/manifest.json b/manifest.json index bcafaa9..18abada 100644 --- a/manifest.json +++ b/manifest.json @@ -7,6 +7,7 @@ "default_locale": "en", "applications": { "gecko": { + "id":"resurrect-pages@gir.st", "strict_min_version": "56.0b3" } }, From 6e4c7d0be39dde5cd17b8ac3ee853eb52e73322c Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 19 Aug 2017 19:56:57 +0200 Subject: [PATCH 03/13] autogenerate new locales these have been automatically generated with a perl/shell script - the might be horribly wrong note that there is no translation for "ressurect this selection" and "foreground"/"background", since those stings were not in the original addon. --- _locales/ca_AD/messages.json | 73 ++++++++++++++++++++++ _locales/cs_CZ/messages.json | 73 ++++++++++++++++++++++ _locales/da/messages.json | 73 ++++++++++++++++++++++ _locales/da_DK/messages.json | 73 ++++++++++++++++++++++ _locales/de/messages.json | 73 ++++++++++++++++++++++ _locales/de_DE/messages.json | 73 ++++++++++++++++++++++ _locales/el/messages.json | 73 ++++++++++++++++++++++ _locales/el_GR/messages.json | 73 ++++++++++++++++++++++ _locales/en_US/messages.json | 73 ++++++++++++++++++++++ _locales/es_AR/messages.json | 73 ++++++++++++++++++++++ _locales/es_CL/messages.json | 73 ++++++++++++++++++++++ _locales/es_ES/messages.json | 73 ++++++++++++++++++++++ _locales/fi/messages.json | 73 ++++++++++++++++++++++ _locales/fi_FI/messages.json | 73 ++++++++++++++++++++++ _locales/fr/messages.json | 73 ++++++++++++++++++++++ _locales/fr_FR/messages.json | 73 ++++++++++++++++++++++ _locales/hr_HR/messages.json | 73 ++++++++++++++++++++++ _locales/it/messages.json | 73 ++++++++++++++++++++++ _locales/it_IT/messages.json | 73 ++++++++++++++++++++++ _locales/ja_JP/messages.json | 73 ++++++++++++++++++++++ _locales/ko_KR/messages.json | 73 ++++++++++++++++++++++ _locales/nl/messages.json | 73 ++++++++++++++++++++++ _locales/nl_NL/messages.json | 73 ++++++++++++++++++++++ _locales/pl/messages.json | 73 ++++++++++++++++++++++ _locales/pl_PL/messages.json | 73 ++++++++++++++++++++++ _locales/pt_BR/messages.json | 73 ++++++++++++++++++++++ _locales/pt_PT/messages.json | 73 ++++++++++++++++++++++ _locales/ru_RU/messages.json | 73 ++++++++++++++++++++++ _locales/sl_SI/messages.json | 73 ++++++++++++++++++++++ _locales/sr/messages.json | 73 ++++++++++++++++++++++ _locales/sv_SE/messages.json | 73 ++++++++++++++++++++++ _locales/tr/messages.json | 73 ++++++++++++++++++++++ _locales/tr_TR/messages.json | 73 ++++++++++++++++++++++ _locales/uk_UA/messages.json | 73 ++++++++++++++++++++++ _locales/zh_CN/messages.json | 73 ++++++++++++++++++++++ _locales/zh_TW/messages.json | 73 ++++++++++++++++++++++ _locales/zzz_genlocale.pl | 107 ++++++++++++++++++++++++++++++++ locale/ca-AD/overlay.dtd | 14 ----- locale/ca-AD/overlay.properties | 1 - locale/cs-CZ/overlay.dtd | 14 ----- locale/cs-CZ/overlay.properties | 1 - locale/da-DK/overlay.dtd | 14 ----- locale/da-DK/overlay.properties | 1 - locale/da/overlay.dtd | 14 ----- locale/da/overlay.properties | 1 - locale/de-DE/overlay.dtd | 14 ----- locale/de-DE/overlay.properties | 1 - locale/de/overlay.dtd | 14 ----- locale/de/overlay.properties | 1 - locale/el-GR/overlay.dtd | 14 ----- locale/el-GR/overlay.properties | 1 - locale/el/overlay.dtd | 14 ----- locale/el/overlay.properties | 1 - locale/en-US/overlay.dtd | 14 ----- locale/en-US/overlay.properties | 1 - locale/es-AR/overlay.dtd | 14 ----- locale/es-AR/overlay.properties | 1 - locale/es-CL/overlay.dtd | 14 ----- locale/es-CL/overlay.properties | 1 - locale/es-ES/overlay.dtd | 14 ----- locale/es-ES/overlay.properties | 1 - locale/fi-FI/overlay.dtd | 14 ----- locale/fi-FI/overlay.properties | 1 - locale/fi/overlay.dtd | 14 ----- locale/fi/overlay.properties | 1 - locale/fr-FR/overlay.dtd | 14 ----- locale/fr-FR/overlay.properties | 1 - locale/fr/overlay.dtd | 14 ----- locale/fr/overlay.properties | 1 - locale/hr-HR/overlay.dtd | 14 ----- locale/hr-HR/overlay.properties | 1 - locale/it-IT/overlay.dtd | 14 ----- locale/it-IT/overlay.properties | 1 - locale/it/overlay.dtd | 14 ----- locale/it/overlay.properties | 1 - locale/ja-JP/overlay.dtd | 14 ----- locale/ja-JP/overlay.properties | 1 - locale/ko-KR/overlay.dtd | 14 ----- locale/ko-KR/overlay.properties | 1 - locale/nl-NL/overlay.dtd | 14 ----- locale/nl-NL/overlay.properties | 1 - locale/nl/overlay.dtd | 14 ----- locale/nl/overlay.properties | 1 - locale/pl-PL/overlay.dtd | 14 ----- locale/pl-PL/overlay.properties | 1 - locale/pl/overlay.dtd | 14 ----- locale/pl/overlay.properties | 1 - locale/pt-BR/overlay.dtd | 14 ----- locale/pt-BR/overlay.properties | 1 - locale/pt-PT/overlay.dtd | 14 ----- locale/pt-PT/overlay.properties | 1 - locale/ru-RU/overlay.dtd | 14 ----- locale/ru-RU/overlay.properties | 1 - locale/sl-SI/overlay.dtd | 14 ----- locale/sl-SI/overlay.properties | 1 - locale/sr/overlay.dtd | 14 ----- locale/sr/overlay.properties | 1 - locale/sv-SE/overlay.dtd | 14 ----- locale/sv-SE/overlay.properties | 1 - locale/tr-TR/overlay.dtd | 14 ----- locale/tr-TR/overlay.properties | 1 - locale/tr/overlay.dtd | 14 ----- locale/tr/overlay.properties | 1 - locale/uk-UA/overlay.dtd | 14 ----- locale/uk-UA/overlay.properties | 1 - locale/zh-CN/overlay.dtd | 14 ----- locale/zh-CN/overlay.properties | 1 - locale/zh-TW/overlay.dtd | 14 ----- locale/zh-TW/overlay.properties | 1 - 109 files changed, 2735 insertions(+), 540 deletions(-) create mode 100644 _locales/ca_AD/messages.json create mode 100644 _locales/cs_CZ/messages.json create mode 100644 _locales/da/messages.json create mode 100644 _locales/da_DK/messages.json create mode 100644 _locales/de/messages.json create mode 100644 _locales/de_DE/messages.json create mode 100644 _locales/el/messages.json create mode 100644 _locales/el_GR/messages.json create mode 100644 _locales/en_US/messages.json create mode 100644 _locales/es_AR/messages.json create mode 100644 _locales/es_CL/messages.json create mode 100644 _locales/es_ES/messages.json create mode 100644 _locales/fi/messages.json create mode 100644 _locales/fi_FI/messages.json create mode 100644 _locales/fr/messages.json create mode 100644 _locales/fr_FR/messages.json create mode 100644 _locales/hr_HR/messages.json create mode 100644 _locales/it/messages.json create mode 100644 _locales/it_IT/messages.json create mode 100644 _locales/ja_JP/messages.json create mode 100644 _locales/ko_KR/messages.json create mode 100644 _locales/nl/messages.json create mode 100644 _locales/nl_NL/messages.json create mode 100644 _locales/pl/messages.json create mode 100644 _locales/pl_PL/messages.json create mode 100644 _locales/pt_BR/messages.json create mode 100644 _locales/pt_PT/messages.json create mode 100644 _locales/ru_RU/messages.json create mode 100644 _locales/sl_SI/messages.json create mode 100644 _locales/sr/messages.json create mode 100644 _locales/sv_SE/messages.json create mode 100644 _locales/tr/messages.json create mode 100644 _locales/tr_TR/messages.json create mode 100644 _locales/uk_UA/messages.json create mode 100644 _locales/zh_CN/messages.json create mode 100644 _locales/zh_TW/messages.json create mode 100755 _locales/zzz_genlocale.pl delete mode 100644 locale/ca-AD/overlay.dtd delete mode 100644 locale/ca-AD/overlay.properties delete mode 100644 locale/cs-CZ/overlay.dtd delete mode 100644 locale/cs-CZ/overlay.properties delete mode 100644 locale/da-DK/overlay.dtd delete mode 100644 locale/da-DK/overlay.properties delete mode 100644 locale/da/overlay.dtd delete mode 100644 locale/da/overlay.properties delete mode 100644 locale/de-DE/overlay.dtd delete mode 100644 locale/de-DE/overlay.properties delete mode 100644 locale/de/overlay.dtd delete mode 100644 locale/de/overlay.properties delete mode 100644 locale/el-GR/overlay.dtd delete mode 100644 locale/el-GR/overlay.properties delete mode 100644 locale/el/overlay.dtd delete mode 100644 locale/el/overlay.properties delete mode 100644 locale/en-US/overlay.dtd delete mode 100644 locale/en-US/overlay.properties delete mode 100644 locale/es-AR/overlay.dtd delete mode 100644 locale/es-AR/overlay.properties delete mode 100644 locale/es-CL/overlay.dtd delete mode 100644 locale/es-CL/overlay.properties delete mode 100644 locale/es-ES/overlay.dtd delete mode 100644 locale/es-ES/overlay.properties delete mode 100644 locale/fi-FI/overlay.dtd delete mode 100644 locale/fi-FI/overlay.properties delete mode 100644 locale/fi/overlay.dtd delete mode 100644 locale/fi/overlay.properties delete mode 100644 locale/fr-FR/overlay.dtd delete mode 100644 locale/fr-FR/overlay.properties delete mode 100644 locale/fr/overlay.dtd delete mode 100644 locale/fr/overlay.properties delete mode 100644 locale/hr-HR/overlay.dtd delete mode 100644 locale/hr-HR/overlay.properties delete mode 100644 locale/it-IT/overlay.dtd delete mode 100644 locale/it-IT/overlay.properties delete mode 100644 locale/it/overlay.dtd delete mode 100644 locale/it/overlay.properties delete mode 100644 locale/ja-JP/overlay.dtd delete mode 100644 locale/ja-JP/overlay.properties delete mode 100644 locale/ko-KR/overlay.dtd delete mode 100644 locale/ko-KR/overlay.properties delete mode 100644 locale/nl-NL/overlay.dtd delete mode 100644 locale/nl-NL/overlay.properties delete mode 100644 locale/nl/overlay.dtd delete mode 100644 locale/nl/overlay.properties delete mode 100644 locale/pl-PL/overlay.dtd delete mode 100644 locale/pl-PL/overlay.properties delete mode 100644 locale/pl/overlay.dtd delete mode 100644 locale/pl/overlay.properties delete mode 100644 locale/pt-BR/overlay.dtd delete mode 100644 locale/pt-BR/overlay.properties delete mode 100644 locale/pt-PT/overlay.dtd delete mode 100644 locale/pt-PT/overlay.properties delete mode 100644 locale/ru-RU/overlay.dtd delete mode 100644 locale/ru-RU/overlay.properties delete mode 100644 locale/sl-SI/overlay.dtd delete mode 100644 locale/sl-SI/overlay.properties delete mode 100644 locale/sr/overlay.dtd delete mode 100644 locale/sr/overlay.properties delete mode 100644 locale/sv-SE/overlay.dtd delete mode 100644 locale/sv-SE/overlay.properties delete mode 100644 locale/tr-TR/overlay.dtd delete mode 100644 locale/tr-TR/overlay.properties delete mode 100644 locale/tr/overlay.dtd delete mode 100644 locale/tr/overlay.properties delete mode 100644 locale/uk-UA/overlay.dtd delete mode 100644 locale/uk-UA/overlay.properties delete mode 100644 locale/zh-CN/overlay.dtd delete mode 100644 locale/zh-CN/overlay.properties delete mode 100644 locale/zh-TW/overlay.dtd delete mode 100644 locale/zh-TW/overlay.properties diff --git a/_locales/ca_AD/messages.json b/_locales/ca_AD/messages.json new file mode 100644 index 0000000..d712d5b --- /dev/null +++ b/_locales/ca_AD/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Ressuscita pàgines mortes trobant els seus fantasmes (copies)", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Ressuscita aquesta pàgina", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Ressuscita aquest enllaç", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google Cache", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google Cache (només text)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "En la pestanya/finestra actual", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "En una nova pestanya (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "En una nova pestanya (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "En una nova finestra", + "description": "in a new window" + } + +} + diff --git a/_locales/cs_CZ/messages.json b/_locales/cs_CZ/messages.json new file mode 100644 index 0000000..97dd63a --- /dev/null +++ b/_locales/cs_CZ/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Oživuje mrtvé webové stránky vyhledáváním jejich duchů v archivech.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Oživit tuto stránku", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Oživit tento odkaz", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (prostý text)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "V současném panelu/okně", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "V novém panelu (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "V novém panelu (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "V novém okně", + "description": "in a new window" + } + +} + diff --git a/_locales/da/messages.json b/_locales/da/messages.json new file mode 100644 index 0000000..f6dbb55 --- /dev/null +++ b/_locales/da/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Genopliv døde sider, ved at finde deres spøgelser.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Genopliv denne side", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Genopliv dette link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (kun tekst)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "I nuværende faneblad/vindue", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "I et nyt faneblad (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "I et nyt faneblad (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "I et nyt vindue", + "description": "in a new window" + } + +} + diff --git a/_locales/da_DK/messages.json b/_locales/da_DK/messages.json new file mode 100644 index 0000000..dc23c39 --- /dev/null +++ b/_locales/da_DK/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Genopliv døde sider, ved at finde deres spøgelser.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Genopliv denne side", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Genopliv dette link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google Cache", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google Cache (kun tekst)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "I nuværende faneblad/vindue", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "I et nyt faneblad (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "I et nyt faneblad (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "I et nyt vindue", + "description": "in a new window" + } + +} + diff --git a/_locales/de/messages.json b/_locales/de/messages.json new file mode 100644 index 0000000..e9dcc11 --- /dev/null +++ b/_locales/de/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Wiederbeleben von toten Seiten, indem die Geister-Abbilder dieser Seiten gesucht werden.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Diese Seite wiederbeleben", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Diesen Verweis wiederbeleben", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (Nur Text)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "In aktuellem Tab/Fenster", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "In neuem Tab (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "In neuem Tab (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "In neuem Fenster", + "description": "in a new window" + } + +} + diff --git a/_locales/de_DE/messages.json b/_locales/de_DE/messages.json new file mode 100644 index 0000000..e9dcc11 --- /dev/null +++ b/_locales/de_DE/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Wiederbeleben von toten Seiten, indem die Geister-Abbilder dieser Seiten gesucht werden.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Diese Seite wiederbeleben", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Diesen Verweis wiederbeleben", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (Nur Text)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "In aktuellem Tab/Fenster", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "In neuem Tab (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "In neuem Tab (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "In neuem Fenster", + "description": "in a new window" + } + +} + diff --git a/_locales/el/messages.json b/_locales/el/messages.json new file mode 100644 index 0000000..4ce8209 --- /dev/null +++ b/_locales/el/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Ανασύσταση «εξαφανισμένων» σελίδων.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Ανασύσταση αυτής της σελίδας", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Ανασύσταση αυτού του δεσμού", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google Cache", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google Cache (μόνο κείμενο)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Στην τρέχουσα καρτέλα/παράθυρο", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "Σε νέα καρτέλα (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "Σε νέα καρτέλα (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Σε νέο παράθυρο", + "description": "in a new window" + } + +} + diff --git a/_locales/el_GR/messages.json b/_locales/el_GR/messages.json new file mode 100644 index 0000000..b176d5d --- /dev/null +++ b/_locales/el_GR/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Ανασύσταση «εξαφάνισμένων» σελίδων.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Ανασύσταση αυτής της σελίδας", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Ανασύσταση αυτού του δεσμού", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google Cache", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google Cache (μόνο κείμενο)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Στην τρέχουσα καρτέλα/παράθυρο", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "Σε νέα καρτέλα (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "Σε νέα καρτέλα (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Σε νέο παράθυρο", + "description": "in a new window" + } + +} + diff --git a/_locales/en_US/messages.json b/_locales/en_US/messages.json new file mode 100644 index 0000000..05d9d99 --- /dev/null +++ b/_locales/en_US/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Resurrect dead pages, by finding their ghosts.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Resurrect this page", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Resurrect this link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (text only)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "In the current tab/window", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "In a new tab (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "In a new tab (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "In a new window", + "description": "in a new window" + } + +} + diff --git a/_locales/es_AR/messages.json b/_locales/es_AR/messages.json new file mode 100644 index 0000000..4e9e9b2 --- /dev/null +++ b/_locales/es_AR/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Resucita páginas muertas, encontrando sus restos.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Resucitar esta página", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Resucitar este enlace", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Cache de Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Cache de Google (solo texto)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "El Archivo de Internet", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "En la actual ventana/pestaña", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "En una nueva pestaña (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "En una nueva pestaña (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "En una nueva ventana", + "description": "in a new window" + } + +} + diff --git a/_locales/es_CL/messages.json b/_locales/es_CL/messages.json new file mode 100644 index 0000000..4e9e9b2 --- /dev/null +++ b/_locales/es_CL/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Resucita páginas muertas, encontrando sus restos.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Resucitar esta página", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Resucitar este enlace", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Cache de Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Cache de Google (solo texto)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "El Archivo de Internet", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "En la actual ventana/pestaña", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "En una nueva pestaña (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "En una nueva pestaña (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "En una nueva ventana", + "description": "in a new window" + } + +} + diff --git a/_locales/es_ES/messages.json b/_locales/es_ES/messages.json new file mode 100644 index 0000000..4834fd7 --- /dev/null +++ b/_locales/es_ES/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Resucita páginas que ya no existen, buscando en las cachés.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Resucitar esta página", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Resucitar este enlace", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Caché de Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Caché de Google (sólo texto)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "En la pestaña/ventana actual", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "En una nueva pestaña (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "En una nueva pestaña (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "En una nueva ventana", + "description": "in a new window" + } + +} + diff --git a/_locales/fi/messages.json b/_locales/fi/messages.json new file mode 100644 index 0000000..ba4d2bb --- /dev/null +++ b/_locales/fi/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Herätä kuolleet sivut henkiin haamujen avulla.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Palauta tämä sivu", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Palauta tämän linkin kohde", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google välimuisti", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google välimuisti (vain teksti)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Nykyiseen välilehteen/ikkunaan", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "Uuteen välilehteen (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "Uuteen välilehteen (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Uuteen ikkunaan", + "description": "in a new window" + } + +} + diff --git a/_locales/fi_FI/messages.json b/_locales/fi_FI/messages.json new file mode 100644 index 0000000..ba4d2bb --- /dev/null +++ b/_locales/fi_FI/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Herätä kuolleet sivut henkiin haamujen avulla.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Palauta tämä sivu", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Palauta tämän linkin kohde", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google välimuisti", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google välimuisti (vain teksti)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Nykyiseen välilehteen/ikkunaan", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "Uuteen välilehteen (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "Uuteen välilehteen (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Uuteen ikkunaan", + "description": "in a new window" + } + +} + diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json new file mode 100644 index 0000000..4e4fe55 --- /dev/null +++ b/_locales/fr/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Ressuscite les pages mortes en récupérant leur fantôme dans les caches.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Ressusciter cette page", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Ressusciter ce lien", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Cache Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Cache Google (texte seulement)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "Archive internet", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "dans l'onglet/la fenêtre courant(e)", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "dans un nouvel onglet (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "dans un nouvel onglet (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "dans une nouvelle fenêtre", + "description": "in a new window" + } + +} + diff --git a/_locales/fr_FR/messages.json b/_locales/fr_FR/messages.json new file mode 100644 index 0000000..5306fea --- /dev/null +++ b/_locales/fr_FR/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Ressuscite les pages mortes en récupérant leur fantôme dans les caches.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Ressusciter cette page", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Ressusciter ce lien", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Cache Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Cache Google (texte seulement)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "Archive internet", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "dans l'onglet/la fenêtre courant(e)", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "dans un nouvel onglet (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "dans un nouvel onglet (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "dans une nouvelle fenêtre", + "description": "in a new window" + } + +} + diff --git a/_locales/hr_HR/messages.json b/_locales/hr_HR/messages.json new file mode 100644 index 0000000..9fef48b --- /dev/null +++ b/_locales/hr_HR/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Uskrsava mrtve stranice pronalazeći njihove duhove.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Uskrsni ovu stranicu", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Uskrsni ovu poveznicu", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google privremeni spremnik", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google privremeni spremnik (samo tekst)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "U trenutnoj kartici/prozoru", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "U novoj kartici (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "U novoj kartici (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "U novom prozoru", + "description": "in a new window" + } + +} + diff --git a/_locales/it/messages.json b/_locales/it/messages.json new file mode 100644 index 0000000..173e1e7 --- /dev/null +++ b/_locales/it/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Permette di riattivare link/pagine web non più accessibili trovando corrispondenti pagine fantasma", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Riattiva pagina web con Resurrect Pages…", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Riattiva link con Resurrect Pages…", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google Cache", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google Cache (solo testo)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive ", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Riattiva nella scheda/finestra attuale", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "Riattiva in una nuova scheda (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "Riattiva in una nuova scheda (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Riattiva in una nuova finestra", + "description": "in a new window" + } + +} + diff --git a/_locales/it_IT/messages.json b/_locales/it_IT/messages.json new file mode 100644 index 0000000..97c9a6f --- /dev/null +++ b/_locales/it_IT/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Permette di resuscitare pagine non più accessibili trovando corrispondenti pagine fantasma", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Resuscita questa pagina", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Resuscita questo link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google Cache", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google Cache (solo testo)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "nella scheda/finestra attuale", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "in una nuova scheda (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "in una nuova scheda (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "in una nuova finestra", + "description": "in a new window" + } + +} + diff --git a/_locales/ja_JP/messages.json b/_locales/ja_JP/messages.json new file mode 100644 index 0000000..70a649f --- /dev/null +++ b/_locales/ja_JP/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "死んだページを亡霊から生き返らせる。", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "このページを蘇生", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "このリンクを蘇生", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (テキストのみ)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "現在のタブ・ウィンドウ", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "新しいタブ (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "新しいタブ (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "新しいウィンドウ", + "description": "in a new window" + } + +} + diff --git a/_locales/ko_KR/messages.json b/_locales/ko_KR/messages.json new file mode 100644 index 0000000..685561c --- /dev/null +++ b/_locales/ko_KR/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "죽은 페이지의 영혼을 찾아내서 부활시킵니다.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "이 페이지를 부활", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "이 링크를 부활", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google 캐쉬", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google 캐쉬 (본문 만)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "인터넷 아카이브", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "현재 탭/창으로", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "새 탭으로 (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "새 탭으로 (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "새 창으로", + "description": "in a new window" + } + +} + diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json new file mode 100644 index 0000000..0fff993 --- /dev/null +++ b/_locales/nl/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Wek dode pagina’s weer tot leven door hun geesten te vinden.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Deze pagina tot leven wekken…", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Deze koppeling tot leven wekken…", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (alleen tekst)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "In het huidige tabblad/het huidige venster", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "In een nieuw tabblad (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "In een nieuw tabblad (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "In een nieuw venster", + "description": "in a new window" + } + +} + diff --git a/_locales/nl_NL/messages.json b/_locales/nl_NL/messages.json new file mode 100644 index 0000000..c95ca18 --- /dev/null +++ b/_locales/nl_NL/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Wek dode pagina's weer tot leven door hun geesten te vinden.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Deze pagina tot leven wekken", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Deze koppeling tot leven wekken", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (alleen tekst)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "In het huidige tabblad/het huidige venster", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "In een nieuw tabblad (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "In een nieuw tabblad (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "In een nieuw venster", + "description": "in a new window" + } + +} + diff --git a/_locales/pl/messages.json b/_locales/pl/messages.json new file mode 100644 index 0000000..76e0aec --- /dev/null +++ b/_locales/pl/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Odtwarzaj wygasłe strony odszukując ich cienie.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Odtwórz tę stronę", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Odtwórz ten link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google Cache", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google Cache (tylko tekst)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "W aktywnej karcie/oknie", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "W nowej karcie (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "W nowej karcie (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "W nowym oknie", + "description": "in a new window" + } + +} + diff --git a/_locales/pl_PL/messages.json b/_locales/pl_PL/messages.json new file mode 100644 index 0000000..76e0aec --- /dev/null +++ b/_locales/pl_PL/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Odtwarzaj wygasłe strony odszukując ich cienie.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Odtwórz tę stronę", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Odtwórz ten link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google Cache", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google Cache (tylko tekst)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "W aktywnej karcie/oknie", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "W nowej karcie (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "W nowej karcie (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "W nowym oknie", + "description": "in a new window" + } + +} + diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json new file mode 100644 index 0000000..661b274 --- /dev/null +++ b/_locales/pt_BR/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Ressuscita páginas mortas, encontrando seus fantasmas.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Ressuscitar esta página", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Ressuscitar este link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Cache do Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Cache do Google (somente texto)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Na aba/janela atual", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "Em uma nova aba (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "Em uma nova aba (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Em uma nova janela", + "description": "in a new window" + } + +} + diff --git a/_locales/pt_PT/messages.json b/_locales/pt_PT/messages.json new file mode 100644 index 0000000..ca457ba --- /dev/null +++ b/_locales/pt_PT/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Ressuscita páginas mortas, ao encontrar os seus fantasmas.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Ressuscitar esta página", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Ressuscitar este endereço", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Cache do Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Cache do Google (só texto)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "Arquivo de internet", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Na aba/janela actual", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "Numa nova aba (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "Numa nova aba (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Numa nova janela", + "description": "in a new window" + } + +} + diff --git a/_locales/ru_RU/messages.json b/_locales/ru_RU/messages.json new file mode 100644 index 0000000..c27b0e1 --- /dev/null +++ b/_locales/ru_RU/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Воскрешает мертвые страницы, находя их в кэше.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Воскресить эту страницу", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Воскресить эту ссылку", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (только текст)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "В текущей вкладке/окне", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "В новой вкладке (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "В новой вкладке (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "В новом окне", + "description": "in a new window" + } + +} + diff --git a/_locales/sl_SI/messages.json b/_locales/sl_SI/messages.json new file mode 100644 index 0000000..af18d41 --- /dev/null +++ b/_locales/sl_SI/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Oživi nedosegljive strani, prikaži njihove posnetke.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Oživi to stran", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Oživi to povezavo", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google posnetek", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google posnetek (samo besedilo)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "V obstoječem zavihku/oknu", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "V novem zavihku (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "V novem zavihku (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "V novem oknu", + "description": "in a new window" + } + +} + diff --git a/_locales/sr/messages.json b/_locales/sr/messages.json new file mode 100644 index 0000000..b947db2 --- /dev/null +++ b/_locales/sr/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Оживите избрисане странице проналажењем њихових старих копија.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Оживи ову страницу…", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Оживи ову везу…", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (само текст)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "у тренутном језичку/прозору", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "у новом језичку (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "у новом језичку (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "у новом прозору", + "description": "in a new window" + } + +} + diff --git a/_locales/sv_SE/messages.json b/_locales/sv_SE/messages.json new file mode 100644 index 0000000..287a198 --- /dev/null +++ b/_locales/sv_SE/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Få webbsidor att återuppstå från de döda genom att hitta deras spöken.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Återuppväck den här webbsidan", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Återuppväck den här länken", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (endast text)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Nuvarande flik/fönster", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "En ny flik (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "En ny flik (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Ett nytt fönster", + "description": "in a new window" + } + +} + diff --git a/_locales/tr/messages.json b/_locales/tr/messages.json new file mode 100644 index 0000000..4ff42ee --- /dev/null +++ b/_locales/tr/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Ölü sayfaları diriltin, hayaletlerini bularak.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Bu sayfayı dirilt", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Bu linki dirilt", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (salt metin)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Seçili sekmede/pencerede", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "Yeni sekmede (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "Yeni sekmede (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Yeni pencerede", + "description": "in a new window" + } + +} + diff --git a/_locales/tr_TR/messages.json b/_locales/tr_TR/messages.json new file mode 100644 index 0000000..4ff42ee --- /dev/null +++ b/_locales/tr_TR/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Ölü sayfaları diriltin, hayaletlerini bularak.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Bu sayfayı dirilt", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Bu linki dirilt", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (salt metin)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "Seçili sekmede/pencerede", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "Yeni sekmede (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "Yeni sekmede (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "Yeni pencerede", + "description": "in a new window" + } + +} + diff --git a/_locales/uk_UA/messages.json b/_locales/uk_UA/messages.json new file mode 100644 index 0000000..f72b608 --- /dev/null +++ b/_locales/uk_UA/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "Resurrect dead pages, by finding their ghosts.", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "Resurrect this page", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "Resurrect this link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google Cache", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google Cache (text only)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "In the current tab/window", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "In a new tab (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "In a new tab (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "In a new window", + "description": "in a new window" + } + +} + diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json new file mode 100644 index 0000000..9171da1 --- /dev/null +++ b/_locales/zh_CN/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "通过寻找页库存档来还原失效的页面。", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "修复此页面", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "修复此链接", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (纯文字版)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "The Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "在当前标签页或窗口", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "在新标签页 (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "在新标签页 (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "在新窗口", + "description": "in a new window" + } + +} + diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json new file mode 100644 index 0000000..183d5de --- /dev/null +++ b/_locales/zh_TW/messages.json @@ -0,0 +1,73 @@ +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "藉由尋找頁庫存檔來還原失效的頁面。", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "恢復頁面", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "恢復此連結", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "Google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "Google (限文字)", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "Internet Archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "archive.is", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "WebCite", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "目前分頁/視窗", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "新分頁 (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "新分頁 (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "新視窗", + "description": "in a new window" + } + +} + diff --git a/_locales/zzz_genlocale.pl b/_locales/zzz_genlocale.pl new file mode 100755 index 0000000..f1ba904 --- /dev/null +++ b/_locales/zzz_genlocale.pl @@ -0,0 +1,107 @@ +#!/usr/bin/perl + +=pod +usage: +* cd into old locale folder +* execute `for I in *; do ./zzz_genlocale.pl $I; done;rm -r _locales/zzz_genlocale.pl` +=cut + +use warnings; +use strict; + +chomp(my $extension_desc = `cat $ARGV[0]/overlay.properties|cut -d= -f2`); + +chomp(my $resurrect_this_page = `grep resurrect.thispage $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`);$resurrect_this_page=~s/\.\.\.//; +chomp(my $resurrect_this_link = `grep resurrect.thislink $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`);$resurrect_this_link=~s/\.\.\.//; +chomp(my $google = `grep resurrect.google $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); +chomp(my $textonly = `grep resurrect.textonly $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); +chomp(my $archive = `grep "resurrect.archive " $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); +chomp(my $archiveis = `grep resurrect.archiveis $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); +chomp(my $webcit = `grep resurrect.webcitation $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); +chomp(my $curtab = `grep resurrect.inCurrTab $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); +chomp(my $newtab = `grep resurrect.inNewTab $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); +chomp(my $newwin = `grep resurrect.inNewWin $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); + +my $locale = $ARGV[0]; +$locale =~ s/-/_/g; +`mkdir -p _locales/$locale`; + +open (my $file, '>', "_locales/$locale/messages.json"); + +print $file <<"EOF"; +{ + "extensionName": { + "message": "Resurrect Pages", + "description": "Name of the extension." + }, + + "extensionDescription": { + "message": "$extension_desc", + "description": "Description of the add-on." + }, + + "contextMenuItemResurrectPage": { + "message": "$resurrect_this_page", + "description": "Resurrect this page" + }, + + "contextMenuItemResurrectLink": { + "message": "$resurrect_this_link", + "description": "Resurrect this link" + }, + + "contextMenuItemResurrectSelection": { + "message": "Resurrect this selection", + "description": "Resurrect this selection, TODO: only if its a link, no translation" + }, + + "contextMenuItemResurrectGoogle": { + "message": "$google", + "description": "with Google" + }, + + "contextMenuItemResurrectGoogleText": { + "message": "$google $textonly", + "description": "with Google (text only)" + }, + + "contextMenuItemResurrectArchive": { + "message": "$archive", + "description": "with The Internet Archive" + }, + + "contextMenuItemResurrectArchiveIs": { + "message": "$archiveis", + "description": "with archive.is" + }, + + "contextMenuItemResurrectWebcitation": { + "message": "$webcit", + "description": "with WebCite" + }, + + "contextMenuItemResurrectConfigCurrentTab": { + "message": "$curtab", + "description": "in the current tab" + }, + + "contextMenuItemResurrectConfigNewTab": { + "message": "$newtab (foreground)", + "description": "in a new tab (foreground)" + }, + + "contextMenuItemResurrectConfigNewBackgroundTab": { + "message": "$newtab (background)", + "description": "in a new tab (background)" + }, + + "contextMenuItemResurrectConfigNewWindow": { + "message": "$newwin", + "description": "in a new window" + } + +} + +EOF + +close $file; diff --git a/locale/ca-AD/overlay.dtd b/locale/ca-AD/overlay.dtd deleted file mode 100644 index e01b220..0000000 --- a/locale/ca-AD/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/ca-AD/overlay.properties b/locale/ca-AD/overlay.properties deleted file mode 100644 index 314d85b..0000000 --- a/locale/ca-AD/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Ressuscita pàgines mortes trobant els seus fantasmes (copies) diff --git a/locale/cs-CZ/overlay.dtd b/locale/cs-CZ/overlay.dtd deleted file mode 100644 index 4b12a04..0000000 --- a/locale/cs-CZ/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/cs-CZ/overlay.properties b/locale/cs-CZ/overlay.properties deleted file mode 100644 index cd56297..0000000 --- a/locale/cs-CZ/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Oživuje mrtvé webové stránky vyhledáváním jejich duchů v archivech. diff --git a/locale/da-DK/overlay.dtd b/locale/da-DK/overlay.dtd deleted file mode 100644 index 6af34e4..0000000 --- a/locale/da-DK/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/da-DK/overlay.properties b/locale/da-DK/overlay.properties deleted file mode 100644 index e36268f..0000000 --- a/locale/da-DK/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Genopliv døde sider, ved at finde deres spøgelser. diff --git a/locale/da/overlay.dtd b/locale/da/overlay.dtd deleted file mode 100644 index 34a991d..0000000 --- a/locale/da/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/da/overlay.properties b/locale/da/overlay.properties deleted file mode 100644 index e36268f..0000000 --- a/locale/da/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Genopliv døde sider, ved at finde deres spøgelser. diff --git a/locale/de-DE/overlay.dtd b/locale/de-DE/overlay.dtd deleted file mode 100644 index 0009e79..0000000 --- a/locale/de-DE/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/de-DE/overlay.properties b/locale/de-DE/overlay.properties deleted file mode 100644 index 1845ae4..0000000 --- a/locale/de-DE/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Wiederbeleben von toten Seiten, indem die Geister-Abbilder dieser Seiten gesucht werden. diff --git a/locale/de/overlay.dtd b/locale/de/overlay.dtd deleted file mode 100644 index 0009e79..0000000 --- a/locale/de/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/de/overlay.properties b/locale/de/overlay.properties deleted file mode 100644 index 1845ae4..0000000 --- a/locale/de/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Wiederbeleben von toten Seiten, indem die Geister-Abbilder dieser Seiten gesucht werden. diff --git a/locale/el-GR/overlay.dtd b/locale/el-GR/overlay.dtd deleted file mode 100644 index 021c373..0000000 --- a/locale/el-GR/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/el-GR/overlay.properties b/locale/el-GR/overlay.properties deleted file mode 100644 index ddbaeae..0000000 --- a/locale/el-GR/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Ανασύσταση «εξαφάνισμένων» σελίδων. diff --git a/locale/el/overlay.dtd b/locale/el/overlay.dtd deleted file mode 100644 index 021c373..0000000 --- a/locale/el/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/el/overlay.properties b/locale/el/overlay.properties deleted file mode 100644 index 905d807..0000000 --- a/locale/el/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Ανασύσταση «εξαφανισμένων» σελίδων. diff --git a/locale/en-US/overlay.dtd b/locale/en-US/overlay.dtd deleted file mode 100644 index 4f5b93f..0000000 --- a/locale/en-US/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/en-US/overlay.properties b/locale/en-US/overlay.properties deleted file mode 100644 index 9d7522d..0000000 --- a/locale/en-US/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Resurrect dead pages, by finding their ghosts. diff --git a/locale/es-AR/overlay.dtd b/locale/es-AR/overlay.dtd deleted file mode 100644 index 96eceba..0000000 --- a/locale/es-AR/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/es-AR/overlay.properties b/locale/es-AR/overlay.properties deleted file mode 100644 index d02314e..0000000 --- a/locale/es-AR/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Resucita páginas muertas, encontrando sus restos. diff --git a/locale/es-CL/overlay.dtd b/locale/es-CL/overlay.dtd deleted file mode 100644 index 96eceba..0000000 --- a/locale/es-CL/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/es-CL/overlay.properties b/locale/es-CL/overlay.properties deleted file mode 100644 index d02314e..0000000 --- a/locale/es-CL/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Resucita páginas muertas, encontrando sus restos. diff --git a/locale/es-ES/overlay.dtd b/locale/es-ES/overlay.dtd deleted file mode 100644 index 026cfc1..0000000 --- a/locale/es-ES/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/es-ES/overlay.properties b/locale/es-ES/overlay.properties deleted file mode 100644 index c14a579..0000000 --- a/locale/es-ES/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Resucita páginas que ya no existen, buscando en las cachés. diff --git a/locale/fi-FI/overlay.dtd b/locale/fi-FI/overlay.dtd deleted file mode 100644 index 4a03230..0000000 --- a/locale/fi-FI/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/fi-FI/overlay.properties b/locale/fi-FI/overlay.properties deleted file mode 100644 index 6377f1b..0000000 --- a/locale/fi-FI/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Herätä kuolleet sivut henkiin haamujen avulla. diff --git a/locale/fi/overlay.dtd b/locale/fi/overlay.dtd deleted file mode 100644 index 4a03230..0000000 --- a/locale/fi/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/fi/overlay.properties b/locale/fi/overlay.properties deleted file mode 100644 index 6377f1b..0000000 --- a/locale/fi/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Herätä kuolleet sivut henkiin haamujen avulla. diff --git a/locale/fr-FR/overlay.dtd b/locale/fr-FR/overlay.dtd deleted file mode 100644 index eada656..0000000 --- a/locale/fr-FR/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/fr-FR/overlay.properties b/locale/fr-FR/overlay.properties deleted file mode 100644 index f34fe05..0000000 --- a/locale/fr-FR/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Ressuscite les pages mortes en récupérant leur fantôme dans les caches. diff --git a/locale/fr/overlay.dtd b/locale/fr/overlay.dtd deleted file mode 100644 index c31963b..0000000 --- a/locale/fr/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/fr/overlay.properties b/locale/fr/overlay.properties deleted file mode 100644 index f34fe05..0000000 --- a/locale/fr/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Ressuscite les pages mortes en récupérant leur fantôme dans les caches. diff --git a/locale/hr-HR/overlay.dtd b/locale/hr-HR/overlay.dtd deleted file mode 100644 index e8dca5d..0000000 --- a/locale/hr-HR/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/hr-HR/overlay.properties b/locale/hr-HR/overlay.properties deleted file mode 100644 index 1768a5c..0000000 --- a/locale/hr-HR/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Uskrsava mrtve stranice pronalazeći njihove duhove. diff --git a/locale/it-IT/overlay.dtd b/locale/it-IT/overlay.dtd deleted file mode 100644 index be69315..0000000 --- a/locale/it-IT/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/it-IT/overlay.properties b/locale/it-IT/overlay.properties deleted file mode 100644 index 872c996..0000000 --- a/locale/it-IT/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Permette di resuscitare pagine non più accessibili trovando corrispondenti pagine fantasma diff --git a/locale/it/overlay.dtd b/locale/it/overlay.dtd deleted file mode 100644 index ca79f6b..0000000 --- a/locale/it/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/it/overlay.properties b/locale/it/overlay.properties deleted file mode 100644 index dec7a45..0000000 --- a/locale/it/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Permette di riattivare link/pagine web non più accessibili trovando corrispondenti pagine fantasma diff --git a/locale/ja-JP/overlay.dtd b/locale/ja-JP/overlay.dtd deleted file mode 100644 index ddd9621..0000000 --- a/locale/ja-JP/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/ja-JP/overlay.properties b/locale/ja-JP/overlay.properties deleted file mode 100644 index bd638fd..0000000 --- a/locale/ja-JP/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=死んだページを亡霊から生き返らせる。 diff --git a/locale/ko-KR/overlay.dtd b/locale/ko-KR/overlay.dtd deleted file mode 100644 index 61bb9ab..0000000 --- a/locale/ko-KR/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/ko-KR/overlay.properties b/locale/ko-KR/overlay.properties deleted file mode 100644 index 36855ba..0000000 --- a/locale/ko-KR/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=죽은 페이지의 영혼을 찾아내서 부활시킵니다. diff --git a/locale/nl-NL/overlay.dtd b/locale/nl-NL/overlay.dtd deleted file mode 100644 index 927fde4..0000000 --- a/locale/nl-NL/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/nl-NL/overlay.properties b/locale/nl-NL/overlay.properties deleted file mode 100644 index d6d6272..0000000 --- a/locale/nl-NL/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Wek dode pagina's weer tot leven door hun geesten te vinden. diff --git a/locale/nl/overlay.dtd b/locale/nl/overlay.dtd deleted file mode 100644 index b4a3db3..0000000 --- a/locale/nl/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/nl/overlay.properties b/locale/nl/overlay.properties deleted file mode 100644 index 061cf4b..0000000 --- a/locale/nl/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Wek dode pagina’s weer tot leven door hun geesten te vinden. diff --git a/locale/pl-PL/overlay.dtd b/locale/pl-PL/overlay.dtd deleted file mode 100644 index 835efd3..0000000 --- a/locale/pl-PL/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/pl-PL/overlay.properties b/locale/pl-PL/overlay.properties deleted file mode 100644 index 7af31f8..0000000 --- a/locale/pl-PL/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Odtwarzaj wygasłe strony odszukując ich cienie. diff --git a/locale/pl/overlay.dtd b/locale/pl/overlay.dtd deleted file mode 100644 index 835efd3..0000000 --- a/locale/pl/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/pl/overlay.properties b/locale/pl/overlay.properties deleted file mode 100644 index 7af31f8..0000000 --- a/locale/pl/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Odtwarzaj wygasłe strony odszukując ich cienie. diff --git a/locale/pt-BR/overlay.dtd b/locale/pt-BR/overlay.dtd deleted file mode 100644 index 5c3dbb1..0000000 --- a/locale/pt-BR/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/pt-BR/overlay.properties b/locale/pt-BR/overlay.properties deleted file mode 100644 index d99cf4c..0000000 --- a/locale/pt-BR/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Ressuscita páginas mortas, encontrando seus fantasmas. diff --git a/locale/pt-PT/overlay.dtd b/locale/pt-PT/overlay.dtd deleted file mode 100644 index 893d61a..0000000 --- a/locale/pt-PT/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/pt-PT/overlay.properties b/locale/pt-PT/overlay.properties deleted file mode 100644 index 6b7f7eb..0000000 --- a/locale/pt-PT/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Ressuscita páginas mortas, ao encontrar os seus fantasmas. diff --git a/locale/ru-RU/overlay.dtd b/locale/ru-RU/overlay.dtd deleted file mode 100644 index 23f3b02..0000000 --- a/locale/ru-RU/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/ru-RU/overlay.properties b/locale/ru-RU/overlay.properties deleted file mode 100644 index 2ec1234..0000000 --- a/locale/ru-RU/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Воскрешает мертвые страницы, находя их в кэше. diff --git a/locale/sl-SI/overlay.dtd b/locale/sl-SI/overlay.dtd deleted file mode 100644 index f8c1d30..0000000 --- a/locale/sl-SI/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/sl-SI/overlay.properties b/locale/sl-SI/overlay.properties deleted file mode 100644 index 9bc3f1c..0000000 --- a/locale/sl-SI/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Oživi nedosegljive strani, prikaži njihove posnetke. diff --git a/locale/sr/overlay.dtd b/locale/sr/overlay.dtd deleted file mode 100644 index d1f9534..0000000 --- a/locale/sr/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/sr/overlay.properties b/locale/sr/overlay.properties deleted file mode 100644 index 4a3429d..0000000 --- a/locale/sr/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Оживите избрисане странице проналажењем њихових старих копија. diff --git a/locale/sv-SE/overlay.dtd b/locale/sv-SE/overlay.dtd deleted file mode 100644 index 5507021..0000000 --- a/locale/sv-SE/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/sv-SE/overlay.properties b/locale/sv-SE/overlay.properties deleted file mode 100644 index 3c894c6..0000000 --- a/locale/sv-SE/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Få webbsidor att återuppstå från de döda genom att hitta deras spöken. diff --git a/locale/tr-TR/overlay.dtd b/locale/tr-TR/overlay.dtd deleted file mode 100644 index 66f3bfc..0000000 --- a/locale/tr-TR/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/tr-TR/overlay.properties b/locale/tr-TR/overlay.properties deleted file mode 100644 index 67bf6b1..0000000 --- a/locale/tr-TR/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Ölü sayfaları diriltin, hayaletlerini bularak. diff --git a/locale/tr/overlay.dtd b/locale/tr/overlay.dtd deleted file mode 100644 index 66f3bfc..0000000 --- a/locale/tr/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/tr/overlay.properties b/locale/tr/overlay.properties deleted file mode 100644 index 67bf6b1..0000000 --- a/locale/tr/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Ölü sayfaları diriltin, hayaletlerini bularak. diff --git a/locale/uk-UA/overlay.dtd b/locale/uk-UA/overlay.dtd deleted file mode 100644 index 50551b8..0000000 --- a/locale/uk-UA/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/uk-UA/overlay.properties b/locale/uk-UA/overlay.properties deleted file mode 100644 index 9d7522d..0000000 --- a/locale/uk-UA/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=Resurrect dead pages, by finding their ghosts. diff --git a/locale/zh-CN/overlay.dtd b/locale/zh-CN/overlay.dtd deleted file mode 100644 index 8e3b3ba..0000000 --- a/locale/zh-CN/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/zh-CN/overlay.properties b/locale/zh-CN/overlay.properties deleted file mode 100644 index c5049a0..0000000 --- a/locale/zh-CN/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=通过寻找页库存档来还原失效的页面。 diff --git a/locale/zh-TW/overlay.dtd b/locale/zh-TW/overlay.dtd deleted file mode 100644 index 2076994..0000000 --- a/locale/zh-TW/overlay.dtd +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/locale/zh-TW/overlay.properties b/locale/zh-TW/overlay.properties deleted file mode 100644 index 6dbf2cf..0000000 --- a/locale/zh-TW/overlay.properties +++ /dev/null @@ -1 +0,0 @@ -extensions.{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}.description=藉由尋找頁庫存檔來還原失效的頁面。 From 68c863ef715173310ab08af7f3a3ad2f53ace13d Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 19 Aug 2017 20:11:12 +0200 Subject: [PATCH 04/13] manually improve de, de_DE locales --- _locales/de/messages.json | 24 ++++++++++++------------ _locales/de_DE/messages.json | 24 ++++++++++++------------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/_locales/de/messages.json b/_locales/de/messages.json index e9dcc11..85b9f55 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -10,62 +10,62 @@ }, "contextMenuItemResurrectPage": { - "message": "Diese Seite wiederbeleben", + "message": "diese Seite wiederbeleben", "description": "Resurrect this page" }, "contextMenuItemResurrectLink": { - "message": "Diesen Verweis wiederbeleben", + "message": "diesen Verweis wiederbeleben", "description": "Resurrect this link" }, "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", + "message": "diese Markierung wiederbeleben", "description": "Resurrect this selection, TODO: only if its a link, no translation" }, "contextMenuItemResurrectGoogle": { - "message": "Google", + "message": "mit Google", "description": "with Google" }, "contextMenuItemResurrectGoogleText": { - "message": "Google (Nur Text)", + "message": "mit Google (Nur Text)", "description": "with Google (text only)" }, "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", + "message": "mit The Internet Archive", "description": "with The Internet Archive" }, "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", + "message": "mit archive.is", "description": "with archive.is" }, "contextMenuItemResurrectWebcitation": { - "message": "WebCite", + "message": "mit WebCite", "description": "with WebCite" }, "contextMenuItemResurrectConfigCurrentTab": { - "message": "In aktuellem Tab/Fenster", + "message": "in aktuellem Tab/Fenster", "description": "in the current tab" }, "contextMenuItemResurrectConfigNewTab": { - "message": "In neuem Tab (foreground)", + "message": "in neuem Tab (Vordergrund)", "description": "in a new tab (foreground)" }, "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "In neuem Tab (background)", + "message": "in neuem Tab (Hintergrund)", "description": "in a new tab (background)" }, "contextMenuItemResurrectConfigNewWindow": { - "message": "In neuem Fenster", + "message": "in neuem Fenster", "description": "in a new window" } diff --git a/_locales/de_DE/messages.json b/_locales/de_DE/messages.json index e9dcc11..85b9f55 100644 --- a/_locales/de_DE/messages.json +++ b/_locales/de_DE/messages.json @@ -10,62 +10,62 @@ }, "contextMenuItemResurrectPage": { - "message": "Diese Seite wiederbeleben", + "message": "diese Seite wiederbeleben", "description": "Resurrect this page" }, "contextMenuItemResurrectLink": { - "message": "Diesen Verweis wiederbeleben", + "message": "diesen Verweis wiederbeleben", "description": "Resurrect this link" }, "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", + "message": "diese Markierung wiederbeleben", "description": "Resurrect this selection, TODO: only if its a link, no translation" }, "contextMenuItemResurrectGoogle": { - "message": "Google", + "message": "mit Google", "description": "with Google" }, "contextMenuItemResurrectGoogleText": { - "message": "Google (Nur Text)", + "message": "mit Google (Nur Text)", "description": "with Google (text only)" }, "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", + "message": "mit The Internet Archive", "description": "with The Internet Archive" }, "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", + "message": "mit archive.is", "description": "with archive.is" }, "contextMenuItemResurrectWebcitation": { - "message": "WebCite", + "message": "mit WebCite", "description": "with WebCite" }, "contextMenuItemResurrectConfigCurrentTab": { - "message": "In aktuellem Tab/Fenster", + "message": "in aktuellem Tab/Fenster", "description": "in the current tab" }, "contextMenuItemResurrectConfigNewTab": { - "message": "In neuem Tab (foreground)", + "message": "in neuem Tab (Vordergrund)", "description": "in a new tab (foreground)" }, "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "In neuem Tab (background)", + "message": "in neuem Tab (Hintergrund)", "description": "in a new tab (background)" }, "contextMenuItemResurrectConfigNewWindow": { - "message": "In neuem Fenster", + "message": "in neuem Fenster", "description": "in a new window" } From 62bcaabdf0fb309adf521128efc46ed57a666024 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 19 Aug 2017 20:16:43 +0200 Subject: [PATCH 05/13] use manually written localefile for en_US --- _locales/en_US/messages.json | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/_locales/en_US/messages.json b/_locales/en_US/messages.json index 05d9d99..79bab1a 100644 --- a/_locales/en_US/messages.json +++ b/_locales/en_US/messages.json @@ -21,53 +21,52 @@ "contextMenuItemResurrectSelection": { "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" + "description": "Resurrect this selection, TODO: only if its a link" }, "contextMenuItemResurrectGoogle": { - "message": "Google", + "message": "with Google", "description": "with Google" }, "contextMenuItemResurrectGoogleText": { - "message": "Google (text only)", + "message": "with Google (text only)", "description": "with Google (text only)" }, "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", + "message": "with The Internet Archive", "description": "with The Internet Archive" }, "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", + "message": "with archive.is", "description": "with archive.is" }, "contextMenuItemResurrectWebcitation": { - "message": "WebCite", + "message": "with WebCite", "description": "with WebCite" }, "contextMenuItemResurrectConfigCurrentTab": { - "message": "In the current tab/window", + "message": "in the current tab", "description": "in the current tab" }, "contextMenuItemResurrectConfigNewTab": { - "message": "In a new tab (foreground)", + "message": "in a new tab (foreground)", "description": "in a new tab (foreground)" }, "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "In a new tab (background)", + "message": "in a new tab (background)", "description": "in a new tab (background)" }, "contextMenuItemResurrectConfigNewWindow": { - "message": "In a new window", + "message": "in a new window", "description": "in a new window" } } - From 2977b85e1303221bafbd4521685ea70b32ba5ed8 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 19 Aug 2017 23:09:49 +0200 Subject: [PATCH 06/13] add toolbar icon with popup has no icons yet; will soon have a keyboard shortcut to open --- background.js | 691 +++++++++++++++++++++++--------------------------- common.js | 74 ++++++ manifest.json | 9 +- popup.htm | 26 ++ popup.js | 46 ++++ 5 files changed, 465 insertions(+), 381 deletions(-) create mode 100644 common.js create mode 100644 popup.htm create mode 100644 popup.js diff --git a/background.js b/background.js index 181b720..86fef75 100644 --- a/background.js +++ b/background.js @@ -1,412 +1,343 @@ -openInEnum = { - CURRENT_TAB : 0, - NEW_TAB : 1, - NEW_BGTAB : 2, - NEW_WINDOW : 3 -} - var openIn = openInEnum.CURRENT_TAB; -browser.storage.local.get ("openIn").then (function (item) {if (item.openIn) {openIn = item.openIn}}, onError); +browser.storage.local.get ("openIn").then (function (item) { + if (item.openIn) {openIn = item.openIn} + /* + Create all the context menu items. + */ + // top level {{{ + browser.contextMenus.create({ + id: "resurrect-page", + title: browser.i18n.getMessage("contextMenuItemResurrectPage"), + contexts: ["page"] + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-link", + title: browser.i18n.getMessage("contextMenuItemResurrectLink"), + contexts: ["link"] + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-selection", + title: browser.i18n.getMessage("contextMenuItemResurrectSelection"), + contexts: ["selection"] + }, onCreated); + //}}} + + // resurrect page {{{ + browser.contextMenus.create({ + id: "resurrect-page-google", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-page" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-page-googletext", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-page" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-page-archive", + title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), + icons: { 16: "icons/cacheicons/waybackmachine.png" }, + contexts: ["all"], + parentId: "resurrect-page" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-page-archiveis", + title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), + icons: { 16: "icons/cacheicons/archiveis.png" }, + contexts: ["all"], + parentId: "resurrect-page" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-page-webcitation", + title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), + icons: { 16: "icons/cacheicons/webcitation.png" }, + contexts: ["all"], + parentId: "resurrect-page" + }, onCreated); + //}}} + + // resurrect link {{{ + browser.contextMenus.create({ + id: "resurrect-link-google", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-link" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-link-googletext", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-link" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-link-archive", + title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), + icons: { 16: "icons/cacheicons/waybackmachine.png" }, + contexts: ["all"], + parentId: "resurrect-link" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-link-archiveis", + title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), + icons: { 16: "icons/cacheicons/archiveis.png" }, + contexts: ["all"], + parentId: "resurrect-link" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-link-webcitation", + title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), + icons: { 16: "icons/cacheicons/webcitation.png" }, + contexts: ["all"], + parentId: "resurrect-link" + }, onCreated); + //}}} + + // resurrect selection {{{ + browser.contextMenus.create({ + id: "resurrect-slct-google", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-selection" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-slct-googletext", + title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), + icons: { 16: "icons/cacheicons/google.png" }, + contexts: ["all"], + parentId: "resurrect-selection" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-slct-archive", + title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), + icons: { 16: "icons/cacheicons/waybackmachine.png" }, + contexts: ["all"], + parentId: "resurrect-selection" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-slct-archiveis", + title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), + icons: { 16: "icons/cacheicons/archiveis.png" }, + contexts: ["all"], + parentId: "resurrect-selection" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-slct-webcitation", + title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), + icons: { 16: "icons/cacheicons/webcitation.png" }, + contexts: ["all"], + parentId: "resurrect-selection" + }, onCreated); + //}}} + + //config page {{{ + browser.contextMenus.create({ + id: "separator-1", + type: "separator", + contexts: ["all"], + parentId: "resurrect-page" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-page-current-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), + contexts: ["all"], + checked: openIn==openInEnum.CURRENT_TAB, + parentId: "resurrect-page" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-page-new-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), + contexts: ["all"], + checked: openIn==openInEnum.NEW_TAB, + parentId: "resurrect-page" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-page-new-background-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), + contexts: ["all"], + checked: openIn==openInEnum.NEW_BGTAB, + parentId: "resurrect-page" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-page-new-window", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), + contexts: ["all"], + checked: openIn==openInEnum.NEW_WINDOW, + parentId: "resurrect-page" + }, onCreated); + //}}} + + //config link {{{ + browser.contextMenus.create({ + id: "separator-2", + type: "separator", + contexts: ["all"], + parentId: "resurrect-link" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-link-current-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), + contexts: ["all"], + checked: openIn==openInEnum.CURRENT_TAB, + parentId: "resurrect-link" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-link-new-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), + contexts: ["all"], + checked: openIn==openInEnum.NEW_TAB, + parentId: "resurrect-link" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-link-new-background-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), + contexts: ["all"], + checked: openIn==openInEnum.NEW_BGTAB, + parentId: "resurrect-link" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-link-new-window", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), + contexts: ["all"], + checked: openIn==openInEnum.NEW_WINDOW, + parentId: "resurrect-link" + }, onCreated); + //}}} + + //config selection {{{ + browser.contextMenus.create({ + id: "separator-3", + type: "separator", + contexts: ["all"], + parentId: "resurrect-selection" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-slct-current-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), + contexts: ["all"], + checked: openIn==openInEnum.CURRENT_TAB, + parentId: "resurrect-selection" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-slct-new-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), + contexts: ["all"], + checked: openIn==openInEnum.NEW_TAB, + parentId: "resurrect-selection" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-slct-new-background-tab", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), + contexts: ["all"], + checked: openIn==openInEnum.NEW_BGTAB, + parentId: "resurrect-selection" + }, onCreated); + + browser.contextMenus.create({ + id: "resurrect-slct-new-window", + type: "radio", + title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), + contexts: ["all"], + checked: openIn==openInEnum.NEW_WINDOW, + parentId: "resurrect-selection" + }, onCreated); + //}}} + +}, onError); function onCreated(n) { if (browser.runtime.lastError) { - console.log(`Error: ${browser.runtime.lastError}`); + console.log('Error: '+browser.runtime.lastError); } } -function onRemoved() { } - -function onError(error) { - console.log(`Error: ${error}`); -} - -/* -Create all the context menu items. -*/ -// top level {{{ -browser.contextMenus.create({ - id: "resurrect-page", - title: browser.i18n.getMessage("contextMenuItemResurrectPage"), - contexts: ["page"] -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-link", - title: browser.i18n.getMessage("contextMenuItemResurrectLink"), - contexts: ["link"] -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-selection", - title: browser.i18n.getMessage("contextMenuItemResurrectSelection"), - contexts: ["selection"] -}, onCreated); -//}}} - -// resurrect page {{{ -browser.contextMenus.create({ - id: "resurrect-page-google", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-page" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-page-googletext", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-page" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-page-archive", - title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), - icons: { 16: "icons/cacheicons/waybackmachine.png" }, - contexts: ["all"], - parentId: "resurrect-page" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-page-archiveis", - title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), - icons: { 16: "icons/cacheicons/archiveis.png" }, - contexts: ["all"], - parentId: "resurrect-page" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-page-webcitation", - title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), - icons: { 16: "icons/cacheicons/webcitation.png" }, - contexts: ["all"], - parentId: "resurrect-page" -}, onCreated); -//}}} - -// resurrect link {{{ -browser.contextMenus.create({ - id: "resurrect-link-google", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-link" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-link-googletext", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-link" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-link-archive", - title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), - icons: { 16: "icons/cacheicons/waybackmachine.png" }, - contexts: ["all"], - parentId: "resurrect-link" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-link-archiveis", - title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), - icons: { 16: "icons/cacheicons/archiveis.png" }, - contexts: ["all"], - parentId: "resurrect-link" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-link-webcitation", - title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), - icons: { 16: "icons/cacheicons/webcitation.png" }, - contexts: ["all"], - parentId: "resurrect-link" -}, onCreated); -//}}} - -// resurrect selection {{{ -browser.contextMenus.create({ - id: "resurrect-selection-google", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-selection" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-selection-googletext", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-selection" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-selection-archive", - title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), - icons: { 16: "icons/cacheicons/waybackmachine.png" }, - contexts: ["all"], - parentId: "resurrect-selection" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-selection-archiveis", - title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), - icons: { 16: "icons/cacheicons/archiveis.png" }, - contexts: ["all"], - parentId: "resurrect-selection" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-selection-webcitation", - title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), - icons: { 16: "icons/cacheicons/webcitation.png" }, - contexts: ["all"], - parentId: "resurrect-selection" -}, onCreated); -//}}} - -//config page {{{ -browser.contextMenus.create({ - id: "separator-1", - type: "separator", - contexts: ["all"], - parentId: "resurrect-page" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-page-current-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), - contexts: ["all"], - checked: true, - parentId: "resurrect-page" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-page-new-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), - contexts: ["all"], - checked: false, - parentId: "resurrect-page" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-page-new-background-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), - contexts: ["all"], - checked: false, - parentId: "resurrect-page" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-page-new-window", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), - contexts: ["all"], - checked: false, - parentId: "resurrect-page" -}, onCreated); -//}}} - -//config link {{{ -browser.contextMenus.create({ - id: "separator-2", - type: "separator", - contexts: ["all"], - parentId: "resurrect-link" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-link-current-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), - contexts: ["all"], - checked: true, - parentId: "resurrect-link" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-link-new-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), - contexts: ["all"], - checked: false, - parentId: "resurrect-link" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-link-new-background-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), - contexts: ["all"], - checked: false, - parentId: "resurrect-link" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-link-new-window", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), - contexts: ["all"], - checked: false, - parentId: "resurrect-link" -}, onCreated); -//}}} - -//config selection {{{ -browser.contextMenus.create({ - id: "separator-3", - type: "separator", - contexts: ["all"], - parentId: "resurrect-selection" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-selection-current-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), - contexts: ["all"], - checked: true, - parentId: "resurrect-selection" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-selection-new-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), - contexts: ["all"], - checked: false, - parentId: "resurrect-selection" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-selection-new-background-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), - contexts: ["all"], - checked: false, - parentId: "resurrect-selection" -}, onCreated); - -browser.contextMenus.create({ - id: "resurrect-selection-new-window", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), - contexts: ["all"], - checked: false, - parentId: "resurrect-selection" -}, onCreated); -//}}} - - browser.contextMenus.onClicked.addListener(function(info, tab) { var gotoUrl=null; var rawUrl = info.pageUrl; switch (info.menuItemId) { - case "resurrect-page-google": - gotoUrl='https://www.google.com/search?q=cache:'+encodeURIComponent(info.pageUrl); - break; - case "resurrect-link-google": - gotoUrl='https://www.google.com/search?q=cache:'+encodeURIComponent(info.linkUrl); - break; - case "resurrect-selection-google": - gotoUrl='https://www.google.com/search?q=cache:'+encodeURIComponent(info.selectionText); - break; + case "resurrect-page-google": goToURL (genGoogleURL(info.pageUrl), openIn); break; + case "resurrect-link-google": goToURL (genGoogleURL(info.linkUrl), openIn); break; + case "resurrect-slct-google": goToURL (genGoogleURL(info.selectionText), openIn); break; - case "resurrect-page-googletext": - gotoUrl='https://www.google.com/search?strip=1&q=cache:'+encodeURIComponent(info.pageUrl); - break; - case "resurrect-link-googletext": - gotoUrl='https://www.google.com/search?strip=1&q=cache:'+encodeURIComponent(info.linkUrl); - break; - case "resurrect-selection-googletext": - gotoUrl='https://www.google.com/search?strip=1&q=cache:'+encodeURIComponent(info.selectionText); - break; + case "resurrect-page-googletext": goToURL (genGoogleTextURL(info.pageUrl), openIn); break; + case "resurrect-link-googletext": goToURL (genGoogleTextURL(info.linkUrl), openIn); break; + case "resurrect-slct-googletext": goToURL (genGoogleTextURL(info.selectionText), openIn); break; - case "resurrect-page-archive": - var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, ''); - gotoUrl='https://web.archive.org/web/'+dateStr+'/'+info.pageUrl - break; - case "resurrect-link-archive": - var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, ''); - gotoUrl='https://web.archive.org/web/'+dateStr+'/'+info.linkUrl - break; - case "resurrect-selection-archive": - var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, ''); - gotoUrl='https://web.archive.org/web/'+dateStr+'/'+info.selectionText - break; + case "resurrect-page-archive": goToURL (genIAURL(info.pageUrl), openIn); break; + case "resurrect-link-archive": goToURL (genIAURL(info.linkUrl), openIn); break; + case "resurrect-slct-archive": goToURL (genIAURL(info.selectionText), openIn); break; - case "resurrect-page-archiveis": - gotoUrl='https://archive.is/'+info.pageUrl; - break; - case "resurrect-link-archiveis": - gotoUrl='https://archive.is/'+info.linkUrl; - break; - case "resurrect-selection-archiveis": - gotoUrl='https://archive.is/'+info.selectionText; - break; + case "resurrect-page-archiveis": goToURL (genArchiveIsURL(info.pageUrl), openIn); break; + case "resurrect-link-archiveis": goToURL (genArchiveIsURL(info.linkUrl), openIn); break; + case "resurrect-slct-archiveis": goToURL (genArchiveIsURL(info.selectionText), openIn); break; - case "resurrect-page-webcitation": - gotoUrl='http://webcitation.org/query.php?url='+encodeURIComponent(info.pageUrl); - break; - case "resurrect-link-webcitation": - gotoUrl='http://webcitation.org/query.php?url='+encodeURIComponent(info.linkUrl); - break; - case "resurrect-selection-webcitation": - gotoUrl='http://webcitation.org/query.php?url='+encodeURIComponent(info.selectionText); - break; + case "resurrect-page-webcitation": goToURL (genWebCiteURL(info.pageUrl), openIn); break; + case "resurrect-link-webcitation": goToURL (genWebCiteURL(info.linkUrl), openIn); break; + case "resurrect-slct-webcitation": goToURL (genWebCiteURL(info.selectionText), openIn); break; case "resurrect-page-current-tab": case "resurrect-link-current-tab": - case "resurrect-selection-current-tab": - openIn = openInEnum.CURRENT_TAB; - browser.storage.local.set({openIn: openIn}); + case "resurrect-slct-current-tab": + setOpenIn (openInEnum.CURRENT_TAB); return; case "resurrect-page-new-tab": case "resurrect-link-new-tab": - case "resurrect-selection-new-tab": - openIn = openInEnum.NEW_TAB; - browser.storage.local.set({openIn: openIn}); + case "resurrect-slct-new-tab": + setOpenIn (openInEnum.NEW_TAB); return; case "resurrect-page-new-background-tab": case "resurrect-link-new-background-tab": - case "resurrect-selection-new-background-tab": - openIn = openInEnum.NEW_BGTAB; - browser.storage.local.set({openIn: openIn}); + case "resurrect-slct-new-background-tab": + setOpenIn (openInEnum.NEW_BGTAB); return; case "resurrect-page-new-window": case "resurrect-link-new-window": - case "resurrect-selection-new-window": - openIn = openInEnum.NEW_WINDOW; - browser.storage.local.set({openIn: openIn}); + case "resurrect-slct-new-window": + setOpenIn (openInEnum.NEW_WINDOW); return; } - - if (gotoUrl) { - console.log ("would've gone to " + gotoUrl + " opened in " + openIn); - switch (openIn) { - case openInEnum.CURRENT_TAB: - browser.tabs.update({ "url": gotoUrl}); - break; - case openInEnum.NEW_TAB: - browser.tabs.create({ "url": gotoUrl}); - break; - case openInEnum.NEW_BGTAB: - browser.tabs.create({ "url": gotoUrl, "active":false}); - break; - case openInEnum.NEW_WINDOW: - browser.windows.create({ "url": gotoUrl}); - break; - } - } }); - - diff --git a/common.js b/common.js new file mode 100644 index 0000000..d85a970 --- /dev/null +++ b/common.js @@ -0,0 +1,74 @@ +openInEnum = { + CURRENT_TAB : 0, + NEW_TAB : 1, + NEW_BGTAB : 2, + NEW_WINDOW : 3 +} + +var openIn = openInEnum.CURRENT_TAB; +browser.storage.local.get ("openIn").then (function (item) { if (item.openIn) {openIn = item.openIn} }, onError); + +function onError(error) { + console.log('Error: '+error); +} + +function genGoogleURL (url) { + return 'https://www.google.com/search?q=cache:'+encodeURIComponent(url); +} + +function genGoogleTextURL (url) { + return 'https://www.google.com/search?strip=1&q=cache:'+encodeURIComponent(url); +} + +function genIAURL (url) { + var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, ''); + return 'https://web.archive.org/web/'+dateStr+'/'+url; +} + +function genArchiveIsURL (url) { + return 'https://archive.is/'+url; +} + +function genWebCiteURL (url) { + return 'http://webcitation.org/query.php?url='+encodeURIComponent(url); +} + +function setOpenIn (where) { + openIn = where; + browser.storage.local.set({openIn: openIn}).then(null, onError); + update_context_radios(); +} + +function update_context_radios() { + browser.contextMenus.update ("resurrect-page-current-tab" , {checked: openIn==openInEnum.CURRENT_TAB}); + browser.contextMenus.update ("resurrect-page-new-tab" , {checked: openIn==openInEnum.NEW_TAB}); + browser.contextMenus.update ("resurrect-page-new-background-tab", {checked: openIn==openInEnum.NEW_BGTAB}); + browser.contextMenus.update ("resurrect-page-new-window" , {checked: openIn==openInEnum.NEW_WINDOW}); + + browser.contextMenus.update ("resurrect-link-current-tab" , {checked: openIn==openInEnum.CURRENT_TAB}); + browser.contextMenus.update ("resurrect-link-new-tab" , {checked: openIn==openInEnum.NEW_TAB}); + browser.contextMenus.update ("resurrect-link-new-background-tab", {checked: openIn==openInEnum.NEW_BGTAB}); + browser.contextMenus.update ("resurrect-link-new-window" , {checked: openIn==openInEnum.NEW_WINDOW}); + + browser.contextMenus.update ("resurrect-slct-current-tab" , {checked: openIn==openInEnum.CURRENT_TAB}); + browser.contextMenus.update ("resurrect-slct-new-tab" , {checked: openIn==openInEnum.NEW_TAB}); + browser.contextMenus.update ("resurrect-slct-new-background-tab", {checked: openIn==openInEnum.NEW_BGTAB}); + browser.contextMenus.update ("resurrect-slct-new-window" , {checked: openIn==openInEnum.NEW_WINDOW}); +} + +function goToURL (url, where) { + switch (Number(where)) { + case openInEnum.CURRENT_TAB: + browser.tabs.update({ "url": url}); + break; + case openInEnum.NEW_TAB: + browser.tabs.create({ "url": url}); + break; + case openInEnum.NEW_BGTAB: + browser.tabs.create({ "url": url, "active":false}); + break; + case openInEnum.NEW_WINDOW: + browser.windows.create({ "url": url}); + break; + } +} diff --git a/manifest.json b/manifest.json index 18abada..7c800a6 100644 --- a/manifest.json +++ b/manifest.json @@ -13,12 +13,19 @@ }, "background": { - "scripts": ["background.js"] + "scripts": ["common.js","background.js"] + }, + + "browser_action": { + "default_icon": "icons/page-32.png", + "default_title": "__MSG_extensionName__", + "default_popup": "popup.htm" }, "permissions": [ "storage", "contextMenus", + "tabs", "activeTab" ], diff --git a/popup.htm b/popup.htm new file mode 100644 index 0000000..1f6e76e --- /dev/null +++ b/popup.htm @@ -0,0 +1,26 @@ + + + +
+
+
+
+
+
+
+
+
+
+
+
+ + + diff --git a/popup.js b/popup.js new file mode 100644 index 0000000..b1acb02 --- /dev/null +++ b/popup.js @@ -0,0 +1,46 @@ +document.addEventListener('DOMContentLoaded', function() { + browser.storage.local.get ("openIn").then(function(res) { + switch (Number(res.openIn)) { + case openInEnum.CURRENT_TAB: + document.querySelector("#current").checked = true; + break; + case openInEnum.NEW_TAB: + document.querySelector("#newtabfg").checked = true; + break; + case openInEnum.NEW_BGTAB: + document.querySelector("#newtabbg").checked = true; + break; + case openInEnum.NEW_WINDOW: + document.querySelector("#newwin").checked = true; + break; + default: + document.querySelector("#current").checked = true; +onError("can't read openIn"); + } + }); + + document.querySelector("#lc").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"); + document.querySelector("#ltf").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"); + document.querySelector("#ltb").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"); + document.querySelector("#lw").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"); + + document.querySelector("#current").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; + document.querySelector("#newtabfg").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; + document.querySelector("#newtabbg").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; + document.querySelector("#newwin").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; + + document.querySelector("#resurrectWithGoogle").value = browser.i18n.getMessage("contextMenuItemResurrectGoogle"); + document.querySelector("#resurrectWithGoogleText").value = browser.i18n.getMessage("contextMenuItemResurrectGoogleText"); + document.querySelector("#resurrectWithInternetArchive").value = browser.i18n.getMessage("contextMenuItemResurrectArchive"); + document.querySelector("#resurrectWithArchiveIs").value = browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"); + document.querySelector("#resurrectWithWebCite").value = browser.i18n.getMessage("contextMenuItemResurrectWebcitation"); + + browser.tabs.query({active:true,currentWindow:true}).then(function(tabObj){ + pageURL = tabObj[0].url; + document.querySelector("#resurrectWithGoogle").onclick = function(){goToURL (genGoogleURL (pageURL), openIn);window.close()}; + document.querySelector("#resurrectWithGoogleText").onclick = function(){goToURL (genGoogleTextURL(pageURL), openIn);window.close()}; + document.querySelector("#resurrectWithInternetArchive").onclick = function(){goToURL (genIAURL (pageURL), openIn);window.close()}; + document.querySelector("#resurrectWithArchiveIs").onclick = function(){goToURL (genArchiveIsURL (pageURL), openIn);window.close()}; + document.querySelector("#resurrectWithWebCite").onclick = function(){goToURL (genWebCiteURL (pageURL), openIn);window.close()}; + }, onError); +}); From dae6246979405cd846e6e56795402036f6145d43 Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 19 Aug 2017 23:24:10 +0200 Subject: [PATCH 07/13] popup: add icons --- popup.htm | 16 ++++++++++------ popup.js | 10 +++++----- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/popup.htm b/popup.htm index 1f6e76e..0813b24 100644 --- a/popup.htm +++ b/popup.htm @@ -5,16 +5,20 @@ body { font-family: sans-serif; font-size: small; } -input[type=button] { +button { width: 100%; + text-align:left; +} +img { + vertical-align:bottom; }
-
-
-
-
-
+
+
+
+
+



diff --git a/popup.js b/popup.js index b1acb02..d8701b8 100644 --- a/popup.js +++ b/popup.js @@ -29,11 +29,11 @@ onError("can't read openIn"); document.querySelector("#newtabbg").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; document.querySelector("#newwin").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; - document.querySelector("#resurrectWithGoogle").value = browser.i18n.getMessage("contextMenuItemResurrectGoogle"); - document.querySelector("#resurrectWithGoogleText").value = browser.i18n.getMessage("contextMenuItemResurrectGoogleText"); - document.querySelector("#resurrectWithInternetArchive").value = browser.i18n.getMessage("contextMenuItemResurrectArchive"); - document.querySelector("#resurrectWithArchiveIs").value = browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"); - document.querySelector("#resurrectWithWebCite").value = browser.i18n.getMessage("contextMenuItemResurrectWebcitation"); + document.querySelector("#lgo").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectGoogle"); + document.querySelector("#lgt").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectGoogleText"); + document.querySelector("#lia").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectArchive"); + document.querySelector("#lai").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"); + document.querySelector("#lwc").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectWebcitation"); browser.tabs.query({active:true,currentWindow:true}).then(function(tabObj){ pageURL = tabObj[0].url; From 3ee22492a6f3348908e3531983cf92c53749d50f Mon Sep 17 00:00:00 2001 From: girst Date: Sat, 19 Aug 2017 23:35:05 +0200 Subject: [PATCH 08/13] add ctrl-shift-u keyboard shortcut to open popup --- manifest.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifest.json b/manifest.json index 7c800a6..bcb3119 100644 --- a/manifest.json +++ b/manifest.json @@ -21,6 +21,13 @@ "default_title": "__MSG_extensionName__", "default_popup": "popup.htm" }, + "commands": { + "_execute_browser_action": { + "suggested_key": { + "default": "Ctrl+Shift+U" + } + } + }, "permissions": [ "storage", From c2700d6cb64ff7aea261b8ab8773e173dc417cab Mon Sep 17 00:00:00 2001 From: girst Date: Sun, 20 Aug 2017 00:01:27 +0200 Subject: [PATCH 09/13] version push; readme has screenshots now --- README.md | 15 +++++++++++++-- manifest.json | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a8e09ab..de0815f 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Documentation +# Resurrect Pages 4 + +## Documentation Dead pages, broken links, the scourge of the internet. Powerhouse sites like Slashdot and Digg can bring a server to its knees. @@ -6,6 +8,12 @@ What do we do when a page is dead but we still want to see it? Call in the clerics, and perform a resurrection ceremony! Or, the easier route, use this extension. +## Screenshots + +![Context Menu](https://camo.githubusercontent.com/ac74ac3d78d2ff79c7f820c5f5db4497714bd6dd/68747470733a2f2f692e696d6775722e636f6d2f3975476b737a612e706e67) +![Toolbar Menu](https://camo.githubusercontent.com/973154dcbc6c17736b9b2d4e4a4a00959465ec6d/68747470733a2f2f692e696d6775722e636f6d2f6d4c554e52414c2e706e67) + + ## Features * Searches through seven page cache/mirrors: @@ -23,8 +31,11 @@ Hit back and try another one! # Changelog + * Version 4.1 (Aug 20, 2017) + * includes toolbar icon with popup, keyboard shortcut + * does not include netError page ([not possible currently](https://bugzilla.mozilla.org/show_bug.cgi?id=1376793)) * Version 4 (Aug 19, 2017) - * completely rewritten as WebExtension + * completely rewritten as WebExtension by [Tobias Girstmair](https://gir.st/) * Not everything from the old version ported over yet * Version 3 (Sep 9, 2015) * Fix layout on error page w.r.t. the "report error" dialog. diff --git a/manifest.json b/manifest.json index bcb3119..3e9589b 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "manifest_version": 2, "name": "__MSG_extensionName__", "description": "__MSG_extensionDescription__", - "version": "1.0", + "version": "4.1", "default_locale": "en", "applications": { "gecko": { From ed8af3e2c9d47d5dcdbb900017b74927a78eb9cc Mon Sep 17 00:00:00 2001 From: girst Date: Sun, 20 Aug 2017 00:05:50 +0200 Subject: [PATCH 10/13] better context menu screenshot --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index de0815f..bf6eacc 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Or, the easier route, use this extension. ## Screenshots -![Context Menu](https://camo.githubusercontent.com/ac74ac3d78d2ff79c7f820c5f5db4497714bd6dd/68747470733a2f2f692e696d6775722e636f6d2f3975476b737a612e706e67) +![Context Menu](https://camo.githubusercontent.com/264d0c9221bd3b22a41b3848597eeedbd606a5fb/68747470733a2f2f692e696d6775722e636f6d2f48654d666f77792e706e67) ![Toolbar Menu](https://camo.githubusercontent.com/973154dcbc6c17736b9b2d4e4a4a00959465ec6d/68747470733a2f2f692e696d6775722e636f6d2f6d4c554e52414c2e706e67) From e5d7b54112406253948683616cfc11e331cc971f Mon Sep 17 00:00:00 2001 From: girst Date: Sun, 20 Aug 2017 00:08:13 +0200 Subject: [PATCH 11/13] update readme -> features -> accessible --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index bf6eacc..2b5f39f 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,9 @@ Hit back and try another one! * Accessible: * In the context (right-click) menu for the current page, and for all links. + * In the toolbar, just customize it to drag the button in. + * With the keyboard: press `Ctrl-Shift-U` + # Changelog From 9d3a93a1e29fd22f37fbb5abf943dcf4b899c6e9 Mon Sep 17 00:00:00 2001 From: Anthony Lieuallen Date: Sun, 20 Aug 2017 10:00:59 -0400 Subject: [PATCH 12/13] Revert "autogenerate new locales" This reverts commit 6e4c7d0be39dde5cd17b8ac3ee853eb52e73322c. # Conflicts: # _locales/de/messages.json # _locales/de_DE/messages.json # _locales/en_US/messages.json --- _locales/ca_AD/messages.json | 73 ------------------------ _locales/cs_CZ/messages.json | 73 ------------------------ _locales/da/messages.json | 73 ------------------------ _locales/da_DK/messages.json | 73 ------------------------ _locales/de/messages.json | 73 ------------------------ _locales/de_DE/messages.json | 73 ------------------------ _locales/el/messages.json | 73 ------------------------ _locales/el_GR/messages.json | 73 ------------------------ _locales/en/messages.json | 72 ----------------------- _locales/es_AR/messages.json | 73 ------------------------ _locales/es_CL/messages.json | 73 ------------------------ _locales/es_ES/messages.json | 73 ------------------------ _locales/fi/messages.json | 73 ------------------------ _locales/fi_FI/messages.json | 73 ------------------------ _locales/fr/messages.json | 73 ------------------------ _locales/fr_FR/messages.json | 73 ------------------------ _locales/hr_HR/messages.json | 73 ------------------------ _locales/it/messages.json | 73 ------------------------ _locales/it_IT/messages.json | 73 ------------------------ _locales/ja_JP/messages.json | 73 ------------------------ _locales/ko_KR/messages.json | 73 ------------------------ _locales/nl/messages.json | 73 ------------------------ _locales/nl_NL/messages.json | 73 ------------------------ _locales/pl/messages.json | 73 ------------------------ _locales/pl_PL/messages.json | 73 ------------------------ _locales/pt_BR/messages.json | 73 ------------------------ _locales/pt_PT/messages.json | 73 ------------------------ _locales/ru_RU/messages.json | 73 ------------------------ _locales/sl_SI/messages.json | 73 ------------------------ _locales/sr/messages.json | 73 ------------------------ _locales/sv_SE/messages.json | 73 ------------------------ _locales/tr/messages.json | 73 ------------------------ _locales/tr_TR/messages.json | 73 ------------------------ _locales/uk_UA/messages.json | 73 ------------------------ _locales/zh_CN/messages.json | 73 ------------------------ _locales/zh_TW/messages.json | 73 ------------------------ _locales/zzz_genlocale.pl | 107 ----------------------------------- 37 files changed, 2734 deletions(-) delete mode 100644 _locales/ca_AD/messages.json delete mode 100644 _locales/cs_CZ/messages.json delete mode 100644 _locales/da/messages.json delete mode 100644 _locales/da_DK/messages.json delete mode 100644 _locales/de/messages.json delete mode 100644 _locales/de_DE/messages.json delete mode 100644 _locales/el/messages.json delete mode 100644 _locales/el_GR/messages.json delete mode 100644 _locales/en/messages.json delete mode 100644 _locales/es_AR/messages.json delete mode 100644 _locales/es_CL/messages.json delete mode 100644 _locales/es_ES/messages.json delete mode 100644 _locales/fi/messages.json delete mode 100644 _locales/fi_FI/messages.json delete mode 100644 _locales/fr/messages.json delete mode 100644 _locales/fr_FR/messages.json delete mode 100644 _locales/hr_HR/messages.json delete mode 100644 _locales/it/messages.json delete mode 100644 _locales/it_IT/messages.json delete mode 100644 _locales/ja_JP/messages.json delete mode 100644 _locales/ko_KR/messages.json delete mode 100644 _locales/nl/messages.json delete mode 100644 _locales/nl_NL/messages.json delete mode 100644 _locales/pl/messages.json delete mode 100644 _locales/pl_PL/messages.json delete mode 100644 _locales/pt_BR/messages.json delete mode 100644 _locales/pt_PT/messages.json delete mode 100644 _locales/ru_RU/messages.json delete mode 100644 _locales/sl_SI/messages.json delete mode 100644 _locales/sr/messages.json delete mode 100644 _locales/sv_SE/messages.json delete mode 100644 _locales/tr/messages.json delete mode 100644 _locales/tr_TR/messages.json delete mode 100644 _locales/uk_UA/messages.json delete mode 100644 _locales/zh_CN/messages.json delete mode 100644 _locales/zh_TW/messages.json delete mode 100755 _locales/zzz_genlocale.pl diff --git a/_locales/ca_AD/messages.json b/_locales/ca_AD/messages.json deleted file mode 100644 index d712d5b..0000000 --- a/_locales/ca_AD/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Ressuscita pàgines mortes trobant els seus fantasmes (copies)", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Ressuscita aquesta pàgina", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Ressuscita aquest enllaç", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google Cache", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google Cache (només text)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "En la pestanya/finestra actual", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "En una nova pestanya (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "En una nova pestanya (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "En una nova finestra", - "description": "in a new window" - } - -} - diff --git a/_locales/cs_CZ/messages.json b/_locales/cs_CZ/messages.json deleted file mode 100644 index 97dd63a..0000000 --- a/_locales/cs_CZ/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Oživuje mrtvé webové stránky vyhledáváním jejich duchů v archivech.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Oživit tuto stránku", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Oživit tento odkaz", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (prostý text)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "V současném panelu/okně", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "V novém panelu (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "V novém panelu (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "V novém okně", - "description": "in a new window" - } - -} - diff --git a/_locales/da/messages.json b/_locales/da/messages.json deleted file mode 100644 index f6dbb55..0000000 --- a/_locales/da/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Genopliv døde sider, ved at finde deres spøgelser.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Genopliv denne side", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Genopliv dette link", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (kun tekst)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "I nuværende faneblad/vindue", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "I et nyt faneblad (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "I et nyt faneblad (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "I et nyt vindue", - "description": "in a new window" - } - -} - diff --git a/_locales/da_DK/messages.json b/_locales/da_DK/messages.json deleted file mode 100644 index dc23c39..0000000 --- a/_locales/da_DK/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Genopliv døde sider, ved at finde deres spøgelser.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Genopliv denne side", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Genopliv dette link", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google Cache", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google Cache (kun tekst)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "I nuværende faneblad/vindue", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "I et nyt faneblad (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "I et nyt faneblad (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "I et nyt vindue", - "description": "in a new window" - } - -} - diff --git a/_locales/de/messages.json b/_locales/de/messages.json deleted file mode 100644 index 85b9f55..0000000 --- a/_locales/de/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Wiederbeleben von toten Seiten, indem die Geister-Abbilder dieser Seiten gesucht werden.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "diese Seite wiederbeleben", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "diesen Verweis wiederbeleben", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "diese Markierung wiederbeleben", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "mit Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "mit Google (Nur Text)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "mit The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "mit archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "mit WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "in aktuellem Tab/Fenster", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "in neuem Tab (Vordergrund)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "in neuem Tab (Hintergrund)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "in neuem Fenster", - "description": "in a new window" - } - -} - diff --git a/_locales/de_DE/messages.json b/_locales/de_DE/messages.json deleted file mode 100644 index 85b9f55..0000000 --- a/_locales/de_DE/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Wiederbeleben von toten Seiten, indem die Geister-Abbilder dieser Seiten gesucht werden.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "diese Seite wiederbeleben", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "diesen Verweis wiederbeleben", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "diese Markierung wiederbeleben", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "mit Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "mit Google (Nur Text)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "mit The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "mit archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "mit WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "in aktuellem Tab/Fenster", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "in neuem Tab (Vordergrund)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "in neuem Tab (Hintergrund)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "in neuem Fenster", - "description": "in a new window" - } - -} - diff --git a/_locales/el/messages.json b/_locales/el/messages.json deleted file mode 100644 index 4ce8209..0000000 --- a/_locales/el/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Ανασύσταση «εξαφανισμένων» σελίδων.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Ανασύσταση αυτής της σελίδας", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Ανασύσταση αυτού του δεσμού", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google Cache", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google Cache (μόνο κείμενο)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Στην τρέχουσα καρτέλα/παράθυρο", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "Σε νέα καρτέλα (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "Σε νέα καρτέλα (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Σε νέο παράθυρο", - "description": "in a new window" - } - -} - diff --git a/_locales/el_GR/messages.json b/_locales/el_GR/messages.json deleted file mode 100644 index b176d5d..0000000 --- a/_locales/el_GR/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Ανασύσταση «εξαφάνισμένων» σελίδων.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Ανασύσταση αυτής της σελίδας", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Ανασύσταση αυτού του δεσμού", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google Cache", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google Cache (μόνο κείμενο)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Στην τρέχουσα καρτέλα/παράθυρο", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "Σε νέα καρτέλα (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "Σε νέα καρτέλα (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Σε νέο παράθυρο", - "description": "in a new window" - } - -} - diff --git a/_locales/en/messages.json b/_locales/en/messages.json deleted file mode 100644 index 79bab1a..0000000 --- a/_locales/en/messages.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Resurrect dead pages, by finding their ghosts.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Resurrect this page", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Resurrect this link", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link" - }, - - "contextMenuItemResurrectGoogle": { - "message": "with Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "with Google (text only)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "with The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "with archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "with WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "in the current tab", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "in a new tab (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "in a new tab (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "in a new window", - "description": "in a new window" - } - -} diff --git a/_locales/es_AR/messages.json b/_locales/es_AR/messages.json deleted file mode 100644 index 4e9e9b2..0000000 --- a/_locales/es_AR/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Resucita páginas muertas, encontrando sus restos.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Resucitar esta página", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Resucitar este enlace", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Cache de Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Cache de Google (solo texto)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "El Archivo de Internet", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "En la actual ventana/pestaña", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "En una nueva pestaña (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "En una nueva pestaña (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "En una nueva ventana", - "description": "in a new window" - } - -} - diff --git a/_locales/es_CL/messages.json b/_locales/es_CL/messages.json deleted file mode 100644 index 4e9e9b2..0000000 --- a/_locales/es_CL/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Resucita páginas muertas, encontrando sus restos.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Resucitar esta página", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Resucitar este enlace", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Cache de Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Cache de Google (solo texto)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "El Archivo de Internet", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "En la actual ventana/pestaña", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "En una nueva pestaña (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "En una nueva pestaña (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "En una nueva ventana", - "description": "in a new window" - } - -} - diff --git a/_locales/es_ES/messages.json b/_locales/es_ES/messages.json deleted file mode 100644 index 4834fd7..0000000 --- a/_locales/es_ES/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Resucita páginas que ya no existen, buscando en las cachés.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Resucitar esta página", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Resucitar este enlace", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Caché de Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Caché de Google (sólo texto)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "En la pestaña/ventana actual", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "En una nueva pestaña (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "En una nueva pestaña (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "En una nueva ventana", - "description": "in a new window" - } - -} - diff --git a/_locales/fi/messages.json b/_locales/fi/messages.json deleted file mode 100644 index ba4d2bb..0000000 --- a/_locales/fi/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Herätä kuolleet sivut henkiin haamujen avulla.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Palauta tämä sivu", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Palauta tämän linkin kohde", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google välimuisti", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google välimuisti (vain teksti)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Nykyiseen välilehteen/ikkunaan", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "Uuteen välilehteen (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "Uuteen välilehteen (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Uuteen ikkunaan", - "description": "in a new window" - } - -} - diff --git a/_locales/fi_FI/messages.json b/_locales/fi_FI/messages.json deleted file mode 100644 index ba4d2bb..0000000 --- a/_locales/fi_FI/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Herätä kuolleet sivut henkiin haamujen avulla.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Palauta tämä sivu", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Palauta tämän linkin kohde", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google välimuisti", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google välimuisti (vain teksti)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Nykyiseen välilehteen/ikkunaan", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "Uuteen välilehteen (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "Uuteen välilehteen (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Uuteen ikkunaan", - "description": "in a new window" - } - -} - diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json deleted file mode 100644 index 4e4fe55..0000000 --- a/_locales/fr/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Ressuscite les pages mortes en récupérant leur fantôme dans les caches.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Ressusciter cette page", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Ressusciter ce lien", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Cache Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Cache Google (texte seulement)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "Archive internet", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "dans l'onglet/la fenêtre courant(e)", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "dans un nouvel onglet (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "dans un nouvel onglet (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "dans une nouvelle fenêtre", - "description": "in a new window" - } - -} - diff --git a/_locales/fr_FR/messages.json b/_locales/fr_FR/messages.json deleted file mode 100644 index 5306fea..0000000 --- a/_locales/fr_FR/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Ressuscite les pages mortes en récupérant leur fantôme dans les caches.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Ressusciter cette page", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Ressusciter ce lien", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Cache Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Cache Google (texte seulement)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "Archive internet", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "dans l'onglet/la fenêtre courant(e)", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "dans un nouvel onglet (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "dans un nouvel onglet (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "dans une nouvelle fenêtre", - "description": "in a new window" - } - -} - diff --git a/_locales/hr_HR/messages.json b/_locales/hr_HR/messages.json deleted file mode 100644 index 9fef48b..0000000 --- a/_locales/hr_HR/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Uskrsava mrtve stranice pronalazeći njihove duhove.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Uskrsni ovu stranicu", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Uskrsni ovu poveznicu", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google privremeni spremnik", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google privremeni spremnik (samo tekst)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "U trenutnoj kartici/prozoru", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "U novoj kartici (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "U novoj kartici (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "U novom prozoru", - "description": "in a new window" - } - -} - diff --git a/_locales/it/messages.json b/_locales/it/messages.json deleted file mode 100644 index 173e1e7..0000000 --- a/_locales/it/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Permette di riattivare link/pagine web non più accessibili trovando corrispondenti pagine fantasma", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Riattiva pagina web con Resurrect Pages…", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Riattiva link con Resurrect Pages…", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google Cache", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google Cache (solo testo)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive ", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Riattiva nella scheda/finestra attuale", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "Riattiva in una nuova scheda (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "Riattiva in una nuova scheda (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Riattiva in una nuova finestra", - "description": "in a new window" - } - -} - diff --git a/_locales/it_IT/messages.json b/_locales/it_IT/messages.json deleted file mode 100644 index 97c9a6f..0000000 --- a/_locales/it_IT/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Permette di resuscitare pagine non più accessibili trovando corrispondenti pagine fantasma", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Resuscita questa pagina", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Resuscita questo link", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google Cache", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google Cache (solo testo)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "nella scheda/finestra attuale", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "in una nuova scheda (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "in una nuova scheda (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "in una nuova finestra", - "description": "in a new window" - } - -} - diff --git a/_locales/ja_JP/messages.json b/_locales/ja_JP/messages.json deleted file mode 100644 index 70a649f..0000000 --- a/_locales/ja_JP/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "死んだページを亡霊から生き返らせる。", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "このページを蘇生", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "このリンクを蘇生", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (テキストのみ)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "現在のタブ・ウィンドウ", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "新しいタブ (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "新しいタブ (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "新しいウィンドウ", - "description": "in a new window" - } - -} - diff --git a/_locales/ko_KR/messages.json b/_locales/ko_KR/messages.json deleted file mode 100644 index 685561c..0000000 --- a/_locales/ko_KR/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "죽은 페이지의 영혼을 찾아내서 부활시킵니다.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "이 페이지를 부활", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "이 링크를 부활", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google 캐쉬", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google 캐쉬 (본문 만)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "인터넷 아카이브", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "현재 탭/창으로", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "새 탭으로 (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "새 탭으로 (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "새 창으로", - "description": "in a new window" - } - -} - diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json deleted file mode 100644 index 0fff993..0000000 --- a/_locales/nl/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Wek dode pagina’s weer tot leven door hun geesten te vinden.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Deze pagina tot leven wekken…", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Deze koppeling tot leven wekken…", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (alleen tekst)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "In het huidige tabblad/het huidige venster", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "In een nieuw tabblad (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "In een nieuw tabblad (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "In een nieuw venster", - "description": "in a new window" - } - -} - diff --git a/_locales/nl_NL/messages.json b/_locales/nl_NL/messages.json deleted file mode 100644 index c95ca18..0000000 --- a/_locales/nl_NL/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Wek dode pagina's weer tot leven door hun geesten te vinden.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Deze pagina tot leven wekken", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Deze koppeling tot leven wekken", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (alleen tekst)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "In het huidige tabblad/het huidige venster", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "In een nieuw tabblad (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "In een nieuw tabblad (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "In een nieuw venster", - "description": "in a new window" - } - -} - diff --git a/_locales/pl/messages.json b/_locales/pl/messages.json deleted file mode 100644 index 76e0aec..0000000 --- a/_locales/pl/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Odtwarzaj wygasłe strony odszukując ich cienie.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Odtwórz tę stronę", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Odtwórz ten link", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google Cache", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google Cache (tylko tekst)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "W aktywnej karcie/oknie", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "W nowej karcie (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "W nowej karcie (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "W nowym oknie", - "description": "in a new window" - } - -} - diff --git a/_locales/pl_PL/messages.json b/_locales/pl_PL/messages.json deleted file mode 100644 index 76e0aec..0000000 --- a/_locales/pl_PL/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Odtwarzaj wygasłe strony odszukując ich cienie.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Odtwórz tę stronę", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Odtwórz ten link", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google Cache", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google Cache (tylko tekst)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "W aktywnej karcie/oknie", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "W nowej karcie (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "W nowej karcie (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "W nowym oknie", - "description": "in a new window" - } - -} - diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json deleted file mode 100644 index 661b274..0000000 --- a/_locales/pt_BR/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Ressuscita páginas mortas, encontrando seus fantasmas.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Ressuscitar esta página", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Ressuscitar este link", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Cache do Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Cache do Google (somente texto)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Na aba/janela atual", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "Em uma nova aba (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "Em uma nova aba (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Em uma nova janela", - "description": "in a new window" - } - -} - diff --git a/_locales/pt_PT/messages.json b/_locales/pt_PT/messages.json deleted file mode 100644 index ca457ba..0000000 --- a/_locales/pt_PT/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Ressuscita páginas mortas, ao encontrar os seus fantasmas.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Ressuscitar esta página", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Ressuscitar este endereço", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Cache do Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Cache do Google (só texto)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "Arquivo de internet", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Na aba/janela actual", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "Numa nova aba (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "Numa nova aba (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Numa nova janela", - "description": "in a new window" - } - -} - diff --git a/_locales/ru_RU/messages.json b/_locales/ru_RU/messages.json deleted file mode 100644 index c27b0e1..0000000 --- a/_locales/ru_RU/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Воскрешает мертвые страницы, находя их в кэше.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Воскресить эту страницу", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Воскресить эту ссылку", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (только текст)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "В текущей вкладке/окне", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "В новой вкладке (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "В новой вкладке (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "В новом окне", - "description": "in a new window" - } - -} - diff --git a/_locales/sl_SI/messages.json b/_locales/sl_SI/messages.json deleted file mode 100644 index af18d41..0000000 --- a/_locales/sl_SI/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Oživi nedosegljive strani, prikaži njihove posnetke.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Oživi to stran", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Oživi to povezavo", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google posnetek", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google posnetek (samo besedilo)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "V obstoječem zavihku/oknu", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "V novem zavihku (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "V novem zavihku (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "V novem oknu", - "description": "in a new window" - } - -} - diff --git a/_locales/sr/messages.json b/_locales/sr/messages.json deleted file mode 100644 index b947db2..0000000 --- a/_locales/sr/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Оживите избрисане странице проналажењем њихових старих копија.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Оживи ову страницу…", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Оживи ову везу…", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (само текст)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "у тренутном језичку/прозору", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "у новом језичку (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "у новом језичку (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "у новом прозору", - "description": "in a new window" - } - -} - diff --git a/_locales/sv_SE/messages.json b/_locales/sv_SE/messages.json deleted file mode 100644 index 287a198..0000000 --- a/_locales/sv_SE/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Få webbsidor att återuppstå från de döda genom att hitta deras spöken.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Återuppväck den här webbsidan", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Återuppväck den här länken", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (endast text)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Nuvarande flik/fönster", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "En ny flik (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "En ny flik (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Ett nytt fönster", - "description": "in a new window" - } - -} - diff --git a/_locales/tr/messages.json b/_locales/tr/messages.json deleted file mode 100644 index 4ff42ee..0000000 --- a/_locales/tr/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Ölü sayfaları diriltin, hayaletlerini bularak.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Bu sayfayı dirilt", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Bu linki dirilt", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (salt metin)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Seçili sekmede/pencerede", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "Yeni sekmede (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "Yeni sekmede (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Yeni pencerede", - "description": "in a new window" - } - -} - diff --git a/_locales/tr_TR/messages.json b/_locales/tr_TR/messages.json deleted file mode 100644 index 4ff42ee..0000000 --- a/_locales/tr_TR/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Ölü sayfaları diriltin, hayaletlerini bularak.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Bu sayfayı dirilt", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Bu linki dirilt", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (salt metin)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "Seçili sekmede/pencerede", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "Yeni sekmede (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "Yeni sekmede (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "Yeni pencerede", - "description": "in a new window" - } - -} - diff --git a/_locales/uk_UA/messages.json b/_locales/uk_UA/messages.json deleted file mode 100644 index f72b608..0000000 --- a/_locales/uk_UA/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "Resurrect dead pages, by finding their ghosts.", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "Resurrect this page", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "Resurrect this link", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google Cache", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google Cache (text only)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "In the current tab/window", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "In a new tab (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "In a new tab (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "In a new window", - "description": "in a new window" - } - -} - diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json deleted file mode 100644 index 9171da1..0000000 --- a/_locales/zh_CN/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "通过寻找页库存档来还原失效的页面。", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "修复此页面", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "修复此链接", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (纯文字版)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "The Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "在当前标签页或窗口", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "在新标签页 (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "在新标签页 (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "在新窗口", - "description": "in a new window" - } - -} - diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json deleted file mode 100644 index 183d5de..0000000 --- a/_locales/zh_TW/messages.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "藉由尋找頁庫存檔來還原失效的頁面。", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "恢復頁面", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "恢復此連結", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "Google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "Google (限文字)", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "Internet Archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "archive.is", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "WebCite", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "目前分頁/視窗", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "新分頁 (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "新分頁 (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "新視窗", - "description": "in a new window" - } - -} - diff --git a/_locales/zzz_genlocale.pl b/_locales/zzz_genlocale.pl deleted file mode 100755 index f1ba904..0000000 --- a/_locales/zzz_genlocale.pl +++ /dev/null @@ -1,107 +0,0 @@ -#!/usr/bin/perl - -=pod -usage: -* cd into old locale folder -* execute `for I in *; do ./zzz_genlocale.pl $I; done;rm -r _locales/zzz_genlocale.pl` -=cut - -use warnings; -use strict; - -chomp(my $extension_desc = `cat $ARGV[0]/overlay.properties|cut -d= -f2`); - -chomp(my $resurrect_this_page = `grep resurrect.thispage $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`);$resurrect_this_page=~s/\.\.\.//; -chomp(my $resurrect_this_link = `grep resurrect.thislink $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`);$resurrect_this_link=~s/\.\.\.//; -chomp(my $google = `grep resurrect.google $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); -chomp(my $textonly = `grep resurrect.textonly $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); -chomp(my $archive = `grep "resurrect.archive " $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); -chomp(my $archiveis = `grep resurrect.archiveis $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); -chomp(my $webcit = `grep resurrect.webcitation $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); -chomp(my $curtab = `grep resurrect.inCurrTab $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); -chomp(my $newtab = `grep resurrect.inNewTab $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); -chomp(my $newwin = `grep resurrect.inNewWin $ARGV[0]/overlay.dtd |sed -e 's/^[^"]*"//' -e 's/">\\s*\$//'`); - -my $locale = $ARGV[0]; -$locale =~ s/-/_/g; -`mkdir -p _locales/$locale`; - -open (my $file, '>', "_locales/$locale/messages.json"); - -print $file <<"EOF"; -{ - "extensionName": { - "message": "Resurrect Pages", - "description": "Name of the extension." - }, - - "extensionDescription": { - "message": "$extension_desc", - "description": "Description of the add-on." - }, - - "contextMenuItemResurrectPage": { - "message": "$resurrect_this_page", - "description": "Resurrect this page" - }, - - "contextMenuItemResurrectLink": { - "message": "$resurrect_this_link", - "description": "Resurrect this link" - }, - - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link, no translation" - }, - - "contextMenuItemResurrectGoogle": { - "message": "$google", - "description": "with Google" - }, - - "contextMenuItemResurrectGoogleText": { - "message": "$google $textonly", - "description": "with Google (text only)" - }, - - "contextMenuItemResurrectArchive": { - "message": "$archive", - "description": "with The Internet Archive" - }, - - "contextMenuItemResurrectArchiveIs": { - "message": "$archiveis", - "description": "with archive.is" - }, - - "contextMenuItemResurrectWebcitation": { - "message": "$webcit", - "description": "with WebCite" - }, - - "contextMenuItemResurrectConfigCurrentTab": { - "message": "$curtab", - "description": "in the current tab" - }, - - "contextMenuItemResurrectConfigNewTab": { - "message": "$newtab (foreground)", - "description": "in a new tab (foreground)" - }, - - "contextMenuItemResurrectConfigNewBackgroundTab": { - "message": "$newtab (background)", - "description": "in a new tab (background)" - }, - - "contextMenuItemResurrectConfigNewWindow": { - "message": "$newwin", - "description": "in a new window" - } - -} - -EOF - -close $file; From 322eb9cd7499ca3f19c9f1a4a135e66f217f8f6b Mon Sep 17 00:00:00 2001 From: Anthony Lieuallen Date: Sun, 20 Aug 2017 12:10:19 -0400 Subject: [PATCH 13/13] Generally rewrite the whole thing. Consistent coding style, significantly less repetition. Use `chrome` rather than `browser`, for compatibility. --- .gitignore | 3 + README.md | 18 +- _locales/{en_US => en}/messages.json | 28 +- background.js | 410 ++++++--------------------- common.js | 92 +++--- manifest.json | 33 ++- popup.htm | 57 +++- popup.js | 74 ++--- 8 files changed, 242 insertions(+), 473 deletions(-) create mode 100644 .gitignore rename _locales/{en_US => en}/messages.json (65%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7ced262 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.xpi +.project +.settings diff --git a/README.md b/README.md index 2b5f39f..1f463e3 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,16 @@ -# Resurrect Pages 4 - -## Documentation +# Documentation Dead pages, broken links, the scourge of the internet. Powerhouse sites like Slashdot and Digg can bring a server to its knees. What do we do when a page is dead but we still want to see it? Call in the clerics, and perform a resurrection ceremony! -Or, the easier route, use this extension. +Or (the easier route) use this extension. ## Screenshots ![Context Menu](https://camo.githubusercontent.com/264d0c9221bd3b22a41b3848597eeedbd606a5fb/68747470733a2f2f692e696d6775722e636f6d2f48654d666f77792e706e67) ![Toolbar Menu](https://camo.githubusercontent.com/973154dcbc6c17736b9b2d4e4a4a00959465ec6d/68747470733a2f2f692e696d6775722e636f6d2f6d4c554e52414c2e706e67) - ## Features * Searches through seven page cache/mirrors: @@ -31,14 +28,13 @@ Hit back and try another one! * In the toolbar, just customize it to drag the button in. * With the keyboard: press `Ctrl-Shift-U` - # Changelog - * Version 4.1 (Aug 20, 2017) - * includes toolbar icon with popup, keyboard shortcut - * does not include netError page ([not possible currently](https://bugzilla.mozilla.org/show_bug.cgi?id=1376793)) - * Version 4 (Aug 19, 2017) - * completely rewritten as WebExtension by [Tobias Girstmair](https://gir.st/) + * Version 4 (**pending release**) + * Rewritten as WebExtension with major contributions + by [Tobias Girstmair](https://gir.st/) + * Does not include netError page + ([not possible currently](http://bugzil.la/1376793)) * Not everything from the old version ported over yet * Version 3 (Sep 9, 2015) * Fix layout on error page w.r.t. the "report error" dialog. diff --git a/_locales/en_US/messages.json b/_locales/en/messages.json similarity index 65% rename from _locales/en_US/messages.json rename to _locales/en/messages.json index 79bab1a..430a3d0 100644 --- a/_locales/en_US/messages.json +++ b/_locales/en/messages.json @@ -9,64 +9,58 @@ "description": "Description of the add-on." }, - "contextMenuItemResurrectPage": { + "resurrect_page": { "message": "Resurrect this page", "description": "Resurrect this page" }, - "contextMenuItemResurrectLink": { + "resurrect_link": { "message": "Resurrect this link", "description": "Resurrect this link" }, - "contextMenuItemResurrectSelection": { - "message": "Resurrect this selection", - "description": "Resurrect this selection, TODO: only if its a link" - }, - - "contextMenuItemResurrectGoogle": { + "resurrectGoogle": { "message": "with Google", "description": "with Google" }, - "contextMenuItemResurrectGoogleText": { + "resurrectGoogleText": { "message": "with Google (text only)", "description": "with Google (text only)" }, - "contextMenuItemResurrectArchive": { + "resurrectArchive": { "message": "with The Internet Archive", "description": "with The Internet Archive" }, - "contextMenuItemResurrectArchiveIs": { + "resurrectArchiveIs": { "message": "with archive.is", "description": "with archive.is" }, - "contextMenuItemResurrectWebcitation": { + "resurrectWebcitation": { "message": "with WebCite", "description": "with WebCite" }, - "contextMenuItemResurrectConfigCurrentTab": { + "resurrectConfigCurrentTab": { "message": "in the current tab", "description": "in the current tab" }, - "contextMenuItemResurrectConfigNewTab": { + "resurrectConfigNewTab": { "message": "in a new tab (foreground)", "description": "in a new tab (foreground)" }, - "contextMenuItemResurrectConfigNewBackgroundTab": { + "resurrectConfigBgTab": { "message": "in a new tab (background)", "description": "in a new tab (background)" }, - "contextMenuItemResurrectConfigNewWindow": { + "resurrectConfigNewWindow": { "message": "in a new window", "description": "in a new window" } - } diff --git a/background.js b/background.js index 86fef75..38781e8 100644 --- a/background.js +++ b/background.js @@ -1,343 +1,91 @@ -var openIn = openInEnum.CURRENT_TAB; -browser.storage.local.get ("openIn").then (function (item) { - if (item.openIn) {openIn = item.openIn} - /* - Create all the context menu items. - */ - // top level {{{ - browser.contextMenus.create({ - id: "resurrect-page", - title: browser.i18n.getMessage("contextMenuItemResurrectPage"), - contexts: ["page"] - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-link", - title: browser.i18n.getMessage("contextMenuItemResurrectLink"), - contexts: ["link"] - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-selection", - title: browser.i18n.getMessage("contextMenuItemResurrectSelection"), - contexts: ["selection"] - }, onCreated); - //}}} - - // resurrect page {{{ - browser.contextMenus.create({ - id: "resurrect-page-google", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-page" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-page-googletext", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-page" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-page-archive", - title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), - icons: { 16: "icons/cacheicons/waybackmachine.png" }, - contexts: ["all"], - parentId: "resurrect-page" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-page-archiveis", - title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), - icons: { 16: "icons/cacheicons/archiveis.png" }, - contexts: ["all"], - parentId: "resurrect-page" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-page-webcitation", - title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), - icons: { 16: "icons/cacheicons/webcitation.png" }, - contexts: ["all"], - parentId: "resurrect-page" - }, onCreated); - //}}} - - // resurrect link {{{ - browser.contextMenus.create({ - id: "resurrect-link-google", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-link" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-link-googletext", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-link" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-link-archive", - title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), - icons: { 16: "icons/cacheicons/waybackmachine.png" }, - contexts: ["all"], - parentId: "resurrect-link" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-link-archiveis", - title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), - icons: { 16: "icons/cacheicons/archiveis.png" }, - contexts: ["all"], - parentId: "resurrect-link" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-link-webcitation", - title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), - icons: { 16: "icons/cacheicons/webcitation.png" }, - contexts: ["all"], - parentId: "resurrect-link" - }, onCreated); - //}}} - - // resurrect selection {{{ - browser.contextMenus.create({ - id: "resurrect-slct-google", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogle"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-selection" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-slct-googletext", - title: browser.i18n.getMessage("contextMenuItemResurrectGoogleText"), - icons: { 16: "icons/cacheicons/google.png" }, - contexts: ["all"], - parentId: "resurrect-selection" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-slct-archive", - title: browser.i18n.getMessage("contextMenuItemResurrectArchive"), - icons: { 16: "icons/cacheicons/waybackmachine.png" }, - contexts: ["all"], - parentId: "resurrect-selection" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-slct-archiveis", - title: browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"), - icons: { 16: "icons/cacheicons/archiveis.png" }, - contexts: ["all"], - parentId: "resurrect-selection" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-slct-webcitation", - title: browser.i18n.getMessage("contextMenuItemResurrectWebcitation"), - icons: { 16: "icons/cacheicons/webcitation.png" }, - contexts: ["all"], - parentId: "resurrect-selection" - }, onCreated); - //}}} - - //config page {{{ - browser.contextMenus.create({ - id: "separator-1", - type: "separator", - contexts: ["all"], - parentId: "resurrect-page" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-page-current-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), - contexts: ["all"], - checked: openIn==openInEnum.CURRENT_TAB, - parentId: "resurrect-page" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-page-new-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), - contexts: ["all"], - checked: openIn==openInEnum.NEW_TAB, - parentId: "resurrect-page" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-page-new-background-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), - contexts: ["all"], - checked: openIn==openInEnum.NEW_BGTAB, - parentId: "resurrect-page" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-page-new-window", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), - contexts: ["all"], - checked: openIn==openInEnum.NEW_WINDOW, - parentId: "resurrect-page" - }, onCreated); - //}}} - - //config link {{{ - browser.contextMenus.create({ - id: "separator-2", - type: "separator", - contexts: ["all"], - parentId: "resurrect-link" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-link-current-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), - contexts: ["all"], - checked: openIn==openInEnum.CURRENT_TAB, - parentId: "resurrect-link" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-link-new-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), - contexts: ["all"], - checked: openIn==openInEnum.NEW_TAB, - parentId: "resurrect-link" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-link-new-background-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), - contexts: ["all"], - checked: openIn==openInEnum.NEW_BGTAB, - parentId: "resurrect-link" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-link-new-window", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), - contexts: ["all"], - checked: openIn==openInEnum.NEW_WINDOW, - parentId: "resurrect-link" - }, onCreated); - //}}} - - //config selection {{{ - browser.contextMenus.create({ - id: "separator-3", - type: "separator", - contexts: ["all"], - parentId: "resurrect-selection" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-slct-current-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"), - contexts: ["all"], - checked: openIn==openInEnum.CURRENT_TAB, - parentId: "resurrect-selection" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-slct-new-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"), - contexts: ["all"], - checked: openIn==openInEnum.NEW_TAB, - parentId: "resurrect-selection" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-slct-new-background-tab", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"), - contexts: ["all"], - checked: openIn==openInEnum.NEW_BGTAB, - parentId: "resurrect-selection" - }, onCreated); - - browser.contextMenus.create({ - id: "resurrect-slct-new-window", - type: "radio", - title: browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"), - contexts: ["all"], - checked: openIn==openInEnum.NEW_WINDOW, - parentId: "resurrect-selection" - }, onCreated); - //}}} - -}, onError); - function onCreated(n) { - if (browser.runtime.lastError) { - console.log('Error: '+browser.runtime.lastError); - } } -browser.contextMenus.onClicked.addListener(function(info, tab) { - var gotoUrl=null; - var rawUrl = info.pageUrl; +chrome.storage.local.get('openIn', item => { + if (item.openIn) { + openIn = item.openIn; + } - switch (info.menuItemId) { - case "resurrect-page-google": goToURL (genGoogleURL(info.pageUrl), openIn); break; - case "resurrect-link-google": goToURL (genGoogleURL(info.linkUrl), openIn); break; - case "resurrect-slct-google": goToURL (genGoogleURL(info.selectionText), openIn); break; + function addResurrectItem(context, i18n, id, icon) { + chrome.contextMenus.create({ + id: 'resurrect-' + id + '-' + context, + title: chrome.i18n.getMessage('resurrect' + i18n), + icons: {16: 'icons/cacheicons/' + icon + '.png'}, + contexts: [context], + parentId: 'resurrect-' + context + }, onCreated); + } - case "resurrect-page-googletext": goToURL (genGoogleTextURL(info.pageUrl), openIn); break; - case "resurrect-link-googletext": goToURL (genGoogleTextURL(info.linkUrl), openIn); break; - case "resurrect-slct-googletext": goToURL (genGoogleTextURL(info.selectionText), openIn); break; + function addConfigItem(context, i18n, where, checked) { + chrome.contextMenus.create({ + id: 'resurrect-' + where + '-' + context, + type: 'radio', + title: chrome.i18n.getMessage('resurrectConfig' + i18n), + contexts: [context], + checked: checked, + parentId: 'resurrect-' + context + }, onCreated); + } - case "resurrect-page-archive": goToURL (genIAURL(info.pageUrl), openIn); break; - case "resurrect-link-archive": goToURL (genIAURL(info.linkUrl), openIn); break; - case "resurrect-slct-archive": goToURL (genIAURL(info.selectionText), openIn); break; + ['page', 'link'].forEach(context => { + chrome.contextMenus.create({ + id: 'resurrect-' + context, + title: chrome.i18n.getMessage('resurrect_' + context), + contexts: [context] + }, onCreated); - case "resurrect-page-archiveis": goToURL (genArchiveIsURL(info.pageUrl), openIn); break; - case "resurrect-link-archiveis": goToURL (genArchiveIsURL(info.linkUrl), openIn); break; - case "resurrect-slct-archiveis": goToURL (genArchiveIsURL(info.selectionText), openIn); break; + addResurrectItem(context, 'Google', 'google', 'google'); + addResurrectItem(context, 'GoogleText', 'google-text', 'google'); + addResurrectItem(context, 'Archive', 'archive', 'waybackmachine'); + addResurrectItem(context, 'ArchiveIs', 'archiveis', 'archiveis'); + addResurrectItem(context, 'Webcitation', 'webcitation', 'webcitation'); - case "resurrect-page-webcitation": goToURL (genWebCiteURL(info.pageUrl), openIn); break; - case "resurrect-link-webcitation": goToURL (genWebCiteURL(info.linkUrl), openIn); break; - case "resurrect-slct-webcitation": goToURL (genWebCiteURL(info.selectionText), openIn); break; + chrome.contextMenus.create({ + id: 'resurrect-separator-config-' + context, + type: 'separator', + contexts: [context], + parentId: 'resurrect-' + context + }, onCreated); - case "resurrect-page-current-tab": - case "resurrect-link-current-tab": - case "resurrect-slct-current-tab": - setOpenIn (openInEnum.CURRENT_TAB); - return; - case "resurrect-page-new-tab": - case "resurrect-link-new-tab": - case "resurrect-slct-new-tab": - setOpenIn (openInEnum.NEW_TAB); - return; - case "resurrect-page-new-background-tab": - case "resurrect-link-new-background-tab": - case "resurrect-slct-new-background-tab": - setOpenIn (openInEnum.NEW_BGTAB); - return; - case "resurrect-page-new-window": - case "resurrect-link-new-window": - case "resurrect-slct-new-window": - setOpenIn (openInEnum.NEW_WINDOW); - return; + addConfigItem( + context, 'CurrentTab', 'current-tab', openIn == openInEnum.CURRENT_TAB); + addConfigItem( + context, 'NewTab', 'new-tab', openIn == openInEnum.NEW_TAB); + addConfigItem( + context, 'BgTab', 'bg-tab', openIn == openInEnum.BG_TAB); + addConfigItem( + context, 'NewWindow', 'new-window', openIn == openInEnum.NEW_WINDOW); + }); +}); + + +chrome.contextMenus.onClicked.addListener(function(info, tab) { + let id = info.menuItemId; + let url = null; + if (id.endsWith('-page')) { + url = info.pageUrl; + } else if (id.endsWith('-link')) { + url = info.linkUrl; + } + + if (id.startsWith('resurrect-google-')) { + goToUrl(genGoogleUrl(url), openIn); + } else if (id.startsWith('resurrect-googletext-')) { + goToUrl(genGoogleTextUrl(url), openIn); + } else if (id.startsWith('resurrect-archive-')) { + goToUrl(genIaUrl(url), openIn); + } else if (id.startsWith('resurrect-archiveis-')) { + goToUrl(genArchiveIsUrl(url), openIn); + } else if (id.startsWith('resurrect-webcitation-')) { + goToUrl(genWebCiteUrl(url), openIn); + } else if (id.startsWith('resurrect-current-tab-')) { + setOpenIn(openInEnum.CURRENT_TAB); + } else if (id.startsWith('resurrect-new-tab-')) { + setOpenIn(openInEnum.NEW_TAB); + } else if (id.startsWith('resurrect-new-bg-tab-')) { + setOpenIn(openInEnum.NEW_BGTAB); + } else if (id.startsWith('resurrect-new-window-')) { + setOpenIn(openInEnum.NEW_WINDOW); } }); diff --git a/common.js b/common.js index d85a970..1978808 100644 --- a/common.js +++ b/common.js @@ -4,71 +4,83 @@ openInEnum = { NEW_BGTAB : 2, NEW_WINDOW : 3 } +let openIn = openInEnum.CURRENT_TAB; + + +chrome.storage.local.get('openIn', item => { + if (item.openIn) { + openIn = item.openIn; + } +}); -var openIn = openInEnum.CURRENT_TAB; -browser.storage.local.get ("openIn").then (function (item) { if (item.openIn) {openIn = item.openIn} }, onError); function onError(error) { - console.log('Error: '+error); + if (chrome.runtime.lastError) { + console.error('Resurrect error: ', chrome.runtime.lastError); + } } -function genGoogleURL (url) { + +function genGoogleUrl(url) { return 'https://www.google.com/search?q=cache:'+encodeURIComponent(url); } -function genGoogleTextURL (url) { +function genGoogleTextUrl(url) { return 'https://www.google.com/search?strip=1&q=cache:'+encodeURIComponent(url); } -function genIAURL (url) { - var dateStr = (new Date()).toISOString().replace(/-|T|:|\..*/g, ''); +function genIaUrl(url) { + let dateStr =(new Date()).toISOString().replace(/-|T|:|\..*/g, ''); return 'https://web.archive.org/web/'+dateStr+'/'+url; } -function genArchiveIsURL (url) { +function genArchiveIsUrl(url) { return 'https://archive.is/'+url; } -function genWebCiteURL (url) { +function genWebCiteUrl(url) { return 'http://webcitation.org/query.php?url='+encodeURIComponent(url); } -function setOpenIn (where) { + +function setOpenIn(where) { openIn = where; - browser.storage.local.set({openIn: openIn}).then(null, onError); - update_context_radios(); + chrome.storage.local.set({openIn: openIn}, onError); + updateContextRadios(); } -function update_context_radios() { - browser.contextMenus.update ("resurrect-page-current-tab" , {checked: openIn==openInEnum.CURRENT_TAB}); - browser.contextMenus.update ("resurrect-page-new-tab" , {checked: openIn==openInEnum.NEW_TAB}); - browser.contextMenus.update ("resurrect-page-new-background-tab", {checked: openIn==openInEnum.NEW_BGTAB}); - browser.contextMenus.update ("resurrect-page-new-window" , {checked: openIn==openInEnum.NEW_WINDOW}); - browser.contextMenus.update ("resurrect-link-current-tab" , {checked: openIn==openInEnum.CURRENT_TAB}); - browser.contextMenus.update ("resurrect-link-new-tab" , {checked: openIn==openInEnum.NEW_TAB}); - browser.contextMenus.update ("resurrect-link-new-background-tab", {checked: openIn==openInEnum.NEW_BGTAB}); - browser.contextMenus.update ("resurrect-link-new-window" , {checked: openIn==openInEnum.NEW_WINDOW}); - - browser.contextMenus.update ("resurrect-slct-current-tab" , {checked: openIn==openInEnum.CURRENT_TAB}); - browser.contextMenus.update ("resurrect-slct-new-tab" , {checked: openIn==openInEnum.NEW_TAB}); - browser.contextMenus.update ("resurrect-slct-new-background-tab", {checked: openIn==openInEnum.NEW_BGTAB}); - browser.contextMenus.update ("resurrect-slct-new-window" , {checked: openIn==openInEnum.NEW_WINDOW}); +function updateContextRadios() { + ['page', 'link'].forEach(context => { + chrome.contextMenus.update( + 'resurrect-current-tab-' + context, + {checked: openIn == openInEnum.CURRENT_TAB}); + chrome.contextMenus.update( + 'resurrect-new-tab-' + context, + {checked: openIn == openInEnum.NEW_TAB}); + chrome.contextMenus.update( + 'resurrect-new-bg-tab-' + context, + {checked: openIn == openInEnum.NEW_BGTAB}); + chrome.contextMenus.update( + 'resurrect-new-window-' + context, + {checked: openIn == openInEnum.NEW_WINDOW}); + }); } -function goToURL (url, where) { - switch (Number(where)) { - case openInEnum.CURRENT_TAB: - browser.tabs.update({ "url": url}); - break; - case openInEnum.NEW_TAB: - browser.tabs.create({ "url": url}); - break; - case openInEnum.NEW_BGTAB: - browser.tabs.create({ "url": url, "active":false}); - break; - case openInEnum.NEW_WINDOW: - browser.windows.create({ "url": url}); - break; + +function goToUrl(url, where) { + switch(Number(where)) { + case openInEnum.CURRENT_TAB: + chrome.tabs.update({'url': url}); + break; + case openInEnum.NEW_TAB: + chrome.tabs.create({'url': url}); + break; + case openInEnum.NEW_BGTAB: + chrome.tabs.create({'url': url, 'active': false}); + break; + case openInEnum.NEW_WINDOW: + chrome.windows.create({'url': url}); + break; } } diff --git a/manifest.json b/manifest.json index 3e9589b..3cd4a53 100644 --- a/manifest.json +++ b/manifest.json @@ -1,19 +1,22 @@ { - "manifest_version": 2, "name": "__MSG_extensionName__", "description": "__MSG_extensionDescription__", - "version": "4.1", + "version": "4", "default_locale": "en", + "applications": { "gecko": { - "id":"resurrect-pages@gir.st", + "id": "{0c8fbd76-bdeb-4c52-9b24-d587ce7b9dc3}", "strict_min_version": "56.0b3" } }, "background": { - "scripts": ["common.js","background.js"] + "scripts": [ + "common.js", + "background.js" + ] }, "browser_action": { @@ -21,12 +24,18 @@ "default_title": "__MSG_extensionName__", "default_popup": "popup.htm" }, + "commands": { - "_execute_browser_action": { - "suggested_key": { - "default": "Ctrl+Shift+U" - } + "_execute_browser_action": { + "suggested_key": { + "default": "Ctrl+Shift+U" } + } + }, + + "icons": { + "16": "icons/page-16.png", + "32": "icons/page-32.png" }, "permissions": [ @@ -34,11 +43,5 @@ "contextMenus", "tabs", "activeTab" - ], - - "icons": { - "16": "icons/page-16.png", - "32": "icons/page-32.png" - } - + ] } diff --git a/popup.htm b/popup.htm index 0813b24..0a465db 100644 --- a/popup.htm +++ b/popup.htm @@ -2,28 +2,55 @@ -
-
-
-
-
-
-
-
-
-
+ + + + + + +
+ + + + + diff --git a/popup.js b/popup.js index d8701b8..9a14fb9 100644 --- a/popup.js +++ b/popup.js @@ -1,46 +1,32 @@ -document.addEventListener('DOMContentLoaded', function() { - browser.storage.local.get ("openIn").then(function(res) { - switch (Number(res.openIn)) { - case openInEnum.CURRENT_TAB: - document.querySelector("#current").checked = true; - break; - case openInEnum.NEW_TAB: - document.querySelector("#newtabfg").checked = true; - break; - case openInEnum.NEW_BGTAB: - document.querySelector("#newtabbg").checked = true; - break; - case openInEnum.NEW_WINDOW: - document.querySelector("#newwin").checked = true; - break; - default: - document.querySelector("#current").checked = true; -onError("can't read openIn"); - } +chrome.storage.local.get('openIn', res => { + document.querySelectorAll('input[type=radio]').forEach(el => { + el.checked = el.value == res.openIn; }); - - document.querySelector("#lc").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectConfigCurrentTab"); - document.querySelector("#ltf").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectConfigNewTab"); - document.querySelector("#ltb").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectConfigNewBackgroundTab"); - document.querySelector("#lw").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectConfigNewWindow"); - - document.querySelector("#current").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; - document.querySelector("#newtabfg").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; - document.querySelector("#newtabbg").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; - document.querySelector("#newwin").onchange = function(){setOpenIn(document.querySelector('input[name="openIn"]:checked').value)}; - - document.querySelector("#lgo").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectGoogle"); - document.querySelector("#lgt").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectGoogleText"); - document.querySelector("#lia").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectArchive"); - document.querySelector("#lai").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectArchiveIs"); - document.querySelector("#lwc").innerHTML = browser.i18n.getMessage("contextMenuItemResurrectWebcitation"); - - browser.tabs.query({active:true,currentWindow:true}).then(function(tabObj){ - pageURL = tabObj[0].url; - document.querySelector("#resurrectWithGoogle").onclick = function(){goToURL (genGoogleURL (pageURL), openIn);window.close()}; - document.querySelector("#resurrectWithGoogleText").onclick = function(){goToURL (genGoogleTextURL(pageURL), openIn);window.close()}; - document.querySelector("#resurrectWithInternetArchive").onclick = function(){goToURL (genIAURL (pageURL), openIn);window.close()}; - document.querySelector("#resurrectWithArchiveIs").onclick = function(){goToURL (genArchiveIsURL (pageURL), openIn);window.close()}; - document.querySelector("#resurrectWithWebCite").onclick = function(){goToURL (genWebCiteURL (pageURL), openIn);window.close()}; - }, onError); +}); + + +document.querySelectorAll('*[data-locale]').forEach(el => { + el.innerHTML += ' ' + chrome.i18n.getMessage(el.getAttribute('data-locale')); +}); + + +function onOpenInChange() { + setOpenIn(document.querySelector('input[name="openIn"]:checked').value); +}; +document.querySelectorAll('input[type=radio]').forEach(el => { + el.addEventListener('click', onOpenInChange, true); +}); + + +function resurrect(gen) { + return function() { + chrome.tabs.query({active: true, currentWindow: true}, tabObj => { + goToUrl(gen(tabObj[0].url), openIn); + window.close(); + }); + } +} +document.querySelectorAll('button').forEach(el => { + el.addEventListener( + 'click', resurrect(window[el.getAttribute('data-gen')]), true); });