6a271e067f
* Move mixed/js/core.js to js/core.js * Move mixed/js/yomichan.js to js/yomichan.js * Move mixed/js/timer.js to js/debug/timer.js * Move mixed/js/hotkey-handler.js to js/input/hotkey-handler.js * Move mixed/js/hotkey-help-controller.js to js/input/hotkey-help-controller.js * Move mixed/js/hotkey-util.js to js/input/hotkey-util.js * Move mixed/js/audio-system.js to js/input/audio-system.js * Move mixed/js/media-loader.js to js/input/media-loader.js * Move mixed/js/text-to-speech-audio.js to js/input/text-to-speech-audio.js * Move mixed/js/comm.js to js/comm/cross-frame-api.js * Move mixed/js/api.js to js/comm/api.js * Move mixed/js/frame-client.js to js/comm/frame-client.js * Move mixed/js/frame-endpoint.js to js/comm/frame-endpoint.js * Move mixed/js/display.js to js/display/display.js * Move mixed/js/display-audio.js to js/display/display-audio.js * Move mixed/js/display-generator.js to js/display/display-generator.js * Move mixed/js/display-history.js to js/display/display-history.js * Move mixed/js/display-notification.js to js/display/display-notification.js * Move mixed/js/display-profile-selection.js to js/display/display-profile-selection.js * Move mixed/js/japanese.js to js/language/japanese-util.js * Move mixed/js/dictionary-data-util.js to js/language/dictionary-data-util.js * Move mixed/js/document-focus-controller.js to js/dom/document-focus-controller.js * Move mixed/js/document-util.js to js/dom/document-util.js * Move mixed/js/dom-data-binder.js to js/dom/dom-data-binder.js * Move mixed/js/html-template-collection.js to js/dom/html-template-collection.js * Move mixed/js/panel-element.js to js/dom/panel-element.js * Move mixed/js/popup-menu.js to js/dom/popup-menu.js * Move mixed/js/selector-observer.js to js/dom/selector-observer.js * Move mixed/js/scroll.js to js/dom/window-scroll.js * Move mixed/js/text-scanner.js to js/language/text-scanner.js * Move mixed/js/cache-map.js to js/general/cache-map.js * Move mixed/js/object-property-accessor.js to js/general/object-property-accessor.js * Move mixed/js/task-accumulator.js to js/general/task-accumulator.js * Move mixed/js/environment.js to js/background/environment.js * Move mixed/js/dynamic-loader.js to js/scripting/dynamic-loader.js * Move mixed/js/dynamic-loader-sentinel.js to js/scripting/dynamic-loader-sentinel.js
179 lines
9.6 KiB
HTML
179 lines
9.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>Yomichan Permissions</title>
|
|
<link rel="icon" type="image/png" href="/images/icon16.png" sizes="16x16">
|
|
<link rel="icon" type="image/png" href="/images/icon19.png" sizes="19x19">
|
|
<link rel="icon" type="image/png" href="/images/icon32.png" sizes="32x32">
|
|
<link rel="icon" type="image/png" href="/images/icon38.png" sizes="38x38">
|
|
<link rel="icon" type="image/png" href="/images/icon48.png" sizes="48x48">
|
|
<link rel="icon" type="image/png" href="/images/icon64.png" sizes="64x64">
|
|
<link rel="icon" type="image/png" href="/images/icon128.png" sizes="128x128">
|
|
<link rel="stylesheet" type="text/css" href="/css/material.css">
|
|
<link rel="stylesheet" type="text/css" href="/css/settings2.css">
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Main content -->
|
|
<div class="content-outer"><div class="content">
|
|
<div class="content-center">
|
|
|
|
<span tabindex="-1" id="content-scroll-focus"></span>
|
|
|
|
<h1>Yomichan Permissions</h1>
|
|
|
|
<h2 id="permissions"></h2>
|
|
<div class="settings-group">
|
|
<div class="settings-item"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label"><code><all_urls></code></div>
|
|
<div class="settings-item-description">
|
|
Yomichan requires access to all URLs in order to run scripts to scan text and show the definitions popup,
|
|
request audio for playback and download, and connect with Anki.
|
|
</div>
|
|
</div>
|
|
</div></div>
|
|
<div class="settings-item"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label"><code>storage</code> and <code>unlimitedStorage</code></div>
|
|
<div class="settings-item-description">
|
|
Yomichan uses storage permissions in order to save extension settings and dictionary data.
|
|
<code>unlimitedStorage</code> is used to help prevent web browsers from unexpectedly
|
|
deleting dictionary data.
|
|
</div>
|
|
</div>
|
|
</div></div>
|
|
<div class="settings-item" data-hide-for-manifest-version="3"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label"><code>webRequest</code> and <code>webRequestBlocking</code></div>
|
|
<div class="settings-item-description">
|
|
<p>
|
|
Yomichan uses these permissions to ensure certain requests have valid and secure headers.
|
|
This sometimes involves removing or changing the <code>Origin</code> request header,
|
|
as this can be used to fingerprint browser configuration.
|
|
</p>
|
|
<p>
|
|
Example: <code>Origin: <span class="extension-id-example"></span></code>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div></div>
|
|
<div class="settings-item" data-show-for-manifest-version="3"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label"><code>declarativeNetRequest</code></div>
|
|
<div class="settings-item-description">
|
|
<p>
|
|
Yomichan uses this permission to ensure certain requests have valid and secure headers.
|
|
This sometimes involves removing or changing the <code>Origin</code> request header,
|
|
as this can be used to fingerprint browser configuration.
|
|
</p>
|
|
<p>
|
|
Example: <code>Origin: <span class="extension-id-example"></span></code>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div></div>
|
|
<div class="settings-item" data-show-for-manifest-version="3"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label"><code>scripting</code></div>
|
|
<div class="settings-item-description">
|
|
Yomichan will sometimes need to inject stylesheets into webpages in order to
|
|
properly display the search popup.
|
|
</div>
|
|
</div>
|
|
</div></div>
|
|
<div class="settings-item"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label"><code>clipboardWrite</code></div>
|
|
<div class="settings-item-description">
|
|
Yomichan supports simulating the <code>Ctrl+C</code> (copy to clipboard) keyboard shortcut
|
|
when a definitions popup is open and focused.
|
|
</div>
|
|
</div>
|
|
</div></div>
|
|
<div class="settings-item"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label"><code>clipboardRead</code> <span class="light">(optional)</span></div>
|
|
<div class="settings-item-description">
|
|
Yomichan supports automatically opening a search window when Japanese text is copied to the clipboard
|
|
while the browser is running, depending on how certain settings are configured.
|
|
This allows Yomichan to support scanning text from external applications, provided there is a way
|
|
to copy text from those applications to the clipboard.
|
|
</div>
|
|
</div>
|
|
<div class="settings-item-right">
|
|
<label class="toggle"><input type="checkbox" class="permissions-toggle" data-required-permissions="clipboardRead"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label>
|
|
</div>
|
|
</div></div>
|
|
<div class="settings-item"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label"><code>nativeMessaging</code> <span class="light" data-show-for-browser="chrome edge">(optional)</span></div>
|
|
<div class="settings-item-description">
|
|
Yomichan has the ability to communicate with an optional native messaging component in order to support
|
|
parsing large blocks of Japanese text using
|
|
<a href="https://en.wikipedia.org/wiki/MeCab" target="_blank" rel="noopener noreferrer">MeCab</a>.
|
|
The installation of this component is optional and is not included by default.
|
|
</div>
|
|
</div>
|
|
<div class="settings-item-right">
|
|
<label class="toggle"><input type="checkbox" class="permissions-toggle" data-required-permissions="nativeMessaging"><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label>
|
|
</div>
|
|
</div></div>
|
|
<div class="settings-item"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label">Allow in private windows <span class="light">(optional)</span></div>
|
|
<div class="settings-item-description">
|
|
<p>
|
|
When enabled, Yomichan is able to scan text and show definitions in private/incognito web browser windows.
|
|
</p>
|
|
<p>
|
|
This option can be configured from the web browser's extension settings pages.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="settings-item-right">
|
|
<label class="toggle"><input type="checkbox" id="permission-checkbox-allow-in-private-windows" disabled><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label>
|
|
</div>
|
|
</div></div>
|
|
<div class="settings-item"><div class="settings-item-inner">
|
|
<div class="settings-item-left">
|
|
<div class="settings-item-label">Allow access to file URLs <span class="light">(optional)</span></div>
|
|
<div class="settings-item-description">
|
|
<p>
|
|
When enabled, Yomichan is able to scan text and show definitions on local HTML files located using the <code>file://*</code> scheme.
|
|
</p>
|
|
<p data-show-for-browser="chrome edge">
|
|
This option can be configured from the web browser's extension settings pages.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="settings-item-right">
|
|
<label class="toggle"><input type="checkbox" id="permission-checkbox-allow-file-url-access" disabled><span class="toggle-body"><span class="toggle-track"></span><span class="toggle-knob"></span></span></label>
|
|
</div>
|
|
</div></div>
|
|
</div>
|
|
|
|
<div class="footer-padding"></div>
|
|
|
|
</div>
|
|
</div></div>
|
|
|
|
<!-- Scripts -->
|
|
<script src="/js/core.js"></script>
|
|
<script src="/js/yomichan.js"></script>
|
|
<script src="/js/comm/cross-frame-api.js"></script>
|
|
<script src="/js/comm/api.js"></script>
|
|
|
|
<script src="/js/dom/document-focus-controller.js"></script>
|
|
<script src="/js/dom/html-template-collection.js"></script>
|
|
<script src="/bg/js/permissions-util.js"></script>
|
|
<script src="/bg/js/settings/permissions-toggle-controller.js"></script>
|
|
<script src="/bg/js/settings/settings-controller.js"></script>
|
|
|
|
<script src="/bg/js/permissions-main.js"></script>
|
|
|
|
</body>
|
|
</html>
|