Exibir atalhos para os seguintes idiomas:
+ + +Importante: devido à uma limitação dos navegadores, + selecionando mais de uma opção irá criar um sub-menu.
+ + + diff --git a/src/options.js b/src/options.js new file mode 100644 index 0000000..5450f87 --- /dev/null +++ b/src/options.js @@ -0,0 +1,32 @@ +async function saveOptions(e) { + e.preventDefault(); + await chrome.storage.sync.set({ + last: document.querySelector("#last").checked, + ptb: document.querySelector("#ptb").checked, + enu: document.querySelector("#enu").checked, + deu: document.querySelector("#deu").checked, + ita: document.querySelector("#ita").checked, + esp: document.querySelector("#esp").checked, + fra: document.querySelector("#fra").checked, + }); + alert("Opções salvas!"); + await chrome.runtime.sendMessage({ name: 'reloadContextMenus' }); + restoreOptions(); +} + +async function restoreOptions() { + let option = await chrome.storage.sync.get(['last', 'ptb', 'enu', 'deu', 'ita', 'esp', 'fra']); + document.querySelector("#last").checked = option.last; + document.querySelector("#ptb").checked = option.ptb; + document.querySelector("#enu").checked = option.enu; + document.querySelector("#deu").checked = option.deu; + document.querySelector("#ita").checked = option.ita; + document.querySelector("#esp").checked = option.esp; + document.querySelector("#fra").checked = option.fra; + if (!option.ptb && !option.enu && !option.deu && !option.ita && !option.esp && !option.fra) { + document.querySelector("#last").checked = true; + } +} + +document.addEventListener('DOMContentLoaded', restoreOptions); +document.querySelector("form").addEventListener("submit", saveOptions); diff --git a/tags b/tags new file mode 100644 index 0000000..a39b46a --- /dev/null +++ b/tags @@ -0,0 +1,149 @@ +!_TAG_EXTRA_DESCRIPTION anonymous /Include tags for non-named objects like lambda/ +!_TAG_EXTRA_DESCRIPTION fileScope /Include tags of file scope/ +!_TAG_EXTRA_DESCRIPTION pseudo /Include pseudo tags/ +!_TAG_EXTRA_DESCRIPTION subparser /Include tags generated by subparsers/ +!_TAG_FIELD_DESCRIPTION epoch /the last modified time of the input file (only for F\/file kind tag)/ +!_TAG_FIELD_DESCRIPTION file /File-restricted scoping/ +!_TAG_FIELD_DESCRIPTION input /input file/ +!_TAG_FIELD_DESCRIPTION name /tag name/ +!_TAG_FIELD_DESCRIPTION pattern /pattern/ +!_TAG_FIELD_DESCRIPTION typeref /Type and name of a variable or typedef/ +!_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/ +!_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ +!_TAG_KIND_DESCRIPTION!HTML C,stylesheet /stylesheets/ +!_TAG_KIND_DESCRIPTION!HTML I,id /identifiers/ +!_TAG_KIND_DESCRIPTION!HTML J,script /scripts/ +!_TAG_KIND_DESCRIPTION!HTML a,anchor /named anchors/ +!_TAG_KIND_DESCRIPTION!HTML c,class /classes/ +!_TAG_KIND_DESCRIPTION!HTML h,heading1 /H1 headings/ +!_TAG_KIND_DESCRIPTION!HTML i,heading2 /H2 headings/ +!_TAG_KIND_DESCRIPTION!HTML j,heading3 /H3 headings/ +!_TAG_KIND_DESCRIPTION!HTML t,title /titles/ +!_TAG_KIND_DESCRIPTION!JSON a,array /arrays/ +!_TAG_KIND_DESCRIPTION!JSON b,boolean /booleans/ +!_TAG_KIND_DESCRIPTION!JSON n,number /numbers/ +!_TAG_KIND_DESCRIPTION!JSON o,object /objects/ +!_TAG_KIND_DESCRIPTION!JSON s,string /strings/ +!_TAG_KIND_DESCRIPTION!JSON z,null /nulls/ +!_TAG_KIND_DESCRIPTION!JavaScript C,constant /constants/ +!_TAG_KIND_DESCRIPTION!JavaScript G,getter /getters/ +!_TAG_KIND_DESCRIPTION!JavaScript M,field /fields/ +!_TAG_KIND_DESCRIPTION!JavaScript S,setter /setters/ +!_TAG_KIND_DESCRIPTION!JavaScript c,class /classes/ +!_TAG_KIND_DESCRIPTION!JavaScript f,function /functions/ +!_TAG_KIND_DESCRIPTION!JavaScript g,generator /generators/ +!_TAG_KIND_DESCRIPTION!JavaScript m,method /methods/ +!_TAG_KIND_DESCRIPTION!JavaScript p,property /properties/ +!_TAG_KIND_DESCRIPTION!JavaScript v,variable /global variables/ +!_TAG_KIND_DESCRIPTION!Markdown S,subsection /level 2 sections/ +!_TAG_KIND_DESCRIPTION!Markdown T,l4subsection /level 4 sections/ +!_TAG_KIND_DESCRIPTION!Markdown c,chapter /chapters/ +!_TAG_KIND_DESCRIPTION!Markdown n,footnote /footnotes/ +!_TAG_KIND_DESCRIPTION!Markdown s,section /sections/ +!_TAG_KIND_DESCRIPTION!Markdown t,subsubsection /level 3 sections/ +!_TAG_KIND_DESCRIPTION!Markdown u,l5subsection /level 5 sections/ +!_TAG_KIND_DESCRIPTION!Sh a,alias /aliases/ +!_TAG_KIND_DESCRIPTION!Sh f,function /functions/ +!_TAG_KIND_DESCRIPTION!Sh h,heredoc /label for here document/ +!_TAG_KIND_DESCRIPTION!Sh s,script /script files/ +!_TAG_OUTPUT_EXCMD mixed /number, pattern, mixed, or combineV2/ +!_TAG_OUTPUT_FILESEP slash /slash or backslash/ +!_TAG_OUTPUT_MODE u-ctags /u-ctags or e-ctags/ +!_TAG_OUTPUT_VERSION 0.0 /current.age/ +!_TAG_PARSER_VERSION!HTML 0.0 /current.age/ +!_TAG_PARSER_VERSION!JSON 0.0 /current.age/ +!_TAG_PARSER_VERSION!JavaScript 0.0 /current.age/ +!_TAG_PARSER_VERSION!Markdown 0.0 /current.age/ +!_TAG_PARSER_VERSION!Sh 0.0 /current.age/ +!_TAG_PATTERN_LENGTH_LIMIT 96 /0 for no limit/ +!_TAG_PROC_CWD /run/media/bruno/Multimedia/MyDocuments/Development/BrunoFontes/dicionariosAddon/ // +!_TAG_PROGRAM_AUTHOR Universal Ctags Team // +!_TAG_PROGRAM_NAME Universal Ctags /Derived from Exuberant Ctags/ +!_TAG_PROGRAM_URL https://ctags.io/ /official site/ +!_TAG_PROGRAM_VERSION 6.0.0 /p6.0.20221218.0/ +!_TAG_ROLE_DESCRIPTION!HTML!class attribute /assigned as attributes/ +!_TAG_ROLE_DESCRIPTION!HTML!script extFile /referenced as external files/ +!_TAG_ROLE_DESCRIPTION!HTML!stylesheet extFile /referenced as external files/ +!_TAG_ROLE_DESCRIPTION!Sh!heredoc endmarker /end marker/ +!_TAG_ROLE_DESCRIPTION!Sh!script loaded /loaded/ +0 src/manifest.json /^ "contextMenus"$/;" s array:permissions +0 src/manifest.json /^ "scripts": ["background.js"]$/;" s array:background.scripts +0 src/manifest_all.json /^ "contextMenus",$/;" s array:permissions +1 src/manifest_all.json /^ "storage"$/;" s array:permissions +128 src/manifest.json /^ "128": "img\/logo-128.png",$/;" s object:icons +128 src/manifest_all.json /^ "128": "img\/logo-128.png",$/;" s object:icons +140 src/manifest.json /^ "140": "img\/logo-140.png",$/;" s object:icons +140 src/manifest_all.json /^ "140": "img\/logo-140.png",$/;" s object:icons +16 src/manifest.json /^ "16": "img\/logo-16.png",$/;" s object:icons +16 src/manifest_all.json /^ "16": "img\/logo-16.png",$/;" s object:icons +260 src/manifest.json /^ "260": "img\/logo-260.png"$/;" s object:icons +260 src/manifest_all.json /^ "260": "img\/logo-260.png"$/;" s object:icons +48 src/manifest.json /^ "48": "img\/logo-48.png",$/;" s object:icons +48 src/manifest_all.json /^ "48": "img\/logo-48.png",$/;" s object:icons +96 src/manifest.json /^ "96": "img\/logo-96.png",$/;" s object:icons +96 src/manifest_all.json /^ "96": "img\/logo-96.png",$/;" s object:icons +Contributing README.md /^## Contributing$/;" s chapter:Dicionarios.cc Browser Extension +Deployment README.md /^## Deployment$/;" s chapter:Dicionarios.cc Browser Extension +Dicionarios.cc src/popup.html /^