A couple of issues with Bookmarklets (on Lubuntu)
-
Hi,
I'm new one here, just a couple of hours of trying out and I'm really liking the features so far, but I'm a heavy user of bookmarklets, so they're very important and they don't seem to be working right for me. I found some older posts on the topic, but they don't seem to be covering that I'm facing.Firstly, some context. I've simply imported my bookmarks from Opera, so maybe that's an issue.
When I click the bookmarklet it does work the first time, but it's code also gets copied into the address bar (so I would need to reload the page to edit the url), and then depending on what I do the address bar sometimes get's reset back to the original link, but if I just press the bookmarklet a second time, then it doesn't work anymore.
For example here's a script of Google Bookmarks bookmarklet I'm using.javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open("https://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk="+c(b.location)+"&title="+c(b.title),"bkmk_popup","left="+((a.screenX||a.screenLeft)+10)+",top="+((a.screenY||a.screenTop)+10)+",height=510px,width=550px,resizable=1,alwaysRaised=1");a.setTimeout(function(){d.focus()},300)})();
The second issue is when I try to drag&drop the bookmarklet link from the webpage (www.google.com/bookmarks/), it does not copy correctly. I just get this instead of the script:
about:blank#blocked
Thanks
-
I would love to know if anyone has an answer for this question even though it is almost a year old. I use Solus and have run into the same problem.
-
I'm not at my desk to test, nor am I a substantial user of bookmarklets. I have a few that I use on rare occasions. Just glancing at the code, there are some (unnecessary?) UI instructions in it. As you may be aware, Vivaldi has done more than the typical UI modifications of Chromium-based browsers; they wrote their own UI using different technologies.
It's possible that the UI manipulation that works in Opera or other Chromium-based browsers won't work in Vivaldi. I can't say for certain, not being able to test it right now, but if you remove those parts then the bookmarklet may work as expected. Though without the specific UI attributes obviously.
Someone more versed in writing Javascript bookmarklets may have better ideas.
-
I have had the same problem - you have to copy the address, the add a bookmark manually. (Right click on the bookmark bar, new, new bookmark, set the URL as the bookmarklet code)
EDIT: You can also turn off Address Bar -> Security Features -> Strip JavaScript From Pasted Domain
-
@legobuilder26 thank you, it worksοΌ
-