How do you select and modify an element by it's title?
javascript: (function () {
document.body.innerHTML += `<style>* {
background:% 20#000 % 20!important;
color:% 20#0f0 % 20!important;
outline:% 20solid % 20#f00 % 201px % 20!important;
} </style > `;
})();
I need to update the snippet / bookmarklet so when I run it (I have it on my bookmarks bar) it changes the position of a certain element in the document.
The only way I could select this element is by its title
attribute.
"div[name=abcd]"
, so title might work that way too...