adds .local/share/millennium and easyeffects
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
'use strict';
|
||||
|
||||
( () =>
|
||||
{
|
||||
const browserApi = typeof browser !== 'undefined' ? browser : chrome;
|
||||
|
||||
document.body.dir = browserApi.i18n.getMessage( '@@bidi_dir' );
|
||||
|
||||
/** @type {NodeListOf<HTMLElement>} */
|
||||
const localizable = document.querySelectorAll( '[data-msg]' );
|
||||
|
||||
for( const element of localizable )
|
||||
{
|
||||
element.textContent = browserApi.i18n.getMessage( element.dataset.msg );
|
||||
}
|
||||
|
||||
/** @type {HTMLAnchorElement} */
|
||||
const optionsLink = document.querySelector( '.options-link' );
|
||||
optionsLink.href = browserApi.runtime.getURL( 'options/options.html' );
|
||||
} )();
|
||||
Reference in New Issue
Block a user