Bookmarklets do not work in Vivaldi 2.0
-
In Vivaldi 2.0 for Mac, I have found out that the bookmarklets do not work. Does anyone else face the same problem. When I click on a bookmarklet on the bookmark tab bar, it opens a blank page. In other browsers, it does some action such as fetch a page content and posts to a website such as say "citeulike" or so.
What do I need to do to get bookmarklets work? The popups work in other situations, and javascripts are enabled in the browser as far as I know.
As a workaround I can convert a bookmarklet to an extension and load it as an unpacked extension using vivaldi://extensions (see more at http://extensionizr.com/) but I am interested in putting a bookmarklet directly in the bookmarks bar and get done with it.
-
@gwen-dragon
Almost every bookmarklet I tested do not work. Take for example the "citeulike" post it URL:javascript:location.href='http://www.citeulike.org/posturl?username=arinbasu&bml=nopopup&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)
If I drag this to the bookmarks bar and then when I come across a web page from where I want to post to citeulike, it will return a blank screen. I tried it in Vivaldi 2.0 on Mac, and it did not work.
-
@arinbasu Here's one that I use all the time:
javascript:void(location.href='http://translate.google.com/translate?u='+location.href)
I create a bookmark called "Translate this page..." and I can confirm that it works fine in both Vivaldi Stable and Snapshot builds.
-
@xyzzy Thanks! Yes this works. :-), looks like this is the way of Vivaldi. Happy with it.
-
@gwen-dragon You can try to create this bookmarklet: https://bookmarkos.com/bookmarklet
I cannot to do it. The created bookmarklet is empty, without javascript.
Thanks -
@gwen-dragon ... and I'll confirm it.
-
Thanks @Gwen-Dragon – I can confirm the bookmarklet gets its address changed to
about:blank#blocked
, so it seems this is intentional. Do you know if the update to get dragged bookmarklets working is in the roadmap? -
@salvarado VB-45749 has not been assigned to a developer yet. Unfortunately, we don't know when the Vivaldi team will start working on this (or any other) bug.
-
Thanks @xyzzy , I appreciate the quick reply
-
@salvarado No problem. Also, I'm not sure what's behind
about:blank#blocked
. Vivaldi is not trying to block or disable bookmarklets, it's just that dragging them to Bookmarks Bar is broken... and the bug for this issue is still open and waiting to be fixed. -
Hi, just to add that i've experienced this issue when trying to add bookmarklets too.
-
still not fixed. it is a major drawback especially for devs.
-
This is still broken.
Tried a shaarli bookmarklet, and 2 shaarli extensions and no luck. Here's the bookmarklet
javascript:( function(){ var%20url%20=%20location.href; var%20title%20=%20document.title%20||%20url; var%20desc=document.getSelection().toString(); if(desc.length>4000){ desc=desc.substr(0,4000)+'...'; alert('The%20selected%20text%20is%20too%20long,%20it%20will%20be%20truncated.'); } window.open( 'https://A.URL.shaarli/admin/shaare?post='%20+%20encodeURIComponent(url)+ '&title='%20+%20encodeURIComponent(title)+ '&description='%20+%20encodeURIComponent(desc)+ '&source=bookmarklet','_blank','menubar=no,height=800,width=600,toolbar=no,scrollbars=yes,status=no,dialog=1' ); } )();
-
@brimwats said in Bookmarklets do not work in Vivaldi 2.0:
Tried a shaarli bookmarklet, and 2 shaarli extensions and no luck. Here's the bookmarklet
Just because a single bookmarklet is broken does not mean bookmarklets are broken in Vivaldi. I have several I use regularly and they work fine.
BTW I added the above code to a bookmarklet, and ran it on this page. It opened a window with the URL:
https://a.url.shaarli/admin/shaare?post=https%3A%2F%2Fforum.vivaldi.net%2Ftopic%2F31077%2Fbookmarklets-do-not-work-in-vivaldi-2-0%2F17&title=Bookmarklets do not work in Vivaldi 2.0 | Vivaldi Forum&description=Tried a shaarli bookmarklet%2C and 2 shaarli extensions and no luck. Here's the bookmarklet&source=bookmarklet
-
Honestly I didn't test this feature too much due mixed results (sadly, as they're useful).
For example, this one for print and the other for paging are worse than their extension counterparts.
(Don't work on this forum, for example). The G-Translate one works as expected.Btw, +1 for VB-45749 fixed.
-
@Hadden89 I will ask bout VB-45749 internally. There must be something about Vivaldi that makes this bug either very difficult or very time-consuming to fix... or it is simply getting out-prioritized by other (more urgent) bugs.
-
@xyzzy Dragging would be useful and I think it worked in past, so could be regressed somewhere.
There must be another issue about on why some of them fails (they work on chr0me).
If you discover something, let me know -
Just came across this issue and I can confirm, the actual bookmarklet works fine if you manually copy and paste the javascript into the bookmark URL - it's just the drag and drop to bookmark bar that clears the URL replacing with
about:blank#blocked
. -
Ppafflick moved this topic from Vivaldi for macOS on