Skip to main content

Vivaldi Cheatsheet

ยท One min read
Carlos Angulo Mascarell

This post explains the next topics:

How to create a bookmarklets that copy JIRA tickets from the url

target JIRA urls: https://cangulo.atlassian.net/browse/BLOG-8

  1. Go to bookmarks
  2. Create a new one
  3. In the url part, paste but do not save the next code
javascript:(function() {
var url = window.location.href;
var pattern = /\/browse\/([^\/]+)/;
var match = pattern.exec(url);
var key = match ? match[1] : null;
if (key) {
var tempInput = document.createElement('input');
document.body.appendChild(tempInput);
tempInput.value = key;
tempInput.select();
document.execCommand('copy');
document.body.removeChild(tempInput);
alert('Key copied: ' + key);
location.reload();
} else {
alert('No key found in the URL.');
location.reload();
}
})();

Code generate using ChatGPT. Request: give me a Bookmarklets for Vivaldi Web Browser which copy current url

  1. Navigate to the begining, the javascript part was deleted, type a space and rewrite javascript

added-bookmark

  1. add a nickname so it is easy to call, in my case ccu (copy current url)
  2. Test it

test-bookmarklets.gif

References

About me

I'm a Software Engineer with experience as Developer and DevOps. The technologies I have worked with are DotNet, Terraform and AWS. For the last one, I have the Developer Associate certification. I define myself as a challenge-seeker person and team player. I simply give it all to deliver high-quality solutions. On the other hand, I like to analyze and improve processes, promote productivity and document implementations (yes, I'm a developer that likes to document ๐Ÿง‘โ€๐Ÿ’ป).

You can check my experience here.

Personal Blog - cangulo.github.io
GitHub - Carlos Angulo Mascarell - cangulo
LinkedIn - Carlos Angulo Mascarell
Twitter - @AnguloMascarell

Did you like it? Share It!


Comments