Page 1 of 1

NoScript blocks bookmarklet

Posted: Wed Aug 31, 2016 6:34 am
by hurley
Hi,

I use Vimperator, NoScript, and a bookmarklet provided by Pinboard to save links.

Precisely put, it works when using mouse to click the bookmarklet, however, opening the bookmarklet with Vimperator command (e.g. `:open`) doesn't work unless the current page is allow by NoScript. Already unchecked "Forbid bookmarklets" and added Pinboard to whitelist. No luck. Does anyone know how to fix this?

- Ubuntu 16.04
- Firefox 48
- Vimperator 3.14.0
- NoScript 2.9.0.14
- The bookmarklet I mentioned can be found here: https://pinboard.in/howto/

Please ask if you need other infomation.

Thanks.

Re: NoScript blocks bookmarklet

Posted: Wed Aug 31, 2016 6:55 am
by Thrawn
doesn't work unless the current page is allow by NoScript
I'm pretty sure that this is not a bug. Bookmarklets execute in the context of the page. If the page is blocked, the bookmarklet will be blocked.

Re: NoScript blocks bookmarklet

Posted: Wed Aug 31, 2016 9:25 am
by hurley
Thanks for your reply.
Thrawn wrote: I'm pretty sure that this is not a bug. Bookmarklets execute in the context of the page. If the page is blocked, the bookmarklet will be blocked.
But why clicking the bookmarklet with a mouse works no matter the current page is blocked or not? Is there any workaround?

Re: NoScript blocks bookmarklet

Posted: Wed Aug 31, 2016 11:21 am
by therube
:open
Open what? How do you address the bookmarklet?
If you added "popup" (bookmarklet), would it be?

:open popup

?

Re: NoScript blocks bookmarklet

Posted: Wed Aug 31, 2016 12:14 pm
by hurley
therube wrote: Open what? How do you address the bookmarklet?
If you added "popup" (bookmarklet), would it be?

:open popup

?
Open the bookmarklet. I add a keyword to the bookmarklet, so the command will be `:open keyword`. I also map `s` to `:open JavaScript code` in Vimperator, so I only need to press `s`. Both using `:open` directly in location bar and press `s` works fine if the current page is allowed by NoScript.

Re: NoScript blocks bookmarklet

Posted: Wed Aug 31, 2016 1:52 pm
by barbaz

Re: NoScript blocks bookmarklet

Posted: Sat Sep 03, 2016 8:34 am
by hurley
Read that before, seems not the same problem.