[RESOLVED] JavaScript in bookmarks

Ask for help about NoScript, no registration needed to post
TestUser001

[RESOLVED] JavaScript in bookmarks

Post 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?
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
User avatar
Thrawn
Master Bug Buster
Posts: 3106
Joined: Mon Jan 16, 2012 3:46 am
Location: Australia
Contact:

Re: JavaScript in bookmarks

Post by Thrawn »

Ordinarily NoScript will allow bookmarklets to run. Giorgio, is that broken in recent Firefox?
======
Thrawn
------------
Religion is not the opium of the masses. Daily life is the opium of the masses.

True religion, which dares to acknowledge death and challenge the way we live, is an attempt to wake up.
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0
User avatar
therube
Ambassador
Posts: 7980
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: JavaScript in bookmarks

Post 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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 SeaMonkey/2.26.1
barbaz
Senior Member
Posts: 11144
Joined: Sat Aug 03, 2013 5:45 pm

Re: JavaScript in bookmarks

Post 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
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:31.0) Gecko/20100101 SeaMonkey/2.28
TestUser001

Re: JavaScript in bookmarks

Post 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.
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0
User avatar
therube
Ambassador
Posts: 7980
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: [RESOLVED] JavaScript in bookmarks

Post by therube »

(your picture link broke)

But yes, if you had Options | Advanced | Untrusted -> Forbid bookmarklets checked, that would do it ;-).
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 5.1; rv:29.0) Gecko/20100101 SeaMonkey/2.26.1
Post Reply