Command Chain Recipes
-
@oudstand once you have set up the command chain, how do you activate it?
My current command chains are all triggered with a single key shortcut. But this one needs to be on continuously, not just once.
-
@Pesala why not use Copy Page Address with a single key shortcut, rather than you having to move your cursor to the button and click it?
-
@luetage The thing with Javascript mods is that they are overwritten with each upgrade of Vivaldi, so they have to be re-added to the
window.html
file. That's a nuisance. -
@Granite1 That’s why you should use a batch script ☛ https://forum.vivaldi.net/post/10592. It automates the manual steps. Is a little work to set up, but you’ll get years and years of use out of it.
-
That’s why you should use a batch script
Many thanks. I will take a look. Today I have been modding a lot but stayed away from the JS part.
-
@Granite1 I already have Shift+C assigned to my Quick Command Chain to copy the page address, but it is easier to use the button than to remember which combination with C executes the Quick Command.
-
I already have Shift+C assigned to my Quick Command Chain to copy the page address
I have key
A
(for Address) assigned to it. -
@Granite1 I set up a mouse gesture for it.
-
@pafflick Nothing happened when I executed this
-
@PaRr0tBoy I just tested it and it still works here.
-
@pafflick I dunno, I copied it straight and executed but nothing happened.Never Mind I fixed it with chatgpt. This works for me. Thanks for your response anyway
{"category":"CATEGORY_COMMAND_CHAIN","chain":[{"defaultValue":"https://vivaldi.com","key":"0b01337b-4c13-4197-90c8-179c5c91cfff","label":"在当前标签页打开链接","name":"COMMAND_OPEN_LINK_CURRENT","param":"javascript:(function() { function copyToClipboard(e) { \tconst htmlContent = `<a href=\"${location.href}\">${document.title}</a>`; \te.clipboardData.setData('text/html', htmlContent); \te.clipboardData.setData('text/plain', `[${document.title}] (${location.href})`); \te.preventDefault(); } document.addEventListener('copy', copyToClipboard); document.execCommand('copy'); document.removeEventListener('copy', copyToClipboard); })();"}],"key":"fce727fa-b3f2-4a70-ab88-d378f2003fcf","label":"复制富文本链接","name":"COMMAND_fce727fa-b3f2-4a70-ab88-d378f2003fcf"}
-
@kyu3a Hey do you know how I can make it post to mastodon.social?
-
@Andrecon I made the command-chain to post the title and URL of opening webpage to Vivaldi Social. What you want to know is how to customize this command-chain to be able post to mastodon.social?
If it is so. I think if you change the url part of paramenter of my command-chain, You will be able to post to mastodon.social.
【My command-chain】
- Command 1 :Open Link in New Tab
- Paramenter:
javascript:window.open("https://social.vivaldi.net/share?text="+encodeURI(document.title)+"&url="+location.href);
【mastodon.social】
- Command 1 :Open Link in New Tab
- Paramenter:
javascript:window.open("https://mastodon.social/share?text="+encodeURI(document.title)+"&url="+location.href);
-
@kyu3a Thanks, but after clicking "Capture", it doesn't do anything
-
@Andrecon You want to make is "Caputure and Toot", isn't it? If so, it works in my Vivaldi. I used Vivaldi Snapshot 7.2.3621.36 on macOS Sequoia 15.3.1 (M1 Macbook Air). The command chain I am using is below.
- Capture Area to Clipboard (or Capture page to Clipboard)
- Delay (Parameter:1000)
- Open Link in Current Tab
Parameter:
javascript:window.open("https://social.vivaldi.net/share?text="+encodeURI(document.title)+"&url="+location.href);
- Delay (Parameter:2000)
- Paste
Perhaps the URL part of above mastodon.social is wrong. I don't have a mastodon.social account, so I can't try with mastodon.social.
Or If the image does not attach on the following screen, then the paste is not working. That happens sometimes in my Vivaldi. If that happens, I think you can use the keyboard shortcut to paste and the captured image will be attached.
-
@kyu3a well yea. I kinda needed the whole thing and thx. Ill check it later
-
@kyu3a I have vivaldi social acc too. still didn't work...
-
@Andrecon Really? It works on my Vivaldi. I have 3 questions.
- When you execute this comman-chain, does capture mode show?
- Does capture feature work? (Let's try to save JPEG or PNG. )
- Does the textarea like this show? ( If this textarea show and not image, Let's do paste keybord shorcut Ctrl+V or Cmd+V)
By the way, If I execute this command-chain, it will look something like this.
-
@kyu3a Maybe all that needs to be done is increasing the delays. I would set them to 8 seconds to make sure it’s not the issue.
-
@kyu3a everything works until 3. 3 and 4 nono