Command Chain Recipes
-
@idurand I got Startpage, DDG and Brave as the 3 engines.
When I trigger the Command Chain it opens a new tab for Startpage and DDG each, but does go beyond their home page, that empty page with an empty search box.
It does not stack those 2 tabs (Command 8), nor does it open a new tab for Brave, never mind tiling to grid.
-
-
@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"}