Enhancement: Allow javascript within Bookmarks

Bug reports and enhancement requests
Post Reply
anonymouse
Posts: 1
Joined: Fri Jan 14, 2011 6:39 pm

Enhancement: Allow javascript within Bookmarks

Post by anonymouse »

With Firefox, you can have a bookmark open into a new windows by
changing it propeties:

For Example, to have the bookmark for:
http://slashdot.org/

Always open in a new window, change its bookmark property to:

javascript:void(window.open('http://slashdot.org/'));

Now a single left click with your bookmarks on Slashdot
will open http://slashdot.org/ in a new window.

NoScript will correctly open the bookmark into a new window
if scripting is allowed on the currently displayed page.
If scripting is not allowed, clicking on the bookmark is ignored.

Is there a way for NoScript to consistently ignore or allow
javascript:void(window.open()) in bookmarks irregardless of
what page is currently displayed in the browser.

I can explain more if needed.

PS - Ii has been suggested that Firefox allow the user make
"open bookmarks in a new window" the default. But so far
the suggestion has been ignored/rejected.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
User avatar
therube
Ambassador
Posts: 7971
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: Enhancement: Allow javascript within Bookmarks

Post by therube »

Seems to always be opening in a new window for me regardless of NoScript settings?

---

Now I did notice that if you have Allow sites opened through bookmarks enabled, then a bookmarked "site" such as javascript:void(window.open('http://slashdot.org/')); does not get Allowed. Though I guess that is to be expected.
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; U; Windows NT 5.1; en-US; rv:1.9.1.16) Gecko/20101123 SeaMonkey/2.0.11
ammdispose
Posts: 1
Joined: Wed Jan 26, 2011 5:24 am

Re: Enhancement: Allow javascript within Bookmarks

Post by ammdispose »

I am having similar problem.. but my javascript is slightly complex.

This script was working till yesterday but NOT after I upgraded to latest version. I also have noscript.allowURLBarJS set to true in config. So no idea what has changed in noscript.

Its a simple form creation and submit which searches for a train schedule.

Note: Code modified slightly for clarity (its actually 1 single line)
javascript: \
document.write(%22<form%20name=f%20action='http://www.indianrail.gov.in/cgi_bin/in ... ethod=post> \
<input%20type=hidden%20name=lccp_trnname%20value=%s> \
<input%20type=submit%20value=Submit></form>\n%22); \
document.f.submit(); \
document.close();
Strange thing is that Javascript runs (because I can see the submit button and view source also shows it full) but form is not getting submitted (even if I press submit button manually)

page about:blank is allowed by noscript

so please let me know of workaround to this.

thank you.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12
User avatar
Giorgio Maone
Site Admin
Posts: 9527
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Enhancement: Allow javascript within Bookmarks

Post by Giorgio Maone »

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Post Reply