Import Export Command Chains
-
What?
This is helps import and export command chains for Vivaldi.
This mod comes with the ability to directly install code exported through the code block (```
) of the Vivaldi forum.
You will see an install button under the code below after installing the mod.{"category":"CATEGORY_COMMAND_CHAIN","chain":[{"key":"1e335c06-1036-4b76-be45-20fea16ab840","label":"Công cụ dành cho Nhà phát triển Console","name":"COMMAND_DEVTOOLS_CONSOLE"}],"key":"clqhvm7yg011g3564a9l2s3hk","label":"DevTools","name":"COMMAND_clqhvm7yg011g3564a9l2s3hk"}
Demo
Installation
You can learn how to install here.Javascript:
https://gist.github.com/tam710562/d6b4f846f86fedf179d78747b314cd8aChangelog
02/01/2024
- Create the first version.
04/01/2024
- Fix dialog button events not working
- Fix button duplication when opening quick commands setting
- Add bottom margin for install button
- Add css to input file
24/02/2024
- Fix an error where the file cannot be exported to the command chain when there are no Latin characters in the name.
- Add highlight to text area.
- Fix an issue where import and export dialogs were displayed at the same time in all windows.
- Fix import and export buttons being duplicated Fix a bug that did not work when opening settings in a window.
- Add the current state of the command chain in the install button in the vivaldi forum.
22/04/2024
- Add a preview of the code's content before importing.
- Improved text area highlighting performance.
-
@tam710562 Nicely done, this is really useful!
-
@tam710562 Many thanks for this very useful mod.
-
@tam710562
Cool man -
Ability to share and ingest command chains directly! That’s cool. For testing:
{"category":"CATEGORY_COMMAND_CHAIN","chain":[{"defaultValue":"https://vivaldi.com","key":"f57b8092-9426-4bc8-8e39-fcf3e315b065","label":"Open Link in New Tab","name":"COMMAND_OPEN_LINK_DEFAULT","param":"vivaldi://experiments"},{"defaultValue":1000,"key":"2eb81004-6703-46db-9933-6afcfde924e4","label":"Delay","name":"COMMAND_CHAINED_SLEEP","param":50},{"key":"cdc3b594-d57f-417d-89ee-69be8facd3aa","label":"Developer Tools","name":"COMMAND_DEVELOPER_TOOLS"},{"key":"f0a3a628-6977-4812-ab11-96a1d1fbc08d","label":"Close Tab","name":"COMMAND_CLOSE_TAB"}],"key":"cl12fs5mr00i42z5wtv7rvu1b","label":"Inspect UI","name":"COMMAND_cl12fs5mr00i42z5wtv7rvu1b"}
What doesn’t work for me is pressing export or copy. Doesn’t copy to clipboard and no file is being put in the download folder. Have to figure out whether I’m doing something wrong. Import doesn’t work for me either.
Error:
Uncaught TypeError: gnoh.getFormData is not a function at HTMLInputElement.click (Tam710562-import-export-command-chains.js:159:42)
-
@luetage Thank you for reporting the error. I copied a function missing when I published it. I fixed it and some other fixes
-
Everything works now. Importing and exporting with files and code all ok. Already backed up all my chains
-
Small detail: Clicking on the Quick commands view in settings adds an additional set of import/export buttons each time.
-
I have added an update
- Fix an error where the file cannot be exported to the command chain when there are no Latin characters in the name.
- Add highlight to text area.
- Fix an issue where import and export dialogs were displayed at the same time in all windows.
- Fix import and export buttons being duplicated Fix a bug that did not work when opening settings in a window.
- Add the current state of the command chain in the install button in the vivaldi forum.
@luetage said in Import Export Command Chains:
Small detail: Clicking on the Quick commands view in settings adds an additional set of import/export buttons each time.
This error has been fixed, thank you for reporting
-
@tam710562 Thank you very much for your work, I really appreciate it.
-
@tam710562 Looking good!
-
@tam710562
Thanks so much for creating thisIs this supposed to happen when I try to export my command chain? hahaha
any advice on this? ...unless it's supposed to be a game to see if I can beat the clock.... hahaha thanks!
-
Thank you very much! It helps me to copy all quick commands to for workspaces to my 2. machine.
-
I have added a new update
- Add a preview of the code's content before importing.
- Improved text area highlighting performance.
@pqnsocial Try the new code and I hope it fixes the problem
-
@tam710562 Thanks for today's update, I like the new preview.
-
@tam710562 Cool, I like the preview.