Closed TingTingin closed 3 years ago
Check the permissions page and make sure clipboard reading is allowed. You can access the permissions page from the browser button popup menu => info page => permissions. Unless this is what you mean by I have clipboard read enabled, in which case I can try to reproduce the issue.
Not sure where the page your referencing is but is see this on the extension info
=>
=>
its enabled there too
Just tested on Brave 1.24.85 without issue, can you export your settings file and share it?
okay here it is
{ "version": 0, "date": "2021-05-15 15:24:06", "url": "chrome-extension://ogmnaimimemjmbakcfefmnahgdfhfami/", "manifest": { "author": "Alex Yatskov", "background": { "page": "background.html", "persistent": true }, "browser_action": { "default_icon": { "16": "images/icon16.png", "19": "images/icon19.png", "32": "images/icon32.png", "38": "images/icon38.png", "48": "images/icon48.png", "64": "images/icon64.png", "128": "images/icon128.png" }, "default_popup": "action-popup.html", "default_title": "Yomichan" }, "commands": { "openInfoPage": { "description": "Open the info page" }, "openPopupWindow": { "description": "Open the popup window" }, "openSearchPage": { "description": "Open the search page", "suggested_key": { "default": "Alt+Insert" } }, "openSettingsPage": { "description": "Open the settings page" }, "toggleTextScanning": { "description": "Toggle text scanning on/off", "suggested_key": { "default": "Alt+Delete" } } }, "content_scripts": [ { "all_frames": true, "js": [ "js/core.js", "js/yomichan.js", "js/app/frontend.js", "js/app/popup.js", "js/app/popup-factory.js", "js/app/popup-proxy.js", "js/app/popup-window.js", "js/comm/api.js", "js/comm/cross-frame-api.js", "js/comm/frame-ancestry-handler.js", "js/comm/frame-client.js", "js/comm/frame-offset-forwarder.js", "js/dom/dom-text-scanner.js", "js/dom/document-util.js", "js/dom/text-source-element.js", "js/dom/text-source-range.js", "js/input/hotkey-handler.js", "js/language/text-scanner.js", "js/script/dynamic-loader.js", "js/app/content-script-main.js" ], "match_about_blank": true, "matches": [ "http://*/*", "https://*/*", "file://*/*" ] } ], "content_security_policy": "default-src 'self'; img-src blob: 'self'; style-src 'self' 'unsafe-inline'; media-src *; connect-src *", "description": "Japanese dictionary with Anki integration", "differential_fingerprint": "1.13087e973133b3811c02cfc0254f9e946279ce3cfd110201f99989b9477e3e7f", "icons": { "16": "images/icon16.png", "19": "images/icon19.png", "32": "images/icon32.png", "38": "images/icon38.png", "48": "images/icon48.png", "64": "images/icon64.png", "128": "images/icon128.png" }, "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAug/0Wtc35jGyy+Jkf4Kt9DUAzvziCJbhwlwzdro0cPnN+2K6Y2rCBVgAJln7SffCKVWa0k6BM3D7m7yydAECgSo8VUn2zUgInXpfQAuI2dG+6OEi0SOu2SkXJFvvAMjM/JAXY0zQRofnxeDRqvT7EtHW9lLwtgLTBuJObuq5zCHAPFa3PZ5ZORvUEmQZ2HDxUxaUZzsFW4kZ/rxPaNXTWe+qM30wqvlk79DBUJVq9zlzsDGM6G5qWcCk3vT5MEGuZVK7IPi6w9dPfOA3myicuywhDxumteg6wFraarMMAR2Stc80Yb9pCZT5Jav9e7eG97DuBAh97IOKrfI6mU8CkwIDAQAB", "manifest_version": 2, "minimum_chrome_version": "57.0.0.0", "name": "Yomichan", "optional_permissions": [ "clipboardRead", "nativeMessaging" ], "options_ui": { "open_in_tab": true, "page": "settings.html" }, "permissions": [ "", "storage", "clipboardWrite", "unlimitedStorage", "webRequest", "webRequestBlocking" ], "sandbox": { "content_security_policy": "sandbox allow-scripts; default-src 'self'; script-src 'self' 'unsafe-eval'", "pages": [ "template-renderer.html" ] }, "update_url": "https://clients2.google.com/service/update2/crx", "version": "21.4.30.2", "web_accessible_resources": [ "popup.html", "template-renderer.html" ] }, "environment": { "browser": "chrome", "platform": { "os": "win" } }, "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36", "permissions": { "origins": [ " ", "chrome://favicon/*", "file:///*", "http://*/*", "https://*/*" ], "permissions": [ "clipboardRead", "clipboardWrite", "nativeMessaging", "storage", "unlimitedStorage", "webRequest", "webRequestBlocking" ] }, "options": { "profiles": [ { "name": "main", "options": { "general": { "enable": true, "resultOutputMode": "group", "debugInfo": false, "maxResults": 32, "showAdvanced": true, "popupDisplayMode": "default", "popupWidth": 400, "popupHeight": 300, "popupHorizontalOffset": 0, "popupVerticalOffset": 10, "popupHorizontalOffset2": 10, "popupVerticalOffset2": 0, "popupHorizontalTextPosition": "below", "popupVerticalTextPosition": "before", "popupScalingFactor": 1, "popupScaleRelativeToPageZoom": false, "popupScaleRelativeToVisualViewport": true, "showGuide": false, "compactTags": false, "mainDictionary": "JMdict (English)", "popupTheme": "default", "popupOuterTheme": "default", "customPopupCss": "", "customPopupOuterCss": "", "enableWanakana": false, "showPitchAccentDownstepNotation": true, "showPitchAccentPositionNotation": true, "showPitchAccentGraph": true, "showIframePopupsInRootFrame": false, "useSecurePopupFrameUrl": true, "usePopupShadowDom": true, "usePopupWindow": false, "glossaryLayoutMode": "default", "popupCurrentIndicatorMode": "triangle", "popupActionBarVisibility": "auto", "popupActionBarLocation": "top", "frequencyDisplayMode": "split-tags-grouped", "termDisplayMode": "ruby" }, "audio": { "enabled": true, "sources": [ "jpod101", "jisho", "text-to-speech-reading" ], "volume": 100, "autoPlay": true, "customSourceUrl": "", "textToSpeechVoice": "urn:moz-tts:sapi:Microsoft Haruka Desktop - Japanese?ja-JP", "customSourceType": "audio" }, "scanning": { "touchInputEnabled": true, "selectText": true, "alphanumeric": true, "autoHideResults": false, "delay": 20, "length": 10, "deepDomScan": true, "popupNestingMaxDepth": 5, "enablePopupSearch": false, "enableOnPopupExpressions": false, "enableOnSearchPage": true, "enableSearchTags": false, "layoutAwareScan": true, "hideDelay": 0, "pointerEventsEnabled": false, "preventMiddleMouse": { "onWebPages": false, "onPopupPages": false, "onSearchPages": false, "onSearchQuery": false }, "inputs": [ { "include": "ctrl, shift", "exclude": "mouse0", "types": { "mouse": true, "touch": false, "pen": false }, "options": { "showAdvanced": false, "searchTerms": true, "searchKanji": true, "scanOnTouchMove": true, "scanOnPenHover": true, "scanOnPenPress": true, "scanOnPenRelease": false, "preventTouchScrolling": true } } ], "modifier": null }, "translation": { "convertHalfWidthCharacters": "false", "convertNumericCharacters": "false", "convertAlphabeticCharacters": "true", "convertHiraganaToKatakana": "false", "convertKatakanaToHiragana": "variant", "collapseEmphaticSequences": "false", "textReplacements": { "searchOriginal": true, "groups": [] } }, "dictionaries": [ { "name": "Innocent Corpus", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "JMdict (English)", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "JMnedict", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "KANJIDIC (English)", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "KireiCake", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "三省堂 スーパー大辞林", "priority": 0, "enabled": false, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "Anime & Jdrama Freq:", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "研究社 新和英大辞典 第5版", "priority": 1, "enabled": false, "allowSecondarySearches": false, "definitionsCollapsible": "collapsed" }, { "name": "故事ことわざの辞典", "priority": 1, "enabled": false, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "広辞苑第六版, 付属資料", "priority": 1, "enabled": false, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "大辞泉", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "明鏡国語辞典", "priority": 0, "enabled": false, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" } ], "parsing": { "enableScanningParser": true, "enableMecabParser": false, "selectedParser": "scan", "termSpacing": false, "readingMode": "hiragana" }, "anki": { "enable": true, "server": "http://127.0.0.1:8765", "tags": [ "yomichan" ], "screenshot": { "format": "png", "quality": 92 }, "terms": { "deck": "double decking::Highlander Anki", "model": "Highlander Combo", "fields": { "Jisho Kanji": "{expression}", "Character": "{expression} {sentence}", "Sentence": "{sentence}", "Meanings": "{glossary-brief}", "Pitch Accent": "", "Pitch Positions": "", "Image": "", "Secondary Image": "", "Audio": "{audio}" } }, "kanji": { "deck": "double decking::Highlander Kanji", "model": "Highlander Kanji", "fields": { "Jisho Kanji": "{character}", "Character": "{character} {sentence}", "Keyword": "おんよみ。 {onyomi}
くんょみ。 {kunyomi} ", "Meanings": "{glossary}", "Image": "", "Sentence": "{sentence}", "Audio": "" } }, "duplicateScope": "collection", "fieldTemplates": null, "checkForDuplicates": true, "suspendNewCards": false, "displayTags": "never" }, "sentenceParsing": { "scanExtent": 200, "enableTerminationCharacters": true, "terminationCharacters": [ { "enabled": true, "character1": "「", "character2": "」", "includeCharacterAtStart": false, "includeCharacterAtEnd": false }, { "enabled": true, "character1": "『", "character2": "』", "includeCharacterAtStart": false, "includeCharacterAtEnd": false }, { "enabled": true, "character1": "\"", "character2": "\"", "includeCharacterAtStart": false, "includeCharacterAtEnd": false }, { "enabled": true, "character1": "'", "character2": "'", "includeCharacterAtStart": false, "includeCharacterAtEnd": false }, { "enabled": true, "character1": ".", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "!", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "?", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": ".", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "。", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "!", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "?", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "…", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true } ] }, "inputs": { "hotkeys": [ { "action": "close", "key": "Escape", "modifiers": [], "scopes": [ "popup" ], "enabled": true, "argument": "" }, { "action": "focusSearchBox", "key": "Escape", "modifiers": [], "scopes": [ "search" ], "enabled": true, "argument": "" }, { "action": "previousEntry", "key": "PageUp", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "3" }, { "action": "nextEntry", "key": "PageDown", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "3" }, { "action": "lastEntry", "key": "End", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "firstEntry", "key": "Home", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "previousEntry", "key": "ArrowUp", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "1" }, { "action": "nextEntry", "key": "ArrowDown", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "1" }, { "action": "historyBackward", "key": "KeyB", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "historyForward", "key": "KeyF", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "addNoteKanji", "key": "KeyK", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "addNoteTermKanji", "key": "KeyE", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "addNoteTermKana", "key": "KeyR", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "playAudio", "key": "KeyP", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "viewNote", "key": "KeyV", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "copyHostSelection", "key": "KeyC", "modifiers": [ "ctrl" ], "scopes": [ "popup" ], "enabled": true, "argument": "" } ] }, "popupWindow": { "width": 500, "height": 300, "left": 0, "top": 0, "useLeft": false, "useTop": false, "windowType": "popup", "windowState": "normal" }, "clipboard": { "enableBackgroundMonitor": true, "enableSearchPageMonitor": false, "autoSearchContent": true, "maximumSearchLength": 1000 } }, "conditionGroups": [] }, { "name": "Mpv", "options": { "general": { "enable": true, "resultOutputMode": "group", "debugInfo": false, "maxResults": 32, "showAdvanced": true, "popupDisplayMode": "default", "popupWidth": 400, "popupHeight": 300, "popupHorizontalOffset": 0, "popupVerticalOffset": 10, "popupHorizontalOffset2": 10, "popupVerticalOffset2": 0, "popupHorizontalTextPosition": "below", "popupVerticalTextPosition": "before", "popupScalingFactor": 1, "popupScaleRelativeToPageZoom": false, "popupScaleRelativeToVisualViewport": true, "showGuide": false, "compactTags": false, "mainDictionary": "JMdict (English)", "popupTheme": "default", "popupOuterTheme": "default", "customPopupCss": "", "customPopupOuterCss": "", "enableWanakana": false, "showPitchAccentDownstepNotation": true, "showPitchAccentPositionNotation": true, "showPitchAccentGraph": true, "showIframePopupsInRootFrame": false, "useSecurePopupFrameUrl": true, "usePopupShadowDom": true, "usePopupWindow": false, "glossaryLayoutMode": "default", "popupCurrentIndicatorMode": "triangle", "popupActionBarVisibility": "auto", "popupActionBarLocation": "top", "frequencyDisplayMode": "split-tags-grouped", "termDisplayMode": "ruby" }, "audio": { "enabled": true, "sources": [ "jpod101", "jisho", "text-to-speech-reading" ], "volume": 100, "autoPlay": false, "customSourceUrl": "", "textToSpeechVoice": "urn:moz-tts:sapi:Microsoft Haruka Desktop - Japanese?ja-JP", "customSourceType": "audio" }, "scanning": { "touchInputEnabled": true, "selectText": true, "alphanumeric": true, "autoHideResults": false, "delay": 20, "length": 10, "deepDomScan": true, "popupNestingMaxDepth": 1, "enablePopupSearch": false, "enableOnPopupExpressions": false, "enableOnSearchPage": true, "enableSearchTags": false, "layoutAwareScan": true, "hideDelay": 0, "pointerEventsEnabled": false, "preventMiddleMouse": { "onWebPages": false, "onPopupPages": false, "onSearchPages": false, "onSearchQuery": false }, "inputs": [ { "include": "ctrl, shift", "exclude": "mouse0", "types": { "mouse": true, "touch": false, "pen": false }, "options": { "showAdvanced": false, "searchTerms": true, "searchKanji": true, "scanOnTouchMove": true, "scanOnPenHover": true, "scanOnPenPress": true, "scanOnPenRelease": false, "preventTouchScrolling": true } } ], "modifier": null }, "translation": { "convertHalfWidthCharacters": "false", "convertNumericCharacters": "false", "convertAlphabeticCharacters": "true", "convertHiraganaToKatakana": "false", "convertKatakanaToHiragana": "variant", "collapseEmphaticSequences": "false", "textReplacements": { "searchOriginal": true, "groups": [] } }, "dictionaries": [ { "name": "Innocent Corpus", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "JMdict (English)", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "JMnedict", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "KANJIDIC (English)", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "KireiCake", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "三省堂 スーパー大辞林", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "Anime & Jdrama Freq:", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "研究社 新和英大辞典 第5版", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "故事ことわざの辞典", "priority": 0, "enabled": false, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "広辞苑第六版, 付属資料", "priority": 0, "enabled": false, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "大辞泉", "priority": 0, "enabled": true, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" }, { "name": "明鏡国語辞典", "priority": 0, "enabled": false, "allowSecondarySearches": false, "definitionsCollapsible": "not-collapsible" } ], "parsing": { "enableScanningParser": true, "enableMecabParser": false, "selectedParser": "scan", "termSpacing": false, "readingMode": "hiragana" }, "anki": { "enable": true, "server": "http://127.0.0.1:8765", "tags": [ "yomichan" ], "screenshot": { "format": "png", "quality": 92 }, "terms": { "deck": "double decking::Highlander Anki", "model": "Highlander Combo", "fields": { "Jisho Kanji": "{expression}", "Character": "{expression} {sentence}", "Sentence": "{sentence}", "Meanings": "{glossary-brief}", "Pitch Accent": "", "Pitch Positions": "", "Image": "{clipboard-image}", "Secondary Image": "", "Audio": "{audio}" } }, "kanji": { "deck": "double decking::Highlander Kanji", "model": "Highlander Kanji", "fields": { "Jisho Kanji": "{character}", "Character": "{character} {sentence}", "Keyword": "おんよみ。 {onyomi}
くんょみ。 {kunyomi} ", "Meanings": "{glossary}", "Image": "{clipboard-image}", "Sentence": "{sentence}", "Audio": "" } }, "duplicateScope": "collection", "fieldTemplates": null, "checkForDuplicates": true, "suspendNewCards": false, "displayTags": "never" }, "sentenceParsing": { "scanExtent": 200, "enableTerminationCharacters": true, "terminationCharacters": [ { "enabled": true, "character1": "「", "character2": "」", "includeCharacterAtStart": false, "includeCharacterAtEnd": false }, { "enabled": true, "character1": "『", "character2": "』", "includeCharacterAtStart": false, "includeCharacterAtEnd": false }, { "enabled": true, "character1": "\"", "character2": "\"", "includeCharacterAtStart": false, "includeCharacterAtEnd": false }, { "enabled": true, "character1": "'", "character2": "'", "includeCharacterAtStart": false, "includeCharacterAtEnd": false }, { "enabled": true, "character1": ".", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "!", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "?", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": ".", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "。", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "!", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "?", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true }, { "enabled": true, "character1": "…", "character2": null, "includeCharacterAtStart": false, "includeCharacterAtEnd": true } ] }, "inputs": { "hotkeys": [ { "action": "close", "key": "Escape", "modifiers": [], "scopes": [ "popup" ], "enabled": true, "argument": "" }, { "action": "focusSearchBox", "key": "Escape", "modifiers": [], "scopes": [ "search" ], "enabled": true, "argument": "" }, { "action": "previousEntry", "key": "PageUp", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "3" }, { "action": "nextEntry", "key": "PageDown", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "3" }, { "action": "lastEntry", "key": "End", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "firstEntry", "key": "Home", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "previousEntry", "key": "ArrowUp", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "1" }, { "action": "nextEntry", "key": "ArrowDown", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "1" }, { "action": "historyBackward", "key": "KeyB", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "historyForward", "key": "KeyF", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "addNoteKanji", "key": "KeyK", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "addNoteTermKanji", "key": "KeyE", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "addNoteTermKana", "key": "KeyR", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "playAudio", "key": "KeyP", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "viewNote", "key": "KeyV", "modifiers": [ "alt" ], "scopes": [ "popup", "search" ], "enabled": true, "argument": "" }, { "action": "copyHostSelection", "key": "KeyC", "modifiers": [ "ctrl" ], "scopes": [ "popup" ], "enabled": true, "argument": "" } ] }, "popupWindow": { "width": 500, "height": 300, "left": 0, "top": 0, "useLeft": false, "useTop": false, "windowType": "popup", "windowState": "normal" }, "clipboard": { "enableBackgroundMonitor": true, "enableSearchPageMonitor": false, "autoSearchContent": true, "maximumSearchLength": 1000 } }, "conditionGroups": [] } ], "profileCurrent": 1, "version": 11, "global": { "database": { "prefixWildcardsSupported": false } } } }
I don't have the issue using your settings file either. Is there a particular way you're assigning the clipboard image? Printscreen or something?
Additionally, not sure if you have any other variants of Chrome installed, but you could try testing on one of those to see if you have the same issue.
Okay so I reinstalled Yomichan in brave and also tried on another variant of chrome and with the reinstall it still doesnt work and surprisingly also doesn't work on the other variant of chrome it does however work on firefox i dont get why
in this gif there is an image on the clipboard copied via sharex
forgot to mention in the gif chrome brave and firefox (in that order) are being used
Firefox and Chromium browsers handle image clipboard reading differently, so that likely accounts for the difference in behaviour. However, it's not clear why the Chromium browsers aren't working for you, whereas they are for me. I may try to create a script for you to test.
Another note if I use the clipboard text feature it does get added to the card
thx for the help btw
Okay, so one thing you can try to do is to simulate the image reading code in the extension:
(() => {
const target = document.querySelector('#clipboard-image-paste-target');
target.focus();
document.execCommand('paste');
console.log(target.innerHTML);
target.textContent = '';
})();
For reference, here is an example of what it could look like:
I think I figured it out though when I did what you said there I kept getting undefined and nothing else was returned I then disabled sharex and tried using windows normal printscreen and then it returned some values so I tried to add a card to anki and the image was added to it
So it seems there something about how sharex copies images to the clipboard that chrome cant interact with im not sure what to do from here though
Do you know why that could be the issue and how to fix?
Okay looking into this more I finally found the issue apparently in shareX there's two types of copy to clipboard copy image to clipboard and copy file to clipboard when set to copy file it seems that the chrome browsers don't wont work with the file but Firefox does however when set to copy image this it works! and the images actually get added to ANKI sorry for wasting your time I feel stupid
Yeah, I was going to suggest that as the issue after I did some looking into it. As I mentioned in an earlier post, Firefox and Chrome read the clipboard differently, and Firefox is able to read files directly. Chrome, on the other hand, is only able to read the clipboard by performing a "paste" command, which works for image data but not for files. This may change at some point in the distant future if Chrome ever addresses this issue.
Description (Describe what the issue is, if it is reproducible, and if possible, how to reproduce it.)
When using brave browser with an image in the clipboard if I try to add a ANKI card with {clipboard-image} on one of the fields the field shows up blank in ANKI I have clipboard read enabled and for testing I tried adding a ANKI card with the same {clipboard-image} on a field in Firefox and the image was added to card in ANKI
Its worth noting that if I use {clipboard-text} with text in the clipboard that it will get added to card when using brave
Browser version brave 1.24.84 Chromium: 90.0.4430.93
Yomichan version Yomichan 21.4.30.2
Exported settings file (If you think it might be relevant, create a settings export file using the Export Settings button on the settings page; zip or rename the resulting file to .txt to attach to the issue.)