Page 1 of 1

[RESOLVED] JavaScript in bookmarks

Posted: Wed Aug 13, 2014 7:21 am
by TestUser001
I have created couple of bookmarks which use JavaScript:
javascript:void(location.href='http://advisor.wmtransfer.com/search.as ... n.hostname)
javascript:void(location.href='https://web.archive.org/web/*/'+location.hostname)

When I am on some web-page I may want to check advisor's information about the site or to check old cached copy of the web-page by clicking on these bookmarks.

The problem is when some site is not in NoScript's whitelist bookmark isn't opened because of javascript deny.
I don't want to allow Javascript for every site when I want to click to these bookmarks.
Is there any good solution for such a problem?

Re: JavaScript in bookmarks

Posted: Wed Aug 13, 2014 12:22 pm
by Thrawn
Ordinarily NoScript will allow bookmarklets to run. Giorgio, is that broken in recent Firefox?

Re: JavaScript in bookmarks

Posted: Wed Aug 13, 2014 1:51 pm
by therube
They should be working.
Checking the second & it seems to be.

Anything relevant noted in Error Console?

Disable all other extensions & see if the issue persists.
If it does, then as a test, create a new, clean Profile. Install NoScript & test.

Re: JavaScript in bookmarks

Posted: Wed Aug 13, 2014 2:27 pm
by barbaz
NoScript version?
Anything related in the Browser Console (Ctrl-Shift-J)?
TestUser001 wrote:javascript:void(location.href='https://web.archive.org/web/*/'+location.hostname)
I use the following bookmarklet to do that:

Code: Select all

javascript:location.href='http://web.archive.org/web/*/'+document.location.href;
So as a suggestion, try removing the "void()" wrapper and replacing it with a trailing ";void(0);" if needed

Re: JavaScript in bookmarks

Posted: Fri Aug 15, 2014 6:04 pm
by TestUser001
I've figured out :) that I have an option "Deny Bookmarklets" checked.
http://storage8.static.itmages.ru/i/14/ ... f51e54.png
After I uncheck it everything works OK!
Thanks.

Re: [RESOLVED] JavaScript in bookmarks

Posted: Fri Aug 15, 2014 7:03 pm
by therube
(your picture link broke)

But yes, if you had Options | Advanced | Untrusted -> Forbid bookmarklets checked, that would do it ;-).