|
|
@ -1,8 +1,6 @@
|
|
|
|
/** global: chrome */
|
|
|
|
/** global: chrome */
|
|
|
|
/** global: browser */
|
|
|
|
/** global: browser */
|
|
|
|
|
|
|
|
|
|
|
|
replaceDomWhenReady([ 'p', {}, ' ' ], document, {});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var func = tabs => {
|
|
|
|
var func = tabs => {
|
|
|
|
( chrome || browser ).runtime.sendMessage({
|
|
|
|
( chrome || browser ).runtime.sendMessage({
|
|
|
|
id: 'get_apps',
|
|
|
|
id: 'get_apps',
|
|
|
@ -44,6 +42,16 @@ function replaceDom(domTemplate) {
|
|
|
|
|
|
|
|
|
|
|
|
var nodes = document.querySelectorAll('[data-i18n]');
|
|
|
|
var nodes = document.querySelectorAll('[data-i18n]');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for ( let ms = 200; ms < 500; ms += 50 ) {
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
let div = document.createElement('div');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
div.style.display = 'none';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
body.appendChild(div);
|
|
|
|
|
|
|
|
}, ms);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Array.prototype.forEach.call(nodes, node => {
|
|
|
|
Array.prototype.forEach.call(nodes, node => {
|
|
|
|
node.childNodes[0].nodeValue = browser.i18n.getMessage(node.dataset.i18n);
|
|
|
|
node.childNodes[0].nodeValue = browser.i18n.getMessage(node.dataset.i18n);
|
|
|
|
});
|
|
|
|
});
|
|
|
|